cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
To reproduce: find a device name that supports capture and playback (you can use `aplay -L` and `arecord -L`), then pass it as poth input and output to `feedback` example:...
The stdweb crate is unmaintained, as recorded by [this RustSec advisory](https://rustsec.org/advisories/RUSTSEC-2020-0056.html). Here is the [reference issue](https://github.com/koute/stdweb/issues/403). Maintained alternatives include wasm-bindgen, js-sys, and web-sys. I'm willing to look into this and...
WASAPI or PulseAudio provide an event subscription mechanism for detecting for example arrival or removal of devices.
It is refactored version of the example `beep`. I bubbled up a callback to generate a sample. Also, I replaced `unwrap` with proper handling of errors. That does not add...
Hi - new to the project and excited to dive in. But I grabbed the head and tried to compile, and it dies with: error[E0308]: mismatched types --> src/host/alsa/mod.rs:248:26 |...
``` thread '' panicked at 'range end index 4096 out of range for slice of length 2048', /home/kamiyaa/.cargo/registry/src/github.com-1ecc6299db9ec823/cpal-0.13.4/src/host/jack/stream.rs:274:18 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace fatal runtime...
Hello, I'm having trouble with the record_wav example on my laptop, which has a built-in microphone. I can't seem to get cpal to capture my sound card audio, instead of...
**CPAL Version**: `0.13.4` **Distro**: `Garuda Dragonized Linux` I don't really know what's causing this issue, but here's the code I've tried and the output of it ```rust use cpal::default_host; use...
`StreamTrait::play` says: > Note: Not all platforms automatically run the stream upon creation This is a footgun, causing incautious applications to behave inconsistently on different platforms. Can cpal instead normalize...
# My device: ``` google pixel 4a (sunfish) aarch64 ro.build.version.release = 11 ro.build.version.sdk = 30 ``` # Steps to reproduce: ## First I tried: ``` git clone https://github.com/RustAudio/cpal cd cpal...