2011/8/5 Peter Retep <[email protected]>:
> Hi,

 Hi!

> I have just found some time for retesting...
>
> 1)
> When trying to apply the length parameter (is it called duration?), I
> failed.
> Could you please give me a hint how to set this parameter?
>
>
> liquidsoap -h WAV
> *** One entry in audio file formats (duration):
> (no doc)
> *** One entry in file decoding:
> Decode as WAV any file with a correct header.
> *** One entry in stream decoding:
> Decode a WAV stream with an appropriate MIME type.
> *** One entry in stream encoding formats:
> (no doc)
>
> liquidsoap 'output.file( %wav(stereo=true,duration=60s), "./test_%M.wav",
> reopen_when={0s-59s}, mksafe(noise()) )'
> Error in encoding format at line 1, char 40-42:
>  complex expressions are forbidden in encoding formats.
>
> liquidsoap 'output.file( %wav(stereo=true,duration=60), "./test_%M.wav",
> reopen_when={0s-59s}, mksafe(noise()) )'
> Error in encoding format at line 1, char 40-41:
>  unknown parameter name or invalid parameter value.
>
> liquidsoap 'output.file( %wav(stereo=true,duration="60"), "./test_%M.wav",
> reopen_when={0s-59s}, mksafe(noise()) )'
> Error in encoding format at line 1, char 40-43:
>  unknown parameter name or invalid parameter value.
>
> liquidsoap 'output.file( %wav(stereo=true,duration="60s"), "./test_%M.wav",
> reopen_when={0s-59s}, mksafe(noise()) )'
> Error in encoding format at line 1, char 40-44:
>  unknown parameter name or invalid parameter value.
>
> liquidsoap 'output.file( %wav(stereo=true), duration=60s, "./test_%M.wav",
> reopen_when={0s-59s}, mksafe(noise()) )'
> At line 1, char 42-44: cannot apply that parameter because the function
>  (at line 1, char 12) has no argument labeled "duration"!

It should the only only variant you have not tested:
  %wav(stereo=true,duration=60.)
Note the dot at the end.. The param is a floating number, representing
seconds.. In liq a float is differentiated from an int by the presence
of the dot, which must be present even if the value is actually an
integer..

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