Changeset 5170 for pjproject/trunk/pjsip-apps/src/samples/mix.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/mix.c
r3664 r5170 196 196 while (processed < longest + clock_rate * APPEND * 2 / 1000) { 197 197 pj_int16_t framebuf[PTIME * 48000 / 1000]; 198 pjmedia_port * cp = pjmedia_conf_get_master_port(conf);198 pjmedia_port *mp = pjmedia_conf_get_master_port(conf); 199 199 pjmedia_frame frame; 200 200 201 201 frame.buf = framebuf; 202 frame.size = PJMEDIA_PIA_SPF(& cp->info) * 2;202 frame.size = PJMEDIA_PIA_SPF(&mp->info) * 2; 203 203 pj_assert(frame.size <= sizeof(framebuf)); 204 204 205 CHECK( pjmedia_port_get_frame( cp, &frame) );205 CHECK( pjmedia_port_get_frame(mp, &frame) ); 206 206 207 207 if (frame.type != PJMEDIA_FRAME_TYPE_AUDIO) {
Note: See TracChangeset
for help on using the changeset viewer.