Audio Output: Set higher priority on output thread

It's more like the output monitor thread, since it only monitors output,
rather than actually handing the output callbacks.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-02-12 19:00:52 -08:00
parent a82742e689
commit 9fd393b64e

View file

@ -280,6 +280,12 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
}
- (void)threadEntry:(id)arg {
@autoreleasepool {
NSThread *currentThread = [NSThread currentThread];
[currentThread setThreadPriority:0.75];
[currentThread setQualityOfService:NSQualityOfServiceUserInitiated];
}
running = YES;
started = NO;
shouldPlayOutBuffer = NO;