Page 1 of 1

[BUG] V.M. hangs when a audio device changes it's configuration

Posted: Sun Jun 16, 2019 12:53 am
by Paul17041993
With VM-potato at least, if my SBZx card changes its configuration for any reason; VM will hang indefinitely. This may be a conglomerate bug with other issues if the WASAPI events are not being handled correctly;
https://docs.microsoft.com/en-us/window ... am-routing

If the event system is already implemented, you may simply need to update the SDK version your using; latest seems to be '10.0.17763.0'.

Hang occurs with both MME and WDM modes of the device, but only if the "speakers" (the one that can change its own layout and format) is used as an output. Note that creative designed the "speakers" output as a virtual, universal output with four separate device configurations, each with their own set of channel mappings and supported output formats.

Re: [BUG] V.M. hangs when a audio device changes it's configuration

Posted: Wed Jun 19, 2019 7:08 am
by Vincent Burel
managing WASAPI event (if working correct) will not help you with MME interfaces:
viewtopic.php?f=6&t=430&p=912

will take a look on this API... but the main problem we have is to detect reconnection... that seems to be not planned at in Windows Audio API.

Re: [BUG] V.M. hangs when a audio device changes it's configuration

Posted: Sat Jun 22, 2019 11:20 pm
by Paul17041993
It should, it tells you when audio devices have changed, and thus when MME should be re-loaded. This is with a PCIe card however, which is not outright removable in that sense, but a WASAPI device changed event will still be fired when it changes configuration.