def __init__(self, session): self._session = session self.nsm_signaler = nsm_client.NSMSignaler() self.nsm_signaler.server_sends_open.connect(self.open) self.nsm_signaler.server_sends_save.connect(self.save) self.nsm_signaler.show_optional_gui.connect(self.showOptionalGui) self.nsm_signaler.hide_optional_gui.connect(self.hideOptionalGui) self.wait_for_open = False self.wait_for_save = False self.project_path = '' serverNSM = nsm_client.NSMThread('raysession_child', self.nsm_signaler, CommandLineArgs.NSM_URL, CommandLineArgs.debug) serverNSM.start() self._session._signaler.daemon_announce_ok.connect( self.announceToParent) self._session._signaler.server_status_changed.connect( self.serverStatusChanged)
None) jacklib.on_shutdown(jack_client, JackShutdownCallback, None) jacklib.activate(jack_client) signaler = Signaler() signaler.port_added.connect(portAdded) signaler.port_removed.connect(portRemoved) signaler.port_renamed.connect(portRenamed) signaler.connection_added.connect(connectionAdded) signaler.connection_removed.connect(connectionRemoved) signaler.server_sends_open.connect(openFile) signaler.server_sends_save.connect(saveFile) #makeMayConnections() NSMServer = nsm_client.NSMThread('ray-jackpatch', signaler, daemon_address, False) NSMServer.start() NSMServer.announce('JACK Connections', ':dirty:switch:', 'ray-jackpatch') #connect signals signal.signal(signal.SIGINT, signalHandler) signal.signal(signal.SIGTERM, signalHandler) #get all currents Jack ports and connections portNameList = c_char_p_p_to_list(jacklib.get_ports(jack_client, "", "", 0)) for portName in portNameList: jack_port = JackPort() jack_port.name = portName
(os.path.dirname( os.path.dirname( os.path.dirname( sys.argv[0]))), locale)): app.installTranslator(appTranslator) _translate = app.translate timer = QTimer() timer.setInterval(200) timer.timeout.connect(lambda: None) timer.start() signaler = nsm_client.NSMSignaler() server = nsm_client.NSMThread('ray-proxy', signaler, daemon_address, debug) server.start() proxy = Proxy(executable) proxy_dialog = ProxyDialog() server.announce('Ray Proxy', ':optional-gui:warning-no-save:', 'ray-proxy') app.exec() settings.sync() server.stop() del server del proxy