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

Added primitive mpcdec

File:
1 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.
Note: See TracChangeset for help on using the changeset viewer.