From 22d91c86e81092bcaa361529b7a6e84a0fef2092 Mon Sep 17 00:00:00 2001 From: Gliniak <153369+Gliniak@users.noreply.github.com> Date: Fri, 10 Jul 2026 22:52:51 +0200 Subject: [PATCH] [Kernel] Restored yield in XAudioGetVoiceCategoryVolumeChangeMask Thanks to latest change there is no need to use hardcoded nanosleep, so we can go back to previous stuff. Hopefully it will fix some random issues with audio introduced lately --- src/xenia/kernel/xboxkrnl/xboxkrnl_audio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_audio.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_audio.cc index cf59c490c..fb2e5bcba 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_audio.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_audio.cc @@ -32,7 +32,7 @@ dword_result_t XAudioGetVoiceCategoryVolumeChangeMask_entry( lpunknown_t driver_ptr, lpdword_t out_ptr) { assert_true((driver_ptr.guest_address() & 0xFFFF0000) == 0x41550000); - xe::threading::NanoSleep(1000); + xe::threading::MaybeYield(); // Checking these bits to see if any voice volume changed. // I think.