mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Ignore voicenum = -1 in sceSasSetKeyOff for now. Update native.
This commit is contained in:
parent
a842c46208
commit
cfc4717a51
2 changed files with 11 additions and 9 deletions
|
@ -226,17 +226,19 @@ u32 sceSasSetKeyOn(u32 core, int voiceNum)
|
||||||
// sceSasSetKeyOff can be used to start sounds, that just sound during the Release phase!
|
// sceSasSetKeyOff can be used to start sounds, that just sound during the Release phase!
|
||||||
u32 sceSasSetKeyOff(u32 core, int voiceNum)
|
u32 sceSasSetKeyOff(u32 core, int voiceNum)
|
||||||
{
|
{
|
||||||
DEBUG_LOG(HLE,"0=sceSasSetKeyOff(core=%08x, voiceNum=%i)", core, voiceNum);
|
if (voiceNum == -1) {
|
||||||
|
// TODO: Some games (like Every Extend Extra) deliberately pass voiceNum = -1. Does that mean all voices? for now let's ignore.
|
||||||
if (voiceNum >= PSP_SAS_VOICES_MAX || voiceNum < 0)
|
DEBUG_LOG(HLE,"sceSasSetKeyOff(core=%08x, voiceNum=%i) - voiceNum = -1???", core, voiceNum);
|
||||||
{
|
return 0;
|
||||||
|
} else if (voiceNum < 0 || voiceNum >= PSP_SAS_VOICES_MAX) {
|
||||||
WARN_LOG(HLE, "%s: invalid voicenum %d", __FUNCTION__, voiceNum);
|
WARN_LOG(HLE, "%s: invalid voicenum %d", __FUNCTION__, voiceNum);
|
||||||
return ERROR_SAS_INVALID_VOICE;
|
return ERROR_SAS_INVALID_VOICE;
|
||||||
|
} else {
|
||||||
|
DEBUG_LOG(HLE,"0=sceSasSetKeyOff(core=%08x, voiceNum=%i)", core, voiceNum);
|
||||||
|
SasVoice &v = sas->voices[voiceNum];
|
||||||
|
v.KeyOff();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SasVoice &v = sas->voices[voiceNum];
|
|
||||||
v.KeyOff();
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 sceSasSetNoise(u32 core, int voiceNum, int freq)
|
u32 sceSasSetNoise(u32 core, int voiceNum, int freq)
|
||||||
|
|
2
native
2
native
|
@ -1 +1 @@
|
||||||
Subproject commit 618680d3792980df42b29ab7bedec4a5f2a802b5
|
Subproject commit dbda5f8037e3da7fda5e5ec4cb59a8047c319e38
|
Loading…
Add table
Reference in a new issue