Hi David,

I sort of figured that was the case. However, I'm totally stumped on how to
implement the syntax of mksafe to refer to the Switch Schedule . I need the
current time to refer to the correct show.

So, given that the ouput from show ID (of say, 'sstol') is 'icmp3', then to
have this output identifier be called in the 'Switch Schedule', using the  
mksafe
operator, would it look like:

icmp3 = fill_in(sstol)

icmp3 = switch(mksafe(

      track_sensitive=true,

      [

        ({09h00-09h30}, sstol),
        ({09h30-10h00}, mfts),
        (... repeat for each show ...)          

      ]
      ))

output.icecast.mp3(...,icmp3)



The problem is: I don't know how to insert the mksafe operator within the  
switch
statement.

I sense that what I've written above would not work for the reasons about  
variables
you've stated. Perhaps if I renamed the variable for the switch to 'mp3'  
and use
that variable as in the 'Output' section, it would work?



icmp3 = fill_in(sstol)

mp3 = switch(mksafe(

      track_sensitive=true,

      [

        ({09h00-09h30}, sstol),
        ({09h30-10h00}, mfts),
        (... repeat for each show ...)          

      ]
      ))

output.icecast.mp3(...,mp3)


I'm sorry if I appear totally clueless here. I am.


I'd just like to get this finished so it will switch at the current time  
to the
correct show.

Thanks for your help,
Andre



On Fri, 28 Jan 2011 07:01:49 -0500, David Baelde <david.bae...@gmail.com>  
wrote:

> Hi,
>
> Romain's suggestion of separating input and output in two clocks is a
> good idea. The trick to do it (SVN only) is simply to add a
> buffer(...) operator around your input.alsa:
>
> input = mksafe(buffer(input.alsa(device="pcm.liquidsoap")))
>
> What this does is allow the icecast output to lag a little bit without
> affecting the soundcard input (which is a cause of overruns). This
> might be enough to solve your problem. This is probably not a
> solution, however, if the icecast server has no reason to make your
> output lag (e.g. if the icecast is local, I don't see how it could be
> a problem).
>
> You can read more about that here:
>   http://savonet.sourceforge.net/doc-svn/clocks.html
>
> Good luck,


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to