rust-portaudio icon indicating copy to clipboard operation
rust-portaudio copied to clipboard

use not well supported OSS API by default on debian8

Open gui1117 opened this issue 9 years ago • 2 comments

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

gui1117 avatar Feb 17 '16 09:02 gui1117

Thanks for the report :+1:

mitchmindtree avatar Feb 17 '16 09:02 mitchmindtree

Handy advice, thanks. Would it be good to have this in the README?

lpil avatar Nov 10 '16 22:11 lpil