Changeset 2229
- Timestamp:
- Aug 21, 2008 3:04:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r2225 r2229 2128 2128 for (i=0; i<PJ_ARRAY_SIZE(clock_rates); ++i) { 2129 2129 char errmsg[PJ_ERR_MSG_SIZE]; 2130 unsigned fps;2130 unsigned samples_per_frame; 2131 2131 2132 2132 PJ_LOG(4,(THIS_FILE, … … 2134 2134 "@%d Hz", clock_rates[i])); 2135 2135 2136 samples_per_frame = clock_rates[i] * 2137 pjsua_var.media_cfg.audio_frame_ptime * 2138 pjsua_var.media_cfg.channel_count / 1000; 2139 2136 2140 /* Create the sound device. Sound port will start immediately. */ 2137 fps = 1000 / pjsua_var.media_cfg.audio_frame_ptime;2138 2141 status = pjmedia_snd_port_create(pjsua_var.snd_pool, capture_dev, 2139 2142 playback_dev, 2140 2143 clock_rates[i], 2141 2144 pjsua_var.media_cfg.channel_count, 2142 clock_rates[i]/fps * 2143 pjsua_var.media_cfg.channel_count, 2145 samples_per_frame, 2144 2146 16, 0, &pjsua_var.snd_port); 2145 2147
Note: See TracChangeset
for help on using the changeset viewer.