Re: [LAU] wanted:audio player

From: <fons@email-addr-hidden>
Date: Mon Oct 18 2010 - 20:31:00 EEST

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@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Tue Oct 19 00:15:02 2010

This archive was generated by hypermail 2.1.8 : Tue Oct 19 2010 - 00:15:02 EEST