mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 10:09:36 -06:00
Merge pull request #1845 from adamdmoss/lfe1
Audio: Fix subwoofer output in software 5.1 decoding
This commit is contained in:
@ -361,7 +361,7 @@ void DPL2Decode(float *samples, int numsamples, float *out)
|
|||||||
out[cur + 0] = lf[k];
|
out[cur + 0] = lf[k];
|
||||||
out[cur + 1] = rf[k];
|
out[cur + 1] = rf[k];
|
||||||
out[cur + 2] = cf[k];
|
out[cur + 2] = cf[k];
|
||||||
LFE_buf[lfe_pos] = (out[0] + out[1]) / 2;
|
LFE_buf[lfe_pos] = (lf[k] + rf[k] + 2.0f * cf[k] + lr[k] + rr[k]) / 2.0f;
|
||||||
out[cur + 3] = FIRFilter(LFE_buf, lfe_pos, len125, len125, filter_coefs_lfe);
|
out[cur + 3] = FIRFilter(LFE_buf, lfe_pos, len125, len125, filter_coefs_lfe);
|
||||||
lfe_pos++;
|
lfe_pos++;
|
||||||
if (lfe_pos == len125)
|
if (lfe_pos == len125)
|
||||||
|
Reference in New Issue
Block a user