cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
I have this code on my M2 MacBook Pro, running macOS Sonoma 14.1.2: ```rust let host = rodio::cpal::default_host(); let devices = host.output_devices()?; for device in devices { let name =...
Hello! I've been reading the docs but something doesn't make sense for me. In the src/samples_formats.rs file the range for i8, i16 and i32 goes from u8::MIN..u8::MAX, u16::MIN..u16::MAX, u32::MIN..u32::MAX. Is...
Hello, trying to cross-compile CPAL with the `asio` feature from a Linux box to Windows (x86_64-pc-windows-gnu) gives me this compile error ``` $ cargo build --target x86_64-pc-windows-gnu --features asio Compiling...
Hi, I am new here. I am trying to follow the [basic example](https://docs.rs/cpal/latest/cpal/index.html) of just listing output devices on Android, but the app just crashes. I get for example ```...
## The problem The documentation is very vague around what exactly it does. The only real mention of it and hint at what it does is "None=blocking, Some(Duration)=timeout" in an...
I am creating a Rust project for a raspberry pi with cpal, which I develop from MacOS. On MacOS cpal works as expected, however on the raspberry pi running Raspbian...
In exclusive mode only one stream can be opened per device. This is different from the ASIO host which does its own mixing of multiple streams using the sample format...
i am receiving the following errors when i try :: npm run start :: with the wasm example: --------------------------------------------------------------------------------- compiling hello_wasm v0.1.0 (C:\Users\Admin\Documents\ajhRust\Yew\ajhYewTree\hello_wasm) error[E0277]: the trait bound `T: SizedSample` is...
I am trying to build a network audio streaming application in rust and I have been using `cpal` to do it. I am going to have an `mpsc` thread that...
# Objective - Implement feature in request #818 ## Solution Moved `NotSendSyncAcrossAllPlatforms` into its own module, `maybe_send` (for clarity) and implemented `Send` for an instance where (I believe) it is...