def _get_sampling_freq(self, r):
        """Raises BitReaderError"""

        samplingFrequencyIndex = r.bits(4)
        if samplingFrequencyIndex == 0xf:
            samplingFrequency = r.bits(24)
        else:
            try:
                samplingFrequency = self._FREQS[samplingFrequencyIndex]
            except IndexError:
                samplingFrequency = 0
        return samplingFrequency
def _get_sampling_freq ( self , r ) : samplingFrequencyIndex = r . bits ( 4 ) if samplingFrequencyIndex == 0xf : samplingFrequency = r . bits ( 24 ) else : try : samplingFrequency = self . _FREQS [ samplingFrequencyIndex ] except IndexError : samplingFrequency = 0 return samplingFrequency
Raises BitReaderError