Gtk: Add dynamic rate control to SDL driver.

This commit is contained in:
BearOso 2023-02-16 16:14:01 -06:00
parent eb24fd599f
commit 948506ad95
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}