Sound in openGL

Started by
4 comments, last by Daaark 12 years, 11 months ago
Hi. can someone say me how i can put sound in a openGL game? Language is x in visual studio ty
Advertisement
OpenGL only handles graphics. For sound, you'll need another library. FMOD is frequently recommended, and OpenAL, which is modeled after OpenGL. There are others that I can't remember offhand, but those are two to definitely consider.
Ty. I only want a 8-bit music to be played. Do you know if it is too hard to do?
I cant find tuturials about how to use fmod and opengl and c. Can someone help me? I only need to know how to play a song in loop :S
I would recommend these OpenAL based libraries :

cAudio : http://sourceforge.n...rojects/caudio/
SFML (Audio Package) : http://www.sfml-dev.org/

Both of them are pretty well documented, choose which one you feel more comfortable with.

Best Regards, Siavash.
Don't worry about 'fmod with opengl' tutorials.

Let OpenGL draw your pictures.
Let FMOD play your sounds.

There is no overlap. Just read up on using FMOD and then use it. http://www.gamedev.net/page/resources/_/reference/programming/sweet-snippets/a-quick-guide-to-fmod-r2098

This topic is closed to new replies.

Advertisement