Add new ma_device_notification_type_invalidated. currently implemente…
Currently implemented only for WASAPI MA_AUDCLNT_E_DEVICE_INVALIDATED (https://learn.microsoft.com/en-us/windows/win32/coreaudio/recovering-from-an-invalid-device-error).
Thanks. I'm going to sit on this. Handling of INVALIDATED makes sense, but I'm not sure I want to just post a notification. I'm wondering if instead miniaudio should just try recovering, and then if recovery fails just stop the device. I'll consider this and report back.
Well, in theory, you can try calling ma_device_reroute__wasapi - and in case of an error return, notify and exit with an error.
Another "request" - errors in windows, which HRESULT - log/print with formatting 0x%08x, this will help in determining what kind of error it is.