Browse Source

coreaudio: Set audio callback thread priority.

Fixes Bugzilla #4155.
Ryan C. Gordon 6 years ago
parent
commit
2fbfe8b912
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/audio/coreaudio/SDL_coreaudio.m

+ 2 - 0
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)) {