From 948506ad95436837235c2499b1bb4c649dfec8f4 Mon Sep 17 00:00:00 2001 From: BearOso Date: Thu, 16 Feb 2023 16:14:01 -0600 Subject: [PATCH] Gtk: Add dynamic rate control to SDL driver. --- gtk/src/gtk_sound_driver_sdl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/src/gtk_sound_driver_sdl.cpp b/gtk/src/gtk_sound_driver_sdl.cpp index 27c0acd5..8ccf3ae0 100644 --- a/gtk/src/gtk_sound_driver_sdl.cpp +++ b/gtk/src/gtk_sound_driver_sdl.cpp @@ -32,6 +32,8 @@ void S9xSDLSoundDriver::samples_available() mutex.lock(); buffer.push(temp, snes_samples_available); + if (Settings.DynamicRateControl) + S9xUpdateDynamicRate(buffer.space_empty(), buffer.buffer_size); mutex.unlock(); }