coreaudio: Set audio callback thread priority. Fixes Bugzilla #4155.
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)) {