Music in Opengl?
Does anybody know how to add music to visual c++ opengl program. I already have a if statement for the key press but I can''t find out how to open a player.
You have a few options. You can use direct sound, SDL or some other sound library. OpenGL is a Graphics API. It doesn''t deal with input or sound so you have to look elsewhere for that stuff.
Usually it all depends on your platform, Dos your usually screwed, Windows DirectX, or Win32 API. However if you want to put music into ANY program and have it have close to no overhead and a great and easy API to use... (You can kinda tell I like it
WWW.FMOD.ORG <- THE GREATEST SOUND API ON EARTH!
CodeSmith the Pixel Pusher
www.cs.trinity.edu/~csmith8
WWW.FMOD.ORG <- THE GREATEST SOUND API ON EARTH!
CodeSmith the Pixel Pusher
www.cs.trinity.edu/~csmith8
If you''re using OpenGL for the graphics, you should have a look at OpenAL for the sound/music, the API fits perfectly into an OpenGL environment. www.openal.org
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement