git-svn-id: svn+ssh://jackaudio.org/trunk/jack@44 0c269be4-1314-0410-8aa9-9f06e86f4224tags/0.109.0
@@ -81,11 +81,12 @@ main (int argc, char *argv[]) | |||||
printf ("client activated\n"); | 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"); | 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"); | fprintf (stderr, "cannot connect output ports\n"); | ||||
} | } | ||||
@@ -217,10 +217,6 @@ jack_port_t **jack_get_ports (jack_client_t *, | |||||
int jack_engine_takeover_timebase (jack_client_t *); | int jack_engine_takeover_timebase (jack_client_t *); | ||||
void jack_update_time (jack_client_t *, nframes_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 | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
@@ -66,11 +66,11 @@ main (int argc, char *argv[]) | |||||
printf ("client activated\n"); | 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"); | 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"); | fprintf (stderr, "cannot connect output ports\n"); | ||||
} | } | ||||