diff options
| author | skidau <skidau@gmail.com> | 2015-01-09 11:59:29 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-01-09 11:59:29 +1100 |
| commit | 530f894d8715d76886910d605083995c22a78461 (patch) | |
| tree | 636b0115160e0e103ad64563932c5b5712d9f827 /Source/Core/AudioCommon/DPL2Decoder.cpp | |
| parent | ac33423db58e110fd10b39b3c5b6adc4f2a4c8cc (diff) | |
| parent | b1c9f56acd967d4c06bb85c4e85c1706876f6c8d (diff) | |
Merge pull request #1845 from adamdmoss/lfe1
Audio: Fix subwoofer output in software 5.1 decoding
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..da16ee4af8 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] = (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); lfe_pos++; if (lfe_pos == len125) |
