Try disabling real-time for macOS.
parent
321a7e4d1d
commit
c8ee871406
|
@ -591,7 +591,8 @@ void MacAudioDevice::setHelperRealTime()
|
|||
log_warn("Could not increase thread priority");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
// Most important, set real-time constraints.
|
||||
// Define the guaranteed and max fraction of time for the audio thread.
|
||||
// These "duty cycle" values can range from 0 to 1. A value of 0.5
|
||||
|
@ -638,6 +639,7 @@ void MacAudioDevice::setHelperRealTime()
|
|||
// Going real-time is a prerequisite for joining workgroups
|
||||
joinWorkgroup_();
|
||||
}
|
||||
#endif // 0
|
||||
}
|
||||
|
||||
void MacAudioDevice::joinWorkgroup_()
|
||||
|
@ -698,12 +700,14 @@ void MacAudioDevice::joinWorkgroup_()
|
|||
|
||||
void MacAudioDevice::startRealTimeWork()
|
||||
{
|
||||
#if 0
|
||||
// If the audio ID changes on us, join the new workgroup
|
||||
if (CurrentCoreAudioId_ != 0 && CurrentCoreAudioId_ != coreAudioId_ && Workgroup_ != nullptr)
|
||||
{
|
||||
leaveWorkgroup_();
|
||||
joinWorkgroup_();
|
||||
}
|
||||
#endif // 0
|
||||
}
|
||||
|
||||
void MacAudioDevice::stopRealTimeWork()
|
||||
|
@ -801,4 +805,4 @@ int MacAudioDevice::DeviceOverloadCallback_(
|
|||
tmpThread.detach();
|
||||
|
||||
return noErr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue