continue
if msg.get('active') != self.currently_active:
self.currently_active = msg.get('active')
+ logger.info('setting source: %s', active)
self.update_jack_connections(self.currently_active)
elif msg.type == aiohttp.WSMsgType.ERROR:
break
if active not in app_settings.SWITCH_IN_PORTS:
logger.info('unsupported source: %s', active)
return
- logger.info('setting source: %s', active)
out_ports = app_settings.SWITCH_OUT_PORTS
with jack.Client('switch-jack') as client:
known_ports = {x.name for x in client.get_ports(is_audio=True)}