Explorar o código

coreaudio: Set audio callback thread priority.

Fixes Bugzilla #4155.
Ryan C. Gordon %!s(int64=6) %!d(string=hai) anos
pai
achega
2fbfe8b912
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)) {