summaryrefslogtreecommitdiffstats
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-07-21 11:44:00 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-07-21 11:44:00 +0000
commitf090dc382974f7d6163c2b8969440335d79845a0 (patch)
tree3562699a0ed5f41d0250417bca874bc507c65a43 /apps/debug_menu.c
parent4bee5075020aecfa7a30ba196bac0603b3be11cd (diff)
downloadrockbox-f090dc382974f7d6163c2b8969440335d79845a0.tar.gz
rockbox-f090dc382974f7d6163c2b8969440335d79845a0.zip
Crossfade (and pcm buffer size) length is now configurable.
Implemented anti-skip buffer setting for iriver also. Settings block bumped up, PLEASE SAVE YOUR SETTINGS BEFORE UPGRADING. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7210 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 4d3c90c8e3..21e30e9a08 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -230,6 +230,7 @@ bool dbg_audio_thread(void)
int button;
int line;
bool done = false;
+ int bufsize = pcmbuf_get_bufsize();
ticks = boost_ticks = 0;
@@ -253,12 +254,12 @@ bool dbg_audio_thread(void)
lcd_clear_display();
snprintf(buf, sizeof(buf), "pcm: %d/%d",
- PCMBUF_SIZE-(int)audiobuffer_free, PCMBUF_SIZE);
+ bufsize-(int)audiobuffer_free, bufsize);
lcd_puts(0, line++, buf);
/* Playable space left */
- scrollbar(0, line*8, LCD_WIDTH, 6, PCMBUF_SIZE, 0,
- PCMBUF_SIZE-audiobuffer_free, HORIZONTAL);
+ scrollbar(0, line*8, LCD_WIDTH, 6, bufsize, 0,
+ bufsize-audiobuffer_free, HORIZONTAL);
line++;
snprintf(buf, sizeof(buf), "codec: %d/%d", codecbufused, codecbuflen);