Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Stencyl Essentials

You're reading from   Stencyl Essentials Build beautiful, unique, cross-platform games rapidly with the free Stencyl 2D game engine and toolset

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784399450
Length 206 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Richard Sneyd Richard Sneyd
Author Profile Icon Richard Sneyd
Richard Sneyd
Arrow right icon
View More author details
Toc

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,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image