Ignore:
Timestamp:
Dec 17, 2019 10:06:01 AM (4 years ago)
Author:
riza
Message:

Close #2258: Add PJSUA2 API to get and set OPUS codec setting.

File:
1 edited

Legend:

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

    r6117 r6119  
    24422442 
    24432443/** 
     2444 * Opus codec parameters setting; 
     2445 */ 
     2446struct CodecOpusConfig 
     2447{ 
     2448    unsigned   sample_rate; /**< Sample rate in Hz.                     */ 
     2449    unsigned   channel_cnt; /**< Number of channels.                    */ 
     2450    unsigned   frm_ptime;   /**< Frame time in msec.                    */ 
     2451    unsigned   bit_rate;    /**< Encoder bit rate in bps.               */ 
     2452    unsigned   packet_loss; /**< Encoder's expected packet loss pct.    */ 
     2453    unsigned   complexity;  /**< Encoder complexity, 0-10(10 is highest)*/ 
     2454    bool       cbr;         /**< Constant bit rate?                     */ 
     2455 
     2456    pjmedia_codec_opus_config toPj() const; 
     2457    void fromPj(const pjmedia_codec_opus_config &config); 
     2458}; 
     2459 
     2460/** 
    24442461 * Detailed codec attributes used in configuring a video codec and in querying 
    24452462 * the capability of video codec factories.  
Note: See TracChangeset for help on using the changeset viewer.