Properly close AudioOut handle

Based on library decompilation.
This commit is contained in:
Stephen Miller 2025-07-15 06:13:32 -05:00
parent aaf845e7df
commit 5a6a017c49

View File

@ -530,6 +530,9 @@ s32 PS4_SYSV_ABI sceAudio3dTerminate() {
if (!state) { if (!state) {
return ORBIS_AUDIO3D_ERROR_NOT_READY; return ORBIS_AUDIO3D_ERROR_NOT_READY;
} }
AudioOut::sceAudioOutOutput(state->audio_out_handle, nullptr);
AudioOut::sceAudioOutClose(state->audio_out_handle);
state.release(); state.release();
return ORBIS_OK; return ORBIS_OK;
} }