32-bit Bit-Depth produces distorted sound (pops/crackles/etc)
|Status:||Closed||Start date:||October 13, 2015|
As title says. First noticed in v3.7 beta 1. Previous version 3.6.2 was fine. Other formats/bit-depth are fine too.
That's not hardware-related because generated with File Writer file has exactly the same problem. Samples attached.
Fix overflow in 32-bit integer conversion. Closes: #577.
0x7fffffff cannot be represented in a 32-bit float and is rounded up to
2^31, which overflows a 32-bit integer. Audacious 3.6 and older were
saved by the use of 64-bit floats in the conversion, which was, however,
inefficient. Fix the problem a different way by limiting the 32-bit
float data to 0x7fffff80 before conversion.