ares-emulator / ares

ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.
https://ares-emu.net
Other
929 stars 114 forks source link

WASAPI and XAudio2 are not hot-plug aware #1406

Open Refrigigeggrtor opened 6 months ago

Refrigigeggrtor commented 6 months ago

title

OS: Windows 10 Ares Version: 136 Official

LukeUsher commented 5 months ago

This appears to be an issue with the WASAPI and (potentially) XAudio2 drivers; they only enumerate devices at startup and do not respond to plug/unplug events.

The SDL2 and DirectSound drivers should avoid this issue; but we will leave this open until we fix it for XAudio/WASAPI

kev4cards commented 5 months ago

I have checked out this issue. SDL2 and WaveOut do respond properly to hotplugging. However, DirectSound will cause ares to hang if you plug your default device in while the game is running and only audio synchronize being checked. I did not check other sync combinations and behavior of hotplugging when a game is unloaded.