aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/emphasis.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-05-13 16:04:00 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-05-15 21:46:32 +0200
commitca10048e5caa77d8ed4c4902336f8ef88738a5e0 (patch)
treeb760e6bc3d44e187298e692bccfa6136812a40c5 /src/common/emphasis.c
parentd03443c4f158c537f071487d12ed9fca631539a7 (diff)
Rename filter -> iir_filter (file name and instance name)
This is useful when using fir_filter in the future.
Diffstat (limited to 'src/common/emphasis.c')
-rw-r--r--src/common/emphasis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/emphasis.c b/src/common/emphasis.c
index 3fb6679..241deee 100644
--- a/src/common/emphasis.c
+++ b/src/common/emphasis.c
@@ -22,7 +22,7 @@
#include <string.h>
#include <math.h>
#include "sample.h"
-#include "filter.h"
+#include "iir_filter.h"
#include "emphasis.h"
#include "debug.h"
@@ -66,7 +66,7 @@ int init_emphasis(emphasis_t *state, int samplerate, double cut_off)
state->d.factor = factor;
state->d.amp = 1.0;
- filter_highpass_init(&state->d.hp, CUT_OFF_H, samplerate, 1);
+ iir_highpass_init(&state->d.hp, CUT_OFF_H, samplerate, 1);
/* calibrate amplification to be neutral at 1000 Hz */
gen_sine(test_samples, sizeof(test_samples) / sizeof(test_samples[0]), samplerate, 1000.0);
@@ -128,6 +128,6 @@ void de_emphasis(emphasis_t *state, sample_t *samples, int num)
/* high pass filter to remove DC and low frequencies */
void dc_filter(emphasis_t *state, sample_t *samples, int num)
{
- filter_process(&state->d.hp, samples, num);
+ iir_process(&state->d.hp, samples, num);
}