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 3402

Summary: Plugging/Unplugging headphones causes program crash on exit.
Product: SDL_mixer Reporter: Charles Van Noland <radioteeth>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86   
OS: Windows (All)   

Description Charles Van Noland 2016-08-04 18:20:41 UTC
I'm not entirely sure if this is caused by SDL_mixer itself or the audio aspect of SDL2 itself, but plugging in or unplugging headphones while SDL2/mixer are initialized doesn't refresh the hardware and actually switch from outputting to the headphones or speaker output, and causes the program to crash on exit.

 This happens on at least two machines I have tested it on, one running windows 8.1 and the other windows 7.
Comment 1 Ryan C. Gordon 2017-05-19 19:34:01 UTC
This should be fixed by the new WASAPI implementation in revision control, which will be part of the upcoming 2.0.6 release. If this is still giving you problems, please reopen this bug!

Thanks!

--ryan.