Hi All,
i am newbie to liquid soap and i was trying to make simple script
which plays a playlist and lets me register a function on telnet server so
that i can call that function from telnet client .
this is the script i used as suggested from tutorials
#!/usr/bin/liquidsoap
set("server.telnet",true)
set("log.file.path","awaaz.log")
output.icecast.vorbis(host="localhost",port=8009,password="hackme",mount="liq.ogg",
mksafe(playlist("playlist.m3u")))
def smooth_add() =
d = 1. # delay before mixing after beginning of mix
p = 0.2 # portion of normal when mixed
end
## Register the function as a server command
server.register(usage="smooth_add", description="Change the boolean value",
"smooth_add",smooth_add )
on Liquidsoap version 0.9.2. it throws me following error
shash...@shashank-dingh:~/awaaz/playground/liquidsoap$ liquidsoap awaaz.liq
ERROR: This script is not well typed!
At line 18, char 16:
this value has type
(?namespace:string, ?description:string, ?usage:string, string,
((string)->string))->unit
but it should be a subtype of
(?usage:string, ?description:string, string, (()->unit))->?A
At line 19, char 49:
this value has type
()->unit
(infered at line 10 char 1 - line 14 char 3)
but it should be a subtype of
(string)->string
now if i remove last argument "smooth_add " , it executed flawlessly but on
doing telnet the function smooth_add was not recognized.
it would be helpful ,if anyone can help on this issue ..thanks in advance
--
regards
Shashank Singh
------------------------------------------------------------------------------
Download Intel® 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