summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua2/media.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include/pjsua2/media.hpp')
-rw-r--r--pjsip/include/pjsua2/media.hpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/pjsip/include/pjsua2/media.hpp b/pjsip/include/pjsua2/media.hpp
index e642d171..4e42c574 100644
--- a/pjsip/include/pjsua2/media.hpp
+++ b/pjsip/include/pjsua2/media.hpp
@@ -767,7 +767,9 @@ public:
/**
* Select or change capture sound device. Application may call this
- * function at any time to replace current sound device.
+ * function at any time to replace current sound device. Calling this
+ * method will not change the state of the sound device (opened/closed).
+ * Note that this method will override the mode set by setSndDevMode().
*
* @param capture_dev Device ID of the capture device.
*/
@@ -775,7 +777,9 @@ public:
/**
* Select or change playback sound device. Application may call this
- * function at any time to replace current sound device.
+ * function at any time to replace current sound device. Calling this
+ * method will not change the state of the sound device (opened/closed).
+ * Note that this method will override the mode set by setSndDevMode().
*
* @param playback_dev Device ID of the playback device.
*/
@@ -807,6 +811,15 @@ public:
MediaPort *setNoDev();
/**
+ * Set sound device mode.
+ *
+ * @param mode The sound device mode, as bitmask combination
+ * of #pjsua_snd_dev_mode
+ *
+ */
+ void setSndDevMode(unsigned mode) const throw(Error);
+
+ /**
* Change the echo cancellation settings.
*
* The behavior of this function depends on whether the sound device is