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

As of #397 the callback now emits timestamps associated with: 1. The moment the callback is called and 2. The moment audio is delivered/received to/from the device. As mentioned in...

feature request

I need to change sample rate from 48000 to 16000. How can I do it?

Example backtrace: ``` thread 'main' panicked at 'assertion failed: ret == 8', /home/ralith/.cargo/registry/src/github.com-1ecc6299db9ec823/cpal-0.12.1/src/host/alsa/mod.rs:130:9 stack backtrace: 0: std::panicking::begin_panic at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:497 1: cpal::host::alsa::TriggerSender::wakeup at /home/ralith/.cargo/registry/src/github.com-1ecc6299db9ec823/cpal-0.12.1/src/host/alsa/mod.rs:130 2: ::drop at /home/ralith/.cargo/registry/src/github.com-1ecc6299db9ec823/cpal-0.12.1/src/host/alsa/mod.rs:863 3: core::ptr::drop_in_place at...

I'm working on writing a "feedback" program similar to [this example](https://github.com/RustAudio/cpal/blob/master/examples/feedback.rs) where the samples in the input are directly fed to the output. The major difference between the sample code...

As the title says, could this be used to create Virtual Audio Devices or feed audio files into an InputStream / InputDevice?

Sometimes it just exits with `Command terminated`, while other times crashing with an error that seems to originate from pulseaudio (perhaps pulseaudio is the default on my system): ``` Assertion...

bug
platform - linux
host - alsa

## Setup - Linux x86_64 - `cpal 0.15.2` - ALSA ## Request On `Stream`'s that can be and are paused, it would be nice if `cpal` did not consume any...

Hi thanks for the library! I wonder whether it is ready for production environment on Android and iOS?

With latest versions: ```toml cpal = { version = "0.15.2", features=["jack"] } dioxus = "0.3.2" dioxus-ssr = "0.3.0" dioxus-desktop = "0.3.0" ``` Consider this minimal code: ```rust use cpal::traits::{DeviceTrait, HostTrait,...

I am currently working on an algorithm visualization tool, asking to [this](https://panthema.net/2013/sound-of-sorting/) for a university project, hence why the repo is private at the moment. My goal is to output...