Reduce instructions in debug audio thread loop slightly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1191fa41fd
commit
75de60b9e8
1 changed files with 5 additions and 4 deletions
|
@ -228,6 +228,7 @@ bool dbg_audio_thread(void)
|
|||
int button;
|
||||
int line;
|
||||
bool done = false;
|
||||
size_t bufused;
|
||||
size_t bufsize = pcmbuf_get_bufsize();
|
||||
int pcmbufdescs = pcmbuf_descs();
|
||||
|
||||
|
@ -258,13 +259,13 @@ bool dbg_audio_thread(void)
|
|||
|
||||
lcd_clear_display();
|
||||
|
||||
snprintf(buf, sizeof(buf), "pcm: %7ld/%7ld",
|
||||
bufsize-pcmbuf_free(), bufsize);
|
||||
bufused = bufsize - pcmbuf_free();
|
||||
|
||||
snprintf(buf, sizeof(buf), "pcm: %7ld/%7ld", bufused, bufsize);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
/* Playable space left */
|
||||
scrollbar(0, line*8, LCD_WIDTH, 6, bufsize, 0,
|
||||
bufsize-pcmbuf_free(), HORIZONTAL);
|
||||
scrollbar(0, line*8, LCD_WIDTH, 6, bufsize, 0, bufused, HORIZONTAL);
|
||||
line++;
|
||||
|
||||
snprintf(buf, sizeof(buf), "codec: %8ld/%8ld", filebufused, filebuflen);
|
||||
|
|
Loading…
Reference in a new issue