From: Marcin L. <ww...@sa...> - 2009-11-19 11:39:43
|
Hi, i'm trying to make crossfade on input.http. I mean that sound should be crossfaded in both cases - when my live HTTP input begins and ends. Now it fades only at the beginning. Here comes a part of my script: def live_in_transition(a, b) log("Live in transition") add(normalize=false, [ sequence([blank(duration=2.5), fade.initial(duration=5.,b) ]), fade.final(duration=5.,a) ]) end def live_out_transition(a, b) log("Live out transition") add(normalize=false, [ sequence([blank(duration=2.5), fade.initial(duration=5.,b) ]), fade.final(duration=5.,a) ]) end live = skip_blank(length=60., input.http(id="live", buffer = 5., timeout = 60., autostart = false, "http://localhost:8000/live")) music = music_crossfade(start_next=1., fade_in=1., fade_out=1., music_source) music = fallback( track_sensitive = false, [ music, blank() ] ) radio = fallback(transitions=[live_in_transition, live_out_transition], track_sensitive = false, [ live, music ] ) As you can see, i have to switch live broadcast manually, by typing live.start/stop in the telnet interface but it's OK. When I type live.start I get proper crossfade, and "Live in transition" in logfile. But when I type live.stop, after a few seconds sound source changes, with no crossfade, and there's no "Live out transition" in the logfile. What's wrong? Thanks in advance, m. |