[Stk] RtAudio application/port name (for jack in particular)
Stephen Sinclair
stephen.sinclair@mail.mcgill.ca
Fri, 29 Dec 2006 23:32:37 -0500
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.