cpal icon indicating copy to clipboard operation
cpal copied to clipboard

FormatNotSupported error on Windows 7

Open raphlinus opened this issue 7 years ago • 2 comments

My code (https://github.com/raphlinus/synthesizer-io , just cargo run, see here for the code that sets up cpal playback) fails on my Windows 7 laptop with FormatNotSupported error.

I did some debugging, and the IsFormatSupported call is returning S_FALSE and the closest match the same as the request but with dwChannelMask filled in as 3 rather than 0. If I locally patch so that dwChannelMask in the request is initialized to 3, it works.

raphlinus avatar Sep 14 '18 06:09 raphlinus

Hi @raphlinus I just left a comment here with my thoughts on no longer supporting Windows 7 in cpal going forward. I would love to hear your thoughts however!

JoshuaBatty avatar May 22 '20 12:05 JoshuaBatty

The same error on My Macbook Pro:

MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
Processor 2 GHz Quad-Core Intel Core i5
Graphics Intel Iris Plus Graphics 1536 MB

Darwin bogon 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64

https://github.com/Rahix/visualizer2/issues/2

shenshouer avatar Sep 21 '22 12:09 shenshouer