Skip to content

Commit 8d7d493

Browse files
committed
Clock frequency bug fix.
1 parent ea68cc6 commit 8d7d493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlackHole/BlackHole.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static OSStatus BlackHole_PerformDeviceConfigurationChange(AudioServerPlugInDriv
348348
// recalculate the state that depends on the sample rate
349349
struct mach_timebase_info theTimeBaseInfo;
350350
mach_timebase_info(&theTimeBaseInfo);
351-
Float64 theHostClockFrequency = (Float64)theTimeBaseInfo.numer / (Float64)theTimeBaseInfo.denom;
351+
Float64 theHostClockFrequency = (Float64)theTimeBaseInfo.denom / (Float64)theTimeBaseInfo.numer;
352352
theHostClockFrequency *= 1000000000.0;
353353
gDevice_HostTicksPerFrame = theHostClockFrequency / gDevice_SampleRate;
354354

0 commit comments

Comments
 (0)