remove redundant calculation

This commit is contained in:
Stephen Birarda 2013-06-06 11:47:14 -07:00
parent 19ab1816bb
commit 53fece29fa

View file

@ -237,9 +237,7 @@ int main(int argc, const char* argv[]) {
plateauAdditionOfSamples(delayedChannel[s], earlierSample);
}
int16_t currentSample = otherAgentBuffer->getNextOutput()[s];
currentSample *= attenuationCoefficient;
int16_t currentSample = otherAgentBuffer->getNextOutput()[s] * attenuationCoefficient;
plateauAdditionOfSamples(goodChannel[s], currentSample);