Hi,

On Tue, Oct 26, 2010 at 8:33 AM, Senaka Amarakeerthi
<[email protected]> 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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to