diff --git a/lasp/filter/filterbank_design.py b/lasp/filter/filterbank_design.py index 2541480..9cdd62c 100644 --- a/lasp/filter/filterbank_design.py +++ b/lasp/filter/filterbank_design.py @@ -585,6 +585,8 @@ class ThirdOctaveBankDesigner(FilterBankDesigner): # Idea: correct for frequency warping: if np.isclose(self.fs, 48000): return 1.00 + elif np.isclose(self.fs, 32768): + return 1.00 else: raise ValueError('Unimplemented sampling frequency for SOS' 'filter design') @@ -594,6 +596,8 @@ class ThirdOctaveBankDesigner(FilterBankDesigner): the filter.""" if np.isclose(self.fs, 48000): return 1 + elif np.isclose(self.fs, 32768): + return 1.00 else: raise ValueError('Unimplemented sampling frequency for SOS' 'filter design') diff --git a/lasp/lasp_avstream.py b/lasp/lasp_avstream.py index 5fd21a1..08ba3c1 100644 --- a/lasp/lasp_avstream.py +++ b/lasp/lasp_avstream.py @@ -166,14 +166,14 @@ class AvStream: if len(self._callbacks[AvType.audio_output]) == 0: outdata[:, :] = 0 for cb in self._callbacks[AvType.audio_output]: - cb(indata, outdata, self._aframectr()) + cb(indata, outdata, self._aframectr()) except Exception as e: print(e) return 2 if indata is not None: try: for cb in self._callbacks[AvType.audio_input]: - cb(indata, outdata, self._aframectr()) + cb(indata, outdata, self._aframectr()) except Exception as e: print(e) return 1