Fix types on touch Filter accumulator/value.

This commit is contained in:
Jared Boone 2016-11-28 12:00:56 -08:00
parent e820bed097
commit 86d2576d3e

View File

@ -171,7 +171,7 @@ public:
history_history = (history_history << 1) | 1U;
}
uint32_t value() const {
int32_t value() const {
return accumulator / N;
}
@ -192,7 +192,7 @@ private:
std::array<sample_t, N> history { };
uint32_t history_history { 0 };
uint32_t accumulator { 0 };
int32_t accumulator { 0 };
size_t n { 0 };
bool history_valid() const {