mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Minor reworking of the source Pythonness.
This commit is contained in:
parent
b89be14319
commit
2d5ebd5846
1 changed files with 2 additions and 4 deletions
|
@ -47,7 +47,6 @@ def freedv_get_mode_value_by_name(mode: str) -> int:
|
||||||
return FREEDV_MODE[mode.lower()].value
|
return FREEDV_MODE[mode.lower()].value
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Function for returning the mode name
|
# Function for returning the mode name
|
||||||
def freedv_get_mode_name_by_value(mode: int) -> str:
|
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
|
return FREEDV_MODE(mode).name
|
||||||
|
|
||||||
|
|
||||||
# Check if we are running in a pyinstaller environment
|
# Check if we are running in a pyinstaller environment
|
||||||
if hasattr(sys, "_MEIPASS"):
|
if hasattr(sys, "_MEIPASS"):
|
||||||
sys.path.append(getattr(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_DATAC0 = 14 # type: ignore
|
||||||
api.FREEDV_MODE_FSK_LDPC = 9 # type: ignore
|
api.FREEDV_MODE_FSK_LDPC = 9 # type: ignore
|
||||||
|
|
||||||
|
|
||||||
# -------------------------------- FSK LDPC MODE SETTINGS
|
# -------------------------------- FSK LDPC MODE SETTINGS
|
||||||
|
|
||||||
|
|
||||||
|
@ -267,7 +266,6 @@ api.rx_sync_flags_to_text = [ # type: ignore
|
||||||
"EBST",
|
"EBST",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
# Audio buffer ---------------------------------------------------------
|
# Audio buffer ---------------------------------------------------------
|
||||||
class 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
|
api.fdmdv_48_to_8_short.argtype = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int] # type: ignore
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class resampler:
|
class resampler:
|
||||||
"""
|
"""
|
||||||
Re-sampler class
|
Re-sampler class
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Re-sample an array of variable length, we just store the filter memories here
|
# Re-sample an array of variable length, we just store the filter memories here
|
||||||
MEM8 = api.FDMDV_OS_TAPS_48_8K
|
MEM8 = api.FDMDV_OS_TAPS_48_8K
|
||||||
MEM48 = api.FDMDV_OS_TAPS_48K
|
MEM48 = api.FDMDV_OS_TAPS_48K
|
||||||
|
|
Loading…
Reference in a new issue