KorinW
KorinW

Reputation: 289

Best low latency audio API for an iOS Music Game? OpenAL, Cocoas2d Denshion, PhoneGap

I have been doing some research on the best way to program a music game for iOS similar to Tap Tap Revenge, Guitar Hero, Rock Band etc. Portability is a plus.

This video explains that Open AL has some great ways of handling sounds, playing multiple sounds at once and recycling memory. I have also come across Cocoas2d Denshion for handling audio at low latency.

This article states that HTML5 is terrible for audio playback especially polyphony. He goes on to state that Phonegap's Media class works nicely and by using the native plugin model you can create a low latency solution with Phonegap

If you were to choose an API which would you choose to create a low latency audio based game and why? If you have a different suggestion than the ones mentioned please describe and why. Thank you.

Upvotes: 5

Views: 2433

Answers (4)

Mike
Mike

Reputation: 2703

Wedge.js is something I saw on Hacker News today, maybe it'll help you out

http://www.boxuk.com/labs/wedge-js

Upvotes: 0

Simon MacDonald
Simon MacDonald

Reputation: 23273

If you should decide to go the PhoneGap route then Andy Trice's Low Latency Audio Plugin should address your concerns.

Upvotes: 0

hotpaw2
hotpaw2

Reputation: 70703

The RemoteIO Audio Unit, when configured with an Audio Session requesting very short buffers, will allow the lowest latencies on current iOS devices. OpenAL appears to be built on top of it.

Upvotes: 1

Yusuf X
Yusuf X

Reputation: 14633

There are ways to address HTML5 latency, as described here and here. I suggest you try those out on your phone and see if they feel responsive enough. If not, then Novocaine is probably your best bet.

Upvotes: 0

Related Questions