diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-22 20:37:31 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-22 20:37:31 +0000 |
| commit | 17098e1c088bca52de53224bf483dbccd2639dcc (patch) | |
| tree | cfdd1293f4463853de627b28f612318cfd4d247c /apps/debug_menu.c | |
| parent | 3739d3aa34b624f76668e535940e95b84bc3cc7d (diff) | |
| download | rockbox-17098e1c088bca52de53224bf483dbccd2639dcc.zip rockbox-17098e1c088bca52de53224bf483dbccd2639dcc.tar.gz rockbox-17098e1c088bca52de53224bf483dbccd2639dcc.tar.bz2 rockbox-17098e1c088bca52de53224bf483dbccd2639dcc.tar.xz | |
More audio thread debug info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6820 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 5f763db..f71c668 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -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); |