miniaudio icon indicating copy to clipboard operation
miniaudio copied to clipboard

Add new ma_device_notification_type_invalidated. currently implemente…

Open Aleksoid1978 opened this issue 10 months ago • 3 comments

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).

Aleksoid1978 avatar Mar 10 '25 02:03 Aleksoid1978

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.

mackron avatar Mar 13 '25 22:03 mackron

Well, in theory, you can try calling ma_device_reroute__wasapi - and in case of an error return, notify and exit with an error.

Aleksoid1978 avatar Mar 14 '25 00:03 Aleksoid1978

Another "request" - errors in windows, which HRESULT - log/print with formatting 0x%08x, this will help in determining what kind of error it is.

Aleksoid1978 avatar Mar 19 '25 07:03 Aleksoid1978