.caf vs .wav in iOS application
I'm using cocos2d and it is possible to play both formats using SimpleAudioEngine (obviously did not tried开发者_JAVA百科 .caf) What format is preferable and why ?
I recommend you to use caf format with IMA4 compression for sound effects and aac for BGM.
- CocosDenshion FAQ - What sound formats can I use?
For sound effects played with CDSoundEngine it is recommended to use 16 bit mono wave files for uncompressed audio and IMA4 for lossy compressed audio. IMA4 sounds are around one quarter the size of the corresponding wave file.
- How do I choose the best audio formats in iPhone OS?
精彩评论