[Stk] RtAudio application/port name (for jack in particular)
Gary P. Scavone
gary@ccrma.Stanford.EDU
Tue, 2 Jan 2007 14:42:14 -0500
Hi Stephen,
Thanks for the comments. I already made a change to RtMidi that
allows one to name virtual MIDI ports in ALSA and OS-X (via the
openVirtualPort() function). The currently distributed version has
this (http://www.music.mcgill.ca/~gary/rtmidi/classRtMidi.html).
I'm currently working on a new version of RtAudio and something
similar should happen there for Jack. At the moment, I'm trying to
"nail down" the new API in OS-X before propagating it to the other
supported audio APIs. The port naming feature is API-specific so
I'll need to find a consistent way to support it.
Regards,
--gary
On 29-Dec-06, at 11:32 PM, Stephen Sinclair wrote:
> Hello,
>
> In a program I have written using RtAudio, I have mostly been using
> it with ALSA. Recently I thought I'd see how it would work with
> Jack. It works quite well!
> One thing I noticed though is that the Jack device always shows up
> as "RtApiJack" instead of something meaningful with the
> application's name.
>
> Would it be beneficial to add some mechanism to the RtAudio object
> to specify the application name?
> It would be useful also for RtMidi, with the ALSA device name.
> Currently it just shows up as RtMidi Input or RtMidi Output.
>
> By the way, a quick test just showed me that a very real problem
> with not having unique names for the Jack device is that when you
> run more than one application that uses RtAudio, only the first one
> shows up in the "Connect" dialog in qjackctl. I guess ideally
> you'd not only want a unique name for the application, but also a
> unique name between instances of the same application. Not sure
> how to approach that problem..
>
> Another thing I noticed today is that sometimes I get some major
> clicking or other kinds of distortion if my application's buffer
> sizes don't match well with the Jack settings. Is this a common
> Jack problem? I haven't used Jack much, and certainly not with any
> non-RtAudio applications, so I have nothing to compare with.
>
>
> Steve
> ps., this post is just to get some opinions on the topic. I'll
> probably try it and post a patch sometime soon.
>
> _______________________________________________
> Stk mailing list
> Stk@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk