The difference from delay or the classic switch is that it would be on
a ready list after the time has passed.
imagine track sensitive switch with a item that should play any time
after the specified time but on end of a song:
src=switch(track_sensitive=true,single=[true,false],[({08h44},jingle),({true},default)])
If the song doesn't end at 8h44 the jingle would not play.
You could do it with something like:
src=switch(track_sensitive=true,single=[true,false],[({08h44-9h44},delay(3600,,jingle)),({true},default)])
But you have to assume that default would end in a hour, with is okay
for a song playlist but not certain for a live show.
I am intending to make something like:
(**
*If the music did not played yet and is after 8h44 the next end of
track it would play.
*)
src=switch_since(track_sensitive=true,single=[true,false],[({08h44},jingle),({true},default)])
2011/10/19, David Baelde <[email protected]>:
> Hello Fabio,
>
> 2011/10/18 Fábio Costa <[email protected]>:
>> So i'm thinking on making a hack to say to a switch "Play this thing any
>> time after the given time" .
>> Do you think that it might be usefull?
>
> If it's useful to you, it'll probably be useful to others. Plus, if
> you manage to do it as a script, it'll be possible for others to adapt
> it to their own needs.
>
> The important question for me, when I read the above description, is:
> how does it differ from a delay()? In fact, I don't understand your
> two problems, so I don't know what you're after.
>
> Cheers,
> --
> David
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users