cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
I have an application to need to get the audio stream from microphone with a sample rate of 16K, which is not supported on my MacBook. I wonder if there...
Hi! I'm having an issue as soon as I try specifying a buffer size for my output stream. The following code runs: ```rust use cpal::traits::{DeviceTrait, HostTrait, StreamTrait}; use cpal::{BufferSize, StreamConfig};...
## Current behavior I am using `rodio` to play audio on Windows 11. When I change the output device on Windows, the audio continues to play on the old device....
Running the example multiple times always produces the first recording I made. Macbook M1, MacOS Montery, rustc v1.65 To reproduce: ```bash # run the example (and say something) cargo run...
I followed the readme in the examples/wasm-beep folder, which said to run `npm install` then `npm start`. After running `npm start` it seems to mostly work, browser pops up to...
The Send constraint on audio callbacks is useless and annoying on the wasm platform and should be added on a per-platform basis.
# Overview I'm attempting to play audio on `wasm32-unknown-unknown`. Going through `rodio`, I receive a `NoDevice` error when attempting to create an `OutputStream`. Through some investigation, I believe this comes...
This may fix failure when enable asio under windows-gnu and windows-msvc build. https://github.com/RustAudio/cpal/issues/860
Some hosts such as CoreAudio or ASIO support having string names for each input/output channel of a device (besides their index). So far, I have not seen this functionality implemented...
Hi folks! I found that cpal can access some low level information about audio drivers, that is otherwise inaccessible from WebAudioAPI. In particular, I would like to have access to...