O'Reilly logo

Building Android Games with Cocos2d-x by Raydelto Hernandez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The new audio engine

Cocos2d-x 3.4 in its experimental phase had a new audio engine built from scratch in order to add more functionalities and flexibility. The new audio engine of Cocos2d-x is now available for the Android, iOS, the Mac OS, and the win-32 platforms. It is able to reproduce up to 24 simultaneous sounds on the Android platform; this number may change depending on the platform.

If you run the tests bundled with the Cocos2d-x framework, then you can test both of the audio engines. At runtime, they may sound without any apparent difference but they are internally very different.

Unlike the CocosDenshion engine, there is no distinction between the sound effect and the background music in this new engine. Therefore, the framework has ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required