Hi,

One possible way to write it is:

radio = fallback(track_sensitive=false,
  transitions=[ mixout, mixin, newtr ],
  [ tracks, tracksmix, newsource ])

The mixout transition is used when switching to tracks, mixin when
switching to tracksmix, newtr when switching to newsource. If you want
more precise control, for example a different transition when
switching to newsource depending on which source you're coming from,
then you have to hack around more, with smartcross and metadata for
example. If you need it, I can try to develop an example, but if you
don't really need it, I'd rather avoid it: it's cumber some and in the
long run we might need to develop a better approach for that.

Another way to do it is in two steps:

radio = fallback(track_sensitive=false,
  transitions=[ mixout, mixin ],[ tracks, tracksmix ])
radio = fallback(track_sensitive=false,
  transitions=[ tr_a, tr_b ], [ radio, newsource ])

Now, mixout and mixin and used when switching from tracks to tracksmix
and vice versa. The transition tr_a is used when switching from any of
the first two to newsource (so it's like newtr in the previous
example) but tr_b is used when switching from newsource to any of the
first two sources (tracks/tracksmix) which is unlike the first
version.

I hope that you're happy with one of these, it's been enough for
people for a long time. If you need more, complain and we'll find
something :)

Have fun,
-- 
David

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to