commit | 1083475701e93d11997aa3e1bb68ac1a0e88bc1d | [log] [tgz] |
---|---|---|
author | Hsin-Yu Chao <hychao@google.com> | Mon Aug 02 11:41:11 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 12 12:10:19 2021 |
tree | 1a0b1a1877d86d749c00100ebbef86fc9c873b6b | |
parent | b29aa58066487076f7fde3b817a00b8f2eaf05a5 [diff] |
webrtc_apm: make APM process output to mono To work around an issue that APM might pick the 1st channel of input, process and then writes to all output channels. The exact condition to trigger this: (1) More than one channel in input (2) More than one channel in output (3) multi_channel_capture is false We're not ready to turn on multi_channel_capture so the best option is to address (2). This is an acceptable fix because it makes APM's behavior align with browser APM. BUG=b:190929775 TEST=Test with CRAS change to fake one channel to 0x00 cras_test_client -C /tmp/1 --effects aec hexdump /tmp/1 to verify it's not full of 0x00 Cq-Depend: chromium:3082081 Change-Id: If5f79af87507e33e7027ea8f12080811d0300cf8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/webrtc-apm/+/3067379 Reviewed-by: Per Åhgren <peah@chromium.org> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Per Åhgren <peah@chromium.org> Tested-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Hsinyu Chao <hychao@chromium.org>
APM is the audio processing module of WebRTC project in charge of effects like echo cancellation, noise suppression, etc. The purpose of this project is to build a standalone library for Chrome OS system side audio processing.
To update this package to latest upstream WebRC:
./script/sync-apm.sh path/to/webrtc-checkout/src .
emerge webrtc-apm
to see if anything breaks.