forked from len0rd/rockbox
Calculate watermark from bitrate and harddisk spinup time.
Use a smaller PCM buffer on targets with 2MB or less ram. (FS#9703) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19743 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12b8f8de89
commit
6427d127aa
27 changed files with 85 additions and 121 deletions
|
@ -329,14 +329,14 @@ static bool dbg_buffering_thread(void)
|
|||
|
||||
bufused = bufsize - pcmbuf_free();
|
||||
|
||||
snprintf(buf, sizeof(buf), "pcm: %7ld/%7ld", (long) bufused, (long) bufsize);
|
||||
snprintf(buf, sizeof(buf), "pcm: %6ld/%ld", (long) bufused, (long) bufsize);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
gui_scrollbar_draw(&screens[SCREEN_MAIN],0, line*8, LCD_WIDTH, 6,
|
||||
bufsize, 0, bufused, HORIZONTAL);
|
||||
line++;
|
||||
|
||||
snprintf(buf, sizeof(buf), "alloc: %8ld/%8ld", audio_filebufused(),
|
||||
snprintf(buf, sizeof(buf), "alloc: %6ld/%ld", audio_filebufused(),
|
||||
(long) filebuflen);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
|
@ -345,7 +345,7 @@ static bool dbg_buffering_thread(void)
|
|||
filebuflen, 0, audio_filebufused(), HORIZONTAL);
|
||||
line++;
|
||||
|
||||
snprintf(buf, sizeof(buf), "real: %8ld/%8ld", (long)d.buffered_data,
|
||||
snprintf(buf, sizeof(buf), "real: %6ld/%ld", (long)d.buffered_data,
|
||||
(long)filebuflen);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
|
@ -354,7 +354,7 @@ static bool dbg_buffering_thread(void)
|
|||
line++;
|
||||
#endif
|
||||
|
||||
snprintf(buf, sizeof(buf), "usefl: %8ld/%8ld", (long)(d.useful_data),
|
||||
snprintf(buf, sizeof(buf), "usefl: %6ld/%ld", (long)(d.useful_data),
|
||||
(long)filebuflen);
|
||||
lcd_puts(0, line++, buf);
|
||||
|
||||
|
@ -383,7 +383,7 @@ static bool dbg_buffering_thread(void)
|
|||
{
|
||||
int boostquota = boost_ticks * 1000 / ticks; /* in 0.1 % */
|
||||
int avgclock = freq_sum * 10 / ticks; /* in 100 kHz */
|
||||
snprintf(buf, sizeof(buf), "boost ratio: %3d.%d%% (%2d.%dMHz)",
|
||||
snprintf(buf, sizeof(buf), "boost:%3d.%d%% (%d.%dMHz)",
|
||||
boostquota/10, boostquota%10, avgclock/10, avgclock%10);
|
||||
lcd_puts(0, line++, buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue