Browse Source

back out jack_port_name() (port_t is opaque)

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@44 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
pbd 23 years ago
parent
commit
f39d8634ed
3 changed files with 6 additions and 9 deletions
  1. +4
    -3
      fltk_client.cc
  2. +0
    -4
      jack/jack.h
  3. +2
    -2
      simple_client.c

+ 4
- 3
fltk_client.cc View File

@@ -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");
}



+ 0
- 4
jack/jack.h View File

@@ -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


+ 2
- 2
simple_client.c View File

@@ -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");
}



Loading…
Cancel
Save