Search the web
Sign In
New User? Sign Up
arbingersys-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
big troubles decoding an mp3 file using madxlib   Message List  
Reply | Forward Message #7 of 15 |
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.











Sat Oct 7, 2006 8:26 pm

les_strates
Offline Offline
Send Email Send Email

Forward
Message #7 of 15 |
Expand Messages Author Sort by Date

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...
les_strates
Offline Send Email
Oct 7, 2006
8:33 pm

... I have not tried this, so I won't be able to give you more than a few ideas to try. I am not fully familiar with MinGW and GCC. ... The mad.h that is used...
arbingersys
Offline Send Email
Oct 9, 2006
4:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help