Changeset 633 for pjproject/trunk/pjmedia/src/pjmedia/wav_writer.c
- Timestamp:
- Jul 29, 2006 11:14:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/wav_writer.c
r582 r633 70 70 pjmedia_wave_hdr wave_hdr; 71 71 pj_ssize_t size; 72 pj_str_t name; 72 73 pj_status_t status; 73 74 … … 87 88 88 89 /* Initialize port info. */ 89 fport->base.info.bits_per_sample = bits_per_sample; 90 fport->base.info.bytes_per_frame = samples_per_frame * bits_per_sample * 91 channel_count / 8; 92 fport->base.info.channel_count = channel_count; 93 fport->base.info.encoding_name = pj_str("pom"); 94 fport->base.info.has_info = 1; 95 pj_strdup2(pool, &fport->base.info.name, filename); 96 fport->base.info.need_info = 0; 97 fport->base.info.pt = 0xFF; 98 fport->base.info.clock_rate = sampling_rate; 99 fport->base.info.samples_per_frame = samples_per_frame; 100 fport->base.info.signature = SIGNATURE; 101 fport->base.info.type = PJMEDIA_TYPE_AUDIO; 102 90 pj_strdup2(pool, &name, filename); 91 pjmedia_port_info_init(&fport->base.info, &name, SIGNATURE, 92 sampling_rate, channel_count, bits_per_sample, 93 samples_per_frame); 94 103 95 fport->base.get_frame = &file_get_frame; 104 96 fport->base.put_frame = &file_put_frame; … … 221 213 222 214 fport->cb_size = pos; 223 fport->base. user_data = user_data;215 fport->base.port_data.pdata = user_data; 224 216 fport->cb = cb; 225 217 … … 294 286 fport->cb = NULL; 295 287 296 status = (*cb)(this_port, this_port-> user_data);288 status = (*cb)(this_port, this_port->port_data.pdata); 297 289 return status; 298 290 }
Note: See TracChangeset
for help on using the changeset viewer.