cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
Currently, `Stream` does not implement `Send`, and consequently, I am not allowed to move it from one thread to another in safe Rust. When I want to associate a stream...
I'm working on an application using `cpal` over ALSA to continuously capture audio stream on Raspberry Pi. I use both RPI and PC for testing. Note: I'm using a version...
### EDIT: it does seem that wasi targets, while compiling with this change, are incapable of producing functional binaries. As such I can only assume that there is either no...
Hi all. So, it appears that I'm unable to query the max channel count for a MOTU UltraLite-mk5 using the ALSA `hw` plugin. I currently need this as I'm attempting...
From https://docs.rs/cpal/latest/cpal/: ```rust use cpal::Data; use cpal::traits::{DeviceTrait, HostTrait, StreamTrait}; let stream = device.build_output_stream( &config, move |data: &mut [f32], _: &cpal::OutputCallbackInfo| { // react to stream events and read or write...
## Description This change adds an additional type alias `DevicesFiltered` that the `InputDevices` and `OuputDevices` can both become aliases to since they are both the same type, rather than having...
I'm using the following code: ```rust pub fn initialize_host() -> cpal::host { let host; #[cfg(target_os = "windows")] { host = cpal::host_from_id(cpal::HostId::Asio).expect("failed to initialise ASIO host"); } host } ``` With...
I was playing sound using cpal wasapi in release mode, and I found that the buffer length of the data callback was different from the actual expected sample rate. The...
When I try to use cpal (via rodio) in an emscripten build, I first need to apply this patch: ``` --- a/src/lib.rs +++ b/src/lib.rs @@ -243,7 +243,7 @@ impl wasm_bindgen::describe::WasmDescribe...
Hi, I cannot compile Cpal on android (with termux) because of an error related to the JNI package 