Changeset 2004 for pjproject


Ignore:
Timestamp:
Jun 10, 2008 6:56:10 PM (16 years ago)
Author:
nanang
Message:

Updated default speex quality settings and reenabled pjsua to set Speex codec quality based on media quality config

Location:
pjproject/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/config_site_sample.h

    r1979 r2004  
    2828#   define PJMEDIA_RESAMPLE_IMP         PJMEDIA_RESAMPLE_LIBRESAMPLE 
    2929#   define PJMEDIA_WSOLA_IMP            PJMEDIA_WSOLA_IMP_WSOLA_LITE 
     30 
     31    /* Speex default quality settings */ 
     32#   define PJSUA_DEFAULT_CODEC_QUALITY  5 
     33#   define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY  5 
    3034#endif 
    3135 
     
    101105#   define PJSUA_MAX_BUDDIES            32 
    102106 
     107    /* Speex default quality settings */ 
     108#   define PJSUA_DEFAULT_CODEC_QUALITY  5 
     109#   define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY  5 
    103110#endif 
    104111 
  • pjproject/trunk/pjmedia/include/pjmedia-codec/config.h

    r1965 r2004  
    6060 
    6161/** 
    62  * Speex codec default quality setting. 
     62 * Speex codec default quality setting. Please note that pjsua-lib may override 
     63 * this setting via its codec quality setting (i.e PJSUA_DEFAULT_CODEC_QUALITY). 
    6364 */ 
    6465#ifndef PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY 
    65 #   define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY      5 
     66#   define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY      8 
    6667#endif 
    6768 
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r1990 r2004  
    36753675 */ 
    36763676#ifndef PJSUA_DEFAULT_CODEC_QUALITY 
    3677 #   define PJSUA_DEFAULT_CODEC_QUALITY  5 
     3677#   define PJSUA_DEFAULT_CODEC_QUALITY  8 
    36783678#endif 
    36793679 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1998 r2004  
    9292#if PJMEDIA_HAS_SPEEX_CODEC 
    9393    /* Register speex. */ 
    94     status = pjmedia_codec_speex_init_default(pjsua_var.med_endpt); 
     94    status = pjmedia_codec_speex_init(pjsua_var.med_endpt,   
     95                                      0,  
     96                                      pjsua_var.media_cfg.quality,   
     97                                      -1); 
    9598    if (status != PJ_SUCCESS) { 
    9699        pjsua_perror(THIS_FILE, "Error initializing Speex codec", 
Note: See TracChangeset for help on using the changeset viewer.