Browse Source

Changed ALSA driver's port names:

alsa_pcm:in_X	--> alsa_pcm:capture_X
	alsa_pcm:out_X	--> alsa_pcm:playback_X


git-svn-id: svn+ssh://jackaudio.org/trunk/jack@259 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
kaiv 23 years ago
parent
commit
c3846f29b9
6 changed files with 14 additions and 14 deletions
  1. +2
    -2
      drivers/alsa/alsa_driver.c
  2. +2
    -2
      example-clients/cache_killer.c
  3. +2
    -2
      example-clients/fltk_client.cc
  4. +2
    -2
      example-clients/impulse_grabber.c
  5. +4
    -4
      example-clients/monitor_client.c
  6. +2
    -2
      example-clients/simple_client.c

+ 2
- 2
drivers/alsa/alsa_driver.c View File

@@ -1195,7 +1195,7 @@ alsa_driver_attach (alsa_driver_t *driver, jack_engine_t *engine)

for (chn = 0; chn < driver->capture_nchannels; chn++) {

snprintf (buf, sizeof(buf) - 1, "in_%lu", chn+1);
snprintf (buf, sizeof(buf) - 1, "capture_%lu", chn+1);

if ((port = jack_port_register (driver->client, buf, JACK_DEFAULT_AUDIO_TYPE, port_flags, 0)) == NULL) {
jack_error ("ALSA: cannot register port for %s", buf);
@@ -1213,7 +1213,7 @@ alsa_driver_attach (alsa_driver_t *driver, jack_engine_t *engine)
port_flags = JackPortIsInput|JackPortIsPhysical|JackPortIsTerminal;

for (chn = 0; chn < driver->playback_nchannels; chn++) {
snprintf (buf, sizeof(buf) - 1, "out_%lu", chn+1);
snprintf (buf, sizeof(buf) - 1, "playback_%lu", chn+1);

if ((port = jack_port_register (driver->client, buf, JACK_DEFAULT_AUDIO_TYPE, port_flags, 0)) == NULL) {
jack_error ("ALSA: cannot register port for %s", buf);


+ 2
- 2
example-clients/cache_killer.c View File

@@ -158,11 +158,11 @@ main (int argc, char *argv[])
the client is activated (this may change in the future).
*/

if (jack_connect (client, "alsa_pcm:in_1", jack_port_name (input_port))) {
if (jack_connect (client, "alsa_pcm:capture_1", jack_port_name (input_port))) {
fprintf (stderr, "cannot connect input ports\n");
}
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:out_1")) {
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:playback_1")) {
fprintf (stderr, "cannot connect output ports\n");
}



+ 2
- 2
example-clients/fltk_client.cc View File

@@ -82,11 +82,11 @@ main (int argc, char *argv[])

printf ("client activated\n");

if (jack_connect (client, "alsa_pcm:in_1", jack_port_name (input_port))) {
if (jack_connect (client, "alsa_pcm:capture_1", jack_port_name (input_port))) {
fprintf (stderr, "cannot connect input ports\n");
}

if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:out_1")) {
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:playback_1")) {
fprintf (stderr, "cannot connect output ports\n");
}



+ 2
- 2
example-clients/impulse_grabber.c View File

@@ -168,11 +168,11 @@ main (int argc, char *argv[])
the client is activated (this may change in the future).
*/

if (jack_connect (client, "alsa_pcm:in_1", jack_port_name (input_port))) {
if (jack_connect (client, "alsa_pcm:capture_1", jack_port_name (input_port))) {
fprintf (stderr, "cannot connect input ports\n");
}
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:out_1")) {
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:playback_1")) {
fprintf (stderr, "cannot connect output ports\n");
}



+ 4
- 4
example-clients/monitor_client.c View File

@@ -17,12 +17,12 @@ main (int argc, char *argv[])
return 1;
}

if (jack_port_request_monitor_by_name (client, "alsa_pcm:in_1", TRUE)) {
fprintf (stderr, "could not enable monitoring for in_1\n");
if (jack_port_request_monitor_by_name (client, "alsa_pcm:capture_1", TRUE)) {
fprintf (stderr, "could not enable monitoring for capture_1\n");
}
sleep (30);
if (jack_port_request_monitor_by_name (client, "alsa_pcm:in_1", FALSE)) {
fprintf (stderr, "could not disable monitoring for in_1\n");
if (jack_port_request_monitor_by_name (client, "alsa_pcm:capture_1", FALSE)) {
fprintf (stderr, "could not disable monitoring for capture_1\n");
}
jack_client_close (client);
exit (0);


+ 2
- 2
example-clients/simple_client.c View File

@@ -111,11 +111,11 @@ main (int argc, char *argv[])
running.
*/

if (jack_connect (client, "alsa_pcm:in_1", jack_port_name (input_port))) {
if (jack_connect (client, "alsa_pcm:capture_1", jack_port_name (input_port))) {
fprintf (stderr, "cannot connect input ports\n");
}
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:out_1")) {
if (jack_connect (client, jack_port_name (output_port), "alsa_pcm:playback_1")) {
fprintf (stderr, "cannot connect output ports\n");
}



Loading…
Cancel
Save