Audio: Fix subwoofer output in software 5.1 decoding

The FIR filter was only using the first sample of each input packet.
This commit is contained in:
Adam Moss 2015-01-07 10:24:25 +00:00
parent 25fac0282c
commit f324f3f68f
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ void DPL2Decode(float *samples, int numsamples, float *out)
out[cur + 0] = lf[k];
out[cur + 1] = rf[k];
out[cur + 2] = cf[k];
LFE_buf[lfe_pos] = (out[0] + out[1]) / 2;
LFE_buf[lfe_pos] = (out[cur + 0] + out[cur + 1]) / 2;
out[cur + 3] = FIRFilter(LFE_buf, lfe_pos, len125, len125, filter_coefs_lfe);
lfe_pos++;
if (lfe_pos == len125)