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

While figuring out a mysterious audio delay on android when using `web-audio-api` crate - https://github.com/orottier/web-audio-api-rs/issues/515 I found that cpal reports a huge min buffer size (when using `Device::default_output_config`) It looks...

## Previous work - https://github.com/RustAudio/coreaudio-sys/pull/102 - https://github.com/RustAudio/coreaudio-rs/pull/119 - https://github.com/RustAudio/coreaudio-sys/pull/103 - https://github.com/RustAudio/coreaudio-rs/pull/117 ## Current state - this repo reuses `examples/ios-feedback` from `coreaudio-rs` with few abstractions - `src/host/coreaudio` reuses both `ios` and...

This PR implements PW, it works by having a main loop and use uni-directional channels to pass control messages to the main loop. There are some open questions, and I...

``` ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch->4ch Copy Switch',0,0,0): No such file or directory ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch->4ch...

bug
platform - linux
host - alsa

Hi, I'm using `master` branch on `624ba659da7ed97cd973d98fe1c0eae331a6f84c` so I can follow the `examples` folder :). I'm trying to send a `Sample` over TCP using `tokio` and I'm reaching a point...

question

The following code ```rust fn main() -> Result { let host = cpal::host_from_id(cpal::HostId::Asio)?; let device = host .default_output_device() .ok_or("No output device available")?; println!("Output device: {}", device.name()?); let def_output_cfg = device.default_output_config()?;...

```rust use cpal::traits::{DeviceTrait, HostTrait, StreamTrait}; use cpal::{Stream, StreamConfig}; fn main() -> Result { let host = cpal::default_host(); let device = host.default_input_device().expect("no device"); let config: StreamConfig = device.default_input_config()?.into(); // 创建录音流 let...

Hi, is there any example on how we could record a wav file to memory? The hound example only works for files since write_sample only works on a WavWriter which...

## Motivating use case I'm writing a GUI program where the user is offered a choice of input devices and can pick one. The program should "remember" the user choice...

hello, I decided to checkout the latest ubuntu 24.10 release and I'm having trouble with rodio which relies on cpal. https://github.com/RustAudio/rodio/issues/173#issuecomment-2418403679 there are two example applications, one that is sdl2...

host - alsa