1
0
Fork 0
forked from len0rd/rockbox

FLAC: Conditionally increase MAX_BLOCKSIZE to 8KB

High-frequency files increasingly use a block size of over 4608B, which
means we need larger buffers to decode them.  However, larger buffers no
longer fit in IRAM on less-capable devices, hurting performance for
"normal" file playback.

On our slowest devices (M68K and PP-based devices), this is not worth
the tradeoff as they will likely not have enough CPU oomph to decode and
downmix these files in realtime.

S5L87xx-based devices have the raw performance to do this, so we decided
to err on the side of wider file compatibility at the cost of some
performance.

All other devices are unaffected.

Change-Id: I7344cf4c8c6b7b5c14f1ea67381160665d6ece5b
This commit is contained in:
Solomon Peachy 2025-09-08 21:09:12 -04:00
parent ebe961a2a8
commit a98a8ce131
4 changed files with 18 additions and 14 deletions

View file

@ -146,7 +146,10 @@
& Linear PCM 8/16/24/32 bit, IEEE float 32/64 bit, ITU-T G.711 a-law/$\mu$-law\\
Free Lossless Audio
& \fname{.flac}
& Supports multichannel playback including downmixing to stereo.\\
& Multichannel and/or high-resolution files will be downmixed to 16-bit stereo.
\opt{ipod,iriverh10,sansaclip,sansam200v4,sansac200v2,iriverh100,iriverh300,iaudiox5,iaudiom5,iaudiom3,mpiohd200,mpiphd300}{
\nopt{ipodnano2g,ipod6g}{Due to resource constraints, files with large block sizes are not supported, and realtime playback may not be possible where downmixing is necessary.}}
\\
Apple Lossless
& \fname{.m4a}, \fname{.mp4}
& \\