Sound Track for LittleGame

We had a great update to the game LittleGame, this time we added sound. In collaboration with Machinet, a great professional, which has been commissioned to compose a melody in the line of the type of game. The soundtrack is great for the game for its simplicity and subtlety, is a music that accompanies the game perfectly, adding fun and entertainment.

We bring you a video so you can enjoy it.

We improved our streaming audio system for iOS

Currently we are using OpenAL API for our audio driver, and thanks to the AL_EXT_STATIC_BUFFER extension, at least offered in MACOS X and iOS, we achieved a 2500% gain in performance when transferring audio data.

What is offered by this extension?

Basically the function alBufferDataStatic, that allow us to send to OpenAL directly a memory buffer managed by us, so that OpenAL does not have to reserve extra memory (the corresponding malloc or realloc), and make a copy of our data (memcpy) in its own reserved buffer. Thereby achieving a performance boost (around 2500% in the iPhone).

We have seen some controversy on the Internet about using this extension.

On the one hand it is recommended by Apple in their Technical Note: OpenAL FAQ for iPhone OS, but many people (in the Apple forums) seems not to understand well what does this function, misusing it, and therefore do not getting the desired results.

A clear example is to send to OpenAL a buffer (using alBufferDataStatic) and afterwards release it, (which is exactly what you have to do when using alBufferData). In this example, of course, the sound can’t be heard well…

Rule of thumb:

If you use alBufferData you must release your memory.
If you use alBufferDataStatic you must handle your memory.

Some bad practices with the use of this function are contained in the blog of Ben Britten: alBufferDataStatic: Why You Should Avoid it, which in our opinion does not say do not use it, but do not use it unless you know exactly what are you doing.

In any case, we have concluded that we are able to reserve a memory buffer and then do not forget to free it, or use it after being released, so we will use it ^_^

LittleGame new update

Apple has finally accepted our updated “LittleGame for iPad” (since late July).

The problem was that Apple initially accepted the name “LittleGame iPad”, but later decided that this name was invalid and we had to change it. But we are not allowed to change the name of an application that was on sale! Finally, after more than two months and after talking with three different departments of Apple, they has allowed us to upload an update with a valid name: “LittleGame for iPad.”

Hope you enjoy!