- Timestamp:
- Dec 10, 2010 11:04:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/level.c
r2394 r3392 125 125 } 126 126 127 if ( file_port->info.samples_per_frame> NSAMPLES) {127 if (PJMEDIA_PIA_SPF(&file_port->info) > NSAMPLES) { 128 128 app_perror(THIS_FILE, "WAV clock rate is too big", PJ_EINVAL); 129 129 return 1; … … 146 146 147 147 level32 = pjmedia_calc_avg_signal(framebuf, 148 file_port->info.samples_per_frame);148 PJMEDIA_PIA_SPF(&file_port->info)); 149 149 level = pjmedia_linear2ulaw(level32) ^ 0xFF; 150 150 151 ms = i * 1000 * file_port->info.samples_per_frame/152 file_port->info.clock_rate;151 ms = i * 1000 * PJMEDIA_PIA_SPF(&file_port->info) / 152 PJMEDIA_PIA_SRATE(&file_port->info); 153 153 printf("%03d.%03d\t%7d\t%7d\n", 154 154 ms/1000, ms%1000, level, level32);
Note: See TracChangeset
for help on using the changeset viewer.