From 350c9c8d7d681afc489022cfac090cc5fd97bb22 Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Thu, 29 Apr 2021 17:24:52 -0300 Subject: [PATCH] sdl2_sink: remove SDL_AUDIO_ALLOW_FREQUENCY_CHANGE flag this is necessary for sdl audio to work properly in sdl as of current dev version (2.0.15) --- src/audio_core/sdl2_sink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio_core/sdl2_sink.cpp b/src/audio_core/sdl2_sink.cpp index 3fb90ac04e..10d3a31815 100644 --- a/src/audio_core/sdl2_sink.cpp +++ b/src/audio_core/sdl2_sink.cpp @@ -46,8 +46,8 @@ SDL2Sink::SDL2Sink(std::string device_name) : impl(std::make_unique()) { 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);