From 00e3ad9b04d85c0b1ea113b44824a1689d08ca97 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 10 Oct 2016 07:51:01 -0400 Subject: [PATCH] Added a bit more ceiling for lowpass filtering on constrained machines. --- Outputs/Speaker.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/Speaker.hpp b/Outputs/Speaker.hpp index 1d3b0a560..04ff49c8f 100644 --- a/Outputs/Speaker.hpp +++ b/Outputs/Speaker.hpp @@ -36,7 +36,7 @@ class Speaker: public Concurrency::AsyncTaskQueue { float get_ideal_clock_rate_in_range(float minimum, float maximum) { // return twice the cut off, if applicable - if(_high_frequency_cut_off > 0.0f && _input_cycles_per_second >= _high_frequency_cut_off * 2.0f && _input_cycles_per_second <= _high_frequency_cut_off * 2.0f) return _high_frequency_cut_off * 2.0f; + if(_high_frequency_cut_off > 0.0f && _input_cycles_per_second >= _high_frequency_cut_off * 3.0f && _input_cycles_per_second <= _high_frequency_cut_off * 3.0f) return _high_frequency_cut_off * 3.0f; // return exactly the input rate if possible if(_input_cycles_per_second >= minimum && _input_cycles_per_second <= maximum) return _input_cycles_per_second;