mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:17:36 +00:00
![]() When computing sample values from a linear predictor, the repeated multiplication and addition can lead to very large values that may overflow a 32-bit integer. This was never discovered with 16-bit FLAC test files used to create and validate the first version of the FLAC loader. However, 24-bit audio, especially with large LPC shifts, will regularly exceed and overflow i32. Therefore, we now use 64 bits temporarily. If the resulting value is too large for 32 bits, something else has gone wrong :^) This fixes playback noise on 24-bit FLACs. |
||
---|---|---|
.. | ||
Buffer.cpp | ||
Buffer.h | ||
ClientConnection.cpp | ||
ClientConnection.h | ||
CMakeLists.txt | ||
FlacLoader.cpp | ||
FlacLoader.h | ||
FlacTypes.h | ||
Loader.cpp | ||
Loader.h | ||
WavLoader.cpp | ||
WavLoader.h | ||
WavWriter.cpp | ||
WavWriter.h |