On Thu, Nov 20, 2008 at 2:15 PM, David Baelde <[EMAIL PROTECTED]> wrote:
> About queues. You create a queue with request.queue(id="myqueue"), to
> give it a nice explicit name. Then you enable the access to the server
> via telnet (option -t or set("server.telnet",true)). Then the command
> goes like:
> myqueue.push say:blah
> 3
> END
>so if I want to "push a source", I have to implement a protocol (that makes sense :) > That would be a speech synthesis request, but you can also push > http://etc. The number is the request ID (RID), you can get info about > your request using the commands "trace 3" or "metadata 3". > > About the interactive variable, you can probably forget about them, > it's a rather hackish thing reserved for extreme examples currently. > I like clever hacks :) By the way, about functional programming, I have worked with lisp, but liquidsoap it's even more hardcore ( "No assignation, only definitions. x = expr doesn't modify x, it just defines a new x" : no setq?) > But I guess that I'm missing something, I don't see where you need an > asynchronous switch in that picture... words? (Sorry if I'm slow, no > time for reading back the mails right now.) > It's simple, there are 2 reasons: - I don't want to rely on file length. I'm "almost a control engineer" (doing my thesis), and I'm aware of time integration problems, so I like enforcing time resets when they make sense. - I will need 3* kinds of prime sources (plus live, but that one I'll handle later and looks pretty well documented); 2 of them are random playlists, which don't have any special length (and thus need to be stopped ); So when the time comes, I need to change between them (I will have an external scheduler). None of this 3 (4) sources should have priority over the others: they should be mutually exclusive in time (I mean, when one is on air, no other should compete with it). Finally, I really like the fallback mechanism (in case nothing else is on air). *: This is a little different from what is in the bigpicture png (that's part of my "rookieness" in liquidsoap) possible scenario: FLOW: (sorry if the ASCII doesn't work well) show1.mp3 ---> jingle_playlst ---> show_2.mp3 ---> jingle_playlist ---> song_playlist .... _`---source1_____`---source2______`---source1_____`---source2______`---source3____ >>>>>>>>>>>--------------- TIME ----------------------->>>>>>> - source 1 should be a queue or dynamic; - source 2 and 3 should be playlists. Gil ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
