summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c12
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);