From 145dff374ce0179bf5fe0fc61cf7c2525a23f729 Mon Sep 17 00:00:00 2001 From: Andrew Madsen Date: Fri, 25 Aug 2017 14:53:55 -0600 Subject: [PATCH] Issue #204: Fix incorrect priority parameter for calls to dispatch_queue_attr_make_with_qos_class() --- Source/MIKMIDIClock.m | 4 ++-- Source/MIKMIDISequencer.m | 2 +- Source/MIKMIDISynthesizer.m | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/MIKMIDIClock.m b/Source/MIKMIDIClock.m index ac5c2cba..7bf45c85 100644 --- a/Source/MIKMIDIClock.m +++ b/Source/MIKMIDIClock.m @@ -72,7 +72,7 @@ - (instancetype)initWithQueue:(BOOL)createQueue #if defined (__MAC_10_10) || defined (__IPHONE_8_0) if (&dispatch_queue_attr_make_with_qos_class != NULL) { - attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, DISPATCH_QUEUE_PRIORITY_HIGH); + attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0); } #endif @@ -461,4 +461,4 @@ - (NSMethodSignature *)methodSignatureForSelector:(SEL)sel return [_masterClock methodSignatureForSelector:sel]; } -@end \ No newline at end of file +@end diff --git a/Source/MIKMIDISequencer.m b/Source/MIKMIDISequencer.m index fea99926..abc0f52b 100644 --- a/Source/MIKMIDISequencer.m +++ b/Source/MIKMIDISequencer.m @@ -175,7 +175,7 @@ - (void)startPlaybackAtTimeStamp:(MusicTimeStamp)timeStamp MIDITimeStamp:(MIDITi #if defined (__MAC_10_10) || defined (__IPHONE_8_0) if (&dispatch_queue_attr_make_with_qos_class != NULL) { - attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, DISPATCH_QUEUE_PRIORITY_HIGH); + attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, 0); } #endif diff --git a/Source/MIKMIDISynthesizer.m b/Source/MIKMIDISynthesizer.m index 041ab19a..ad88aff3 100644 --- a/Source/MIKMIDISynthesizer.m +++ b/Source/MIKMIDISynthesizer.m @@ -364,7 +364,7 @@ - (void)scheduleMIDICommands:(NSArray *)commands #if defined (__MAC_10_10) || defined (__IPHONE_8_0) if (&dispatch_queue_attr_make_with_qos_class != NULL) { - attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, DISPATCH_QUEUE_PRIORITY_HIGH); + attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0); } #endif