Hello Samuel,

Thanks for your great hint, i've been able to write a function which 
accepts a list of filenames. The only problem i have now is that the 
output is stopped and reopened after every file. I tried to add 
merge_tracks because i hoped that would fix that behavior, but that 
isn't the case. Is there a way to let the output file stay opened until 
the playlist is finished? Or is merge_tracks indeed supposed to do that?

Regards,
Leonard
On 8-11-2013 16:40, Samuel Mimram wrote:
> Hi,
>
> Creating a playlist in Liquidsoap is perfectly possible. You can for
> instance have a look at the "playlist.reloadable" operator, which is
> defined in utils.liq (and only uses Liquidsoap operators) for
> inspiration. The basic idea is to store the list of files into a list,
> and program a next function which will be used by "request.dynamic" to
> get the next song.
>
> Cheers,
>
> Samuel.
>
> On Thu, Nov 7, 2013 at 10:42 PM, Leonard de Ruijter <[email protected]> wrote:
>> Hello,
>>
>> I have a playlist.txt containing the following:
>> annotate:liq_cue_in=10,liq_cue_out=20:testing.mp3
>> annotate:liq_cue_in=0,liq_cue_out=10:testing.mp3
>> This plays fine when using the code:
>> input=playlist("playlist.txt")
>> input=cue_cut(in)
>> out(input)
>>
>> I however want to define the playlist inside the liquidsoap script, so i
>> want to have a variable containing several filenames parced as a
>> playlist. Is this possible, and if so, how?
>>
>> Regards,
>> Leonard
>>
>> ------------------------------------------------------------------------------
>> November Webinars for C, C++, Fortran Developers
>> Accelerate application performance with scalable programming models. Explore
>> techniques for threading, error checking, porting, and tuning. Get the most
>> from the latest Intel processors and coprocessors. See abstracts and register
>> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to