Changeset 507 for pjproject/trunk


Ignore:
Timestamp:
Jun 14, 2006 8:04:55 PM (18 years ago)
Author:
bennylp
Message:

Implement --null-audio, --auto-loop, etc. in pjsua

Location:
pjproject/trunk
Files:
3 edited

Legend:

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

    r503 r507  
    587587            cfg->duration = my_atoi(pj_optarg); 
    588588            break; 
     589 
     590        default: 
     591            PJ_LOG(1,(THIS_FILE, "Invalid argument %s", argv[pj_optind-1])); 
     592            return -1; 
    589593        } 
    590594    } 
     
    20692073        if (status != PJ_SUCCESS) 
    20702074            goto on_error; 
     2075 
     2076        app_config.wav_port = pjsua_player_get_conf_port(app_config.wav_id); 
    20712077    } 
    20722078 
     
    21092115        goto on_error; 
    21102116 
     2117    /* Use null sound device? */ 
     2118    if (app_config.null_audio) { 
     2119        status = pjsua_set_null_snd_dev(); 
     2120        if (status != PJ_SUCCESS) 
     2121            return status; 
     2122    } 
     2123 
    21112124    return PJ_SUCCESS; 
    21122125 
  • pjproject/trunk/pjsip-apps/src/samples/streamutil.c

    r483 r507  
    476476     */ 
    477477    if (master_port) { 
    478         pjmedia_master_port_destroy(master_port); 
     478        pjmedia_master_port_destroy(master_port, PJ_TRUE); 
    479479        play_file_port = NULL; 
    480480        stream = NULL; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r503 r507  
    327327 
    328328    /* Create sound port if none is created yet */ 
    329     if (pjsua_var.snd_port == NULL) { 
     329    if (pjsua_var.snd_port==NULL && pjsua_var.null_snd==NULL) { 
    330330        status = pjsua_set_snd_dev(pjsua_var.cap_dev, pjsua_var.play_dev); 
    331331        if (status != PJ_SUCCESS) { 
Note: See TracChangeset for help on using the changeset viewer.