rodio
rodio copied to clipboard
Cant find device on FreeBSD
cargo run --example reverb
Finished dev [unoptimized + debuginfo] target(s) in 0.58s
Running `target/debug/examples/reverb`
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/local/lib/alsa-lib/libasound_module_pcm_oss.so
thread 'main' panicked at 'The device doesn't support any format!?: BackendSpecific { err: BackendSpecificError { description: "ALSA function \'snd_pcm_open\' failed with error \'ENXIO: No such device or address\'" } }', src/stream.rs:193:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Same thing happens with running rodio in CI, where there is no available audio device. I think that this shouldn't panic, but print error/warning about missing device and use dummy audio.
Encounter the same problem, supporting dummy audio would be helpful.