mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Return an error for invalid voice in keyoff.
Can't reproduce no error and Every Extend Extra doesn't even seem to be reporting it. Most likely it would be happy with the error code anyway.
This commit is contained in:
parent
f02bf1239e
commit
1a010a37ab
1 changed files with 1 additions and 5 deletions
|
@ -299,11 +299,7 @@ u32 sceSasSetKeyOn(u32 core, int voiceNum) {
|
|||
|
||||
// sceSasSetKeyOff can be used to start sounds, that just sound during the Release phase!
|
||||
u32 sceSasSetKeyOff(u32 core, int 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.
|
||||
WARN_LOG_REPORT(SCESAS, "sceSasSetKeyOff(%08x, %i) - voiceNum = -1???", core, voiceNum);
|
||||
return 0;
|
||||
} else if (voiceNum >= PSP_SAS_VOICES_MAX || voiceNum < 0) {
|
||||
if (voiceNum >= PSP_SAS_VOICES_MAX || voiceNum < 0) {
|
||||
WARN_LOG(SCESAS, "%s: invalid voicenum %d", __FUNCTION__, voiceNum);
|
||||
return ERROR_SAS_INVALID_VOICE;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue