diff options
author | Benny Prijono <bennylp@teluu.com> | 2014-02-12 04:54:12 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2014-02-12 04:54:12 +0000 |
commit | 60778565a38d1bce958033587283621228d2aeb6 (patch) | |
tree | 439aa76e224f4f75213e49874713d1435f23d80c /pjsip/include/pjsua2 | |
parent | 25239448c6c5a31a484eafd5211af84f79d5db2e (diff) |
More pjsua2 API (re #1519): changed default options value in createPlayer(), createRecorder(), and createPlaylist() to use 0 which is more natural
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4740 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua2')
-rw-r--r-- | pjsip/include/pjsua2/media.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pjsip/include/pjsua2/media.hpp b/pjsip/include/pjsua2/media.hpp index 4c4e65f4..9faa9c94 100644 --- a/pjsip/include/pjsua2/media.hpp +++ b/pjsip/include/pjsua2/media.hpp @@ -339,7 +339,7 @@ public: * PJMEDIA_FILE_NO_LOOP to prevent playback loop. */ void createPlayer(const string &file_name, - unsigned options=PJMEDIA_FILE_NO_LOOP) throw(Error); + unsigned options=0) throw(Error); /** * Create a file playlist media port, and automatically add the port @@ -354,10 +354,12 @@ public: */ void createPlaylist(const StringVector &file_names, const string &label="", - unsigned options=PJMEDIA_FILE_NO_LOOP) throw(Error); + unsigned options=0) throw(Error); /** * Set playback position. This operation is not valid for playlist. + * + * @param samples The desired playback position, in samples. */ void setPos(pj_uint32_t samples) throw(Error); @@ -409,12 +411,16 @@ public: * encodings. This value must be zero for now. * @param max_size Maximum file size. Specify zero or -1 to remove size * limitation. This value must be zero or -1 for now. - * @param options Optional options. + * @param options Optional options, which can be used to specify the + * recording file format. Supported options are + * PJMEDIA_FILE_WRITE_PCM, PJMEDIA_FILE_WRITE_ALAW, + * and PJMEDIA_FILE_WRITE_ULAW. Default is zero or + * PJMEDIA_FILE_WRITE_PCM. */ void createRecorder(const string &file_name, unsigned enc_type=0, pj_ssize_t max_size=0, - unsigned options=PJMEDIA_FILE_WRITE_PCM) throw(Error); + unsigned options=0) throw(Error); /** * Typecast from base class AudioMedia. This is useful for application |