hello,
( sorry my english is poor ^^ )
I have downloaded and tested "test.exe" in the
"madxlib-1.0b4+demo" package, when I play "test.pcm"
I hear the music from my mp3 file ^^
when I perform the same test with a "test.exe"
compiled using GCC, and play "test.pcm"
... I can hear nothing but noise :'(
NOTE : I did minimal change in the orignal files a follow :
( in order to compile the source code with GCC )
if have updated the path to "mad.h" in "madxlib.h"
in "test.cpp" :
- I have converted void main() to int main() ( required by GCC )
- I have replaced #include "madxlib.h" with #include
adxlib.cpp"
GCC compile the "test.exe" without diplaying
any errors or warnings, but the test application
does not decode any sound, it only produce noise :(
Is there some switches in madxlib wich I could set to change
the way madxlib decode mp3 streams ?
maybe I didn't compile libmad.a properly :s
( I'm using mingw and the official make inclued in the package
doesn't seem to support the make files in the libmad directory ... )
In order to build libmad.a using GCC,
I have created the following include file :
// libmad.c
#include "libmad-0.15.1b\config.h.in"
#include "libmad-0.15.1b\mad.h"
#include "libmad-0.15.1b\version.h"
#include "libmad-0.15.1b\fixed.h"
#include "libmad-0.15.1b\bit.h"
#include "libmad-0.15.1b\timer.h"
#include "libmad-0.15.1b\stream.h"
#include "libmad-0.15.1b\frame.h"
#include "libmad-0.15.1b\synth.h"
#include "libmad-0.15.1b\decoder.h"
#include "libmad-0.15.1b\global.h"
#include "libmad-0.15.1b\layer12.h"
#include "libmad-0.15.1b\layer3.h"
#include "libmad-0.15.1b\huffman.h"
#include "libmad-0.15.1b\version.c"
#include "libmad-0.15.1b\fixed.c"
#include "libmad-0.15.1b\bit.c"
#include "libmad-0.15.1b\timer.c"
#include "libmad-0.15.1b\stream.c"
#include "libmad-0.15.1b\frame.c"
#include "libmad-0.15.1b\synth.c"
#include "libmad-0.15.1b\decoder.c"
#include "libmad-0.15.1b\layer12.c"
#include "libmad-0.15.1b\layer3.c"
#include "libmad-0.15.1b\huffman.c"
note : libmad.a compiled fine ( without raising any error or warning )
including all ".h" and ".c" files
( except the "minimad.c" sample code )
Could you tell me if I did something wrong ? :(
thanks.