mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 12:34:37 +00:00
Fix sceAudioOutOutputs (#3335)
This commit is contained in:
parent
2e237051e3
commit
ee3816ffd6
@ -418,13 +418,14 @@ s32 PS4_SYSV_ABI sceAudioOutOutput(s32 handle, void* ptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceAudioOutOutputs(OrbisAudioOutOutputParam* param, u32 num) {
|
int PS4_SYSV_ABI sceAudioOutOutputs(OrbisAudioOutOutputParam* param, u32 num) {
|
||||||
|
int ret = 0;
|
||||||
for (u32 i = 0; i < num; i++) {
|
for (u32 i = 0; i < num; i++) {
|
||||||
const auto [handle, ptr] = param[i];
|
const auto [handle, ptr] = param[i];
|
||||||
if (const auto ret = sceAudioOutOutput(handle, ptr); ret != ORBIS_OK) {
|
if (ret = sceAudioOutOutput(handle, ptr); ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ORBIS_OK;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceAudioOutPtClose() {
|
int PS4_SYSV_ABI sceAudioOutPtClose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user