1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Ensured filtered 1:1 audio resampling is applied.

This commit is contained in:
Thomas Harte 2017-02-28 21:27:38 -05:00
parent 06dd98b23c
commit 026b418b4a

View File

@ -190,7 +190,7 @@ template <class T> class Filter: public Speaker {
}
// if the output rate is less than the input rate, use the filter
if(input_cycles_per_second_ > output_cycles_per_second_)
if(input_cycles_per_second_ > output_cycles_per_second_ || (input_cycles_per_second_ == output_cycles_per_second_ && high_frequency_cut_off_ >= 0.0))
{
while(cycles_remaining)
{