Hi there,

After checking out the latest SVN version there seems to be some issues between regular tracks.

In the old version there's a smooth crossfade between regular tracks. In later / the latest version(s) this has changed to fade out - 10 seconds of silence - fade in to next song.

The fades from/to jingles and commercials still work as expected.

I'm pretty sure I screwed up somewhere, but I can't find where. So I've attached the script used in both cases.

A 16-second 'demonstration' is available at:

http://radiotwenterand.nl/~graver/rtrsilence.mp3

Again, thanks in advance for your time.

--
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl
#!/usr/local/bin/liquidsoap.ok

# Log dir
set("server.telnet.bind_addr","127.0.0.1")
set("server.telnet.port",8888)
set("server.telnet",true)
set("log.file.path","/var/log/liq-radiotwenterand.log")
set("tag.encodings",["UTF-8","ISO-8859-1"])

set("harbor.bind_addr","82.94.217.218")
set("harbor.port",)
set("harbor.password","")

live = input.harbor("live")

def jingle_meta(j)
  rewrite_metadata([("artist", "Radio Twenterand"),
                    ("title","Koop bij onze adverteerders"),
                    ("comment","http://radiotwenterand.nl";)],j)
end


myplaylist = request.dynamic({request.create(get_process_output("/usr/bin/php 
-q /home/radiotwe/jukebox/includes/liquidshout.php"))})

# Some jingles
jingles = 
playlist(reload=1,reload_mode="rounds","/home/radiotwe/muziek/Jingles/")
commercials = 
jingle_meta(playlist(reload=1,reload_mode="rounds","/home/radiotwe/muziek/Commercials/"))
promotions = playlist(reload=3600, "/home/radiotwe/muziek/Promo/")

# If something goes wrong, we'll play this
security = single("/home/radiotwe/muziek/mp3/[Jose Wolters]-[Radio Twenterand 
Lied].mp3")

radio = myplaylist

def doereclame(m)
        commercials
end

def doejingle(m)
        jingles
end

radio = on_track( fun (meta) ->
                    system("/usr/local/bin/rtrmeta "
               ^quote(meta["title"])^" "
               ^quote(meta["artist"])^" "
               ^quote(meta["request_id"])^" &"),radio)

radio = nrj(radio)

reclame = delay(1800., jingles)
reclame = append(reclame,doereclame)

timed_promotions = delay(14400.,promotions)

muziek = fallback([timed_promotions, reclame, radio])

muziek = crossfade(start_next=1.,fade_out=0.5,fade_in=0.5,muziek)

final = fallback(track_sensitive=false,[live,muziek,security])

# Stream it out
output.icecast.mp3(
                        bitrate=128,
                        quality=2,
                        genre="Folk",
                        restart=true,
                        name="Radio Twenterand - Hoofdsponsor Goodpack Twente 
B.V.",
                        url="http://radiotwenterand.nl";,
                        public=true,
                        description = "Het beste LEGALE piratenstation voor 
jong en oud",
                        host = "127.0.0.1",
                        port = 8000,
                        password = "",
                        mount = "jukebox.mp3", 
                        final)

# Stream it out for mobile
output.icecast.mp3(
                        bitrate=56,
                        quality=2,
                        genre="Folk",
                        restart=true,
                        name="Radio Twenterand - Hoofdsponsor Goodpack Twente 
B.V.",
                        url="http://radiotwenterand.nl";,
                        public=true,
                        description = "Het beste LEGALE piratenstation voor 
jong en oud",
                        host = "127.0.0.1",
                        port = 8000,
                        password = "",
                        mount = "jukebox_56.mp3",
                        stereo = false,
                        final)
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to