Thank you very much, its OK now !!! :D
Quoting Pan Xingzhi vengeance.storm@gmail.com:
I'm not an expert on Windows programming but from the msg it's obviously some link error. mad_timer_fraction is a function in libmad, you can find it in mad.h:
unsigned long mad_timer_fraction(mad_timer_t, unsigned long);
You should feed the libmad object file to the linker, i.e. link madplay together with it.
Cheers, Pan Xingzhi
Khalid Aallouche wrote:
Hi all,
Actually, I want to read and play an MP3 file. I have downloaded libmad-0.15.0b, I have compiled it with MVC++. Finally, I obtained libmad.lib. After that, I have copied that file (libmad.lib) in the 'lib' directory of MVC++. After, in order to play an MP3 file, I have downloaded madplay-0.15.0b. But I have a problem in the compilation, especially in the linker which print that error "filter.obj : error LNK2019: unresolved external symbol mad_timer_fraction referenced in function _fadein_filter". each of the object file (madplay.obj, resample.obj, version.obj...) causes an error of that type ("unresolved external....").
Please, tell me what I have to do, may be I miss a step...
Thank you very much ps: I am programming in Windows environment
Quoting Pan Xingzhi vengeance.storm@gmail.com:
Hi Khalid,
Your question is vague. I suppose you want the output to be raw audio files(not playable directly in a player, but can be imported into programs like Audacity).
I believe you can find what you want here: http://www.bsd-dk.dk/~elrond/audio/madlld/
I learned how to use libmad with it. Any further problems, plz feel free to post here.
Cheers, Pan Xingzhi
Khalid Aallouche wrote:
Hi all,
I wanted to decode an MP3 file in order to read it. But I'm novice and there is so much file...Is someone can help to create a basic MP3 player (console application:user enters where the MP3 is, and after read the valid MP3 file)
Thank you very much Khalid