the problem is : it never stops the source playing… if th source (for a test) is a short one ans stay the same, it plays it and never stop playing it in background, so when we switch on it again, it plays it where it is (in the middle of it…) what can I do to make it start playing it from the beginning again?
than you > Le 29 juin 2015 à 12:31, jean duffas <[email protected]> a écrit : > > hi again, > > this time a got a strange problem I can’t resolve, > > when switching a file, every hour for exemple (journal10), (the file change > every 30 minutes) at the begining of eatch switch, it seams like I got a > piece a the last file witch is played for a very short time (less than one > second). > is there a way to empty buffer before the next time file is read? > > > > > here is a bit of my code : > > > jingleJournal = single(default_duration=4., length=3., > "/usr/local/etc/liquidsoap/jingleJournal.mp3") > journal10 = > single("/home/singsing/liquidsoap_Journaux_RFI/journal10mn_00m.aac") > > > > > def to_news(old,new) = > add([fade.final(duration=4., type="log", old), sequence(merge=true,[blank > (duration=.5), jingleJournal, new])]) > end > > def to_source(a,b) = > add(normalize=false, > [b,fade.final(duration=2., a)]) > end > > > # les horaires différents journaux repris > s=switch(track_sensitive=false, transitions=[to_news,to_source], [ > ({ > ((1w or 2w or 3w or 4w or 5w or 6w) and 06h00m16s-06h15m20s) > or ((1w or 2w or 3w or 4w or 5w or 6w) and 07h00m16s-07h15m20s) > or ((1w or 2w or 3w or 4w or 5w or 6w) and 08h00m16s-08h15m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 09h00m16s-09h10m20s) > or ((7w) and 10h00m16s-10h10m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 11h00m16s-11h10m20s > or ((1w or 2w or 3w or 4w or 5w or 6w) and 12h00m16s-12h10m20s) > or ((1w or 2w or 3w or 4w or 5w) and 13h00m16s-13h15m20s) > or ((6w or 7w) and 13h00m16s-13h10m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 14h00m16s-14h10m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 15h00m16s-15h10m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 16h00m16s-16h10m20s) > or ((1w or 2w or 3w or 4w or 5w or 6w or 7w) and 17h00m16s-17h10m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 18h00m16s-18h10m20s) > #or ((1w or 2w or 3w or 4w or 5w) and 19h00m16s-19h10m20s) > #or ((1w or 2w or 3w or 4w or 5w or 6w or 7w) and 20h00m16s-20h10m20s) > }, journal10), > > ({ true }, normalSource) > ]) > > > ##### > > thank you. > jean > > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
