b=890528 Record silence in the delay buffer when there is no input, to avoid echos r=ehsan

--HG--
extra : transplant_source : x%A5%D0%A8%F9%7B%7DX%AA%C5%04%7E.%2C%B6%3A%EF%3F%08%5E
This commit is contained in:
Karl Tomlinson 2013-09-02 12:59:34 +12:00
parent eb237f5e62
commit dbc5b73a3e

View File

@ -38,9 +38,7 @@ DelayProcessor::Process(const double *aPerFrameDelays,
0.0, static_cast<double>(mMaxDelayFrames));
// Write the input sample to the correct location in our buffer
if (input) {
buffer[writeIndex] = input[i];
}
buffer[writeIndex] = input ? input[i] : 0.0f;
// Now, determine the correct read position. We adjust the read position to be
// from currentDelayFrames frames in the past. We also interpolate the two input