From 6b05067e089b1536a2003d06ddd8bda2de50abb4 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 21 Apr 2012 02:17:07 +0000 Subject: Fixed #1492: The echo options field in the media config and pjsua_set_ec() argument are ignored git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@4065 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia/sound_port.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pjmedia/include') diff --git a/pjmedia/include/pjmedia/sound_port.h b/pjmedia/include/pjmedia/sound_port.h index 4c47da43..61ba66bf 100644 --- a/pjmedia/include/pjmedia/sound_port.h +++ b/pjmedia/include/pjmedia/sound_port.h @@ -75,6 +75,8 @@ enum pjmedia_snd_port_option /** * This structure specifies the parameters to create the sound port. + * Use pjmedia_snd_port_param_default() to initialize this structure with + * default values (mostly zeroes) */ typedef struct pjmedia_snd_port_param { @@ -87,8 +89,21 @@ typedef struct pjmedia_snd_port_param * Sound port creation options. */ unsigned options; + + /** + * Echo cancellation options/flags. + */ + unsigned ec_options; + } pjmedia_snd_port_param; +/** + * Initialize pjmedia_snd_port_param with default values. + * + * @param prm The parameter. + */ +PJ_DECL(void) pjmedia_snd_port_param_default(pjmedia_snd_port_param *prm); + /** * This opaque type describes sound device port connection. * Sound device port is not a media port, but it is used to connect media -- cgit v1.2.3