cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
Only WASAPI overrides the default method implementations, other hosts work the same as before (iterating over configs) but they can potentially be optimized later. Time to get list of WASAPI...
I am using a x86 Linux machine, when trying to use the default device, e.g. using examples/recorder_wav.rs it fails with this output ``` Running `target/debug/examples/record_wav` Default input device: default ALSA...
With ALSA, the buffer size is `nperiod * period_size`. We want 2 periods ideally. The default is now set to 1024 samples which is a reasonable default, yet still too...
There are two common ways of storing 24 bits samples: - on 4 bytes (called 24, most common) - on 3 bytes (called 24_3) With the current code, 3 bytes...
https://github.com/RustAudio/cpal/blob/6ecfec4ed0e4e31f816f90831014f3a701de2e7d/src/host/alsa/mod.rs#L1066 Hi, The code above seems wrong to me. As I understand it, a cpal buffer size correspond to an alsa period size. So the alsa buffer size should be:...
Using Debian 12 / ALSA, I'm unable to use my alsa device with pulseaudio is disable, even though I see the device in the alsamixer. Code is panicking when unwrapping...
When passing `silent=false` to PCM.try_recover, it'll write to `stderr` a detail of the error. In this case, it's always `underrun occurred` or `overrun occurred`. It logs this even when successfully...
I'm writing an audio/video player that does decode in the main thread, then sends the decoded samples via a ring buffer to the callback. I have a way for the...
When recording/before recording, is there a way to get the volume of the mic so users know that audio is being picked up. Any examples of this would be great
Would it be possible to support audio loopback on Linux devices, the same way as with Windows (or macOS #876)? It seems that it should be possible on at least...