From 512f41cf91a5d5719696cbf8383832cbdca5a5a2 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 23 Nov 2006 07:32:13 +0000 Subject: Worked on the AEC. Apply constant delay bufferring for the AEC, and also consider sound device latency when applying EC. It sounds like working although it still doesn't perfectly cancel the echo. EC is now by default enabled in PJSUA. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@822 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/aectest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pjsip-apps/src/samples/aectest.c') diff --git a/pjsip-apps/src/samples/aectest.c b/pjsip-apps/src/samples/aectest.c index 5f150682..286abcbf 100644 --- a/pjsip-apps/src/samples/aectest.c +++ b/pjsip-apps/src/samples/aectest.c @@ -35,6 +35,7 @@ /* For logging purpose. */ #define THIS_FILE "playfile.c" #define PTIME 20 +#define TAIL_LENGTH 800 static const char *desc = " FILE \n" @@ -174,7 +175,7 @@ int main(int argc, char *argv[]) /* Customize AEC */ - pjmedia_snd_port_set_aec(snd, pool, 800); + pjmedia_snd_port_set_ec(snd, pool, TAIL_LENGTH, 0); /* Connect sound to the port */ pjmedia_snd_port_connect(snd, bidir_port); -- cgit v1.2.3