Ignore:
Timestamp:
Dec 26, 2006 9:18:11 PM (14 years ago)
Author:
bennylp
Message:

Ticket #54: added ability to modify some codec parameters on the fly

File:
1 edited

Legend:

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

    r637 r867  
    315315     */ 
    316316    pj_status_t (*open)(pjmedia_codec *codec,  
    317                         pjmedia_codec_param *param ); 
     317                        const pjmedia_codec_param *param ); 
    318318 
    319319    /**  
     
    327327    pj_status_t (*close)(pjmedia_codec *codec); 
    328328 
     329    /**  
     330     * Modify the codec parameter after the codec is open.  
     331     * Note that not all codec parameters can be modified during run-time.  
     332     * When the parameter cannot be changed, this function will return  
     333     * non-PJ_SUCCESS, and the original parameters will not be changed. 
     334     * 
     335     * Application can expect changing trivial codec settings such as 
     336     * changing VAD setting to succeed. 
     337     * 
     338     * @param codec     The codec instance. 
     339     * @param param     The new codec parameter. 
     340     * 
     341     * @return          PJ_SUCCESS on success. 
     342     */ 
     343    pj_status_t (*modify)(pjmedia_codec *codec,  
     344                          const pjmedia_codec_param *param ); 
    329345 
    330346    /** 
Note: See TracChangeset for help on using the changeset viewer.