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-${BOARD} adhd
to see if anything breaks.There are three ways to build/test this package:
The first one is the easiest to iterate with, and the last one is closest to the way ChromiumOS infra actually use to build OS images. The second one is somewhere in-between.
In the directory same as this README file, run:
bazel test //:tests
If you see pkg-config errors you are missing some system dependencies. (Googlers: follow go/cras-dev#prerequisites to install dependencies on gLinux)
Clone https://chromium.googlesource.com/chromiumos/third_party/adhd/ to the directory adjacent to this directory, so that adhd
and webrtc-apm
(this repository) are in the same directory.
NOTE: If you use repo
to set up a ChromiumOS checkout, the directory tree is already set up this way.
In the adhd
directory, run:
bazel test //... @webrtc_apm//:tests
There are some configs you can use, such as --config=local-clang
and --config=asan
. Refer to adhd's bazelrc for details.
If you see pkg-config errors you are missing some system dependencies. (Googlers: follow go/cras-dev#prerequisites to install dependencies on gLinux)
Example:
FEATURES=test USE=asan emerge-${BOARD} adhd