Changeset 70 for libmpcdec/branches/zorg/include
- Timestamp:
- 10/06/06 18:51:07 (18 years ago)
- Location:
- libmpcdec/branches/zorg/include/mpcdec
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpcdec/branches/zorg/include/mpcdec/mpcdec.h
r68 r70 46 46 #endif 47 47 48 enum { 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 48 54 typedef struct mpc_decoder_t mpc_decoder; 49 55 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. 52 57 /// \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.56 58 /// \param si streaminfo structure indicating format of source stream 57 59 /// \return TRUE if decoder was initalized successfully, FALSE otherwise 58 mpc_status mpc_ init_decoder(mpc_decoder **p_dec, mpc_streaminfo *si);60 mpc_status mpc_decoder_init(mpc_decoder **p_dec, mpc_reader *p_reader, mpc_streaminfo *si); 59 61 60 62 /// Releases input mpc decoder 61 void mpc_ exit_decoder(mpc_decoder *p_dec);63 void mpc_decoder_exit(mpc_decoder *p_dec); 62 64 63 65 /// Call this next after calling mpc_decoder_setup. -
libmpcdec/branches/zorg/include/mpcdec/reader.h
r69 r70 78 78 /// \param r p_reader handle to initialize 79 79 /// \param filename input filename to attach to the reader 80 mpc_status mpc_ init_stdio_reader(mpc_reader *p_reader, char *filename);80 mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, char *filename); 81 81 82 82 /// Release reader with default stdio file reader implementation. 83 83 /// 84 84 /// \param r reader handle to release 85 void mpc_ exit_stdio_reader(mpc_reader *p_reader);85 void mpc_reader_exit_stdio(mpc_reader *p_reader); 86 86 87 87 #ifdef __cplusplus -
libmpcdec/branches/zorg/include/mpcdec/streaminfo.h
r68 r70 94 94 } mpc_streaminfo; 95 95 96 /// Initializes a streaminfo structure.97 /// \param si streaminfo structure to initialize98 void mpc_streaminfo_init(mpc_streaminfo *si);99 100 96 /// Reads streaminfo header from the mpc stream supplied by r. 101 97 /// \param si si pointer to which info will be written 102 98 /// \param p_reader stream reader to supply raw data 103 99 /// \return error code 104 mpc_status mpc_streaminfo_ read(mpc_streaminfo *si, mpc_reader *p_reader);100 mpc_status mpc_streaminfo_init(mpc_streaminfo *si, mpc_reader *p_reader); 105 101 106 102 /// Gets length of stream si, in seconds.
Note: See TracChangeset
for help on using the changeset viewer.