mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
moved codec2 to tnc folder
preparation for migration to codec2 module for the entire TNC
This commit is contained in:
parent
a6d60dea1c
commit
8159e9b1ab
5 changed files with 11 additions and 9 deletions
|
@ -9,8 +9,8 @@ import sys
|
|||
import ctypes
|
||||
from ctypes import *
|
||||
import pathlib
|
||||
sys.path.insert(0,'..')
|
||||
import codec2
|
||||
sys.path.insert(0,'../..')
|
||||
from tnc import codec2
|
||||
import numpy as np
|
||||
|
||||
#--------------------------------------------GET PARAMETER INPUTS
|
||||
|
|
|
@ -11,8 +11,8 @@ import threading
|
|||
import audioop
|
||||
import argparse
|
||||
import sys
|
||||
sys.path.insert(0,'..')
|
||||
import codec2
|
||||
sys.path.insert(0,'../..')
|
||||
from tnc import codec2
|
||||
import numpy as np
|
||||
|
||||
# GET PARAMETER INPUTS
|
||||
|
|
|
@ -17,8 +17,9 @@ import threading
|
|||
import sys
|
||||
import argparse
|
||||
import numpy as np
|
||||
sys.path.insert(0,'..')
|
||||
import codec2
|
||||
sys.path.insert(0,'../..')
|
||||
from tnc import codec2
|
||||
|
||||
|
||||
#--------------------------------------------GET PARAMETER INPUTS
|
||||
parser = argparse.ArgumentParser(description='Simons TEST TNC')
|
||||
|
|
|
@ -9,8 +9,8 @@ import pyaudio
|
|||
import time
|
||||
import argparse
|
||||
import sys
|
||||
sys.path.insert(0,'..')
|
||||
import codec2
|
||||
sys.path.insert(0,'../..')
|
||||
from tnc import codec2
|
||||
import numpy as np
|
||||
|
||||
# GET PARAMETER INPUTS
|
||||
|
|
|
@ -139,7 +139,8 @@ class resampler:
|
|||
print("create 48<->8 kHz resampler")
|
||||
self.filter_mem8 = np.zeros(self.MEM8, dtype=np.int16)
|
||||
self.filter_mem48 = np.zeros(self.MEM48)
|
||||
|
||||
|
||||
|
||||
def resample48_to_8(self,in48):
|
||||
assert in48.dtype == np.int16
|
||||
# length of input vector must be an integer multiple of api.FDMDV_OS_48
|
Loading…
Reference in a new issue