Changeset 3664 for pjproject/trunk/pjsip-apps/src/samples/mix.c
- Timestamp:
- Jul 19, 2011 3:42:28 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/pjsip-apps/src/samples/mix.c
r3553 r3664 182 182 len = pjmedia_wav_player_get_len(wav_input[i].port); 183 183 len = (pj_ssize_t)(len * 1.0 * clock_rate / 184 wav_input[i].port->info.clock_rate);184 PJMEDIA_PIA_SRATE(&wav_input[i].port->info)); 185 185 if (len > (pj_ssize_t)longest) 186 186 longest = len; … … 200 200 201 201 frame.buf = framebuf; 202 frame.size = cp->info.samples_per_frame* 2;202 frame.size = PJMEDIA_PIA_SPF(&cp->info) * 2; 203 203 pj_assert(frame.size <= sizeof(framebuf)); 204 204
Note: See TracChangeset
for help on using the changeset viewer.