Rename functions and structure of biquad lowpass filter
This commit is contained in:
@@ -48,7 +48,7 @@ void scrambler_init(void)
|
||||
|
||||
void scrambler_setup(scrambler_t *scrambler, int samplerate)
|
||||
{
|
||||
biquad_init(&scrambler->bq, CARRIER_HZ - FILTER_BELOW, samplerate);
|
||||
filter_lowpass_init(&scrambler->lp, CARRIER_HZ - FILTER_BELOW, samplerate);
|
||||
scrambler->carrier_phaseshift256 = 256.0 / ((double)samplerate / CARRIER_HZ);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ void scrambler(scrambler_t *scrambler, int16_t *samples, int length)
|
||||
scrambler->carrier_phase256 = phase;
|
||||
|
||||
/* cut off carrier frequency and modulation above carrier frequency */
|
||||
biquad_process(&scrambler->bq, spl, length, FILTER_TURNS);
|
||||
filter_lowpass_process(&scrambler->lp, spl, length, FILTER_TURNS);
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
/* store result */
|
||||
|
Reference in New Issue
Block a user