cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
My code (https://github.com/raphlinus/synthesizer-io , just `cargo run`, see [here](https://github.com/raphlinus/synthesizer-io/blob/master/src/main.rs#L172) for the code that sets up cpal playback) fails on my Windows 7 laptop with FormatNotSupported error. I did some debugging,...
hey there! I was interested in using `cpal` for 24 + 32 bit audio. is this currently supported? from the code and `SampleFormat`, it looks like this isn't directly supported...
#401 finally allows users to specify a fixed buffer size, allowing some control over the trade-off between energy efficiency and low latency. The `BufferSize::Default` value allows the user to fallback...
This is caused by the condition `all(target_arch = "wasm32", target_os = "unknown")` in Cargo.toml, which does not apply to target `wasm32-wasi`. I do not know if this is intentional but...
Currently the implementation panics with `unimplemented!()`.
This fixes #771 by manually stopping the stream on drop.
I added a log where I drop the stream: ``` drop(stream); info!("stream dropped"); ``` and you can see I'm still getting samples from cpal: ...
I'm using cpal with [dioxus](https://github.com/dioxuslabs/dioxus). I can only use output in browser, there is no input device. I'm in need for input device unfortunately.
Demo code: ```rs use cpal::traits::{HostTrait, DeviceTrait}; fn main() { let audio_host = cpal::default_host(); let mut t = std::time::Instant::now(); if let Ok(devices) = audio_host.output_devices() { for device in devices { println!("{:?}...
When I try to parse my input audio data to another crate like for pitch detection, there's always an error because the sample length is 882 dependent of the `buffer_size`....