citra-emu
/
citra-canary
Archived
1
0
Fork 0

Merge pull request #5779 from vitor-k/sdl-audio-fix

sdl2_sink: remove SDL_AUDIO_ALLOW_FREQUENCY_CHANGE flag
This commit is contained in:
merry 2021-05-04 10:54:47 +01:00 committed by GitHub
commit 6e16081b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ SDL2Sink::SDL2Sink(std::string device_name) : impl(std::make_unique<Impl>()) {
device = device_name.c_str();
}
impl->audio_device_id = SDL_OpenAudioDevice(
device, false, &desired_audiospec, &obtained_audiospec, SDL_AUDIO_ALLOW_FREQUENCY_CHANGE);
impl->audio_device_id =
SDL_OpenAudioDevice(device, false, &desired_audiospec, &obtained_audiospec, 0);
if (impl->audio_device_id <= 0) {
LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed with code {} for device \"{}\"",
impl->audio_device_id, device_name);