[Kernel] Add yield to XAudioGetVoiceCategoryVolumeChangeMask for games that spin threads with it.

This commit is contained in:
gibbed 2018-05-24 23:31:21 -05:00
parent 8e9d50dd4a
commit 56dd07e329
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ dword_result_t XAudioGetVoiceCategoryVolumeChangeMask(lpunknown_t driver_ptr,
lpdword_t out_ptr) {
assert_true((driver_ptr.guest_address() & 0xFFFF0000) == 0x41550000);
xe::threading::MaybeYield();
// Checking these bits to see if any voice volume changed.
// I think.
*out_ptr = 0;