From: Scott R. <sc...@sr...> - 2010-09-21 07:54:11
|
Hi Folks, Just switched over to the latest SVN and it seems to be working nicely on the new beta! I had a question which i couldn't see in the docs (although it may just be me being stupid)... Ive got an automatic switch in place so between 9am and 11pm we run off JACK input, then after that we run automation handled by liquidsoap. Is there any way of sending a telnet command to switch the source, then switch it back again? So we can automatically go to automation at points throughout the day if required? -------------------- scott robinson student mobile app developer, web developer & radio techie email: sc...@sr... web: www.srobinson.net phone: +44 7704 900554 twitter: scottgrobinson skype: scott.grobinson |
From: jonas o. <jo...@an...> - 2010-09-21 08:44:31
|
hi scott, you can achieve this with registering some functions to the telnet interface, ege something like: - jack_src = "your jack input" auto_src = "your automatic source / whatever" ######################################## # controls for jack input ######################################## # switchong block enabled = ref false def jack_enable(none) enabled := true log('try to enable jack input') # ignore(server.execute("archive.start")) # record the input, if wished "jack enabled" end server.register("jack_enable", jack_enable) def jack_disable(none) enabled := false log('try to disable jack input') # ignore(server.execute("archive.stop")) # stop recording "jack disabled" end server.register("jack_disable", jack_disable) jack_src_switched = switch(track_sensitive=false, [({!enabled},jack_src)]) # apply to fallback source = fallback(track_sensitive=false, [jack_src_switched, auto_src, default]) - now you should have the fuctions "jack_enable" and "jack_disable" available via the telnet interface. watch out for typos, did not check this lines... gx jonas On Sep 21, 2010, at 9:27 , Scott Robinson wrote: > Hi Folks, > > Just switched over to the latest SVN and it seems to be working nicely on > the new beta! I had a question which i couldn't see in the docs (although it > may just be me being stupid)... Ive got an automatic switch in place so > between 9am and 11pm we run off JACK input, then after that we run > automation handled by liquidsoap. Is there any way of sending a telnet > command to switch the source, then switch it back again? So we can > automatically go to automation at points throughout the day if required? > > -------------------- scott robinson > student mobile app developer, web developer & radio techie > > email: sc...@sr... > web: www.srobinson.net > phone: +44 7704 900554 > > twitter: scottgrobinson > skype: scott.grobinson > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________ > Savonet-users mailing list > Sav...@li... > https://lists.sourceforge.net/lists/listinfo/savonet-users |