From 75a49129a67a785753a5693c9b7d07fd1504ea23 Mon Sep 17 00:00:00 2001 From: raven02 Date: Mon, 27 Jan 2014 10:07:56 +0800 Subject: [PATCH] Return without delay if voicesPlayingCount is zero --- Core/HLE/sceSas.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Core/HLE/sceSas.cpp b/Core/HLE/sceSas.cpp index d042c5dd02..e9f9f62d3e 100644 --- a/Core/HLE/sceSas.cpp +++ b/Core/HLE/sceSas.cpp @@ -134,11 +134,11 @@ u32 _sceSasCore(u32 core, u32 outAddr) { // Turns out that delaying only when there's no voicesPlayingCount fixes issue #2304. Feels a bit // like a hack. Note that Mix() returns true in this case which is a little confusing. if (ret) { - // If voicesPlayingCount == 0 , delay 240 us and reschedule - return hleDelayResult(0, "sas core", 240); - } else { - // if voicesPlayingCount > 0 , no delay + // If voicesPlayingCount == 0 , no delay return 0; + } else { + // if voicesPlayingCount > 0 , delay 240 us and reschedule + return hleDelayResult(0, "sas core", 240); } } @@ -155,11 +155,11 @@ u32 _sceSasCoreWithMix(u32 core, u32 inoutAddr, int leftVolume, int rightVolume) // Turns out that delaying only when there's no voicesPlayingCount fixes issue #2304. Feels a bit // like a hack. Note that Mix() returns true in this case which is a little confusing. if (ret) { - // If voicesPlayingCount == 0 , delay 240 us and reschedule - return hleDelayResult(0, "sas core", 240); - } else { - // if voicesPlayingCount > 0 , no delay + // If voicesPlayingCount == 0 , no delay return 0; + } else { + // if voicesPlayingCount > 0 , delay 240 us and reschedule + return hleDelayResult(0, "sas core", 240); } }