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 - Plugging/Unplugging headphones causes program crash on exit.
Summary: Plugging/Unplugging headphones causes program crash on exit.
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.0
Hardware: x86 Windows (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-04 18:20 UTC by Charles Van Noland
Modified: 2017-05-19 19:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.