JMPX icon indicating copy to clipboard operation
JMPX copied to clipboard

disable automatic jack connections

Open refutationalist opened this issue 8 years ago • 3 comments

I'm trying to use JMPX in conjunction with aj-snapshot to manage my patchbay, and the automatic connections that JMPX makes can get in the way. (Is there || Can there) be a way to disable this?

Thanks!

refutationalist avatar Sep 01 '17 20:09 refutationalist

I've never used aj-snapshot to manage the patchbay. I've used the automatic patchbay that you access from QjackCtl and that restores the connections to the right place automatically. I use RtAudio for the API with JACK so there might be something in there that could stop RtAudio making default connections. So yes there may be some way be to disable the default connections RtAudio makes and is probably in https://github.com/jontio/JMPX/blob/master/rtaudio-4.1.2/RtAudio.cpp but I'm not sure how to do it.

jontio avatar Sep 02 '17 03:09 jontio

(the email didn't show up, so I'll try posting it again)

Yeah, it's in RtAudio.cpp. Right around line 2461 in fact:

result = jack_connect( handle->client, jack_port_name(handle->ports[0][i] ), ports[ stream_.channelOffset[0] + i ] );

I've been playing with it, but just commenting that out causes some startup weirdness that I'm still figuring out. I'll update if I find anything else out.

refutationalist avatar Sep 02 '17 06:09 refutationalist

in the gambas application i made i managed to avoid MY application to connect to jack using this flag of gstreamer jackaudiosource(and sink): connect=0

but i suppose handling jack directly is different ...

allegfede avatar Sep 15 '17 15:09 allegfede