From 026b418b4ad38f7f7963f04bb62aef4580ee84ae Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 28 Feb 2017 21:27:38 -0500 Subject: [PATCH] Ensured filtered 1:1 audio resampling is applied. --- Outputs/Speaker.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/Speaker.hpp b/Outputs/Speaker.hpp index b3c854cbd..1a1d11209 100644 --- a/Outputs/Speaker.hpp +++ b/Outputs/Speaker.hpp @@ -190,7 +190,7 @@ template 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) {