Audio formats supported by CocosDenshion on different platforms¶
Note that on most platforms, cocos2d-x invokes different SDK API for background music (BGM) and Effects. CocosDenshion can play ONLY ONE background music at one time, but can play many effects synchronously.
Background Music¶
| Platform | supported BGM formats |
|---|---|
| Android | It supports the formats that android.media.MediaPlayer support. |
| iOS | It supports the same formats as CocosDenshion in cocos2d-iphone. MP3 and CAF are recommended |
| windows | .mid, .wav are supported. Note that mp3 is not supported. |
| Marmalade | .mp3 |
| Blackberry | .ogg |
Effects¶
WARNING: Samsung i9100 seems have a bug in its audio driver. It CAN NOT accept too much effects concurrently. You need to limit calling SimpleAudioEngine::playEffect(const char* filePah) too frequently in your game logic code when running on Samsung i9100.
| Platform | supported sound effects formats |
|---|---|
| Android | Supports .ogg best, not so good for .wav format. |
| iOS | It supports the same formats as CocosDenshion in cocos2d-iphone. Personally, I recommend apple .caf format |
| windows | * .mid, .wav. |
| Marmalade | Only supports raw PCM format (see http://www.madewithmarmalade.com/devnet/forum/5459) |
| Blackberry | .wav |