Ok, thanks for the answer! Am 11.12.2013 19:01, schrieb Samuel Mimram: > Hi Steffen, > > It is unfortunately not possible to dynamically add new sources, a > script has to be fixed once for ever. > > Usually, when one wants to dynamically insert files, queues are used > (through the request.queue operator) to dynamically push songs. > Depending on what you are trying to achieve other options might be > available. > > Cheers, > > Samuel. > > On Sun, Dec 1, 2013 at 6:18 PM, Steffen Müller > <[email protected]> wrote: >> Hello, >> >> is it possible to create new sources (single or equeue or playlist) per >> telnet and plug them into an existing mixer? >> >> e.g. I have: >> >> # enable telnet server >> set("log.file", false) >> set("log.stdout", true) >> set("server.telnet", true) >> set("server.timeout", -1.) >> >> # create two static channels for the mixer >> channel0 = request.equeue(id = "channel0") >> channel1 = request.equeue(id = "channel1") >> >> # create the mixer >> mixer0 = mix(id = "mixer0", [channel0, channel1]) >> >> # create the alsa output >> output.alsa(id = "device0", device = "hw:0", mixer0) >> >> # server function to create a new source >> def createSource(uri) = >> newSource = single(id = "channel2", uri) >> >> ##################################### >> # HOW TO PLUG THE SOURCE IN mixer0? # >> ##################################### >> >> # just to get this script running >> ignore(newSource) >> >> "Done." >> end >> >> # Register the server function >> server.register(namespace=source.id(mixer0), >> description="Create a new source \ >> for #{source.id(mixer0)}", >> usage="createSource <uri>", >> "createSource", createSource) >> >> Thanks, >> Steffen >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Savonet-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users >
------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
