prevent an endless loop when client has problematic audio

此提交包含在:
Jakob Ketterl
2021-02-15 18:03:16 +01:00
父節點 b2d4046d8a
當前提交 819790cbc8

查看文件

@@ -530,6 +530,8 @@ class dsp(object):
(self.decimation, self.last_decimation) = self.get_decimation(self.samp_rate, self.get_audio_rate())
def get_decimation(self, input_rate, output_rate):
if output_rate <= 0:
raise ValueError("invalid output rate: {rate}".format(rate=output_rate))
decimation = 1
target_rate = output_rate
# wideband fm has a much higher frequency deviation (75kHz).