diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-08-04 18:27:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-08-04 18:27:19 +0000 |
commit | 3474adb4cba6d8f0e3a2858a59f64683ae8153ad (patch) | |
tree | a0524cf2c80fafe1691a2da330bf5352b2b5c087 /pjsip-apps/src/samples/aectest.c | |
parent | ca972f8eb9678ff162c6e7acc4059b8bec5fb43c (diff) |
More work on the AEC (including changes in PJSUA), embed the AEC in sound_port, reduce DirectSound buffer from 32 to 16, and fixed ARM compilation for MSVC WinCE target.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@648 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples/aectest.c')
-rw-r--r-- | pjsip-apps/src/samples/aectest.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pjsip-apps/src/samples/aectest.c b/pjsip-apps/src/samples/aectest.c index a2770728..85250024 100644 --- a/pjsip-apps/src/samples/aectest.c +++ b/pjsip-apps/src/samples/aectest.c @@ -160,13 +160,6 @@ int main(int argc, char *argv[]) /* Create bidirectional port from the WAV ports */ pjmedia_bidirectional_port_create(pool, play_port, rec_port, &bidir_port); - /* Create AEC port */ - if (0) { - pjmedia_aec_port_create(pool, bidir_port, - bidir_port->info.clock_rate * 200 / 1000, - &bidir_port); - } - /* Create sound device. */ status = pjmedia_snd_port_create(pool, -1, -1, play_port->info.clock_rate, @@ -180,6 +173,9 @@ int main(int argc, char *argv[]) } + /* Customize AEC */ + pjmedia_snd_port_set_aec(snd, pool, 800); + /* Connect sound to the port */ pjmedia_snd_port_connect(snd, bidir_port); |