[Q] How can I Play the MP3 ?

Started by
6 comments, last by Dip2K 23 years, 6 months ago
I runned NeHe Project, "Lights".. The Project played MP3 ... How Can It Play the MP3? I use VC++.. Thanks you and sorry for my unskilled english..
Advertisement
Download the BASS Audio Library! It''s excellent!


OR!! If you''re feeling up to a challenge and don''t care how long it takes and can put your other project on the side for a moment, you could make your own decompressor/player using the file index provided by www.wotsit.org.... (at least I think that''s it...) It''s a little hard to understand, but with a little (ok, maybe a lot) of fiddling around you can get it to work.

S.
Why bass, why not fmod ?

what''s the bass adress ?
(you can find me on IRC : #opengl on undernet)
Check this out, yo:

http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-DirectShowMP3&forum=cotd&id=-1
You can just convert the mp3 to wav and play it using the PlaySound() function
I finally got the link above to work

http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-DirectShowMP3&forum=cotd&id=-1

With the following modifications necessary as well:

mp3.h:

replaced:
#include

with:
#include
#include
#include
#include

also: Strmiids.lib Uuid.lib need to go into your project settings link(tab) libraries

Then I was able to use it.

It was no cakewalk for me to figure all this out, so I thought I would share with anybody else.

Also, you have to download the Windows Media SDK (specifically windows media streaming I think, but I downloaded a lot of different stuff .. so not totally sure how much of it''s being used and/or what is absolutely required as far as MicroSoft SDK packages).

wmsdk I think is the most important one.

--
- Aaron (the newbee wanna be)
Hey! I''m trying!
Damn HTML interpreter .. here''s those files that got lost from the > and < being interpreted by html.

And since I know it allows interpeting HTML, I''ll give you a
few links:

http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-DirectShowMP3&forum=cotd&id=-1

And here''s a link to my latest creation if you want to check it out:

amh_star


mp3.h:

replaced:
#include >streams.h<

with:
#include >strmif.h<
#include >Control.h<
#include >evcode.h<
#include >Uuids.h<
--
- Aaron (the newbee wanna be)
Hey! I''m trying!

This topic is closed to new replies.

Advertisement