An Objective-C binding to OpenAL.
- CoreAudio
- AudioToolbox
- AVFoundation(iPhone)
- OpenAL
self.context = [ALContext context];
source = [ALSource sourceWithPath:pathToSoundFile]; // wav, caf, etc
[source play];
ALSource sourceWithPath: caches and reuses the ALBuffer it creates for a file. So a given sound file will only be loaded and decoded once per program run.
Threw this together for a small iPhone game I was working on. It seems to work, but is pretty basic. Patches appreciated.
Some style & minor fixes were contributed by Jeremy Knope.