1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-26 10:29:31 +00:00

Retains existing output when switching filter coefficients.

This eliminates an issue with dynamic rate matching and throwing away the beginnings of buffers.
This commit is contained in:
Thomas Harte 2020-02-09 16:42:07 -05:00
parent 2ea1e059a8
commit 6ae42d07a7

View File

@ -228,7 +228,6 @@ template <typename T> class LowpassSpeaker: public Speaker {
);
number_of_taps = (number_of_taps * 2) | 1;
output_buffer_pointer_ = 0;
stepper_ = std::make_unique<SignalProcessing::Stepper>(
uint64_t(filter_parameters.input_cycles_per_second),
uint64_t(filter_parameters.output_cycles_per_second));