mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-20 09:52:01 +02:00
fix unix build
This commit is contained in:
parent
208b594ef8
commit
6eed8fb429
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ public:
|
|||
|
||||
void addSample(T sample) {
|
||||
if (numSamples > 0) {
|
||||
average = (sample * WEIGHTING) + (average * ONE_MINUS_WEIGHTING);
|
||||
T lastAverage = average;
|
||||
average = (sample * WEIGHTING) + (lastAverage * ONE_MINUS_WEIGHTING);
|
||||
} else {
|
||||
average = sample;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue