mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 16:58:26 +00:00

This commit fixes an issue where RateConverter would sometimes chop off the very end of an audio stream. This happened when the RateConverter would have some data left in its internal buffer, but the source stream was already fully read. The base RateConverter class now has a needsDraining() function which indicates leftover data, and relevant code now uses it when needed.