System: Reset throttler when audio buffers underflow

Should hopefully reduce the chances of the audio source ending up out of
phase from the emulation when vsync is disabled.
This commit is contained in:
Connor McLaughlin
2020-12-07 02:43:46 +10:00
parent c8f33e340b
commit b44a654943
4 changed files with 28 additions and 4 deletions

View File

@ -154,6 +154,7 @@ void SetThrottleFrequency(float frequency);
/// Updates the throttle period, call when target emulation speed changes.
void UpdateThrottlePeriod();
void ResetThrottler();
/// Throttles the system, i.e. sleeps until it's time to execute the next frame.
void Throttle();