Hi experts,

I need some help please on how to interrupt or (better) fade out a long program 
in a switch statement?

For example, in the following switch statement, news() is never played if 
looongprogram() is more than 59min and 30 secs long, and ends after 12:59:30

What I would like to achieve is that **whatever the length** is of what is 
played by the sequence in looongprogram() it **MUST** be faded out or 
interrupted at 12:59:30 and then news() **MUST** be played.

Thanks!

Pad
--- sample code ---

def looongprogram()
    sequence(merge=true,[
    blank(duration=3.),
    single("/IDS/program_id.mp3"),
    single("/PROGRAMS/60min/WeekInReview.mp3"),
])
end

def news()
     sequence(merge=true,[
     blank(duration=3.),
     single("/IDS/news_id.mp3"),
     single("/NEWS/todaynews.mp3"),
])
end



timed_promotions = switch(
track_sensitive=true, # this is not enough to interrupt looongprogram
[
  ({12h00m}, looongprogram()), # 60+ minutes long
  ({12h5930}, news()),
])

.....

-- end sample code --

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to