Skip to main content
GameDev.net gamedev.net
🔒 Locked

Playing sounds

Started by Med Apr 20, 2004 at 5:00 AM 2 replies 1k views
Original Post
Med
Med
Yeah, I know that OpenGL''s a graphics API and doesn''t "do" sounds, but I''m using it with C++ to produce an animated sequence and need to play a wav file alongside it. What methods do you OpenGL users use to play sound? All I need is to play the file straight off so not looking for methods where I can manipulate the file or anything, just need to be able to say "here''s the file, play it".
Rickmeister
Rickmeister
FMOD
or
SDL

SDL also provides you with an easy way to get a gl RC without to much effort... No need to reinvent the wheel..

Doesn't the win32 api supply you with a function to play wave files also?? Better check out MSDN for that..

[edit]stupid html tags...
[edit]bah!
[edited by - Rickmeister on April 20, 2004 6:32:45 AM]

[edited by - Rickmeister on April 20, 2004 6:37:47 AM]
SuperRoy
SuperRoy
PlaySound() or sndPlaySound() in WinAPI

or you can use OpenAL, I''ve heard this is good for OpenGL users, the coding style is similar...and it does 3D sound well...
Sup guys?
Med
Med
Cheers for the help, I now have sound :D

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.