Hello,

On Sun, Dec 5, 2010 at 12:58 AM,  <[email protected]> wrote:
> I am totally confused what I should use to create a 'show-block' with a
> queue (that now only has audio), but I still need the last item, the .pls:

Request queues only take (media) requests, and as I said to Peter in
another thread, we don't treat playlists as media requests yet. You'll
have to parse the playlist yourself, explode it into items, and push
individual items on the queue. This can be done manually, or using a
script (Liquidsoap itself has functions for parsing playlists in its
scripting API, although it might not be the simplest to use.)

> As far as crossfading, well, it doesn't work - since I can't get no more
> than one audio file to play (and it is truncated after about 7 seconds).

I checked the following script, it works fine here:

a = request.queue(queue=[
                  request.create("/tmp/a.mp3"),
                  request.create("/tmp/b.mp3"),
                  request.create("/tmp/c.mp3")])
a = audio_to_stereo(a)
a = crossfade(start_next=5.,fade_in=5.,fade_out=5.,a)
out(mksafe(a))

A few remarks: I've added the audio_to_stereo so that mono files are
accepted and converted to stereo, because I used a mono jingle for my
test -- by the way, I'll try to enhance the logs regarding files
dropping because of illegal number of channels. I've used a soundcard
output, out(), which is an alias for OSS/ALSA/whatever. It doesn't
make a difference. You do need the mksafe, to tell liquidsoap what to
do when the queue empties, unless you set the output to be fallible:
with a fallible icecast output it'll disconnect upon failure, and you
can set on_stop=shutdown to even stop liquidsoap after that. Finally,
note that the crossfade might be hard to hear with some files and
parameters; don't hesitate to try with abusive parameters.

Cheers,
-- 
David

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to