Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
coreaudio: Set audio callback thread priority.
Fixes Bugzilla #4155.
  • Loading branch information
icculus committed Mar 25, 2019
1 parent 6a3356a commit 2fbfe8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/coreaudio/SDL_coreaudio.m
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

2 comments on commit 2fbfe8b

@matias-eduardo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this fixing? #4155 is render related, not audio.

@sezero
Copy link
Contributor

@sezero sezero commented on 2fbfe8b May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4155 is the original bugzilla entry. It maps to #2887

Please sign in to comment.