diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-10-06 00:52:12 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-10-06 00:52:12 +0000 |
commit | 4ba1d660f11ec919235c7250233118e3fd53e2f9 (patch) | |
tree | 75a5f2bc20710083e3c461acd2fa886f55c55df7 /pjsip-apps/src | |
parent | c84878c894b93a322029625f0d16b00a4e66dcb0 (diff) |
Re #1954: Add option to use WebRtc EC in aectest sample app
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5446 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src')
-rw-r--r-- | pjsip-apps/src/samples/aectest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/aectest.c b/pjsip-apps/src/samples/aectest.c index 645fd88d..ab887da2 100644 --- a/pjsip-apps/src/samples/aectest.c +++ b/pjsip-apps/src/samples/aectest.c @@ -59,7 +59,7 @@ static const char *desc = " Default is 25 ms. See note below. \n" " -l Set the echo tail length in ms. Default is 200 ms \n" " -r Set repeat count (default=1) \n" -" -a Algorithm: 0=default, 1=speex, 3=echo suppress \n" +" -a Algorithm: 0=default, 1=speex, 2=echo suppress, 3=WebRtc \n" " -i Interactive \n" "\n" " Note that for the AEC internal buffering mechanism, it is required\n" @@ -123,12 +123,16 @@ int main(int argc, char *argv[]) switch (alg) { case 0: opt = 0; + break; case 1: opt = PJMEDIA_ECHO_SPEEX; break; - case 3: + case 2: opt = PJMEDIA_ECHO_SIMPLE; break; + case 3: + opt = PJMEDIA_ECHO_WEBRTC; + break; default: puts("Invalid algorithm"); puts(desc); |