If there are no available audio devices, then MySound::SetAudioDevice enters an infinite loop. I do sometimes use LoopAuditioneer on a VM without any sound to try some bulk operations.
https://github.com/GrandOrgue/LoopAuditioneer/blame/bbf77ee4467148f42b40e34958f587a90b63a256/src/MySound.cpp#L74
Perhaps something like this (untested):
if (m_audio->getDeviceCount() > 0) SetAudioDevice(m_audio->getDefaultOutputDevice());
But even doing nothing works for me (tested):
// SetAudioDevice(m_audio->getDefaultOutputDevice());
Season to taste.
If there are no available audio devices, then MySound::SetAudioDevice enters an infinite loop. I do sometimes use LoopAuditioneer on a VM without any sound to try some bulk operations.
https://github.com/GrandOrgue/LoopAuditioneer/blame/bbf77ee4467148f42b40e34958f587a90b63a256/src/MySound.cpp#L74
Perhaps something like this (untested):
But even doing nothing works for me (tested):
Season to taste.