At the moment, a jingle only plays when the live stream ends, what do I need to 
modify so a jingle plays when the live stream starts?

Here is what I got so far:

# Define Switch-Based Source Transition
def scrossfade(a,b)
  add(normalize=false,
      [ sequence([ blank(duration=5.),
                   fade.initial(duration=10.,b) ]),
        fade.final(duration=10.,a) ])
end

def stransition(j,a,b)
  add(normalize=false,
      [ fade.initial(b),
        sequence(merge=true,
                [blank(duration=1.),j,fallback([])]),
        fade.final(a) ])
end

# Define Switch-Based Playlist Transition
def pcrossfade(a,b)
  add(normalize=false,
      [ sequence([ blank(duration=5.),
                   fade.initial(duration=10.,b) ]),
        fade.final(duration=10.,a) ])
end

def ptransition(a,b)
  add(normalize=false,
      [ fade.initial(b),
        sequence(merge=true,
                [blank(duration=1.),fallback([])]),
        fade.final(a) ])
end


schedule=fallback(track_sensitive=false,
  transitions=[scrossfade,stransition(jingle_radio)],[live,radio,jingle_fail])

Attachment: signature.asc
Description: Message signed with OpenPGP

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to