cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
Should i use ALSA or JACK ? Looking at the documentation, ALSA doesn't have a dedicated thread. JACK is not mentioned. And ALSA is the default backend. > Note: Creating...
Right now when receiving an `BackendSpecificError` you can either: - close the stream on the first `BackendSpecificError` since you have no idea if its critical, but that means an underrun...
Basically this one: https://docs.rs/cpal/0.15.3/cpal/traits/trait.DeviceTrait.html#method.build_input_stream how often is it called? Am I able to configure it?
What's the recommended way to init non-Send data that's needed in the audio callback? I.e. initializing it in the audio thread but only once, before the loop starts running. And...
On MacOS, `Device::supported_output/input_configs` returns multiple configs and they are the same values except for `min_samplerate` and `max_samplerate`. However, the pair of samplerates are always the same value like `min_samplerate:44100, max_samplerate:44100`...
It seems like some drivers (notably "FL Studio ASIO") do not use the ASIO double buffering mechanism, and always pass a buffer_index of 0, instead of the usual 0 -...
Just putting this here for now so people know it is at least possible. Will have to think about a proper API if we want to include this. (extension traits?)...
the `audioworklet-beep` example requires nightly, this PR enforces this via `rust-toolchain.toml`. nb: currently I can't fully build this example on my machine (pop!os 24.04), presumably because `wasm-bindgen` has some issues...