From 2d5ebd5846af1dd3360b11b68e93992a8ad7b29b Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Sun, 22 May 2022 16:28:55 -0400 Subject: [PATCH] Minor reworking of the source Pythonness. --- tnc/codec2.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tnc/codec2.py b/tnc/codec2.py index 2c6afc60..7cbbe581 100644 --- a/tnc/codec2.py +++ b/tnc/codec2.py @@ -47,7 +47,6 @@ def freedv_get_mode_value_by_name(mode: str) -> int: return FREEDV_MODE[mode.lower()].value - # Function for returning the mode name def freedv_get_mode_name_by_value(mode: int) -> str: """ @@ -60,6 +59,7 @@ def freedv_get_mode_name_by_value(mode: int) -> str: """ return FREEDV_MODE(mode).name + # Check if we are running in a pyinstaller environment if hasattr(sys, "_MEIPASS"): sys.path.append(getattr(sys, "_MEIPASS")) @@ -150,7 +150,6 @@ api.FREEDV_MODE_DATAC3 = 12 # type: ignore api.FREEDV_MODE_DATAC0 = 14 # type: ignore api.FREEDV_MODE_FSK_LDPC = 9 # type: ignore - # -------------------------------- FSK LDPC MODE SETTINGS @@ -267,7 +266,6 @@ api.rx_sync_flags_to_text = [ # type: ignore "EBST", ] - # Audio buffer --------------------------------------------------------- class audio_buffer: """ @@ -331,11 +329,11 @@ api.fdmdv_8_to_48_short.argtype = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_in api.fdmdv_48_to_8_short.argtype = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int] # type: ignore - class resampler: """ Re-sampler class """ + # Re-sample an array of variable length, we just store the filter memories here MEM8 = api.FDMDV_OS_TAPS_48_8K MEM48 = api.FDMDV_OS_TAPS_48K