Changeset 903 for pjproject/trunk
- Timestamp:
- Jan 24, 2007 12:44:26 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r894 r903 59 59 pj_str_t codec_arg[32]; 60 60 pj_bool_t null_audio; 61 pj_str_t wav_file; 61 unsigned wav_count; 62 pj_str_t wav_files[32]; 62 63 pjsua_player_id wav_id; 63 64 pjsua_conf_port_id wav_port; … … 678 679 679 680 case OPT_PLAY_FILE: 680 cfg->wav_file = pj_str(pj_optarg);681 cfg->wav_files[cfg->wav_count++] = pj_str(pj_optarg); 681 682 break; 682 683 … … 1131 1132 if (config->auto_conf) 1132 1133 pj_strcat2(&cfg, "--auto-conf\n"); 1133 if (config->wav_file.slen) {1134 for (i=0; i<config->wav_count; ++i) { 1134 1135 pj_ansi_sprintf(line, "--play-file %s\n", 1135 config->wav_file .ptr);1136 config->wav_files[i].ptr); 1136 1137 pj_strcat2(&cfg, line); 1137 1138 } … … 2911 2912 2912 2913 /* Optionally registers WAV file */ 2913 if (app_config.wav_file.slen) { 2914 status = pjsua_player_create(&app_config.wav_file, 0, 2915 &app_config.wav_id); 2914 for (i=0; i<app_config.wav_count; ++i) { 2915 pjsua_player_id wav_id; 2916 2917 status = pjsua_player_create(&app_config.wav_files[i], 0, 2918 &wav_id); 2916 2919 if (status != PJ_SUCCESS) 2917 2920 goto on_error; 2918 2921 2919 app_config.wav_port = pjsua_player_get_conf_port(app_config.wav_id); 2922 if (app_config.wav_id == 0) { 2923 app_config.wav_id = wav_id; 2924 app_config.wav_port = pjsua_player_get_conf_port(app_config.wav_id); 2925 } 2920 2926 } 2921 2927 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r895 r903 759 759 pjmedia_port_destroy(port); 760 760 PJSUA_UNLOCK(); 761 pjsua_perror(THIS_FILE, "Unable to add file to conference bridge", 762 status); 761 763 return status; 762 764 }
Note: See TracChangeset
for help on using the changeset viewer.