rodio icon indicating copy to clipboard operation
rodio copied to clipboard

Cant find device on FreeBSD

Open fundon opened this issue 5 years ago • 2 comments

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

fundon avatar Oct 23 '20 06:10 fundon

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.

qarmin avatar Nov 12 '20 07:11 qarmin

Encounter the same problem, supporting dummy audio would be helpful.

unknownue avatar Jan 11 '21 13:01 unknownue