Hi all!

Thanks okay_awright for your help :-)

I'm not entierly sure what is going wrong here.. To help us, it would
be nice to provide the following information:
 * A script of part of the script
 * A description of what you would like and what you see is not working
 * The corresponding logs

Without this information, it is not easy for us to understand what is going on..

2011/8/4 okay_awright <[email protected]>:
> You can prune everything after your compressor (nrj) indeed if you wish:
> music =
> fallback([switch([({3h-12h},smooth),({12h-21h},pop),({21h-3h},techno])])
> nrj(music)

okay_awright was right on the typo on the first time predicate... This
probably meant that liqiudsoap simply rejected the script, which is
is, I believe, the error you are referring to..

With more details (see above) I could tell you more but I have another
remark to make :-)

In your script you define something that looks like:

source = fallback( [ switch( [...] ) ] )

This will not prevent your script from running but it is also useless..

The fallback operator does the following: it plays sound from the
first source that is available in the list it is given, from left to
right. For instance:
  source = fallback( [a, b, c] )
will stream from a if it available, otherwise b and otherwise (if b is
not available) from c.

In the above, and in your script, you have a fallback whose list of
sources contains only one source... In this case, the fallback will
only play from the only source in its list when it is available.. In
other words:
  source = fallback( [source] )
is equivalent to:
  source = source
:-)

However, okay_awright's remark about adding a infallible source is
totally appropriate. For instance this:
# A safe jingle for when nothing else is working:
when_bad_happens = single("/path/to/file.mp3")

# Add a fallback in case something bad happens
s = fallback( [s, when_bad_happens] )

In this example, the old source s is placed in a fallback which will
play from when_bad_happens in case s is not available and you are sure
that the new source s will always have something to stream..

Romain

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to