Hi Frederic,

On Tue, Oct 18, 2011 at 4:26 PM,  <[email protected]> wrote:
> In order to do that, I've thought that using the SWITCH function would
> be correct and more accurate than ROTATE, giving as arguments
> {0m0s,20m0s,40m0s}. As track_sensitive=true by default, it should
> insert commercials in the stream at the end of the current track
> running at 0m0s, 20m0s and 40m0s every hour.

You could write that, but then if a normal track ends at 20m30s, the
20m0s jingle will never have a chance to play.

In general, it is hard to enforce fixed-time scheduling. A slightly
less precise approach could guarantee you that you get three jingles
per hour:
 source = switch([delay(20.*60.,jingles),source])

(It's still not exactly three per hour. First, it's more like 3
jingles per hour + the duration of the three jingles, since you wait
20 minutes between jingles -- this makes me realize that a simple
different behavior could be to compute the delay based on the
beginning of the track, and wonder if this is what Fabio was looking
for in another thread. Second, if "source" produces a track of 3
hours, obviously you won't get a chance to play any jingle. But I
think those limitations are negligible, if not unavoidable.)

Hope this helps,
--
David

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to