From 2fbfe8b9127e8f07ba0efd03e0c5dc885a350d2c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 25 Mar 2019 12:59:30 -0400 Subject: [PATCH] coreaudio: Set audio callback thread priority. Fixes Bugzilla #4155. --- src/audio/coreaudio/SDL_coreaudio.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m index b8bb4ab62..96d2ca046 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)) {