Beispiel #1
0
 def __update_demodulator_info(self):
     self.__demod_tunable = ITunableDemodulator.providedBy(self.__demodulator)
     output_type = self.__demodulator.get_output_type()
     assert isinstance(output_type, SignalType)
     # TODO: better expression of this condition
     assert output_type.get_kind() == 'STEREO' or output_type.get_kind() == 'MONO' or output_type.get_kind() == 'NONE'
     self.__demod_output = output_type.get_kind() != 'NONE'
     self.__demod_stereo = output_type.get_kind() == 'STEREO'
     self.__output_type = SignalType(
         kind='STEREO',
         sample_rate=output_type.get_sample_rate() if self.__demod_output else 0)
Beispiel #2
0
 def __update_demodulator_info(self):
     self.__demod_tunable = ITunableDemodulator.providedBy(self.__demodulator)
     output_type = self.__demodulator.get_output_type()
     assert isinstance(output_type, SignalType)
     # TODO: better expression of this condition
     assert output_type.get_kind() == 'STEREO' or output_type.get_kind() == 'MONO' or output_type.get_kind() == 'NONE'
     self.__demod_output = output_type.get_kind() != 'NONE'
     self.__demod_stereo = output_type.get_kind() == 'STEREO'
     self.__output_type = SignalType(
         kind='STEREO',
         sample_rate=output_type.get_sample_rate() if self.__demod_output else 0)