public
Description: An Objective-C binding for OpenAL on the iPhone
Homepage:
Clone URL: git://github.com/stevedekorte/openal-objc-binding.git
Steve Dekorte (author)
Fri Aug 21 00:55:38 -0700 2009
name age message
file ALBuffer.h Thu Aug 20 18:27:31 -0700 2009 latest [Steve Dekorte]
file ALBuffer.m Thu Aug 20 18:27:31 -0700 2009 latest [Steve Dekorte]
file ALContext.h Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALContext.m Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALDevice.h Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALDevice.m Thu Aug 20 18:22:54 -0700 2009 cleanup [Steve Dekorte]
file ALListener.h Fri Aug 21 00:54:24 -0700 2009 Listener direction support [Steve Dekorte]
file ALListener.m Fri Aug 21 00:54:24 -0700 2009 Listener direction support [Steve Dekorte]
file ALObject.h Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALObject.m Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALSource.h Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALSource.m Thu Aug 20 18:22:54 -0700 2009 cleanup [Steve Dekorte]
file ALState.h Thu Aug 20 18:11:05 -0700 2009 classes [Steve Dekorte]
file ALState.m Thu Aug 20 18:22:54 -0700 2009 cleanup [Steve Dekorte]
file README.txt Fri Aug 21 00:55:38 -0700 2009 doc update [Steve Dekorte]
README.txt
About
=====
An Objective-C binding to OpenAL. 


Dependencies
============

  CoreAudio
  AudioToolbox
  AVFoundation
  OpenAL


Sample Code
===========

  self.context = [ALContext defaultContext]; 
  source = [ALSource newWithPath:pathToSoundFile]; // wav, caf, etc
  [source play];


Buffer Caches
=============

ALSource newWithPath: 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.


Notes
=====

Threw this together for a small iPhone game I was working on. 
It seems to work, but is pretty basic. Patches appreciated.

- Steve Dekorte
steve@dekorte.com