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;