Added SDL_THREAD_PRIORITY_TIME_CRITICAL

This commit is contained in:
Sam Lantinga
2018-04-23 22:07:56 -07:00
parent db94dfb1d5
commit f521b22eb5
6 changed files with 16 additions and 5 deletions

View File

@@ -651,7 +651,7 @@ SDL_RunAudio(void *devicep)
SDL_assert(!device->iscapture);
/* The audio mixing is always a high priority thread */
SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
SDL_SetThreadPriority(SDL_THREAD_PRIORITY_TIME_CRITICAL);
/* Perform any thread setup */
device->threadid = SDL_ThreadID();