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 s3eAudio API

Let's start with the quickest and easiest way of allowing our games to stop being the strong, silent type.

The s3eAudio API allows us to play compressed music formats such as MP3 and AAC. Some devices may also allow us to play other formats, such as MIDI files. Marmalade makes use of whichever audio codecs a particular device may have built-in rather than decoding the audio itself, so be sure to check that your chosen audio format is supported by all the devices you wish to target.

Note

Due to its ubiquity, it is recommended that you use MP3 as your format of choice. There are very few devices (if any) that can't play an MP3 file and the format itself allows you a wide variety of bit rates so you can trade-off between audio quality ...

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