Commit 5b4b4fa1ff34a5d4bc07f7b42e309b90af2ace42

Francisco Javier Trujillo Mata 2022-08-14T12:01:56

Decrease audio thread priority when created

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/ps2/SDL_ps2audio.c b/src/audio/ps2/SDL_ps2audio.c
index daca266..f3b5788 100644
--- a/src/audio/ps2/SDL_ps2audio.c
+++ b/src/audio/ps2/SDL_ps2audio.c
@@ -130,7 +130,7 @@ static void PS2AUDIO_ThreadInit(_THIS)
     ee_thread_status_t status;
     thid = GetThreadId();
     if (ReferThreadStatus(GetThreadId(), &status) == 0) {
-        ChangeThreadPriority(thid, status.current_priority);
+        ChangeThreadPriority(thid, status.current_priority - 1);
     }
 }