audiostopped callback
It's annoying when audio applications don't automatically keep playing when devices are unplugged/changed. LÖVR can't currently detect this, but miniaudio has a ma_device_notification callback for when the device is stopped (unplugged) or rerouted (default device changed). Exposing this as something like a lovr.audiostopped and/or lovr.audiochanged event would let people reconfigure the device with lovr.audio.setDevice.
"stopped" seems like it would get confused with sources/devices stopping, maybe a different verb like "lost" or "dropped" or "disconnected" would be better. The word "device" could also be used to make it more clear that this is related to devices instead of sources. e.g. audiodevicelost or audiodevicedisconnected (kind of long!) and audiodevicechanged
On windows it seems everything is working sensibly now. Audio automatically gets rerouted as devices are connected/disabled/etc. For this case miniaudio fires stopped -> rerouted -> started events whenever something changes. If things are working as expected and doesn't require intervention on the part of the lovr project, maybe this API isn't really necessary. Need to check other platforms.
Linux is okay too.