Changeset 4740


Ignore:
Timestamp:
Feb 12, 2014 4:54:12 AM (11 years ago)
Author:
bennylp
Message:

More pjsua2 API (re #1519): changed default options value in createPlayer(), createRecorder(), and createPlaylist() to use 0 which is more natural

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/media.hpp

    r4704 r4740  
    340340     */ 
    341341    void createPlayer(const string &file_name, 
    342                       unsigned options=PJMEDIA_FILE_NO_LOOP) throw(Error); 
     342                      unsigned options=0) throw(Error); 
    343343 
    344344    /** 
     
    355355    void createPlaylist(const StringVector &file_names, 
    356356                        const string &label="", 
    357                         unsigned options=PJMEDIA_FILE_NO_LOOP) throw(Error); 
     357                        unsigned options=0) throw(Error); 
    358358 
    359359    /** 
    360360     * Set playback position. This operation is not valid for playlist. 
     361     * 
     362     * @param samples      The desired playback position, in samples. 
    361363     */ 
    362364    void setPos(pj_uint32_t samples) throw(Error); 
     
    410412     * @param max_size   Maximum file size. Specify zero or -1 to remove size 
    411413     *                   limitation. This value must be zero or -1 for now. 
    412      * @param options    Optional options. 
     414     * @param options    Optional options, which can be used to specify the 
     415     *                   recording file format. Supported options are 
     416     *                   PJMEDIA_FILE_WRITE_PCM, PJMEDIA_FILE_WRITE_ALAW, 
     417     *                   and PJMEDIA_FILE_WRITE_ULAW. Default is zero or 
     418     *                   PJMEDIA_FILE_WRITE_PCM. 
    413419     */ 
    414420    void createRecorder(const string &file_name, 
    415421                        unsigned enc_type=0, 
    416422                        pj_ssize_t max_size=0, 
    417                         unsigned options=PJMEDIA_FILE_WRITE_PCM) throw(Error); 
     423                        unsigned options=0) throw(Error); 
    418424 
    419425    /** 
Note: See TracChangeset for help on using the changeset viewer.