Get rid of magic number.
This commit is contained in:
parent
264063d8ac
commit
1470add91d
|
@ -192,7 +192,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (!Global.DisableSecondaryThrottling)
|
if (!Global.DisableSecondaryThrottling)
|
||||||
while (samplesNeeded < samplesProvided)
|
while (samplesNeeded < samplesProvided)
|
||||||
{
|
{
|
||||||
System.Threading.Thread.Sleep((samplesProvided - samplesNeeded) / 88); // let audio clock control sleep time
|
System.Threading.Thread.Sleep((samplesProvided - samplesNeeded) / (SampleRate / 1000)); // let audio clock control sleep time
|
||||||
samplesNeeded = CalculateSamplesNeeded();
|
samplesNeeded = CalculateSamplesNeeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue