SDLAudioStream: Don't allow format to change

This commit is contained in:
Connor McLaughlin 2020-02-16 00:15:02 +09:00
parent e48e6141c8
commit 78a6666439
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ bool SDLAudioStream::OpenDevice()
spec.callback = AudioCallback;
spec.userdata = static_cast<void*>(this);
SDL_AudioSpec obtained = {};
if (SDL_OpenAudio(&spec, &obtained) < 0)
if (SDL_OpenAudio(&spec, nullptr) < 0)
{
Log_ErrorPrintf("SDL_OpenAudio failed");
return false;