diff --git a/src/sdlsound.cpp b/src/sdlsound.cpp index a2252967b746c..327b4b341c508 100644 --- a/src/sdlsound.cpp +++ b/src/sdlsound.cpp @@ -101,7 +101,8 @@ bool init_sound() // We should only need to init once if( !sound_init_success ) { // Mix_OpenAudio returns non-zero if something went wrong trying to open the device - if( !Mix_OpenAudio( audio_rate, audio_format, audio_channels, audio_buffers ) ) { + if( !Mix_OpenAudioDevice( audio_rate, audio_format, audio_channels, audio_buffers, nullptr, + SDL_AUDIO_ALLOW_FREQUENCY_CHANGE ) ) { Mix_AllocateChannels( 128 ); Mix_ReserveChannels( static_cast( sfx::channel::MAX_CHANNEL ) );