Commit 2fbfe8b9127e8f07ba0efd03e0c5dc885a350d2c

Ryan C. Gordon 2019-03-25T12:59:30

coreaudio: Set audio callback thread priority. Fixes Bugzilla #4155.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m
index b8bb4ab..96d2ca0 100644
--- a/src/audio/coreaudio/SDL_coreaudio.m
+++ b/src/audio/coreaudio/SDL_coreaudio.m
@@ -728,6 +728,8 @@ audioqueue_thread(void *arg)
         return 0;
     }
 
+    SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
+
     /* init was successful, alert parent thread and start running... */
     SDL_SemPost(this->hidden->ready_semaphore);
     while (!SDL_AtomicGet(&this->hidden->shutdown)) {