mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-17 03:07:24 -05:00
Initialize RRC Input Filter Memory; Misc Work; Change input/output CLI for M17 UDP IP Frames to prevent accidental triggers on input files that are named with m17;
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include "dsd.h"
|
||||
|
||||
//M17 Filter -- RRC Alpha = 0.5 S/s 48000 with 81 taps
|
||||
#define M17ZEROS 80
|
||||
float m17gain = 3.16227766f; //sqrt of 10.0f
|
||||
@@ -254,4 +256,13 @@ dsd_input_filter(short sample, int mode)
|
||||
sum += (coeffs[i] * v[i]);
|
||||
|
||||
return (short)(sum / gain); // filtered sample out
|
||||
}
|
||||
|
||||
void init_rrc_filter_memory()
|
||||
{
|
||||
memset (m17xv, 0, 81*sizeof(float));
|
||||
memset (xv, 0, 61*sizeof(float));
|
||||
memset (dxv, 0, 61*sizeof(float));
|
||||
memset (nxv, 0, 135*sizeof(float));
|
||||
memset (dpmrxv, 0, 135*sizeof(float));
|
||||
}
|
||||
Reference in New Issue
Block a user