Skip to content

Commit

Permalink
coreaudio: Set audio callback thread priority.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #4155.
  • Loading branch information
icculus committed Mar 25, 2019
1 parent e0aadc0 commit 2bf165e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/coreaudio/SDL_coreaudio.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2bf165e

Please sign in to comment.