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

Reply via email to