mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-02 10:35:39 +00:00
SDLAudioStream: Don't allow format to change
This commit is contained in:
parent
e48e6141c8
commit
78a6666439
|
@ -29,8 +29,7 @@ bool SDLAudioStream::OpenDevice()
|
||||||
spec.callback = AudioCallback;
|
spec.callback = AudioCallback;
|
||||||
spec.userdata = static_cast<void*>(this);
|
spec.userdata = static_cast<void*>(this);
|
||||||
|
|
||||||
SDL_AudioSpec obtained = {};
|
if (SDL_OpenAudio(&spec, nullptr) < 0)
|
||||||
if (SDL_OpenAudio(&spec, &obtained) < 0)
|
|
||||||
{
|
{
|
||||||
Log_ErrorPrintf("SDL_OpenAudio failed");
|
Log_ErrorPrintf("SDL_OpenAudio failed");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue