mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
eb237f5e62
commit
dbc5b73a3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user