/* t48_8_short.c David Rowe Dec 2021 */ #include #include #include #include #include "codec2_fdmdv.h" #define N8 180 /* processing buffer size at 8 kHz */ #define N48 (N8*FDMDV_OS_48) #define MEM8 FDMDV_OS_TAPS_48_8K #define FRAMES 50 #define TWO_PI 6.283185307 #define FS 48000 #define SINE int main() { short in8k[MEM8+N8]; short out48k[N48]; FILE *f48; short in48k[FDMDV_OS_TAPS_48K + N48]; short out8k[N48]; FILE *f8, *f8in; int i,f,t,t1; float freq = 800.0; f48 = fopen("out48.raw", "wb"); assert(f48 != NULL); f8 = fopen("out8.raw", "wb"); assert(f8 != NULL); f8in = fopen("in8.raw", "wb"); assert(f8in != NULL); /* clear filter memories */ for(i=0; i