Example #1
0
 def get_phys_out_nominal(self, ch):
     if ch >= len(self.info['phys-outputs']):
         raise ValueError('Invalid argument for physical output channel')
     return EftPhysOutput.get_param(self, 'nominal', ch)
Example #2
0
 def get_phys_out_gain(self, ch):
     if ch >= len(self.info['phys-outputs']):
         raise ValueError('Invalid argument for physical output channel')
     vol = EftPhysOutput.get_param(self, 'gain', ch)
     return self._calculate_vol_to_db(vol)
Example #3
0
 def set_phys_out_mute(self, ch, val):
     if ch >= len(self.info['phys-outputs']):
         raise ValueError('Invalid argument for physical output channel')
     EftPhysOutput.set_param(self, 'mute', ch, val)
Example #4
0
 def set_phys_out_gain(self, ch, db):
     if ch >= len(self.info['phys-outputs']):
         raise ValueError('Invalid argument for physical output channel')
     vol = self._calculate_vol_from_db(db)
     EftPhysOutput.set_param(self, 'gain', ch, vol)