On Tue, Dec 15, 2009 at 2:08 PM, Andreas Volk <[email protected]> wrote:
> I found the appropriate function (source.skip).

Yes, source.skip, together with a merging sequence, is a good solution.

I was also wondering if it would't be more natural and flexible to
have a new operator, say switch.dynamic, which dynamically creates
sources when it switches to them. For example, this would allow to
"restart" a sequence by switching to it. This might be more intuitive
than hacking with transitions.

switch.dynamic([
  ({ 0h-12h }, { sequence([jingle_morning, playlist_morning]) }),
  ({ 12h-0h }, { sequence([jingle_afternoon, playlist_afternoon]) }),
])

Recall that { sequence(...) } is a shortcut for fun () ->
sequence(...), i.e. a function which recreates a fresh sequence
everytime.

Just a tought, one thing to consider at some point.

Cheers,

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to