Hi Romain,

Thanks for the reply.

What I actually want to do is perform the patching of my jack sockets when
my output.shoutcast session connects.

I have a function called by on_connect and on_start in my output.shoutcast
command. The function attempts to do a jack_connect on the shoutcast jack
input ports, but they are not available at this point.

Is there anyway to achieve this in a single script?

Many thanks,

Steve.



On 29 June 2012 01:19, Romain Beauxis <[email protected]> wrote:

> 2012/6/27 Rivendell Steve <[email protected]>:
> > Hi,
>
> Hi Steve!
>
> > Version : Liquidsoap 1.0.0-beta3+svn
> >
> > I'm trying to manipulate some jack inputs I create within liquidsoap.
> >
> > I have the following test script....
> >
> > stream_ip2 = input.jack(id="stream-ip2")
> > output.dummy(fallible=false, stream_ip2)
> > system("/usr/bin/jack_lsp -c")
> >
> > The jack_lsp -c command does not list the new jack port.
> >
> > Is this because the port hasn't actually been created at this point?
> Listing
> > the jack ports on a different shell session does list the port as being
> > available.
> >
> > Is there a way of forcing liquidsoap to make the port available
> immediately
> > after it is created (also tried a sleep before the system command to no
> > effect).
>
> I believe that the port will be available only when the source is
> actually used. Wrapping it inside a output.dummy is indeed a good idea
> but I think it does not work because scripts are executed in two
> times:
>
> 1) Parsing and instantiating of the whole script -> sources creation,
> evaluation of the system() call.
> 2) Sources and output execution loop.
>
> Thus, your system() call is executed during 1) when the source has not
> yet been executed, thus its port is not yet available..
>
> I am not sure how to comment further. Why do you want to force the
> port to be immediately available?
>
> Romain
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to