From 4ba1d660f11ec919235c7250233118e3fd53e2f9 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 6 Oct 2016 00:52:12 +0000 Subject: 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 --- pjsip-apps/src/samples/aectest.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pjsip-apps') 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); -- cgit v1.2.3