From e71902b7ae62657933123addd299d3a92b41056b Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sat, 30 Jan 2021 17:40:03 +0100 Subject: [PATCH] removed frame rate conversion --- modem.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modem.py b/modem.py index 633ce89d..ae0f128b 100644 --- a/modem.py +++ b/modem.py @@ -221,8 +221,7 @@ class RF(): nin = int(nin*(static.AUDIO_SAMPLE_RATE_RX/static.MODEM_SAMPLE_RATE)) data_in = self.stream_rx.read(nin, exception_on_overflow = False) - data_in = audioop.ratecv(data_in,2,1,static.AUDIO_SAMPLE_RATE_RX, static.MODEM_SAMPLE_RATE, None) - data_in = data_in[0].rstrip(b'\x00') + data_in = data_in.rstrip(b'\x00') #print(data_in)