Changeset 1972 for pjproject/trunk/pjmedia/src/pjmedia/splitcomb.c
- Timestamp:
- May 30, 2008 11:30:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/splitcomb.c
r1866 r1972 308 308 struct splitcomb *sc = (struct splitcomb*) splitcomb; 309 309 struct reverse_port *rport; 310 unsigned buf_cnt ;310 unsigned buf_cnt, ptime; 311 311 pjmedia_port *port; 312 312 pj_status_t status; … … 347 347 buf_cnt = MAX_BUF_CNT; 348 348 349 ptime = port->info.samples_per_frame * 1000 / port->info.clock_rate / 350 port->info.channel_count; 351 349 352 rport->max_burst = MAX_BURST; 350 353 rport->max_null_frames = MAX_NULL_FRAMES; … … 354 357 port->info.clock_rate, 355 358 port->info.samples_per_frame, 356 buf_cnt, -1, 0, 359 port->info.channel_count, 360 buf_cnt * ptime, 0, 357 361 &rport->buf[DIR_DOWNSTREAM].dbuf); 358 362 if (status != PJ_SUCCESS) { … … 364 368 port->info.clock_rate, 365 369 port->info.samples_per_frame, 366 buf_cnt, -1, 0, 370 port->info.channel_count, 371 buf_cnt * ptime, 0, 367 372 &rport->buf[DIR_UPSTREAM].dbuf); 368 373 if (status != PJ_SUCCESS) {
Note: See TracChangeset
for help on using the changeset viewer.