Open hwangbro opened 3 years ago
Possible solution on the OBS side from here:
Some audio devices do not send proper timestamps, and can cause various issues, such as audio desync. Try disabling the device timestamps in OBS by clicking the Gear icon next to your audio source, select Properties, and then uncheck "Use device timestamps."
Not sure if anyone else has run across this issue in GSR (I couldn't replicate it), but googling shows a handful of people have ran into this with OBS, and wrong timestamps seem to be the root cause behind adding to the audio buffer. It's still possible GSR might have some complicity in this behavior somewhere in its WASAPI engine code, given the specific way you're able to induce it.
Since DirectSound has been deprecated for a while and WASAPI is generally recommended, this may warrant a closer look even if the above solution is a successful workaround.
When using WASAPI engine, using any emulator function that pauses emulation (save/load states, load rom, pause, frame step, changing settings) causes audio buffer issues in OBS. After "max audio buffer" reached, I'm still able to hear the game audio and it appears in the audio bar in OBS, but the recording will not contain game audio. Below is an excerpt from my OBS log, the last few lines show the behavior. Using DirectSound seems to fix this issue for me.