WASAPI and Xaudio have endpoint detection capabilities that allow a user to change their default device without having to restart, but these require making use of IMMNotificationClient.
Presently, on removal or change of the default device the emulator throws an access violation and crashes.