aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz/scrambler.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/cnetz/scrambler.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/cnetz/scrambler.c')
-rw-r--r--src/cnetz/scrambler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cnetz/scrambler.c b/src/cnetz/scrambler.c
index f5adc03..ad57b08 100644
--- a/src/cnetz/scrambler.c
+++ b/src/cnetz/scrambler.c
@@ -50,7 +50,7 @@ void scrambler_init(void)
void scrambler_setup(scrambler_t *scrambler, int samplerate)
{
- filter_lowpass_init(&scrambler->lp, CARRIER_HZ - FILTER_BELOW, samplerate, FILTER_TURNS);
+ iir_lowpass_init(&scrambler->lp, CARRIER_HZ - FILTER_BELOW, samplerate, FILTER_TURNS);
scrambler->carrier_phaseshift65536 = 65536.0 / ((double)samplerate / CARRIER_HZ);
}
@@ -77,7 +77,7 @@ void scrambler(scrambler_t *scrambler, sample_t *samples, int length)
scrambler->carrier_phase65536 = phase;
/* cut off carrier frequency and modulation above carrier frequency */
- filter_process(&scrambler->lp, samples, length);
+ iir_process(&scrambler->lp, samples, length);
}