- Timestamp:
- Jan 12, 2008 3:32:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/mix.c
r1684 r1686 83 83 pjmedia_port *wavout; 84 84 struct wav_input wav_input[MAX_WAV]; 85 pj_s size_t longest = 0, processed;85 pj_size_t longest = 0, processed; 86 86 unsigned i, input_cnt = 0; 87 87 pj_status_t status; … … 174 174 len = (pj_ssize_t)(len * 1.0 * clock_rate / 175 175 wav_input[i].port->info.clock_rate); 176 if (len > longest)176 if (len > (pj_ssize_t)longest) 177 177 longest = len; 178 178 … … 196 196 CHECK( pjmedia_port_get_frame(cp, &frame) ); 197 197 198 if (frame.type != PJMEDIA_FRAME_TYPE_AUDIO) { 199 pj_bzero(frame.buf, frame.size); 200 frame.type = PJMEDIA_FRAME_TYPE_AUDIO; 201 } 202 198 203 CHECK( pjmedia_port_put_frame(wavout, &frame)); 199 204
Note: See TracChangeset
for help on using the changeset viewer.