forked from len0rd/rockbox
More audio thread debug info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6820 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3739d3aa34
commit
17098e1c08
2 changed files with 9 additions and 5 deletions
|
@ -210,6 +210,7 @@ bool dbg_audio_thread(void)
|
||||||
extern size_t audiobuffer_free;
|
extern size_t audiobuffer_free;
|
||||||
extern int codecbuflen;
|
extern int codecbuflen;
|
||||||
extern int codecbufused;
|
extern int codecbufused;
|
||||||
|
extern int track_count;
|
||||||
|
|
||||||
static int ticks, boost_ticks;
|
static int ticks, boost_ticks;
|
||||||
|
|
||||||
|
@ -248,23 +249,26 @@ bool dbg_audio_thread(void)
|
||||||
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "pcm buf: %d/%d",
|
snprintf(buf, sizeof(buf), "pcm: %d/%d",
|
||||||
PCMBUF_SIZE-(int)audiobuffer_free, PCMBUF_SIZE);
|
PCMBUF_SIZE-(int)audiobuffer_free, PCMBUF_SIZE);
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
/* Playable space left */
|
/* Playable space left */
|
||||||
scrollbar(0, line*8, LCD_WIDTH, 4, PCMBUF_SIZE, 0,
|
scrollbar(0, line*8, LCD_WIDTH, 6, PCMBUF_SIZE, 0,
|
||||||
PCMBUF_SIZE-audiobuffer_free, HORIZONTAL);
|
PCMBUF_SIZE-audiobuffer_free, HORIZONTAL);
|
||||||
line++;
|
line++;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "codec buf: %d/%d", codecbufused, codecbuflen);
|
snprintf(buf, sizeof(buf), "codec: %d/%d", codecbufused, codecbuflen);
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
/* Playable space left */
|
/* Playable space left */
|
||||||
scrollbar(0, line*8, LCD_WIDTH, 4, codecbuflen, 0,
|
scrollbar(0, line*8, LCD_WIDTH, 6, codecbuflen, 0,
|
||||||
codecbufused, HORIZONTAL);
|
codecbufused, HORIZONTAL);
|
||||||
line++;
|
line++;
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), "track count: %d", track_count);
|
||||||
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "cpu freq: %dMHz", (int)FREQ/1000000+1);
|
snprintf(buf, sizeof(buf), "cpu freq: %dMHz", (int)FREQ/1000000+1);
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ static int last_peek_offset;
|
||||||
|
|
||||||
/* Track information (count in file buffer, read/write indexes for
|
/* Track information (count in file buffer, read/write indexes for
|
||||||
track ring structure. */
|
track ring structure. */
|
||||||
static int track_count;
|
int track_count;
|
||||||
static volatile int track_ridx;
|
static volatile int track_ridx;
|
||||||
static volatile int track_widx;
|
static volatile int track_widx;
|
||||||
static bool track_changed;
|
static bool track_changed;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue