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

When I iterate over output devices, I see only the default output device that I select on the macOS, not the USB audio device attached to my MacBook. Is there...

Hi all. I've created this pretty simple program that just listens to audio from the microphone and plays it back out to the speakers. All it does is record a...

When I run the following code from the terminal on macOS (using `cargo run`) ```rust use cpal::traits::HostTrait as _; fn main() { let _ = cpal::default_host().default_output_device(); } ``` I get...

This change makes the fields of `StreamInstant`, `OutputCallbackInfo` and `InputCallbackInfo` pub. The intent is to allow `OutputCallbackInfo` instances to be created, which then allows unit testing the data callback function....

code is here: https://github.com/louis030195/screen-pipe/blob/9e0476a373326dfbeab455dbc729004470299f58/screenpipe-audio/src/core.rs#L93 sometimes i cannot use my audio input / output after having used cpal (need to reboot computer) anyone faced similar issue?

I am using the code block to see if i am able to retrieve speaker data. It works fine with windows but the same code doesnt work for macOS. Is...

Primary purpose of this PR is to add an example to demonstrate additional way to utilize audio input stream while offering a tool to visualize the stream for many purposes....

enhancement

## A bit of history of cpal @tomaka has created the `cpal` library a over decade ago[^1], as a library to provide an abstraction layer over the different audio backends...

help wanted

I am finding quite a lot of memory leaks when using Alsa, both on master and 0.15.3. ``` ==1297036== 1,512 bytes in 21 blocks are possibly lost in loss record...