PDA

View Full Version : Sound in Opengl



zadeh79
05-26-2007, 01:06 PM
Can someone tell me the easiest way to implement sound in opengl. I'm not looking for anything with fancy music commands, just something that is quick and intuitive.

ARENIUS STONE (Projected completion - January 2008)

http://www.theimageplace.net/uploads/717a3a4ee3.jpg
http://www.theimageplace.net/uploads/b9b4be8715.jpg

http://www.theimageplace.net/uploads/84e42c881f.jpg

http://www.theimageplace.net/uploads/df80e8108d.jpg

Leadwerks
05-26-2007, 02:13 PM
OpenAL.org

Rodrix
05-27-2007, 07:54 PM
Nice! Reminds me of Ultima game :D

OpenAL is used for 3D sound usually. It has a syntax similar to OpenGL.

For a very basic (and easy) approach you could use Windows API to play .wav files, although I am quite sure you won't be able to fade out sounds (OpenAL can do that and more).

This link could be useful : http://www.codeproject.com/audio/wavefiles.asp

Good luck!!!
Cheers!
Rod

zadeh79
06-01-2007, 02:14 PM
Ok, thnx :)