Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Objective-C binding for OpenAL on iOS
Objective-C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
MacExample
license
ALBuffer.h
ALBuffer.m
ALContext.h
ALContext.m
ALDevice.h
ALDevice.m
ALListener.h
ALListener.m
ALObject.h
ALObject.m
ALSource.h
ALSource.m
ALState.h
ALState.m
README.md

README.md

About

An Objective-C binding to OpenAL.

Dependencies

  • CoreAudio
  • AudioToolbox
  • AVFoundation(iPhone)
  • OpenAL

Sample Code

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

Buffer Caches

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.

Notes

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 by Jeremy Knope jerome@buttered-cat.com

Something went wrong with that request. Please try again.