Hi,
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..
with thanks and regards Senthil
_________________________________________________________________ Get ball by ball action on your desktop. http://server1.msn.co.in/msnspecials/cricketdownload/contest.asp Get Hutch MSN Cricketer
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.
Senthil Kumar wrote:
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.
You just forget to decode the frame.
Regards,
---- Gabriel Bouvigne www.mp3-tech.org personal page: http://gabriel.mp3-tech.org