Changeset 1482
- Timestamp:
- Oct 6, 2007 5:31:09 PM (17 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r1477 r1482 1745 1745 */ 1746 1746 #ifndef PJSUA_SECURE_SCHEME 1747 # define PJSUA_SECURE_SCHEME "sip "1747 # define PJSUA_SECURE_SCHEME "sips" 1748 1748 #endif 1749 1749 … … 3467 3467 3468 3468 /** 3469 * Specify audio frame ptime. The value here will affect the 3470 * samples per frame of both the sound device and the conference 3471 * bridge. Specifying lower ptime will normally reduce the 3472 * latency. 3473 * 3474 * Default: 20 (miliseconds) 3475 */ 3476 unsigned audio_frame_ptime; 3477 3478 /** 3469 3479 * Specify maximum number of media ports to be created in the 3470 3480 * conference bridge. Since all media terminate in the bridge … … 3506 3516 3507 3517 /** 3508 * Specify default ptime.3518 * Specify default codec ptime. 3509 3519 * 3510 3520 * Default: 0 (codec specific) -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r1470 r1482 155 155 156 156 cfg->clock_rate = PJSUA_DEFAULT_CLOCK_RATE; 157 cfg->audio_frame_ptime = 10; 157 158 cfg->max_media_ports = 32; 158 159 cfg->has_ioqueue = PJ_TRUE; … … 1881 1882 1882 1883 p = pjsip_parse_uri(pool, url, len, 0); 1883 if (!p || pj_stricmp2(pjsip_uri_get_scheme(p), "sip") != 0) 1884 if (!p || (pj_stricmp2(pjsip_uri_get_scheme(p), "sip") != 0 && 1885 pj_stricmp2(pjsip_uri_get_scheme(p), "sips") != 0)) 1886 { 1884 1887 p = NULL; 1888 } 1885 1889 1886 1890 pj_pool_release(pool); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r1465 r1482 23 23 #define THIS_FILE "pjsua_media.c" 24 24 25 #define PTIME 2026 #define FPS (1000/PTIME)27 25 #define DEFAULT_RTP_PORT 4000 28 26 … … 156 154 */ 157 155 pjsua_var.mconf_cfg.samples_per_frame = pjsua_var.media_cfg.clock_rate * 158 PTIME / 1000; 156 pjsua_var.media_cfg.audio_frame_ptime / 157 1000; 159 158 pjsua_var.mconf_cfg.channel_count = 1; 160 159 pjsua_var.mconf_cfg.bits_per_sample = 16; … … 1649 1648 for (i=0; i<PJ_ARRAY_SIZE(clock_rates); ++i) { 1650 1649 char errmsg[PJ_ERR_MSG_SIZE]; 1650 unsigned fps; 1651 1651 1652 1652 PJ_LOG(4,(THIS_FILE, … … 1655 1655 1656 1656 /* Create the sound device. Sound port will start immediately. */ 1657 fps = 1000 / pjsua_var.media_cfg.audio_frame_ptime; 1657 1658 status = pjmedia_snd_port_create(pjsua_var.pool, capture_dev, 1658 1659 playback_dev, 1659 1660 clock_rates[i], 1, 1660 clock_rates[i]/ FPS,1661 clock_rates[i]/fps, 1661 1662 16, 0, &pjsua_var.snd_port); 1662 1663
Note: See TracChangeset
for help on using the changeset viewer.