Hi Romain.

Tried the "server.rms" code and it worked. But then it complaint about 
"output.prefered" in the same way so, it was obviously not a server.rms 
problem: it was about liquidsoap not finding the functions at all.
Also tried adding the "/libs" directory to the PATH system var. No good either.

So, i finally added the whole "utils.liq" to my script, and it worked.:)

Any idea what's happening here? Had the same behaviour in two different 
machines with Windows XP.


Thanks,
Daniel.




________________________________
 From: Romain Beauxis <[email protected]>
To: Daniel Cantarin <[email protected]> 
Cc: savonet-users <[email protected]> 
Sent: Thursday, March 8, 2012 9:43 PM
Subject: Re: [Savonet-users] Windows version and Server.rms
 
Hi Daniel,

Le 7 mars 2012 13:24, Daniel Cantarin <[email protected]> a écrit :
> Testing some scripts on Windows, i get an error saying that liquidsoap
> doesn't recognize "server.rms" as a valid function.
>
> The script is fine (it works on linux). The LS version i used is the one
> available here:
> http://sourceforge.net/projects/savonet/files/liquidsoap/1.0.0/liquidsoap-win32-1.0.0.zip/download
>
> Is there anything i can do to integrate "server.rms" on the Windows version?
> It's important for my project, as i'm working on a GUI client.

It could be a glitch, I will check on that.

In the mean time, the core function for this is in fact the rms
operator. You should have this operator available (check liquidsoap -h
rms)

Then you can copy-paste the definition of server.rms in your script:


# Register a command that outputs the RMS of the returned source.
# @category Source / Visualization
# @param ~id Force the value of the source ID.
def server.rms(~id="",s) =
  x = rms(id=id,s)
  rms = fst(x)
  s = snd(x)
  id = source.id(s)
  def rms(_) =
    rms = rms()
    "#{rms}"
  end
  server.register(namespace="#{id}",
                  description="Return the current RMS of the source.",
                  usage="rms",
                  "rms",rms)
  s
end

Romain
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to