Mp3 File Format
I''m looking for some info on the mp3 file format... not finding what I need... I''m fineding lots on reading in the headers... frame headers VBR headers ID3Tag..... hummm great I can chance the name of the song.... Thats not what I want... I want to beable to read in the file extract playable music from it... and then beable to write it back to file... I''m not finding anything on how the data is actualy compressed... anyone got a link for me?
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
You can use DirectShow to play MP3 files if that''s all you want to do.
Or go look up CDex and LAME at SourceForge. CDex is mostly the UI, and LAME is mostly the encoder.
Magmai Kai Holmlor
- Not For Rent
Or go look up CDex and LAME at SourceForge. CDex is mostly the UI, and LAME is mostly the encoder.
Magmai Kai Holmlor
- Not For Rent
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
August 28, 2001 01:16 AM
Ask KierenJ (or something like that). He knows aeverything about mp3''s and compression...

Ask KierenJ (or something like that). He knows everything about mp3's and compression...
Edited by - granat on August 28, 2001 2:17:26 AM

Edited by - granat on August 28, 2001 2:17:26 AM
-------------Ban KalvinB !
Or you can use the windows media player. I have the full source code that i use in my game, if you would like it, just ask

I thought that if you wanted to get into the guts of MP3 you had to buy the license from them, as it is proprietery(sp ?). Unless others already have the info.. hehe 
~ Boltimus ~

~ Boltimus ~
~Bolt"All men dream: but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible." This I did...
Jasun220, I would like that source code if you don't mind! cheers!
Phil ( phil.dadd@btinternet.com )
Edited by - python_regious on August 28, 2001 10:01:09 AM
Phil ( phil.dadd@btinternet.com )
Edited by - python_regious on August 28, 2001 10:01:09 AM
If at first you don't succeed, redefine success.
jasun220 ok send away =)
smccurdy@milanandnews.com
smccurdy@milanandnews.com
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
Ok, ill send it, but ill have to convert it because some of i is written in Genesis code

I decided to post it in the forum, so anyone else can use it. Its not plug and use code
, but im sure you can figure it out
Even included is fading code, but i dont think it works, let me know if you can get it working 
First of all, the header file:
Now, look into that, and im sure you can figure the structure of it out
Now the C++ file:
Be sure to include winmm.lib and strmbasd.lib into ur project.
If you need some help in explaining how the code works, let me know
BTW: Brief explanation on how you use this code:
You call LoadMP3s() on program start (after the class is created of course)
and call UnloadMP3s() when shutting your program down (before you delete the class)
Call SwitchMP3() to change the MP3.
And you must call UpdateM() every frame inorder for the MP3 to play and repeat.
Have fun!



First of all, the header file:
|
Now, look into that, and im sure you can figure the structure of it out

Now the C++ file:
|
Be sure to include winmm.lib and strmbasd.lib into ur project.
If you need some help in explaining how the code works, let me know

BTW: Brief explanation on how you use this code:
You call LoadMP3s() on program start (after the class is created of course)
and call UnloadMP3s() when shutting your program down (before you delete the class)
Call SwitchMP3() to change the MP3.
And you must call UpdateM() every frame inorder for the MP3 to play and repeat.
Have fun!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement