added a fix for audio (seems that some games calls sceAudioOutInit twice) Thanks Roamic for tracing this!

This commit is contained in:
georgemoralis 2024-08-11 13:16:50 +03:00
parent 924e9de97a
commit 834e3a500e
1 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,9 @@ int PS4_SYSV_ABI sceAudioOutGetSystemState() {
} }
int PS4_SYSV_ABI sceAudioOutInit() { int PS4_SYSV_ABI sceAudioOutInit() {
if (audio != nullptr) {
return ORBIS_AUDIO_OUT_ERROR_ALREADY_INIT;
}
audio = std::make_unique<Audio::SDLAudio>(); audio = std::make_unique<Audio::SDLAudio>();
LOG_INFO(Lib_AudioOut, "called"); LOG_INFO(Lib_AudioOut, "called");
return ORBIS_OK; return ORBIS_OK;