Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 610
KorinW Avatar asked Nov 13 '22 04:11

KorinW


1 Answers

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.

like image 70
hotpaw2 Avatar answered Dec 11 '22 12:12

hotpaw2