Ignore:
Timestamp:
04/05/08 20:09:57 (17 years ago)
Author:
r2d
Message:

libmpcdec API cleanup and documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r389 r390  
    5050void  streaminfo_gain(mpc_streaminfo* si, const mpc_bits_reader * r_in);
    5151
     52// mpc_decoder.c
     53void mpc_decoder_reset_scf(mpc_decoder * d, int value);
    5254
    5355enum {
     
    137139
    138140/**
    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
    140143 * @param d demuxer context
    141144 * @return current stream position in bits
     
    330333                }
    331334        }
    332        
     335
    333336        d->bits_reader.buff -= size;
    334337}
    335338
     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 */
    336344mpc_int_t mpc_demux_chap_nb(mpc_demux * d)
    337345{
     
    341349}
    342350
     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 */
    343361mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size)
    344362{
     
    353371        return d->chap[chap_nb].sample;
    354372}
    355                
     373
    356374static mpc_status mpc_demux_header(mpc_demux * d)
    357375{
Note: See TracChangeset for help on using the changeset viewer.