From b7d494f34efbc2b34b130e4f738babee749eccdf Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 9 Jun 2013 20:56:09 -0700 Subject: [PATCH] Delay in sceSasCore per tests. Not sure if this fixes anything, but scheduling issues can be tricky. --- Core/HLE/sceSas.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceSas.cpp b/Core/HLE/sceSas.cpp index 5ce7df48bf..14c894beca 100644 --- a/Core/HLE/sceSas.cpp +++ b/Core/HLE/sceSas.cpp @@ -119,7 +119,9 @@ u32 _sceSasCore(u32 core, u32 outAddr) { } sas->Mix(outAddr); - return 0; + // Actual delay time seems to between 240 and 1000 us, based on grain and possibly other factors. + // Let's aim low for now. + return hleDelayResult(0, "sas core", 240); } // Another way of running the mixer, the inoutAddr should be both input and output @@ -131,7 +133,9 @@ u32 _sceSasCoreWithMix(u32 core, u32 inoutAddr, int leftVolume, int rightVolume) } sas->Mix(inoutAddr, inoutAddr, leftVolume, rightVolume); - return 0; + // Actual delay time seems to between 240 and 1000 us, based on grain and possibly other factors. + // Let's aim low for now. + return hleDelayResult(0, "sas core", 240); } u32 sceSasSetVoice(u32 core, int voiceNum, u32 vagAddr, int size, int loop) {