Changeset 390 for libmpc/trunk/libmpcdec/mpc_demux.c
- Timestamp:
- 04/05/08 20:09:57 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_demux.c
r389 r390 50 50 void streaminfo_gain(mpc_streaminfo* si, const mpc_bits_reader * r_in); 51 51 52 // mpc_decoder.c 53 void mpc_decoder_reset_scf(mpc_decoder * d, int value); 52 54 53 55 enum { … … 137 139 138 140 /** 139 * return the current position in the stream (in bits) 141 * return the current position in the stream (in bits) from the beginning 142 * of the file 140 143 * @param d demuxer context 141 144 * @return current stream position in bits … … 330 333 } 331 334 } 332 335 333 336 d->bits_reader.buff -= size; 334 337 } 335 338 339 /** 340 * Gets the number of chapters in the stream 341 * @param d pointer to a musepack demuxer 342 * @return the number of chapters found in the stream 343 */ 336 344 mpc_int_t mpc_demux_chap_nb(mpc_demux * d) 337 345 { … … 341 349 } 342 350 351 /** 352 * Gets datas associated to a given chapter 353 * You can pass 0 for tag and tag_size if you don't needs the tag information 354 * The chapter tag is an APEv2 tag without the preamble 355 * @param d pointer to a musepack demuxer 356 * @param chap_nb chapter number you want datas (from 0 to mpc_demux_chap_nb(d) - 1) 357 * @param tag will return a pointer to the chapter tag datas 358 * @param tag_size will be filed with the tag data size (0 if no tag for this chapter) 359 * @return the sample where the chapter starts 360 */ 343 361 mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size) 344 362 { … … 353 371 return d->chap[chap_nb].sample; 354 372 } 355 373 356 374 static mpc_status mpc_demux_header(mpc_demux * d) 357 375 {
Note: See TracChangeset
for help on using the changeset viewer.