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 int codecbuflen;
|
||||
extern int codecbufused;
|
||||
extern int track_count;
|
||||
|
||||
static int ticks, boost_ticks;
|
||||
|
||||
|
@ -248,23 +249,26 @@ bool dbg_audio_thread(void)
|
|||
|
||||
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);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
/* 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);
|
||||
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);
|
||||
|
||||
/* Playable space left */
|
||||
scrollbar(0, line*8, LCD_WIDTH, 4, codecbuflen, 0,
|
||||
scrollbar(0, line*8, LCD_WIDTH, 6, codecbuflen, 0,
|
||||
codecbufused, HORIZONTAL);
|
||||
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);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue