Hi,2013/8/21 Thossaphol Ruangroj <tpr435@gmail.com>
>
> i use liquidsoap on my raspberry pi for streaming with shoutcast it work
> now i it to output at 3.5 standard output on my pi it not work can some one help
> here my config
>>>
>>> set("log.file.path","/var/log/liquidsoap/pi.log")
>>>
>>> set("init.daemon",true)
>>>
>>> set("log.stdout",false)
>>>
>>> set("log.file",true)
>>>
>>> set("init.daemon.pidfile.path","/var/run/liquidsoap/pi.pid")
>>>
>>>
>>> def smart_crossfade (~start_next=5.,~fade_in=5.,
>>>
>>>                      ~fade_out=5., ~width=2.,
>>>
>>>              ~conservative=false,s)
>>>
>>>   high   = -15.
>>>
>>>   medium = -32.
>>>
>>>   margin = 4.
>>>
>>>   fade.out = fade.out(type="sin",duration=fade_out)
>>>
>>>   fade.in  = fade.in(type="sin",duration=fade_in)
>>>
>>>   add = fun (a,b) -> add(normalize=false,[b,a])
>>>
>>>   log = log(label="smart_crossfade")
>>>
>>>
>>>   def transition(a,b,ma,mb,sa,sb)
>>>
>>>
>>>     list.iter(fun(x)-> log(level=4,"Before: #{x}"),ma)
>>>
>>>     list.iter(fun(x)-> log(level=4,"After : #{x}"),mb)
>>>
>>>
>>>     if a <= medium and b <= medium and abs(a - b) <= margin then
>>>
>>>       log("Transition: crossed, fade-in, fade-out.")
>>>
>>>       add(fade.out(sa),fade.in(sb))
>>>
>>>
>>>     elsif
>>>
>>>       b >= a + margin and a >= medium and b <= high
>>>
>>>     then
>>>
>>>       log("Transition: crossed, fade-out.")
>>>
>>>       add(fade.out(sa),sb)
>>>
>>>
>>>     elsif
>>>
>>>       b >= a + margin and a <= medium and b <= high
>>>
>>>     then
>>>
>>>       log("Transition: crossed, no fade-out.")
>>>
>>>       add(sa,sb)
>>>
>>>
>>>     elsif
>>>
>>>       a >= b + margin and b >= medium and a <= high
>>>
>>>     then
>>>
>>>       log("Transition: crossed, fade-in.")
>>>
>>>       add(sa,fade.in(sb))
>>>
>>>
>>>     else
>>>
>>>       log("No transition: just sequencing.")
>>>
>>>       sequence([sa, sb])
>>>
>>>     end
>>>
>>>   end
>>>
>>>
>>>   smart_cross(width=width, duration=start_next,
>>>
>>>               conservative=conservative,
>>>
>>>               transition,s)
>>>
>>> end
>>>
>>>
>>> def my_request_function() =
>>>
>>>   result = list.hd(get_process_lines("php /usr/share/nginx/www/cmd.php gettrack"))
>>>
>>>   request.create(result)
>>>
>>> end
>>>
>>>
>>> def mm(m) =
>>>
>>>   [("artist","Coolwaveradio.com"),("title","Music long play")]
>>>
>>> end
>>>
>>>
>>> # Create the source
>>>
>>> live_url = "http://myradio.plathong.net:8600"
>>>
>>> s = request.dynamic(my_request_function)
>>>
>>> s = smart_crossfade(s)
>>>
>>> s = map_metadata(mm, s)
>>>
>>> s = fallback(track_sensitive=false,[input.http(live_url,buffer=2.0,max=60.5),s])
>>>
>>> s = mksafe(s)
>>>
>>>
>>> output.ao(fallible=true,s)
>>
>>
> i don't familiar much with linux before this i use liquidsoap on window and it can output on soundcard

The error you see means that either liquidsoap has not been built with support for AO output or that you need to install a plugin package (Debian/ubuntu only). If you are using a debian or ubuntu distribution, you may want to try to install liquidsoap-plugin-ao

Romain