Hello,

First of all, sorry if this question has been asked here before. I
couldn't find anything in the list archives, but it could be that I
just wasn't looking for the right thing. Anyway, here goes:
I've made a basic Liquidsoap script which has two sources: a playlist
consisting of 2000+ tracks, and a variable-length sequence which is
broadcast at the top of the hour overriding the playlist. I
implemented the switching by using the fallback operator and
transition functions for both ways. The switching works for the first
time the script is run, but after returning back to the playlist the
sources won't get switched again. Any ideas of what might be causing
this? I'm running Liquidsoap 1.1.1 on Win32. The script is as follows:
def to_news (music, news) =
add ([news, fade.final (music)])
end

def from_news (news, music) =
source.skip (music)
music
        end

music_playlist = playlist(conservative=true, "z:/playlist.txt")
music_playlist = crossfade (skip_blank (max_blank=1.5, threshold=-50.0, music))
news_playlist = sequence (merge=true,
[audio_to_stereo(single("./time.ogg")), single ("./news_jingle.ogg"),
audio_to_stereo(single("./news.wav")), once
(single("./news_jingle.ogg"))])
radio = fallback (track_sensitive=false, transitions=[to_news, from_news],
[at({00m},news_playlist), music, blank ()])
radio = normalize(radio)

output.icecast (
%vorbis, host="localhost", port=8000,
password="******", mount="radio.ogg", radio)

Thanks

-Tuukka

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to