diff --git a/src/fm_mpx.c b/src/fm_mpx.c index 0d4ac85..011b484 100644 --- a/src/fm_mpx.c +++ b/src/fm_mpx.c @@ -66,11 +66,13 @@ float fir_buffer_stereo[FIR_SIZE] = {0}; int fir_index = 0; int channels; +//3.185kHz for Europe, 2.120kHz for US +const float PREEMPHASIS_US = 2120; +const float PREEMPHASIS_EU = 3185; float *last_buffer_val; float preemphasis_corner_freq; float preemphasis_prewarp; -float preemphasis_coefficient_a; -float preemphasis_coefficient_b; +float preemphasis_coefficient; SNDFILE *inf; @@ -126,11 +128,10 @@ int fm_mpx_open(char *filename, size_t len) { last_buffer_val = (float*) malloc(sizeof(float)*channels); for(int i=0;i