Hi Simon, On Fri, Sep 12, 2008 at 10:02 PM, Simon Renquin <[EMAIL PROTECTED]> wrote: > I'd like to build a customizable transition within a fallback using > source.id. The problem is that the fallback seem to change my source id : > Here id my code : > def backRadioTr(cur, next) > if source.id(cur) == "clock" > then > inFade(cur,next) > else > inJingle(delay=3., outPubJingle, cur, next) > end > end
Nice try, but you can't hope to do it that way. Cur will often be wrapped in a transition, so it will have a different ID. You can try to rely on the metadata from the stream (and set a different "source" metadata on your different sources e.g. using rewrite_metadata or annotate protocol), which you can access for example in a smart_cross() transition. The idea would be to not perform any transition at the fallback() but do it in the cross, with a sequence if two consecutive tracks come from the same source, and custom transitions depending on which are the initial and final sources. I know it's a bit complicated, and smart_cross() sounds like overkill... I'll try to think of something better or at least cook an example for what you want to achieve -- it's a natural request that just had to come up at some point. -- 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
