Explorar el Código

coreaudio: Set audio callback thread priority.

Fixes Bugzilla #4155.
Ryan C. Gordon hace 7 años
padre
commit
2fbfe8b912
Se han modificado 1 ficheros con 2 adiciones y 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)) {