Playing Multiple .wav sounds

Started by
2 comments, last by Aressera 16 years, 9 months ago
I am reading "Beginning Game Programming" by Michael Morrison (C++). In the chapters around sound programming he shows the reader how to use the Windows API to run MIDI and .wav files. Although he mentions using his method limits games to be able to only play one .wav sound at a time. The whole sound must stop before a new one may be played, or the current sound can be interrupted by a new one. Can someone direct me to a resource that shows how to use the Windows API to play multiple .wav files simultaneously? Thanks in advance
Advertisement
Just use a sound library like OpenAL that allows you to do this trivially.

http://www.openal.org/

-me
OpenAL looks like it is centered around 3-D contexts. I just need something simple for 2-D games.

Is this still my best bet?
it doesn't matter. just supply a z coordinate of 0 for all of your sources and listeners and everything will work fine. I've seen plenty of OpenAL demos done in 2D.

This topic is closed to new replies.

Advertisement