Ignore:
Timestamp:
Jun 30, 2009 3:02:06 PM (15 years ago)
Author:
nanang
Message:

Ticket #910:

  • Added a new API pjmedia_codec_passthrough_init2().
  • Updated the initialization steps of passthrough codec in pjsua_media.c, to configure the codecs (of passthrough codec) to be enabled based on audio device extended/encoded formats.
  • Minor update: added passthrough.h into pjmedia_codec.vcproj.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/passthrough.h

    r2506 r2825  
    4949PJ_BEGIN_DECL 
    5050 
     51 
     52/**  
     53 * Codec passthrough configuration settings. 
     54 */ 
     55typedef struct pjmedia_codec_passthrough_setting 
     56{ 
     57    unsigned             fmt_cnt;       /**< Number of encoding formats 
     58                                             to be enabled.             */ 
     59    pjmedia_format      *fmts;          /**< Encoding formats to be  
     60                                             enabled.                   */ 
     61} pjmedia_codec_passthrough_setting; 
     62 
     63 
    5164/** 
    52  * Initialize and register passthrough codecs factory to pjmedia endpoint. 
     65 * Initialize and register passthrough codecs factory to pjmedia endpoint, 
     66 * all supported encoding formats will be enabled. 
    5367 * 
    5468 * @param endpt     The pjmedia endpoint. 
     
    5872PJ_DECL(pj_status_t) pjmedia_codec_passthrough_init( pjmedia_endpt *endpt ); 
    5973 
     74 
     75/** 
     76 * Initialize and register passthrough codecs factory to pjmedia endpoint 
     77 * with only specified encoding formats enabled. 
     78 * 
     79 * @param endpt     The pjmedia endpoint. 
     80 * @param setting   The settings, see @pjmedia_codec_passthrough_setting. 
     81 * 
     82 * @return          PJ_SUCCESS on success. 
     83 */ 
     84PJ_DECL(pj_status_t) pjmedia_codec_passthrough_init2( 
     85                       pjmedia_endpt *endpt, 
     86                       const pjmedia_codec_passthrough_setting *setting); 
    6087 
    6188 
Note: See TracChangeset for help on using the changeset viewer.