O'Reilly logo

Marmalade SDK Mobile Game Development Essentials by Sean Scaplehorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The SoundEngine module

As the previous section of this chapter shows, the basics of using s3eSound are actually fairly straightforward. The main issue that we have to deal with as developers is the fact that s3eSound can only support raw uncompressed 16-bit PCM samples, which means it is our responsibility to get the sound data into memory so it can be played.

One of the most common file formats for storing sound samples is the WAV file, so wouldn't it be great if we could use this format to store our sound effects? Wouldn't it also be great if we could load these files into memory using the same resource manager code that we've used for textures and 3D models?

The answer to our prayers is the SoundEngine module, which is a layer that sits on top ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required