From: David B. <dav...@en...> - 2010-10-28 09:11:18
|
Hi, On Tue, Oct 26, 2010 at 8:33 AM, Senaka Amarakeerthi <sen...@gm...> wrote: > news = fallback(transitions = [crossfade, crossfade], track_sensitive=false, [ > switch([ > ({7h0m0s-7h15m0s},news_src), > ... > ({22h15m0s-22h17m0s},fake_src) > ]),radio]) > > After the specified duration for news, I want to get back to normal > radio (Songs). I just added a fake source to activate fallback. But > this trick doesn't work and hang on news_src forever. > > What should I do to activate fallback after specified time for news source? The only way for the fallback to return to radio is that its first source (the big switch) becomes unavailable. The fake_src are not a solution. Without them, the switch can remain available after the time slots (e.g. after 7:15) if a news_src track keeps playing. If you're planning to play only one track per time slot, you can use a delay() to avoid that another track starts before the end of the time slot. There are several other solutions depending on what exactly you want and accept. For example a track_insensitive switch will interrupt its current track at the very end of the time slot. (But the track will resume with the next time slot unless you skip it...) I encourage you to play with various configurations on simple examples. For example, I was running this to check what I said: liquidsoap 'out(fallback(track_sensitive=false,[switch(track_sensitive=false,[({11h08m30s},sine(duration=5.))]),sine(220.,duration=10.)]))' Have fun, -- David |