diff options
author | Chris Robinson <[email protected]> | 2016-04-15 17:31:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-04-15 17:31:04 -0700 |
commit | bd65f64d0506be6f20d69311c9a6ade3d0a8d01d (patch) | |
tree | 7c4fb19c07978556b815dc666f4b90bde4003522 /Alc/effects/echo.c | |
parent | e27fad90dec951f75b40004dcd32470ca404921d (diff) |
Avoid mixing all coefficients together when only some are used
Diffstat (limited to 'Alc/effects/echo.c')
-rw-r--r-- | Alc/effects/echo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c index 1f5925ef..00bf5d9f 100644 --- a/Alc/effects/echo.c +++ b/Alc/effects/echo.c @@ -104,13 +104,13 @@ static ALvoid ALechoState_update(ALechoState *state, const ALCdevice *Device, co /* First tap panning */ CalcXYZCoeffs(-lrpan, 0.0f, 0.0f, coeffs); - ComputePanningGains(Device->Dry.AmbiCoeffs, Device->Dry.NumChannels, coeffs, - gain, state->Gain[0]); + ComputePanningGains(Device->Dry.AmbiCoeffs, Device->Dry.NumChannels, + Device->Dry.CoeffCount, coeffs, gain, state->Gain[0]); /* Second tap panning */ CalcXYZCoeffs( lrpan, 0.0f, 0.0f, coeffs); - ComputePanningGains(Device->Dry.AmbiCoeffs, Device->Dry.NumChannels, coeffs, - gain, state->Gain[1]); + ComputePanningGains(Device->Dry.AmbiCoeffs, Device->Dry.NumChannels, + Device->Dry.CoeffCount, coeffs, gain, state->Gain[1]); } static ALvoid ALechoState_process(ALechoState *state, ALuint SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) |