Try disabling real-time for macOS.

ms-rtsan-additional-updates
Mooneer Salem 2025-05-31 13:54:27 -07:00
parent 321a7e4d1d
commit c8ee871406
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}