Zerberus: only the first half of stereo OGG files are loaded, second half plays as garbage audio
This is a bug that has been introduced to Zerberus in recent builds. Judging by the behavior, it would appear that only the first half of stereo OGG files are loaded into RAM. Zerberus attempts to play the entire length of the OGG file, but since only the first half is loaded, the second half plays whatever happens to be in memory at that location, which could be data or part of another sample.
This bug does not affect mono OGG files, nor does it seem to affect stereo WAV files. I haven't tested other audio formats.
Steps to reproduce:
1. Copy the attached .sfz and its associated samples folder into MuseScore's "Soundfonts" folder.
2. Load the attached .mscz file.
3. Go to View -> Synthesizer and click "Load from score".
4. Play the score from the beginning.
Result: The second half of the stereo waveform playback will sound like noise or incorrect wave data.
Attachment | Size |
---|---|
Zerberus_sample_corruption_test_01.zip | 162.32 KB |
Comments
Fixed in branch 2.3, commit b5893a07ed
fix #273135: incorrect stereo samples playback
Fix 'for' loop which converts floats to shorts
Fixed in branch master, commit 3c7d545c46
fix #273135: incorrect stereo samples playback
Fix 'for' loop which converts floats to shorts
Automatically closed -- issue fixed for 2 weeks with no activity.