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 3596 - Regression: Mix_OpenAudio fails if the audio subsystem is not initialized
Summary: Regression: Mix_OpenAudio fails if the audio subsystem is not initialized
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-01 18:52 UTC by ny00
Modified: 2017-05-24 20:49 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 ny00 2017-03-01 18:52:49 UTC
The following commit, adding the function Mix_OpenAudioDevice, leads to the regression as described in the summary: https://hg.libsdl.org/SDL_mixer/rev/fb0562cc1559

The reason is that SDL_OpenAudioDevice is now called from Mix_OpenAudio or Mix_OpenAudioDevice, rather than SDL_OpenAudio as previously used (via Mix_OpenAudio).

SDL_OpenAudio differs from SDL_OpenAudioDevice by initializing the audio subsystem if it isn't init.

There is at least one app which got broken by this (revision no. 6079 of EDuke32).
Comment 1 Ryan C. Gordon 2017-05-24 20:49:19 UTC
This is fixed in https://hg.libsdl.org/SDL_mixer/rev/119df1a05eb7, thanks!

--ryan.