1 CocosDenshion 1
CocosDenshion Cookbook Some code “recipes” for working with CocosDenshion 1
SimpleAudioEngine One nice thing about SimpleAudioEngine is that it requires minimal set up
It makes intelligent choices for you and uses lazy initialization which greatly simplifies adding sound to your project
Once you have CocosDenshion added to your project as outlined in the FAQ then simply import “SimpleAudioEngine
h” in files that require sound access and then you can use code like the following for playing sound effects and music
Play a sound: Play the sound stored in the file mysound
[[SimpleAudioEngine sharedEngine] playEffect:@"mysound
wav"]; Play some background music: Play an mp3 file named somemusic
mp3 in an endless loop
[[SimpleAudioEngine sharedEngine] playBac