diff --git a/fltk_client.cc b/fltk_client.cc index 3bc7cc4..e6e1402 100644 --- a/fltk_client.cc +++ b/fltk_client.cc @@ -81,11 +81,12 @@ main (int argc, char *argv[]) printf ("client activated\n"); - if (jack_port_connect (client, "ALSA I/O:Input 1", jack_port_name (my_input_port))) { + + if (jack_port_connect (client, "ALSA I/O:Input 1", "myinput")) { fprintf (stderr, "cannot connect input ports\n"); } - - if (jack_port_connect (client, jack_port_name (my_output_port), "ALSA I/O:Output 1")) { + + if (jack_port_connect (client, "myoutput", "ALSA I/O:Output 1")) { fprintf (stderr, "cannot connect output ports\n"); } diff --git a/jack/jack.h b/jack/jack.h index 5f9490f..86f0183 100644 --- a/jack/jack.h +++ b/jack/jack.h @@ -217,10 +217,6 @@ jack_port_t **jack_get_ports (jack_client_t *, int jack_engine_takeover_timebase (jack_client_t *); void jack_update_time (jack_client_t *, nframes_t); -/* useful access functions */ - -static __inline__ const char * jack_port_name (jack_port_t *port) { return port->shared->name; } - #ifdef __cplusplus } #endif diff --git a/simple_client.c b/simple_client.c index c0dffd1..223fdb0 100644 --- a/simple_client.c +++ b/simple_client.c @@ -66,11 +66,11 @@ main (int argc, char *argv[]) printf ("client activated\n"); - if (jack_port_connect (client, "ALSA I/O:Input 1", jack_port_name (my_input_port))) { + if (jack_port_connect (client, "ALSA I/O:Input 1", "myinput")) { fprintf (stderr, "cannot connect input ports\n"); } - if (jack_port_connect (client, jack_port_name (my_output_port), "ALSA I/O:Output 1")) { + if (jack_port_connect (client, "myoutput", "ALSA I/O:Output 1")) { fprintf (stderr, "cannot connect output ports\n"); }