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
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to