On Tue, Feb 23, 2010 at 2:32 PM, David Baelde <david.bae...@ens-lyon.org> wrote: > I've opened a ticket containing my remarks from a previous mail. As I > was digging more into this issue I found out that the replay_metadata > feature seemed to be already implemented as desired. But you don't > skip as I was imagining -- as Romain pointed out earlier, in fact. > > In any case, here's a variation of your script, I simply changed the > order of transitions, and it behaves well. The transition() is the one > that skips and it should be done when leaving
(sent by mistake) ...when leaving music, not when going back to it. def myfallback(mix,music) def transition(a,b) source.skip(music) # writing a instead of music would be more elegant imo sequence([a,fade.initial(b)]) end def crossfade(a,b) add(normalize=false, [sequence([blank(duration=1.),fade.initial(duration=1.5,b)]), fade.final(duration=1.5,a)]) end fallback(track_sensitive=false, transitions=[transition,crossfade], [mix,music]) end radio = myfallback(request.queue(id="q"),playlist("~/media/audio")) radio = on_metadata(fun (m) -> print(string_of(m)), radio) # fallible=true should be mksafe in earlier versions output.ao(fallible=true,radio) If you confirm that this works as expected without overriding replay_metadata, I'll close the ticket. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users