[vlc-devel] [PATCH] Allow configuration of JACK connections

Jon Griffiths jon_p_griffiths at yahoo.com
Fri Apr 6 23:36:01 CEST 2007


First, thanks for VLC, it's great!

Like (most?) JACK users I typically have a bunch of JACK connections
available on the input side. The current JACK output module always
connects to the first enumerated inputs which in my case are straight
to alsa_pcm:1 and alsa_pcm:2. I need to be able to route the audio
through something like jack-rack in order to mix down the level and
redirect the output, otherwise the neighbors will kill me (my sound
card has no built in mixer so everything comes out at 100%).

I can manually change the connections but as these are reset every
time new media is played, this gets to be annoying quickly. I was
previously using oss2jack to solve this, but the sound quality is
poor, and it recently broke when I moved to ubuntu edgy, with no fix
in sight.

The attached patch adds 2 config options for JACK output: a boolean
saying whether or not to connect automatically, and an optional
prefix which filters out input ports so VLC connects only to the
port(s) you want. The boolean option is useful for those with static
patchbay setups, and the prefix allows me to e.g. Have all VLC output
run through jack-rack, where I split it to my monitors and/or
headphone outputs. This is also useful for directing output to Adour
or other HDR's for recording/post-processing.

Other changes:
Don't crash if more than 2 output channels are present, just connect
Rename output channels from channel_n to out_n for consistency with
the majority of JACK aware apps.

The patch is against modules/audio_output/jack.c directly (diff -u);
any chance someone could pick it up and apply it?


"Don't wait for the seas to part, or messiahs to come;
 Don't you sit around and waste this chance..." - Live

jon_p_griffiths at yahoo.com

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jack.diff
Type: text/x-patch
Size: 10171 bytes
Desc: 2979024322-jack.diff
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070406/b24a07a7/attachment.bin>

More information about the vlc-devel mailing list