-
Notifications
You must be signed in to change notification settings - Fork 470
Closed
Description
These are my errors:
error[E0412]: cannot find type `StreamConfig` in crate `cpal`
--> src/main.rs:22:49
|
22 | fn run<T>(device: &cpal::Device, config: &cpal::StreamConfig) -> Result<(), anyhow::Error>
| ^^^^^^^^^^^^ not found in `cpal`
error[E0599]: no method named `default_output_config` found for type `cpal::Device` in the current scope
--> src/main.rs:11:25
|
11 | let config = device.default_output_config()?;
| ^^^^^^^^^^^^^^^^^^^^^ method not found in `cpal::Device`
error[E0599]: no method named `build_output_stream` found for type `&cpal::Device` in the current scope
--> src/main.rs:38:25
|
38 | let stream = device.build_output_stream(
| ^^^^^^^^^^^^^^^^^^^ method not found in `&cpal::Device`
error: aborting due to 3 previous errors
This is the example:
https://github.com/RustAudio/cpal/blob/master/examples/beep.rs
I really new to Rust, so I'm unable to figure out what syntax changes have occured.
Metadata
Metadata
Assignees
Labels
No labels