Re: (no subject)

Rob Leslie <[email protected]> Tue, 25 Mar 2003 11:47:48 -0800
Newsgroups gmane.comp.audio.mad.user
Message-ID <[email protected]>
On Tuesday, March 25, 2003, at 07:42  AM, Senthil Kumar wrote:
>    I want to play the mp3 file on my own.
> so i extracted the data from the mp3 file leaving the frame 
> information of size 4 bytes.
>
> Then i extracted the the bit size, padding value, bit/sample, sampling 
> rate and calculated the frame size from the frame information.
>
> After  that i have extracted the data to my local buffer of size 4096 
> and i wrote to the dsp device repeatedly upto the end of the file.
>
> But i was able to get annoying sound.
>
> Please can u give me solution for this problem..

You'll have to do a lot more work than simply extract bits from the MP3 
stream and write them to your DSP device. That's why I wrote MAD; it 
does the work of decoding these bits into an audible signal.

If you really want to write your own MP3 decoder, I suggest you read up 
on ISO/IEC 11172-3, the international standard that describes the 
format and how to decode it. But there are plenty of existing 
implementations, including MAD, that would be much easier to pick up 
and incorporate into your application, not to mention save you a lot of 
deciphering and debugging time.

-- 
Rob Leslie
[email protected]