openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.88k stars 2.55k forks source link

ALSA can't be shared between OF with the ofxPd addon and Pure Data #7045

Open alexdrymonitis opened 2 years ago

alexdrymonitis commented 2 years ago

Trying to use an OF app with ofxPd alongside Pure Data, I realised that only one of the two apps (OF or Pd, actually the frst one that launches) can use the ALSA audio server. The app that launches second can't use it as ALSA reports that the device is busy. This doesn't happen with the Jack server. This is not directly OF related, and I first opened an issue on ofxPd GitHub repo, but since this was an issue that had to do with ALSA and not the actual OF addon, the developer prompted me to open an issue here.

This happens with OF 0.11.2 on Ubuntu Studio 22.04.

DrDub commented 8 months ago

As PureData and OF are running in separate processes, I don't think this can be solved with ALSA.

Maybe discuss it with the libpd devs? They say libpd it support PortAudio, only for Java then it says it might be needed for Python, very confusing.