On Fri, Apr 9, 2010 at 4:47 PM, Octavio Rossell <[email protected]> wrote:
>>   sequence([blank(duration=5.),jingles,podcasts])
> Why this will play only one track from the playlist?

That's what sequence does: plays only one track of each source, except
the last one. This was already happening before the addition of
jingles: blank(duration=5.) produces tracks of 5s of silence, not only
one track but infinitely many, one after the other, but after the
first one sequence moved on to podcast (and would now move to the
jingle).

Also, once() uses this feature. It is an operator that takes a source
and only plays the first track of this source; after that it becomes
unavailable even if the source has more to say. It is defined in
utils.liq as:
def once(s)
  sequence([s,fail()])
end
Here fail() is a source that doesn't produce anything, it can be
defined in a number of ways, for example fallback([]).

HTH
-- 
David

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to