diff options
| author | Adam Moss <c@yotes.com> | 2015-01-07 10:24:25 +0000 |
|---|---|---|
| committer | Adam Moss <c@yotes.com> | 2015-01-07 10:24:25 +0000 |
| commit | f324f3f68f30f1bc578d148c63f9756c890b1052 (patch) | |
| tree | 093e733044b81ce9515c0fc49158ff89891048db /Source/Core/AudioCommon/DPL2Decoder.cpp | |
| parent | 25fac0282cee6520329294b02c1e9ee08b7a8af6 (diff) | |
Audio: Fix subwoofer output in software 5.1 decoding
The FIR filter was only using the first sample of each input packet.
Diffstat (limited to 'Source/Core/AudioCommon/DPL2Decoder.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/DPL2Decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/DPL2Decoder.cpp b/Source/Core/AudioCommon/DPL2Decoder.cpp index 680d193c45..df1bb76fd5 100644 --- a/Source/Core/AudioCommon/DPL2Decoder.cpp +++ b/Source/Core/AudioCommon/DPL2Decoder.cpp @@ -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) |
