Ignore:
Timestamp:
10/06/06 18:51:07 (18 years ago)
Author:
zorg
Message:

Added primitive mpcdec

Location:
libmpcdec/branches/zorg/include/mpcdec
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libmpcdec/branches/zorg/include/mpcdec/mpcdec.h

    r68 r70  
    4646#endif
    4747
     48enum {
     49    MPC_FRAME_LENGTH          = (36 * 32),              ///< Samples per mpc frame
     50    MPC_DECODER_BUFFER_LENGTH = (MPC_FRAME_LENGTH * 4), ///< Required buffer size for decoder
     51    MPC_DECODER_SYNTH_DELAY   = 481
     52};
     53
    4854typedef struct mpc_decoder_t mpc_decoder;
    4955
    50 /// Sets up decoder library.
    51 /// Call this first when preparing to decode an mpc stream.
     56/// Initializes mpc decoder with the supplied stream info parameters.
    5257/// \param p_reader reader that will supply raw data to the decoder
    53 void mpc_decoder_setup(mpc_decoder *p_dec, mpc_reader *p_reader);
    54 
    55 /// Initializes mpc decoder with the supplied stream info parameters.
    5658/// \param si streaminfo structure indicating format of source stream
    5759/// \return TRUE if decoder was initalized successfully, FALSE otherwise   
    58 mpc_status mpc_init_decoder(mpc_decoder **p_dec, mpc_streaminfo *si);
     60mpc_status mpc_decoder_init(mpc_decoder **p_dec, mpc_reader *p_reader, mpc_streaminfo *si);
    5961
    6062/// Releases input mpc decoder
    61 void mpc_exit_decoder(mpc_decoder *p_dec);
     63void mpc_decoder_exit(mpc_decoder *p_dec);
    6264
    6365/// Call this next after calling mpc_decoder_setup.
  • libmpcdec/branches/zorg/include/mpcdec/reader.h

    r69 r70  
    7878/// \param r p_reader handle to initialize
    7979/// \param filename input filename to attach to the reader
    80 mpc_status mpc_init_stdio_reader(mpc_reader *p_reader, char *filename);
     80mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, char *filename);
    8181
    8282/// Release reader with default stdio file reader implementation.
    8383///
    8484/// \param r reader handle to release
    85 void mpc_exit_stdio_reader(mpc_reader *p_reader);
     85void mpc_reader_exit_stdio(mpc_reader *p_reader);
    8686
    8787#ifdef __cplusplus
  • libmpcdec/branches/zorg/include/mpcdec/streaminfo.h

    r68 r70  
    9494} mpc_streaminfo;
    9595
    96 /// Initializes a streaminfo structure.
    97 /// \param si streaminfo structure to initialize
    98 void mpc_streaminfo_init(mpc_streaminfo *si);
    99 
    10096/// Reads streaminfo header from the mpc stream supplied by r.
    10197/// \param si si pointer to which info will be written
    10298/// \param p_reader stream reader to supply raw data
    10399/// \return error code
    104 mpc_status mpc_streaminfo_read(mpc_streaminfo *si, mpc_reader *p_reader);
     100mpc_status mpc_streaminfo_init(mpc_streaminfo *si, mpc_reader *p_reader);
    105101
    106102/// Gets length of stream si, in seconds.
Note: See TracChangeset for help on using the changeset viewer.