Thanks David for the explanation. I couldn't test it right now because
the latest svn version doesn't seem to like operators with float
parameters (at least on my Ubuntu boxes: I just filed a bug on
sourceforge; I hope this was a real one:-).
By the way, if I understand well, this trick wouldn't work if you have
in your "clock" playlist both sounds lasting less and sounds lasting
more than the delay you're asking for. For instance, I would like to
be able to play announcements of our next live sessions, every two
hours. Depending of the session, the ad would last anything between 10
seconds and 30 seconds. Also, some days, we want to air interviews of
arbitrary people answering an arbitrary question. Here too, we don't
want to constrain the duration in advance. Could you suggest another
trick that would work in this cases?
Cheers!
X.
On 4/30/06, David Baelde <[EMAIL PROTECTED]> wrote:
Hi Xavier,
> schedule([("0m & 0-5s",delay(5.,clock))])]) ;
>
> Is delay a trick to play a single sound from the "clock" playlist
> every hour? I am looking for the best way to extract a single sound
> from a playlist, randomly or in sequence, and play it entirely at
> fixed times. In the above example, it seems that schedule would play
> several sounds in a row if they last less than 5 seconds,
You've guessed right, that's really a trick, but it hasn't the problem
you describe. At the beginning of every hour the schedule calls the
delay, which calls the clock, which starts streaming back a jingle. At
the end of the jingle, if the jingle is less than 5 seconds, the
schedule asks the delay if it has something more to say, but the delay
won't answer positively until 5. seconds are elapsed. At that time the
schedule won't be asking anymore. So in theory that trick works well.
Don't you observe the behaviour I describe ?
Cheers.
--
David