Thanks so much Romain! This was indeed my problem. I used request.queue() and request.create() to make a queue of all the files in the news playlist and now it is indeed repeated hourly just as it should. The only issue remaining right now is that mono files in the playlist are skipped altogether. I'm going on holiday so I don't have the time to do further tests right now, but I suppose wrapping the generated source with audio_to_stereo() would work.
-Tuukka 2013/6/9, Romain Beauxis <[email protected]>: > 2013/6/4 Tuukka Ojala <[email protected]>: >> Hello, > > Hi! > >> 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. > > No worries :-) > >> 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"))]) > > I think this is your problem: once() creates a source that plays one > track and that's it. Nothing more. Ever :-) > > So, after your first transition, the once() source is played last in > the sequence and the news source never gets to be ready again.. > > If you need a specific sequence of files for your news, maybe you > could use a request.equeue or request.dynamic, where you'd push the > exact sequence of tracks you want to play each time you need them to > play.. > > Hope this helps, > Romain > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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
