cpal icon indicating copy to clipboard operation
cpal copied to clipboard

Cross-platform audio I/O library in pure Rust

Results 259 cpal issues
Sort by recently updated
recently updated
newest added

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,...

bug
platform - windows
host - wasapi

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...

enhancement
feature request

#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...

help wanted
platform - linux
host - alsa

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!()`.

platform - web
host - webaudio

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: ![CleanShot 2023-04-04 at 01 21 58@2x](https://user-images.githubusercontent.com/12202757/229635576-97d34a01-1e4f-4bca-9b5d-2fd78548b6e6.png)...

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`....