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:
parent
eaaabafdd2
commit
9589a08724
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue