Click here to Skip to main content
15,068,851 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
good day everyone,
I've been reading articles about the mp3 file structure and now creating a toy program, actually a class in c++, that would read the mp3 files tags(v1 and v2), header, frames, etc. My next plan is to bring this to the next level, that is, to create a simple mp3 audio player(mp3 audio player class). I have one problem though, i haven't read any article on how to decode the mp3 audio data and how to stream it out to my speakers. I would then ask any help that could help me fulfill this need of mine. And I would be very thankful for any contribution or insights that anyone could contribute.
By the way, I'm using the visual studio 2010 compiler on windows 7, though I don't want to use its built-in media player for this purpose. =)
Thanks a lot and godspeed. =)
Posted
Comments
Albert Holguin 23-Dec-11 5:38am
   
The complexity of this can be variable... do you want to decompress the data yourself or use a library? There are also a number of different data rates and variable compression modes.

Perhaps you could use available C source code for MPEG3. I found ISO mp3 sources here, never tried them: http://www.mp3-tech.org/programmer/decoding.html[^].

—SA
   
If you have an mp3 decode codec on your machine, you can use the acmStreamConvert API to convert it to wave, in memory. Then use the waveOutWrite API to stream it to the speakers.
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900