On Fri, Jun 26, 2009 at 3:48 AM, polemon<[email protected]> wrote:
> I was thinking about something like this:
>
> local = fallback( track_sensitive =  false,
>                  transitions = [ cfade, cfade ],
>                  [at({14h00}, once(jingles)), pl] )
>
> I'm not sure with the time predicate, though
> does 14h00 mean exactly 14:00:00 (hh:mm:ss), or is it a time intervall: 
> 14:00:00 - 14:00:59?

You're almost there.

Once() is not what you need. It produces only one track over the
entire time-span of the source. It's mostly useful in transitions, not
here.

It's a one-minute-long interval. If your jingle is too long it won't
be cut. If it's less than one minute a second jingle would start. To
prevent that, you can use the delay() operator that prevents playing a
second track too soon.

local = fallback( track_sensitive =  false,
                 transitions = [ cfade, cfade ],
                 [at({14h00}, delay(120.,jingles)), pl] )

I did not test but it should be fine. Also, I would use switch()
rather than fallback() and at(), passing 14h00 as the first predicate
and true as the second, it's more readable (and perhaps more used, so
more stable).
-- 
David

------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to