New release: now with Objective-C interface and asynchronous file loading

The latest version of the Cricket audio engine, now available here, now has an Objective-C interface for developers who are targeting iOS only.

For example, in C++, you can write:

Sound* sound = Sound::createResourceStream("myfile.cks");
sound->setVolume(0.7f);
sound->play();

Now you can accomplish the same thing using Objective-C:

CkoSound* sound = [CkoSound createResourceStream:@"myfile.cks"];
sound.volume = 0.7f;
[sound play];

 

In addition, file loading has been made asynchronous where appropriate.  File reads for streamed sounds are now performed on a separate thread, and banks can be loaded asynchronously if desired.

This entry was posted in Cricket, iOS, News, Releases. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>