jontio / JMPX

FM Stereo encoder with RDS support
https://jontio.zapto.org/hda1/paradise/jmpxencoder/jmpx.html
58 stars 8 forks source link

disable automatic jack connections #4

Open refutationalist opened 7 years ago

refutationalist commented 7 years ago

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!

jontio commented 7 years ago

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.

refutationalist commented 7 years ago

(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.

allegfede commented 7 years ago

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 ...