ObjectAL for iPhone Released
ObjectAL for iPhone has been released ObjectAL is an audio library that makes it easier to use audio playback in iPhone OS. It’s released under Apache v2 license, and is hosted on github at http://github.com/kstenerud/ObjectAL-for-iPhone
The Wiki on the GitHub repository explains how to integrate it with a project, but you can set up a test app really quick: start a new view based project, copy the ObjectAL sources over (they’re in libs/ObjectAL), add the 3 frameworks: “OpenAL”, “AudioToolbox”, and “AVFoundation”, add your sound files, add a button to the view, and put the following in your view controller:
#import “SimpleIphoneAudio.h”
…
- (IBAction) onButtonPress
{
[[SimpleIphoneAudio sharedInstance] playEffect:@“MySoundEffect.caf”];
}
- (void)viewDidLoad
{
[super viewDidLoad];
[[SimpleIphoneAudio sharedInstance] playBg:@“MyBackgroundLoopTrack.mp3” loop:YES];
}
- Related Link: ObjectAL





