summaryrefslogtreecommitdiff
path: root/pjmedia/include/pjmedia/sound_port.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjmedia/include/pjmedia/sound_port.h')
-rw-r--r--pjmedia/include/pjmedia/sound_port.h15
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.