[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Connect DSSI synths to Jack automatically
From: |
Anthony Green |
Subject: |
[cp-patches] FYI: Connect DSSI synths to Jack automatically |
Date: |
Fri, 07 Oct 2005 22:05:54 -0700 |
I've always connected the synth output to the h/w audio ports manually
with qjackctl. This patch makes the synths attempt to hook themselves
automatically. I'm checking it in.
2005-10-07 Anthony Green <address@hidden>
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1): Attempt
to connect to the jack server automatically. Fail gracefully.
Index: native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
===================================================================
RCS file:
/cvsroot/classpath/classpath/native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c,v
retrieving revision 1.6
diff -r1.6 gnu_javax_sound_midi_dssi_DSSISynthesizer.c
266a267
> const char **ports;
373a375,392
>
> /* Try to connect the synth output to hardware audio ports. */
> ports = jack_get_ports (data->jack_client, NULL, NULL,
> JackPortIsPhysical | JackPortIsInput);
> if (ports)
> {
> if (ports[0] && ports[1])
> {
> /* Don't bother checking return values. Failing is OK. */
> jack_connect (data->jack_client,
> jack_port_name (data->jack_left_output_port),
> ports[0]);
> jack_connect (data->jack_client,
> jack_port_name (data->jack_right_output_port),
> ports[1]);
> }
> free(ports);
> }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Connect DSSI synths to Jack automatically,
Anthony Green <=