Hey!

I'm struggling with a transition-fade/crossfade for my 'rotate_pls' 
which is using the rotate()-function. As it stated in the documentation 
there is a transition needed because a crossfade works only for files of 
a same source.

I played with the Switch-based transitions from the cookbook but I don't 
understand how I should do it in my case.

I want have a transition-fade between 'jingles_pls' and 'default_pls' 
inside the rotate()-function and I want have also a transition-fade in 
the fallback()-function between 'live', switch() and 'rotate_pls'.

Or exists a better way to get the same result?

-- CODE START -----

live = input.harbor("/",port=8005,password="hackme")

source_247 = "/home/liquidsoap/tracks"
jingles = "/home/liquidsoap/jingles"

emergency = single("/home/liquidsoap/emergency_jingle.mp3")

jingles_pls = playlist(reload=1,reload_mode="watch",jingles)
default_pls = playlist(reload=1,reload_mode="watch",source_247)

rotate_pls = rotate(weights=[1,1],[jingles_pls,default_pls])

test = playlist.once("/home/liquidsoap/scheduled/test")
test1 = playlist.once("/home/liquidsoap/scheduled/test1")

radio = fallback(track_sensitive=false,[
   live,
   switch([
     ({ (3w) and 20h00}, test),
     ({ (4w) and 20h00}, test2),
   ]),
   rotate_pls,emergency]
)

-- CODE END -----

Thanks in advance.

N.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to