Audio: Fuller subwoofer processing for software 5.1 decode
Code was only using front-left and front-right to calculate bass, but HRTF code - which this was once based on - uses all five channels and this sounds fuller.
This commit is contained in:
parent
f324f3f68f
commit
7580069dea
|
@ -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[cur + 0] + out[cur + 1]) / 2;
|
||||
LFE_buf[lfe_pos] = (lf[k] + rf[k] + 2.0 * cf[k] + lr[k] + rr[k]) / 2.0;
|
||||
out[cur + 3] = FIRFilter(LFE_buf, lfe_pos, len125, len125, filter_coefs_lfe);
|
||||
lfe_pos++;
|
||||
if (lfe_pos == len125)
|
||||
|
|
Loading…
Reference in New Issue