Fix sceAudioOutOutputs (#3335)
Some checks are pending
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions

This commit is contained in:
Marcin Mikołajczyk 2025-07-27 01:05:01 +02:00 committed by GitHub
commit ee3816ffd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {