Oops, sorry about the styling issues, I will address them.
With regards to handling failure, I think it might be more accurate to fail if the device does not exist (maybe with something like `AUDCLNT_E_DEVICE_INVALIDATED`, cf. https://docs.microsoft.com/en-us/windows/win32/api/audioclient/nf-audioclien...) but I don't think it matters much, and I can definitely fall back to the default format if you're more confident with avoiding a potential behavior change.