I've been debugging the issue with not playing 24-bit stereo AIFF files with
raw PCM inside. It appears to be a combination of two separate issues:
- the AIFF demuxer when copying data into sound buffer, doesn't care about
reading the full frames: for the 24bit stereo sound, the single frame takes 6
bytes, while the demuxer usuall reads 1024. As the result, trailing bytes get
lost in the LPMC decoder (this is a separate issue - I will send a patch with
underconsumption logging soon)
- the LPCM decoder doesn't respect the endianness of current system when doing
24bit => 16bit conversion.
After applying both patches, the 24bit AIFF samples from the following archive
"97 BpmMulti Track" e.g. from here
start playing fine.
Get latest updates about Open Source Projects, Conferences and News.