Qt: Fix audio sliders not applying correctly

This commit is contained in:
Connor McLaughlin
2021-01-13 02:36:11 +10:00
parent b3fd07e1b5
commit b5ffbfe826
8 changed files with 39 additions and 26 deletions

View File

@ -1233,6 +1233,11 @@ void RunFrame()
g_gpu->ResetGraphicsAPIState();
}
float GetTargetSpeed()
{
return s_target_speed;
}
void SetTargetSpeed(float speed)
{
s_target_speed = speed;

View File

@ -149,6 +149,7 @@ void SingleStepCPU();
void RunFrame();
/// Sets target emulation speed.
float GetTargetSpeed();
void SetTargetSpeed(float speed);
/// Adjusts the throttle frequency, i.e. how many times we should sleep per second.