Romain Beauxis wrote:
> Le Saturday 02 February 2008 19:43:59 Frits Letteboer - Radio Twenterand,
> vous
> avez écrit :
>>> I've added several new function using requests, like request.resolve and
>>> request.file, and I renamed request to request.create for more clever
>>> namespace...
>> Ah. Since my knowledge of the language used by LiquidSoap sucks at this
>> time, I missed it.
>>
>> How many songs does this function request? Reason for asking is that the
>> script I made to feed songs to the player assumes the song that is
>> returned by my script is the one currently playing, but that's not the
>> case.
>
> Sorry I didn't understand this...
I read it back and is isn't very clear. I'll try to explain :)
Our current situation, ices + custom playlist-script. Where 'output' is
the song returned by the custom playlist-script.
ices:
output a
play a
display a (on the website)
output b
play b
display b (on the website)
output c
play c
display c (on the website)
Luidsoap seems to precache things:
output a
output b
output c
play a
display c (on the website)
>
>> So I will need to figure out how to publish the song that Liquidsoap is
>> currently playing to the website. (This is normally done by my request
>> script).
>
> The usual way to do this is to connect to telnet and use the on_air function.
> You may also use the on_metadata and use the data in a script of yours.
I will be looking into this.
>> Great. Seems like audio=true is required anyhow, since leaving it out or
>> setting it to false causes "Thread 3 killed on uncaught exception
>> Assert_failure("tools/utils.ml", 23, 46)"
>
> Strange..
> I'll try to see if it's out fault or ocaml's support in freebsd..
Actually, this is on Ubuntu 7.10 (the development system).
>
>> Thanks sofar, I got most of these things working now. Getting Savonet to
>> run on FreeBSD is a royal PITA, btw. But that's another story.
>
> Heh..
> Is that you who spoke on IRC of a Mutex error in freebsd ?
No, that wasn't me. But a few of the issues to compile are:
FreeBSD's make versus gmake (GNU make). Savonet seems to be using make
hardcoded on some instances, while you need gmake on FreeBSD. (I ended
up temporarily replacing make with gmake).
Also, the 3rd-party libraries and includes (ogg, soundtouch, shout, etc)
are in /usr/local/include and /usr/local/lib.
Exporting LDFLAGS=-L/usr/local/lib and CPPFLAGS=-I/usr/local/include
seems to fix the configure-script, but it isn't honored during the
normal build (ld barfs out that it can't find things like -logg, since
it's only looking in /usr/lib). The quick and dirty fix is to link stuff
from /usr/local/include and /usr/local/lib to /usr/include and /usr/lib,
this is also done to compile on OSX as shown on your wiki.
> Feel free to submit tickets for your issues, we'll try to fix them of forward
> to ocaml if we suspect it comes from there..
I will.
Frits