diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-04-21 02:17:07 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-04-21 02:17:07 +0000 |
commit | 6b05067e089b1536a2003d06ddd8bda2de50abb4 (patch) | |
tree | 0ade364c36a786158a3a6df418fbaa9788e2020f /pjmedia/include | |
parent | 824407dfad66205a82037b8212549a5a45e87195 (diff) |
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
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/sound_port.h | 15 |
1 files changed, 15 insertions, 0 deletions
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,9 +89,22 @@ 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 * port to the sound device. |