Ignore:
Timestamp:
Jul 17, 2008 4:59:07 PM (16 years ago)
Author:
nanang
Message:

Added pjsua command line option '--jb-max-size' to set jitter buffer max frames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r2152 r2154  
    241241    puts  ("                      Specify N=0 for instant close when unused."); 
    242242    puts  ("  --no-tones          Disable audible tones"); 
     243    puts  ("  --jb-max-size       Specify jitter buffer maximum size, in frames (default=-1)"); 
    243244 
    244245    puts  (""); 
     
    464465           OPT_TLS_NEG_TIMEOUT, OPT_TLS_SRV_NAME, 
    465466           OPT_CAPTURE_DEV, OPT_PLAYBACK_DEV, 
    466            OPT_CAPTURE_LAT, OPT_PLAYBACK_LAT, OPT_NO_TONES, 
     467           OPT_CAPTURE_LAT, OPT_PLAYBACK_LAT, OPT_NO_TONES, OPT_JB_MAX_SIZE, 
    467468           OPT_STDOUT_REFRESH, OPT_STDOUT_REFRESH_TEXT, 
    468469#ifdef _IONBF 
     
    565566        { "snd-auto-close", 1, 0, OPT_SND_AUTO_CLOSE}, 
    566567        { "no-tones",    0, 0, OPT_NO_TONES}, 
     568        { "jb-max-size", 1, 0, OPT_JB_MAX_SIZE}, 
    567569        { NULL, 0, 0, 0} 
    568570    }; 
     
    11791181        case OPT_NO_TONES: 
    11801182            cfg->no_tones = PJ_TRUE; 
     1183            break; 
     1184 
     1185        case OPT_JB_MAX_SIZE: 
     1186            cfg->media_cfg.jb_max = atoi(pj_optarg); 
    11811187            break; 
    11821188 
     
    15911597    if (config->no_tones) { 
    15921598        pj_strcat2(&cfg, "--no-tones\n"); 
     1599    } 
     1600    if (config->media_cfg.jb_max != -1) { 
     1601        pj_ansi_sprintf(line, "--jb-max-size %d\n",  
     1602                        config->media_cfg.jb_max); 
     1603        pj_strcat2(&cfg, line); 
    15931604    } 
    15941605 
Note: See TracChangeset for help on using the changeset viewer.