Closed pvitaliy84 closed 3 years ago
@pvitaliy84 I think this is happening because you set your "USB PnP Sound Device" as the default audio device, but it's a microphone - and wavy is trying to connect to it as if it's a speaker, which is failing (since the record example records and plays back at the same time). I think I'll have to implement a microphone selector API in order to fix this bug. I'm not sure if there's a way to configure ALSA to get around this issue, but I'd guess that there is.
Thanks. It will be good. And one moment yet: USB-Card may be unplugged. It will raise uncontrolled panic in a app
@pvitaliy84 Thanks, I'll try to make sure that panics won't happen in that situation anymore when I make those changes.
@pvitaliy84 I just released wavy 0.6.0 with fixes and a new API for selecting microphones and speakers. I believe this issue is fixed, so I'm closing it.
New ticket.
uname -a
Linux archlinux 5.9.8-arch1-1 #1 SMP PREEMPT Tue, 10 Nov 2020 22:44:11 +0000 x86_64 GNU/Linux
aplay -l
cat /etc/asound.conf
cargo run --example record