mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-24 14:50:43 -04:00
Fix types on touch Filter accumulator/value.
This commit is contained in:
parent
e820bed097
commit
86d2576d3e
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ public:
|
||||||
history_history = (history_history << 1) | 1U;
|
history_history = (history_history << 1) | 1U;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t value() const {
|
int32_t value() const {
|
||||||
return accumulator / N;
|
return accumulator / N;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ private:
|
||||||
|
|
||||||
std::array<sample_t, N> history { };
|
std::array<sample_t, N> history { };
|
||||||
uint32_t history_history { 0 };
|
uint32_t history_history { 0 };
|
||||||
uint32_t accumulator { 0 };
|
int32_t accumulator { 0 };
|
||||||
size_t n { 0 };
|
size_t n { 0 };
|
||||||
|
|
||||||
bool history_valid() const {
|
bool history_valid() const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue