Open guruofquality opened 7 years ago
@romeojulietthotel I'm not sure what takes the lock, but I was thinking that one possibility would be to move the call to Pa_OpenStream (from AudioBlock::setupStream) to the AudioSource/Sink::activate() function. That way there would be no lock acquired until the topology is actually activated.
I guess that gives a small relief. I have found some apps will use audio at the same time and some will not. CubicSDR uses https://github.com/thestk/rtaudio/ and it also wants exclusive access to audio.
From @romeojulietthotel on May 30, 2017 1:46
Pothos takes an exclusive lock on the audio device. I can't think of a reason why it would need to do this. I can run multiple ffplay and they get along fine. But if I then start Pothos while an ffplay is running Pothos spews out errors constantly into the "Message Window".
On stdout I see this:
If I start Pothos and then try to play audio via ffplay, ffplay cannot acquire an audio device due the exclusive lock by Pothos.
I read this:
http://portaudio.com/docs/v19-doxydocs/api_overview.html
Copied from original issue: pothosware/pothos-gui#150