PortAudio Panic and No Devices Found
Leaving this here for the poor souls on Linux systems that run into errors accessing the default input or output devices using PortAudio and get nothing back.
Maybe youâre using rust-portaudio and your application panics after accessing default_output_device or default_intput_device even though you clearly have default audio devices set:
thread âmainâ panicked at âcalled `Option::unwrap()` on a `None` valueâ
This pretty much means that you donât have libasound installed on your system. While the PortAudio project mentions this in its build documentation, the Rust version of this library doesnât explicitly mention this dependency.
On Debian-based systems (Ubuntu and whathaveye), run the following command to cure this:
sudo apt-get install libasound2 libasound2-dev
Share on
X Facebook LinkedIn Bluesky

