Discussion:
[mad-user] Help :)
Khalid Aallouche
2006-12-07 23:50:43 UTC
Permalink
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
Pan Xingzhi
2006-12-08 01:59:41 UTC
Permalink
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
Post by Khalid Aallouche
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
Khalid Aallouche
2006-12-08 17:58:51 UTC
Permalink
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
Post by Pan Xingzhi
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).
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
Post by Khalid Aallouche
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
Pan Xingzhi
2006-12-09 02:40:24 UTC
Permalink
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
Post by Khalid Aallouche
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
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
Post by Pan Xingzhi
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).
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
Post by Khalid Aallouche
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
Khalid Aallouche
2006-12-09 09:55:32 UTC
Permalink
Thank you very much, its OK now !!! :D
Post by Pan Xingzhi
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,
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
Post by Khalid Aallouche
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
Post by Pan Xingzhi
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).
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
Post by Khalid Aallouche
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
Loading...