Hi, Is anyone using the audio functionality that comes with cocos2d? I noticed that it is experimental; but, I thought it might be working well enough to be used. Thanks,
I'm using the Audio Engine in Road Rage Ahead, and it's sufficient. My only problem was that it tied a single sound file to one buffer, so you could only play one instance of the sound at a time, which required a bit of modification in the engine code. Bottom line, it has been very stable for me, and I think it's fine. There is a new engine that was posted, CocosDenshion, which has a lot more features that I want, and removes some of the things that I don't need for my game, like positional audio. CocosDenshion seems to simplify it to panning L/R rather than coordinate based audio. I have not messed with the new engine, but others have reported good results.
Good tip on CocosDenshion. I've been looking for a good sound engine for my game, which needs multiple sound instances. I will give it a try after work.
I'm the developer of CocosDenshion. Please be aware that it has a slightly different license to cocos2d in that people/entities that are rich (revenue > $250KUS) must donate to the cocos2d project and if you use CocosDenshion you must acknowledge cocos2d in your app. CocosDenshion is based on Apple's oalTouch example, as was the experimental sound engine in cocos2d. As has been mentioned, the main differences are that Denshion just uses a simple left/right panning model and Denshion allows multiple playback instances of the same sound. Denshion also comes with a simple drum pad demo similar to DigiDrummer. Denshion currently only supports little endian PCM files e.g wave files.
CocosDenshion has now had some major upgrades including support for playing compressed IMA4 files, audio session management, compressed background music support using AVAudioPlayer and a Simple Audio Engine interface that is easy to use for people with simple requirements. CocosDenshion is now included in the cocos2d svn repository and will be included with the upcoming 0.8 release of cocos2d.