How do you play MP3 with C++ ?
I want to know how you can play a mp3 in game. please send me the source code. Thank you for the answer.
I''ll give you a few hints...
SMPEG (look for it at Lokigames), Splay (there''s a link at the SMPEG page I think) or Xaudio (not sure whether it comes with the source).
BUT, you might not want to do the decoding yourself...so here are a few libraries that doesn''t come with the source (there only availible for windows to if I remember correctly).
Bass and fmod (www.fmod.org)
Or if you''re using SDL, SDL_mixer will do the trick too (it uses SMPEG) - it can be found at www.libsdl.org
You might even try to write a fast decoding algorithm yourself ha ha..
"Paranoia is the belief in a hidden order behind the visible." - Anonymous
SMPEG (look for it at Lokigames), Splay (there''s a link at the SMPEG page I think) or Xaudio (not sure whether it comes with the source).
BUT, you might not want to do the decoding yourself...so here are a few libraries that doesn''t come with the source (there only availible for windows to if I remember correctly).
Bass and fmod (www.fmod.org)
Or if you''re using SDL, SDL_mixer will do the trick too (it uses SMPEG) - it can be found at www.libsdl.org
You might even try to write a fast decoding algorithm yourself ha ha..
"Paranoia is the belief in a hidden order behind the visible." - Anonymous
I think you can also use DirectShow, but I''m not sure how. Might be in the DirectX SDK. Anyone know?
My Geekcode: "GCS d s: a14 C++$ P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t X
R- tv+ b++ DI+(+++) D- G e* h!"
Decode my geekcode!
Geekcode.com
Visit our web site:
Asylum Entertainment
My Geekcode: "GCS d s: a14 C++$ P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t X
R- tv+ b++ DI+(+++) D- G e* h!"
Decode my geekcode!
Geekcode.com
Visit our web site:
Asylum Entertainment
My Geekcode: "GCS d s: a14 C++$ P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t XR- tv+ b++ DI+(+++) D- G e* h!"Decode my geekcode!Geekcode.com
Visit our web site:Asylum Entertainment
Visit our web site:Asylum Entertainment
I wrote a .DLL (under GPL) that will do the trick...
you can download it here:
http://www.bitstreamearth.com/utils/LameSE.zip
enjoy
ill-lusion.com
ziggy@ill-lusion.com
Edited by - Ziggy5000 on December 6, 2000 9:54:41 AM
you can download it here:
http://www.bitstreamearth.com/utils/LameSE.zip
enjoy
ill-lusion.com
ziggy@ill-lusion.com
Edited by - Ziggy5000 on December 6, 2000 9:54:41 AM
laxdigital.com
[email=ziggy@laxdigital.com]ziggy@laxdigital.com[/email]
[email=ziggy@laxdigital.com]ziggy@laxdigital.com[/email]
Goto to this url:
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-DirectShowMP3&forum=cotd&id=-1
It gives you code to use for DirectShow. I use it and it works like a charm. You have to do some downloading though, because it requires the DirectMedia library. Links are on the page.
Edited by - Coaster Kev on December 6, 2000 6:34:30 PM
Edited by - Coaster Kev on December 6, 2000 6:35:06 PM
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-DirectShowMP3&forum=cotd&id=-1
It gives you code to use for DirectShow. I use it and it works like a charm. You have to do some downloading though, because it requires the DirectMedia library. Links are on the page.
Edited by - Coaster Kev on December 6, 2000 6:34:30 PM
Edited by - Coaster Kev on December 6, 2000 6:35:06 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement