diff options
author | Riza Sulistyo <riza@teluu.com> | 2016-04-04 01:44:10 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2016-04-04 01:44:10 +0000 |
commit | fbbfd915b0225c657920a6696f460a687f28cc6b (patch) | |
tree | 3e8a5bce9748861c1d81f045aae0bb5a2154f44b /pjsip/include/pjsua2/media.hpp | |
parent | 98de8381dbe5c50477e03d7571d53a836b4500fa (diff) |
Re #1908: Implement new API to open speaker only in pjsua/pjsua2.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5273 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua2/media.hpp')
-rw-r--r-- | pjsip/include/pjsua2/media.hpp | 17 |
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 |