jack-tunnel: support passing port names to link

Add jack.connect-audio and jack.connect-midi to specify an array of port
names to link to instead of the default phyisical ports.

Also actually fixes linking the midi ports correctly.
This commit is contained in:
Wim Taymans 2025-03-17 12:07:42 +01:00
parent 74035f0a34
commit a241495eaf
2 changed files with 70 additions and 35 deletions

View file

@ -49,7 +49,7 @@ context.properties = {
minimal.use-pulse = true
# Load the jack-tunnel as a backend
minimal.use-jack-tunnel = false
minimal.use-jack-tunnel = true
}
context.properties.rules = [
@ -163,12 +163,16 @@ context.modules = [
#jack.server = null
#jack.client-name = PipeWire
#jack.connect = true
#jack.connect-audio = [ ]
#jack.connect-midi = [ ]
#tunnel.mode = duplex
#midi.ports = 0
#midi.ports = 1
#audio.channels = 2
#audio.position = [ FL FR ]
source.props = {
# extra sink properties
#jack.connect-audio = [ "system:capture_1" ]
#jack.connect-midi = [ "system:midi_capture_2" ]
# jack-tunnel needs a PortConfig from the
# session manager so do this here.
node.param.PortConfig = {
@ -178,6 +182,8 @@ context.modules = [
}
sink.props = {
# extra sink properties
#jack.connect-audio = [ "system:playback_1" ]
#jack.connect-midi = [ "system:midi_playback_2" ]
node.param.PortConfig = {
direction = Input
mode = dsp