acobster / looper_proto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: The requested stream type is not supported by the device.

btc opened this issue · comments

getting this odd error when i try to run the program. will need to figure it out before i am able to actually test the code i wrote in #2

looper_proto (main) λ. cargo run 1
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
Running target/debug/looper_proto
Input device: MacBook Pro Microphone
Output device: MacBook Pro Speakers
Error: The requested stream type is not supported by the device.

OS

System Software Overview:
System Version: macOS 11.4 (20F71)
Kernel Version: Darwin 20.5.0

Thanks for the report! I'll see if I can repro this on my iMac (I'm on Ubuntu) tomorrow.

Sounds good. Today, I'm going to look into the cpal docs myself and see what it has to say about stream types.

haven’t looked at docs or revisited yet

located all occurrences of the emitted error in the cpal codebase:

https://github.com/RustAudio/cpal/search?q=StreamTypeNotSupported

taking a look at the CoreAudio/macos search result: https://github.com/RustAudio/cpal/blob/116ee431a6def8c7dd0cfb4bb1ed6313400ab31a/src/host/coreaudio/macos/mod.rs

pausing here for the moment