★ TouchArcade needs your help. Click here to support us on Patreon.

which sound format is the most suitable in iPhone game?

11-21-2010, 07:37 PM
#1
Joined: Dec 2009
Posts: 15
which sound format is the most suitable in iPhone game?

mp3, aif or wav?
11-22-2010, 04:16 AM
#2
Joined: Nov 2009
Location: Haarlem, The Netherlands
Posts: 21
From https://developer.apple.com/library/...S_IN_IPHONE_OS:

Quote:
How do I choose the best audio formats in iPhone OS?

Apple recommends that all audio playback on iPhone and iPod touch take into account CPU efficiency and battery life. To this end, Apple recommends:

* For uncompressed audio, use 16-bit, little-endian, linear PCM audio packaged in a CAF file. See "How do I convert an audio file to the preferred format for iPhone OS?"

* If you need to play multiple compressed sounds simultaneously, use the IMA/ADPCM audio (IMA4) format.

* If you only need to play a single compressed sound at a time, you can use any of ALAC (Apple Lossless), AAC, or MP3 audio formats, in addition to IMA4.

Follow us on twitter for sneak peeks and news, or check out our latest games!