Example code

Hello Cricket

The "hellocricket" example, in src/samples/hellocricket, is a very simple example that plays a single bank sound when it starts.  There are several versions:

Game

The "game" example is a simple demonstration of how to use Cricket Audio with C++ to write cross-platform iOS and Android apps.  Most of the code, in src/samples/game, is cross-platform; the platform-specific code and data files are in the android and ios subdirectories.

To build the game for iOS, use the Xcode project in src/samples/game/ios.

To build the game for Android, first build the native code by executing ndk-build in the src/samples/game/android directory; then build and run the app from Eclipse.

Navigate around by moving your finger on the screen; drag left or right to turn, and drag forward or back to move forward or backward.  Try to poke the spinning cubes with the orange pointer.