cocos2d audio

Discussion in 'Public Game Developers Forum' started by touchpod, May 20, 2009.

  1. touchpod

    touchpod New Member

    May 14, 2009
    2
    0
    0
    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,
     
  2. rgeade

    rgeade Member

    May 8, 2009
    22
    0
    0
    iOS Developer
    Charlotte, NC
    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.
     
  3. allenfjordan

    allenfjordan Active Member

    May 21, 2009
    39
    0
    0
    Senior Computer Specialist at NOAA
    Colorado
    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.
     
  4. touchpod

    touchpod New Member

    May 14, 2009
    2
    0
    0
    Excellent tip, Thanks for the help !!
     
  5. Steve Oldmeadow

    May 22, 2009
    23
    0
    0
    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.
     
  6. lazypeon

    lazypeon Well-Known Member
    Patreon Bronze

    Neat, the 'single sound instance' was my biggest gripe, I'll have to try this.
     
  7. Steve Oldmeadow

    May 22, 2009
    23
    0
    0
    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.
     

Share This Page