Re: Re: mad-dev Digest, Vol 6, Issue 8
Rob Leslie <[email protected]> Wed, 30 Nov 2005 05:46:02 -0800
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Message-ID | <[email protected]> |
On Nov 29, 2005, at 2:33 AM, [email protected] wrote: > I?ve tried that program that you said, and my pcm file is totally > corrupted.. > Whish is not good at wall. > To get it I use the libmad and follow the steps: > > ################################# > make > make install > make minimad > ./minimad <music.mp3>test.pcm > ################################### > > I compile that in Linux, gentoo. > > I'm doing anything wrong? > I'm very concern about it. You'll probably need to convert the PCM file into another format for it to be much use. In Linux, you can use sox, e.g.: sox -t raw -r $samplerate -s -w -c $channels test.pcm -t wav test.wav where $samplerate is the sampling frequency (in Hertz) and $channels is the number of channels (1 or 2) of the original MP3. (You may also need to use the -x option if your machine is big-endian.) -- Rob Leslie [email protected]