If you want to add spot sound effects to your game, such as laser bolts and explosions, the s3eSound API is what you need to use. This API allows multiple sound samples to be played simultaneously at different volumes and pitch by mixing them together into a single output.
To make use of the s3eSound API, simply include the file
s3eSound.h in your source code.
The API expects all sound effects to be supplied as uncompressed 16-bit signed PCM. File formats such as WAV are not supported by the API, so you must write your own code to load and extract the sample data from such files.
As you read through this section you may start to think that there's an awful lot to do in order to play some sound effects. While this may appear to be ...