Changeset 518 for pjproject/trunk/pjsip-apps/src/samples/resampleplay.c
- Timestamp:
- Jun 18, 2006 2:02:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/resampleplay.c
r412 r518 128 128 129 129 /* Create the resample port. */ 130 status = pjmedia_resample_port_create( pool, 1, 1, 131 file_port->info.clock_rate, 132 sampling_rate, 133 channel_count, 134 (unsigned)( 135 samples_per_frame * 1.0 * 136 file_port->info.clock_rate / 137 sampling_rate), 130 status = pjmedia_resample_port_create( pool, file_port, 131 sampling_rate, 0, 138 132 &resample_port); 139 133 if (status != PJ_SUCCESS) { 140 134 app_perror(THIS_FILE, "Unable to create resample port", status); 141 return 1;142 }143 144 /* Connect resample port to file port */145 status = pjmedia_port_connect( pool, resample_port, file_port);146 if (status != PJ_SUCCESS) {147 app_perror(THIS_FILE, "Error connecting ports", status);148 135 return 1; 149 136 }
Note: See TracChangeset
for help on using the changeset viewer.