Even better way

This commit is contained in:
Clownacy 2020-10-15 14:27:16 +01:00
parent 977a5eb49d
commit 35d3d20d44

View file

@ -103,12 +103,7 @@ bool AudioBackend_Init(void)
s32 priority = 0x30;
svcGetThreadPriority(&priority, CUR_THREAD_HANDLE);
priority -= 1;
if (priority < 0x18)
priority = 0x18;
else if (priority > 0x3F)
priority = 0x3F;
priority = CLAMP(priority - 1, 0x18, 0x3F);
audio_thread_die = false;
audio_thread = threadCreate(OrganyaThread, NULL, 32 * 1024, priority, -1, false);