mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
sceAudioOutputPannedBlocking() bad volume check.
This commit is contained in:
parent
3ff6bc6060
commit
6804f239b4
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ u32 sceAudioOutputBlocking(u32 chan, int vol, u32 samplePtr) {
|
|||
}
|
||||
|
||||
u32 sceAudioOutputPannedBlocking(u32 chan, int leftvol, int rightvol, u32 samplePtr) {
|
||||
if (leftvol > 0xFFFF || rightvol > 0xFFFF) {
|
||||
// For some reason, this is the only one that checks for negative.
|
||||
if (leftvol > 0xFFFF || rightvol > 0xFFFF || leftvol < 0 || rightvol < 0) {
|
||||
ERROR_LOG(HLE, "sceAudioOutputPannedBlocking() - invalid volume");
|
||||
return SCE_ERROR_AUDIO_INVALID_VOLUME;
|
||||
} else if (chan >= PSP_AUDIO_CHANNEL_MAX) {
|
||||
|
|
Loading…
Add table
Reference in a new issue