[Stk] pulseaudio backend for RtAudio

Gary Scavone gary at ccrma.Stanford.EDU
Mon Nov 1 17:40:09 PDT 2010


Hi Tristan,

The limitation in terms of instances for ALSA is due to RtAudio.  Multiple instances should work in Jack, but you probably need to give each a unique "streamName" via the StreamOptions parameter.  I don't use ALSA much these days but I imagine there should be a way to open a device for non-exclusive use and this should be programmed for control via the HOG option.

RtAudio is in SourceForge and I'm looking for people to help in the development.  If you want access, send me your SourceForge id.

Best,

--gary

On 2010-11-01, at 4:53 PM, Tristan Matthews wrote:

> 2010/10/14 Stephen Sinclair <sinclair at music.mcgill.ca>
> Afaik there tends to be a lot of mixed appreciation of PulseAudio; at
> least on the Linux Audio Developer list, it seems to be a point of
> contention.  Personally I don't find it affects my usage of the OS
> very much, although maybe it does things in the background that I'm
> not always aware of.  (Like mixing outputs of different applications.)
> 
> My main motivation was that with the ALSA and Jack backends, as far as I know, you can't have two instances of stk applications running, or any program using the soundcard and an stk application. 
> For example, if you run two instances of projects/examples/crtsine, you get:
> 
> RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.
> RtApiAlsa::probeDeviceOpen: pcm device (hw:0,0) won't open for output.
> 
> In other frameworks (for example GStreamer's ALSA and Jack plugins), this is not the case. It could just be a simple matter of improving RtApiAlsa and RtApiJack, rather than implementing a whole other backend. I think this would enhance Stk's overall usability tremendously.
> 
> -- 
> Tristan Matthews
> email: tristan at sat.qc.ca
> web: http://tristanswork.blogspot.com
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk




More information about the Stk mailing list