Archived

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

Playing sounds

This topic is 4990 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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".

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites