Fixed warning
This commit is contained in:
parent
9d7f7faf68
commit
7becd0bff6
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ public:
|
|||
{
|
||||
assert(strength <= 10);
|
||||
|
||||
for(int i = 0; i < sampleCount; i++) {
|
||||
for(size_t i = 0; i < sampleCount; i++) {
|
||||
if(strength > 0) {
|
||||
int32_t sum = std::accumulate(&_prevSamples[0], &_prevSamples[strength], 0);
|
||||
buffer[i] = (int16_t)((sum + buffer[i]) / (strength + 1) * volume);
|
||||
|
|
Loading…
Add table
Reference in a new issue