commit | 725e6f10984e255750bf00d22241cf68a73f1dc5 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Sep 11 17:17:26 2018 -0700 |
committer | Andy Hung <hunga@google.com> | Tue Sep 11 18:08:45 2018 -0700 |
tree | a2828f403f289cb21c7b985a37d5eb25623ac958 | |
parent | 8d4991797071989e51b08dd58cbe2635ef544f95 [diff] [blame] |
AudioResampler: Accumulate for multichannel output Test: Talkback with multichannel USB Bug: 113697681 Change-Id: I1ca92f6c1abe71cea090bd01b31a4c45cb55e320
diff --git a/media/libaudioprocessing/AudioResamplerFirProcess.h b/media/libaudioprocessing/AudioResamplerFirProcess.h index a741677..9b70a1c 100644 --- a/media/libaudioprocessing/AudioResamplerFirProcess.h +++ b/media/libaudioprocessing/AudioResamplerFirProcess.h
@@ -90,7 +90,7 @@ Accumulator<CHANNELS-1, TO>::acc(coef, data); } inline void volume(TO*& out, TO gain) { - *out++ = volumeAdjust(value, gain); + *out++ += volumeAdjust(value, gain); Accumulator<CHANNELS-1, TO>::volume(out, gain); }