hello, I did
def livefade(previous,next) add([fade.in(duration=2.,next),fade.final(duration=2.,previous)]) end def backlivefade(previous,next) source.skip(next) sequence([previous,next]) end live = fallback (track_sensitive=false,transitions=[livefade,backlivefade], [live, input2]) It kills the source but it still play 2 seconds of the input2 old file before playing the new one (as there is a buffer to empty somewhere). So it's close to the trick but not yes, If someone has an idea, TIA, Jef On 28 Jan 2010, at 17:46, David Baelde wrote: > Hi Jean-François, > > On Thu, Jan 28, 2010 at 10:04 AM, Jean-Francois Mauguit > <[email protected]> wrote: >> Is it possible to delete the buffer and force liquidsoap to make a dynamic >> request >> at the end of the live broadcast ? > > What you want is to abort the song that was ongoing when the live > started. You need to skip when you're done with it. This can be done > by using the source.skip() function in a transition. This is how > fallback.skip() is implemented in utils.liq. But fallback.skip() isn't > enough for you because it wouldn't let you keep your current > transition; instead you need to tweak your existing transition. You > should be able to find examples by searching "skip", "transition", > "fallback"/"switch" in this list; I remember Romain talked about it > not long ago. > >> Moreover if the fade is good when the dj arrives it's not when he leaves. > > I wonder if it can be related to a known bug, signaled on this mailing > list, where transitions don't work well with input.http(). I haven't > come back to it yet. > > Cheers, > -- > David ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
