Archived

This topic is now archived and is closed to further replies.

Quino

Music in opengl??

Recommended Posts

Hey is it possible to play music tracks in opengl? If so could someone direct me to a tutorial, or show some source? Also, I heard about an mp3 library, i dno if it exists or how to use/find it if it does, and any info on this would be nice to have. I need to find out how to do this, cause i was so busy making songs in fruityloops, that i forgot i didnt know how to add them into c++! If possible, it would be nice to know how to use midi, wav or mp3's, well, thanx [edited by - Quino on August 7, 2003 7:56:47 PM]

Share this post


Link to post
Share on other sites
If you want to play around with sound and stick with the ''Open'' theme, look into OpenAL (Open Audio Libary). It has a similar C style interface as OpenGL. I''m not sure on all details, but its worth looking into it. Theres always DirectX''s Direct Sound though.

-J

Share this post


Link to post
Share on other sites
www.fmod.org or something should have a nice library you could use. Very easy to handle

----------------------------------------------
Petter Nordlander

"There are only 10 kinds of people in the world. The who understand binary and those who don''t"

Share this post


Link to post
Share on other sites
Well, you could display music in openGL in the form of waves. Take wave data and create a function of samples over time to draw it on the screen. Dunno about a tutorial on that tho.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
i would also recommend using openAL ''cause well it''s api which supports playing music, 3D sound effects (simply by mapping a soundobject to a gl-object like a triangle) and o yeah its free and jedi knight 2 sound pretty nice doesn''t it?

Share this post


Link to post
Share on other sites
Yes, OpenAL is a really good API.
It''s like OpenGL just for sound. Visit www.openal.org for more information. Here are some tutorials:
http://www.devmaster.net/articles.php?catID=6

--------------------------------------------------------

"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"

Corrail
corrail@gmx.at
ICQ#59184081

Share this post


Link to post
Share on other sites