We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4880

Summary: High-pitched sounds on Windows in case of 5.1 speaker configuration
Product: SDL_mixer Reporter: zodomaniac
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: admin, sezeroz
Version: 2.0.4   
Hardware: x86_64   
OS: Windows 7   

Description zodomaniac 2019-11-29 06:50:37 UTC
https://www.youtube.com/watch?v=WBWB81EOVQQ This is the demonstration of the sound bug on Windows with speaker configuration 5.1: high-pitched sound effects and no MIDI music played.
Comment 1 Vitaly Novichkov 2019-12-18 12:50:17 UTC
One small question: did you re-opened audio after loading of SFX? I did a small test on my end and:
- Open audio with 2 channels stereo
- load any SFX
- Close audio (but don't unload library)
- Open audio back, but with 6 channels
- try to play that SFX
- it will play faster

Yeah, to avoid this dirt, you probably should reload all chunks after audio reopening.
Comment 2 zodomaniac 2019-12-18 12:59:02 UTC
(In reply to Vitaly Novichkov from comment #1)
I cannot select 5.1 configuration on my sound card to test this, and in fact it was not me who discovered the bug.
Comment 3 Vitaly Novichkov 2019-12-18 13:35:17 UTC
Anyway, I think, the bug is on a side of the game because it did the audio output switching without reloading of SFX chunks. I have reproduced the same glitch on Linux where I did the closing and opening audio and with trying to play the same SFX chunk without reloading.
Comment 4 Ozkan Sezer 2020-10-25 21:10:57 UTC
Youtube vids won't help.  Please provide a minimal test case so
that we can reproduce.  Will wait for about a week before closing
this.
Comment 5 Ozkan Sezer 2020-10-31 17:22:21 UTC
No answer from original reporter.