From 305a87407b8bc486c96ea4368a41a0a2e1fb6043 Mon Sep 17 00:00:00 2001 From: jacky400 Date: Wed, 5 Dec 2012 19:50:25 +0800 Subject: [PATCH 1/2] Update Core/HLE/sceSas.cpp Implement sceSasGetPauseFlag() in sascore.cpp --- Core/HLE/sceSas.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceSas.cpp b/Core/HLE/sceSas.cpp index 7f47ef87bf..1c2ae9ce8b 100644 --- a/Core/HLE/sceSas.cpp +++ b/Core/HLE/sceSas.cpp @@ -361,6 +361,19 @@ void sceSasRevParam() RETURN(0); } +u32 sceSasGetPauseFlag() +{ + u32 PauseFlag = 0; + for (int i = 0; i < sas.maxVoices; i++) { + if (!sas.voices[i].playing) + PauseFlag |= 1 << i; + } + DEBUG_LOG(HLE,"%08x=sceSasGetPauseFlag()", PauseFlag); + return PauseFlag; +} + + + void sceSasRevEVOL() { u32 core = PARAM(0); @@ -410,7 +423,7 @@ const HLEFunction sceSasCore[] = {0xd5a229c9, sceSasRevEVOL, "__sceSasRevEVOL"}, // (int sasCore, int leftVol, int rightVol) // effect volume {0x33d4ab37, sceSasRevType, "__sceSasRevType"}, // (int sasCore, int type) {0x267a6dd2, sceSasRevParam, "__sceSasRevParam"}, // (int sasCore, int delay, int feedback) - {0x2c8e6ab3, 0, "__sceSasGetPauseFlag"}, // int sasCore + {0x2c8e6ab3, WrapU_V, "__sceSasGetPauseFlag"}, // int sasCore {0x787d04d5, 0, "__sceSasSetPause"}, {0xa232cbe6, 0, "__sceSasSetTriangularWave"}, // (int sasCore, int voice, int unknown) {0xd5ebbbcd, 0, "__sceSasSetSteepWave"}, // (int sasCore, int voice, int unknown) // square wave? From 595ff3b1fb4c76177059388c33edf11b4f867228 Mon Sep 17 00:00:00 2001 From: jacky400 Date: Wed, 5 Dec 2012 20:22:11 +0800 Subject: [PATCH 2/2] Update Core/HLE/sceAudio.cpp Too spam and change it to debug log --- Core/HLE/sceAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceAudio.cpp b/Core/HLE/sceAudio.cpp index 6b7cbcc071..35f76a04e1 100644 --- a/Core/HLE/sceAudio.cpp +++ b/Core/HLE/sceAudio.cpp @@ -323,7 +323,7 @@ u32 sceAudioOutput2Reserve(u32 sampleCount) void sceAudioOutput2OutputBlocking(u32 vol, u32 dataPtr) { - WARN_LOG(HLE,"FAKE sceAudioOutput2OutputBlocking(%i, %08x)", vol, dataPtr); + DEBUG_LOG(HLE,"FAKE sceAudioOutput2OutputBlocking(%i, %08x)", vol, dataPtr); chans[0].leftVolume = vol; chans[0].rightVolume = vol; chans[0].sampleAddress = dataPtr;