mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-21 09:37:03 +02:00
wait after audio process
This commit is contained in:
parent
a616fbb1bc
commit
d6f1b1a2cd
1 changed files with 2 additions and 3 deletions
|
|
@ -46,11 +46,10 @@ struct PS4SinkStream final : public SinkStream {
|
||||||
// this->ProcessAudioIn(input_buffer, length);
|
// this->ProcessAudioIn(input_buffer, length);
|
||||||
} else {
|
} else {
|
||||||
int err = 0;
|
int err = 0;
|
||||||
sceAudioOutOutput(audio_dev, nullptr);
|
|
||||||
this->ProcessAudioOutAndRender(output_buffer, length);
|
this->ProcessAudioOutAndRender(output_buffer, length);
|
||||||
if ((err = sceAudioOutOutput(audio_dev, output_buffer.data())) < 0) {
|
sceAudioOutOutput(audio_dev, nullptr);
|
||||||
|
if ((err = sceAudioOutOutput(audio_dev, output_buffer.data())) < 0)
|
||||||
LOG_ERROR(Service_Audio, "{}", err);
|
LOG_ERROR(Service_Audio, "{}", err);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sceAudioOutClose(audio_dev);
|
sceAudioOutClose(audio_dev);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue