Skip to content

Instantly share code, notes, and snippets.

@mrichman
Created April 7, 2009 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrichman/91355 to your computer and use it in GitHub Desktop.
Save mrichman/91355 to your computer and use it in GitHub Desktop.
#import "Controller.h"
#import <AVFoundation/AVFoundation.h>
@implementation Controller
-(void) awakeFromNib {
NSBundle *mainBundle = [NSBundle mainBundle];
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:[mainBundle pathForResource:@"Foo.mp3" ofType:@"mp3"]], &soundID1);
}
- (IBAction)playSound1:(id)sender {
}
- (IBAction)playSound2:(id)sender {
}
- (IBAction)playSound3:(id)sender {
}
- (IBAction)playSound4:(id)sender {
}
- (IBAction)playSound5:(id)sender {
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment