Changeset 1675 for pjproject/trunk


Ignore:
Timestamp:
Jan 10, 2008 12:09:26 PM (17 years ago)
Author:
bennylp
Message:

Added PJSUA_DEFAULT_AUDIO_FRAME_PTIME setting and changed default iLBC mode from 20 to 30

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r1600 r1675  
    35423542 
    35433543/** 
    3544  * Max ports in the conference bridge. 
     3544 * Max ports in the conference bridge. This setting is the default value 
     3545 * for pjsua_media_config.max_media_ports. 
    35453546 */ 
    35463547#ifndef PJSUA_MAX_CONF_PORTS 
     
    35493550 
    35503551/** 
    3551  * The default clock rate to be used by the conference bridge. 
     3552 * The default clock rate to be used by the conference bridge. This setting 
     3553 * is the default value for pjsua_media_config.clock_rate. 
    35523554 */ 
    35533555#ifndef PJSUA_DEFAULT_CLOCK_RATE 
     
    35563558 
    35573559/** 
    3558  * Default codec quality settings. 
     3560 * Default frame length in the conference bridge. This setting 
     3561 * is the default value for pjsua_media_config.audio_frame_ptime. 
     3562 */ 
     3563#ifndef PJSUA_DEFAULT_AUDIO_FRAME_PTIME 
     3564#   define PJSUA_DEFAULT_AUDIO_FRAME_PTIME  10 
     3565#endif 
     3566 
     3567 
     3568/** 
     3569 * Default codec quality settings. This setting is the default value 
     3570 * for pjsua_media_config.quality. 
    35593571 */ 
    35603572#ifndef PJSUA_DEFAULT_CODEC_QUALITY 
     
    35633575 
    35643576/** 
    3565  * Default iLBC mode. 
     3577 * Default iLBC mode. This setting is the default value for  
     3578 * pjsua_media_config.ilbc_mode. 
    35663579 */ 
    35673580#ifndef PJSUA_DEFAULT_ILBC_MODE 
    3568 #   define PJSUA_DEFAULT_ILBC_MODE      20 
     3581#   define PJSUA_DEFAULT_ILBC_MODE      30 
    35693582#endif 
    35703583 
    35713584/** 
    3572  * The default echo canceller tail length. 
     3585 * The default echo canceller tail length. This setting 
     3586 * is the default value for pjsua_media_config.ec_tail_len. 
    35733587 */ 
    35743588#ifndef PJSUA_DEFAULT_EC_TAIL_LEN 
     
    36213635     * latency. 
    36223636     * 
    3623      * Default: 10 (miliseconds) 
     3637     * Default value: PJSUA_DEFAULT_AUDIO_FRAME_PTIME 
    36243638     */ 
    36253639    unsigned            audio_frame_ptime; 
     
    36313645     * large enough to support all of them. However, the larger 
    36323646     * the value, the more computations are performed. 
     3647     * 
     3648     * Default value: PJSUA_MAX_CONF_PORTS 
    36333649     */ 
    36343650    unsigned            max_media_ports; 
     
    36813697     * iLBC mode (20 or 30). 
    36823698     * 
    3683      * Default: 20 (PJSUA_DEFAULT_ILBC_MODE) 
     3699     * Default: 30 (PJSUA_DEFAULT_ILBC_MODE) 
    36843700     */ 
    36853701    unsigned            ilbc_mode; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r1636 r1675  
    155155 
    156156    cfg->clock_rate = PJSUA_DEFAULT_CLOCK_RATE; 
    157     cfg->audio_frame_ptime = 10; 
    158     cfg->max_media_ports = 32; 
     157    cfg->audio_frame_ptime = PJSUA_DEFAULT_AUDIO_FRAME_PTIME; 
     158    cfg->max_media_ports = PJSUA_MAX_CONF_PORTS; 
    159159    cfg->has_ioqueue = PJ_TRUE; 
    160160    cfg->thread_cnt = 1; 
Note: See TracChangeset for help on using the changeset viewer.