From 78a666643940e1e27e0fdac1279f8eb5663ba6ec Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 16 Feb 2020 00:15:02 +0900 Subject: [PATCH] SDLAudioStream: Don't allow format to change --- src/frontend-common/sdl_audio_stream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend-common/sdl_audio_stream.cpp b/src/frontend-common/sdl_audio_stream.cpp index 252be4b57..490cdbc63 100644 --- a/src/frontend-common/sdl_audio_stream.cpp +++ b/src/frontend-common/sdl_audio_stream.cpp @@ -29,8 +29,7 @@ bool SDLAudioStream::OpenDevice() spec.callback = AudioCallback; spec.userdata = static_cast(this); - SDL_AudioSpec obtained = {}; - if (SDL_OpenAudio(&spec, &obtained) < 0) + if (SDL_OpenAudio(&spec, nullptr) < 0) { Log_ErrorPrintf("SDL_OpenAudio failed"); return false;