[Dev-C++] Compiling Monkey's Audio samples
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gary L. <ga...@lu...> - 2002-10-11 10:49:03
|
I'm trying to compile the Monkey's Audio SDK samples using Dev C++ (Monkey's Audio is a lossless audio format - available at http://www.monkeysaudio.com). However, I get the following error messages from the library header file maclib.h: Line 87 S:\Music\Monkeys Audio\MAC_SDK_397\Shared\maclib.h parse error before `;' Line 88 S:\Music\Monkeys Audio\MAC_SDK_397\Shared\maclib.h declaration of `unsigned int APE_HEADER::__int16' Line 87 S:\Music\Monkeys Audio\MAC_SDK_397\Shared\maclib.h conflicts with previous declaration `unsigned int APE_HEADER::__int16' and this repeats for all of the entries in the APE_HEADER structure which is defined as follows: /*************************************************************************** ************** APE header structure (what's at the front of an APE file) **************************************************************************** *************/ #define APE_HEADER_BYTES 32 struct APE_HEADER { char cID[4]; // should equal 'MAC ' unsigned __int16 nVersion; // version number * 1000 (3.81 = 3810) unsigned __int16 nCompressionLevel; // the compression level unsigned __int16 nFormatFlags; // any format flags (for future use) unsigned __int16 nChannels; // the number of channels (1 or 2) unsigned __int32 nSampleRate; // the sample rate (typically 44100) unsigned __int32 nHeaderBytes; // the bytes after the MAC header that compose the WAV header unsigned __int32 nTerminatingBytes; // the bytes after that raw data (for extended info) unsigned __int32 nTotalFrames; // the number of frames in the file unsigned __int32 nFinalFrameBlocks; // the number of samples in the final frame }; Of course, the same project compiles fine with MSVC so what changes to I need to make to the various files to get this working in DevC++? Has anyone suceeded and/or is there a Dev C++ package available for Monkey's Audio... BTW The source code to Monkey's Audio and the SDK is available at http://www.monkeysaudio.com/files/MAC_SDK_397.zip Thanks Gary |