summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/samples/aectest.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-11-23 07:32:13 +0000
committerBenny Prijono <bennylp@teluu.com>2006-11-23 07:32:13 +0000
commit512f41cf91a5d5719696cbf8383832cbdca5a5a2 (patch)
treee13709f9f93e6c816fc9cb3d300f8da4cce03de4 /pjsip-apps/src/samples/aectest.c
parent2a15cf2b1f0fb02d9a34c2d5f81bf3a402cd244a (diff)
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
Diffstat (limited to 'pjsip-apps/src/samples/aectest.c')
-rw-r--r--pjsip-apps/src/samples/aectest.c3
1 files changed, 2 insertions, 1 deletions
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);