Changeset 68 for libmpcdec/branches/zorg/src/internal.h
- Timestamp:
- 10/06/06 17:14:05 (18 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
libmpcdec/branches/zorg/src/internal.h
r63 r68 32 32 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 33 */ 34 35 34 /// \file internal.h 36 35 /// Definitions and structures used only internally by the libmpcdec. 36 #ifndef _MPCDEC_INTERNAL_H_ 37 #define _MPCDEC_INTERNAL_H_ 38 #ifdef WIN32 39 #pragma once 40 #endif 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 37 44 38 #ifndef _mpcdec_internal_h 39 #define _mpcdec_internal_h 40 45 #include <mpcdec/mpcdec.h> 41 46 42 47 enum { 43 MPC_DECODER_SYNTH_DELAY = 481 48 MPC_FRAME_LENGTH = (36 * 32), ///< Samples per mpc frame 49 MPC_DECODER_BUFFER_LENGTH = (MPC_FRAME_LENGTH * 4), ///< Required buffer size for decoder 50 MPC_DECODER_SYNTH_DELAY = 481 44 51 }; 45 52 46 53 /// Big/little endian 32 bit byte swapping routine. 47 static __inline54 static mpc_inline 48 55 mpc_uint32_t mpc_swap32(mpc_uint32_t val) { 49 return (((val & 0x ff000000) >> 24) | ((val & 0x00ff0000) >> 8) |50 ((val & 0x0000ff00) << 8) | ((val & 0x000000ff) << 24));56 return (((val & 0xFF000000) >> 24) | ((val & 0x00FF0000) >> 8) 57 | ((val & 0x0000FF00) << 8) | ((val & 0x000000FF) << 24)); 51 58 } 52 59 53 60 /// Searches for a ID3v2-tag and reads the length (in bytes) of it. 54 /// \param reader supplying raw stream data 61 /// 62 /// \param p_reader supplying raw stream data 55 63 /// \return size of tag, in bytes 56 /// \return -1on errors of any kind57 mpc_int32_t JumpID3v2(mpc_reader* fp);64 /// \return MPC_STATUS_FILE on errors of any kind 65 mpc_int32_t mpc_skip_id3v2(mpc_reader* p_reader); 58 66 59 67 /// helper functions used by multiple files … … 62 70 void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData); 63 71 64 #endif // _mpcdec_internal_h 65 72 #ifdef __cplusplus 73 } 74 #endif 75 #endif
Note: See TracChangeset
for help on using the changeset viewer.