rust-portaudio
rust-portaudio copied to clipboard
use not well supported OSS API by default on debian8
Out of the box rust-portaudio used OSS API.
It result in not being able to use multiple sound sources. (launching vlc and then my_program -> my_program failed because device busy, launching my_program and then vlc -> vlc not able to produce sound)
building portaudio for linux state
The OSS sound API is very old and not well supported. It is recommended that you use the ALSA sound API. The PortAudio configure script will look for the ALSA SDK. You can install the ALSA SDK on Ubuntu using:
sudo apt-get install libasound-dev...
So I installed libasound-dev && cargo clean && cargo run. And now it uses ALSA API. So everything work well.
I don't know how you manage to download and build portaudio and if it is possible to install libasound-dev when it is recommended. But if not I would advise to open a Troubleshooting section in the readme
thanks
Thanks for the report :+1:
Handy advice, thanks. Would it be good to have this in the README?