cpal icon indicating copy to clipboard operation
cpal copied to clipboard

WASAPI `SupportedStreamConfig`s `buffer_size` is a maxed out range instead of `Unknown`

Open sockmaster27 opened this issue 2 years ago • 0 comments

When obtaining a SupportedStreamConfig or SupportedStreamConfigRange the buffer_size field has a value of SupportedBufferSize::Range with min being 0 and max being 4,294,967,295 (u32::MAX). No matter what is passed to the stream, though, it picks the default anyway.

This seems very counter intuitive, as I would expect this to fall under SupportedBufferSize::Unknown.

I'm running WASAPI on Windows 11.

sockmaster27 avatar Aug 19 '23 21:08 sockmaster27