Hi Hugo,
Sorry for the very late reply, I'm quite busy and your mail got
burried under a pile of more recent stuff.
In the script you've posted, I see several successive definitions of
timed_promotions, each new definition masking the earlier one. (You
may try to read some documentation or older savonet-users posts of
mine explaining the difference between definition and assignation.) So
only the last definition counts, and is used in the fallback. It would
make more sense to write something like:
timed_promotions = switch([
({08h10m},delay(60.,single("/my/jingle.mp3")),
({08h11m},delay(60.,single("/my/jingle.mp3")),
({08h12m},delay(60.,single("/my/jingle.mp3")),
({08h13m},delay(60.,single("/my/jingle.mp3")),
({08h14m},delay(60.,single("/my/jingle.mp3")),
...
])
radio = fallback(...[timed_promotions,radio]...)
But this can be simplified further: instead of having one different
single(..) source for each minute, we can factor everything into just
one source, with a predicate that combines all of the above:
timed_promotions = switch([
({08h10m or 08h11m or 08h12m or 08h13m
...},delay(60.,single("/my/jingle.mp3"))
])
radio = fallback(...[timed_promotions,radio]...)
But we can go even further! If your intention is to have jingles at
every minute of every hour, you can simply write:
timed_promotions = switch([
({0s},delay(60.,single("/my/jingle.mp3"))
])
radio = fallback(...[timed_promotions,radio]...)
If you want only every minute of eight o'clock, use {8h and 0s}
instead of {0s} above.
I hope that these examples provide a solution to your issue, and
clarify things for you.
David
PS: I don't know why it hangs with 47 definitions, that's still an
interesting issue but maybe not the priority.
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users