Re: wanted:audio player

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 18, 2010 at 02:38:21PM +0200, Kjetil S. Matheussen wrote:

> Perhaps the patch below for mplayer is good enough?
> 
> libao2/ao_jack.c :
> 
> -  for (i = 0; i < num_ports; i++) {
> -    if (jack_connect(client, jack_port_name(ports[i]), matching_ports[i])) {
> -      mp_msg(MSGT_AO, MSGL_FATAL, "[JACK] connecting failed\n");
> -      goto err_out;
> -    }
> -  }
> +  for (i = 0; i < num_ports; i++) {
> +    char portname[1000];
> +    sprintf(portname,"%s%d",getenv("MYPORTS"),i);
> +    if (jack_connect(client, jack_port_name(ports[i]), portname)) {
> +      mp_msg(MSGT_AO, MSGL_FATAL, "[JACK] connecting failed\n");
> +      goto err_out;
> +    }
> +  }

Unfortunately no. The ports to connect to are almost never named 
in that way. The only solution would be to provide the complete
list of names. The most practical one would be for mplayer to
read this from a text file given as an argument, one line per port.

Ciao,

-- 
FA

There are three of them, and Alleline.

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux