Book Image

Stencyl Essentials

By : Richard Sneyd
Book Image

Stencyl Essentials

By: Richard Sneyd

Overview of this book

Table of Contents (20 chapters)
Stencyl Essentials
About the Author
About the Reviewers

Supporting both MP3 and OGG formats

Stencyl supports two basic audio file formats: MP3 and OGG. One could be forgiven for making the assumption that this means we, as Stencyl developers, can choose which file format to use, according to our own preference. However, this assumption would be wrong. In actuality, the file formats are tied to specific target platforms. Here is the breakdown in a nutshell:

  • MP3 is supported by:

    • Adobe Flash (Flash can also utilize OGG, but not through Stencyl, due to the limitations of the OpenFL framework, on which Stencyl is dependent)

  • OGG is supported by:

    • Android

    • iOS

    • Windows

    • Linux

    • OS X

So in essence, MP3 is supported because the Flash targets won't accept any other format. The OGG format is used for everything else. This means two things:

  1. If you're not planning to ever publish your game to Flash, you can stick with OGG and ignore the MP3 format. The only limitation in this scenario is that you won't be able to test the sound for your mobile games in the Flash Player,...