moved codec2 to tnc folder

preparation for migration to codec2 module for the entire TNC
This commit is contained in:
dj2ls 2021-12-19 15:14:52 +01:00
parent a6d60dea1c
commit 8159e9b1ab
5 changed files with 11 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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')

View file

@ -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

View file

@ -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