On Fri, 26 Jun 2009 16:13:46 +0200
David Baelde <[email protected]> wrote:
> 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).
I tried using switch:
local = switch( track_sensitive = false, transitions = [ cfade, cfade ],
[ ({ (0m0s) or (10m0s) or (20m0s) or (30m0s) or (40m0s) or
(50m0s) }, jingles),
({true}, pl) ] )
I got what I need with:
local = fallback( track_sensitive = false, transitions = [ cfade, cfade ],
[ at( { (0m0s) or (10m0s) or (20m0s) or (30m0s) or (40m0s) or
(50m0s) }, jingles ),
pl ] )
when using switch() like that, the jingle gets cut after playing for 1 second.
when using fallback() and at(), the jingle gets played in its full length.
Is that a bug or a feature?
--polemon
--
polemon <[email protected]>
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users