Exemplo n.º 1
0
 def get_box_states(self):
     states = {}
     state_all = EftHwctl.get_box_states(self)
     if self.info['features']['spdif-coax'] or \
        self.info['features']['spdif-opt']:
         states['spdif-pro'] = state_all['spdif-pro']
         states['spdif-non-audio'] = state_all['spdif-non-audio']
     if self.info['features']['control-room-mirroring']:
         states['control-room'] = state_all['control-room']
         states['output-level-bypass'] = state_all['output-level-bypass']
         states['metering-mode-in'] = state_all['metering-mode-in']
         states['metering-mode-out'] = state_all['metering-mode-out']
     if self.info['features']['soft-clip']:
         states['soft-clip'] = state_all['soft-clip']
     if self.info['features']['robot-hex-input']:
         states['robot-hex-input'] = state_all['robot-hex-input']
     if self.info['features']['robot-battery-charge']:
         states['robot-battery-charge'] = state_all['robot-battery-charge']
     states['internal-multiplexer'] = state_all['internal-multiplexer']
     return states
Exemplo n.º 2
0
 def get_clock_state(self):
     return EftHwctl.get_clock(self)
Exemplo n.º 3
0
 def set_box_states(self, name, state):
     states = EftHwctl.get_box_states(self)
     states[name] = state
     EftHwctl.set_box_states(self, states)
Exemplo n.º 4
0
 def set_clock_state(self, rate, src):
     EftHwctl.set_clock(self, rate, src, 0)