Fixed warning

This commit is contained in:
Souryo 2016-02-05 23:16:12 -05:00
parent 9d7f7faf68
commit 7becd0bff6

View file

@ -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);