Changeset 1482 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Oct 6, 2007 5:31:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.