]> code.delx.au - pulseaudio/commit
resampler: Fix volume on downmix to mono
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 8 Aug 2012 14:01:38 +0000 (16:01 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Wed, 15 Aug 2012 07:27:48 +0000 (09:27 +0200)
commitff4af902cf4ac07c5f1da3b6dacbb3195c7c222d
treed8c952c64d243e22a167c7aaee738e26d9ae2cf0
parent9887cd0a288f6af12b0c53e0b4f3d7fcd3511c71
resampler: Fix volume on downmix to mono

Patch credit: kwanghui

When downmixing to mono, we should average the signal instead of
summing it to avoid clipping.

BugLink: http://pulseaudio.org/ticket/934
BugLink: https://bugs.launchpad.net/bugs/416190
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/resampler.c