Skip to content
Permalink
Browse files

coreaudio: Set audio callback thread priority.

Fixes Bugzilla #4155.
  • Loading branch information
icculus committed Mar 25, 2019
1 parent 6a3356a commit 2fbfe8b9127e8f07ba0efd03e0c5dc885a350d2c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/audio/coreaudio/SDL_coreaudio.m
@@ -728,6 +728,8 @@ static BOOL update_audio_session(_THIS, SDL_bool open)
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)) {

0 comments on commit 2fbfe8b

Please sign in to comment.