Hi mike i would like to say a big thank you for taking the time and effort to create a video explaining exactly what youre code does. I’ve learnt more about OpenAl in the past 2 hours then i have in the past two days (that’s when i started)
Guys and Ladies, I am creating a drum application at the moment for the iphone, and have been using PlaySystemSound obviously that is not apropriate for game sounds as it does not play straight away and sometimes doesnt even get played.
So i transitioned over to OpenAL to give it a go mainly because i can change the pitch of a sound live.
This morning i followed tutorial 9 – Sound Manager
All i did was start up a window based application, added 2 view controllers. on one of the view controllers i added abutton so i could play the sound.
I added the 2 sound manager files. And there were no errors upon build.
now i just needed to load the sounds.
I dont have a game loop so i couldnt initialise it there.
So in my BlueViewController i did this:
- Code: Select all
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
// Custom initialization
sharedSoundManager = [SingletonSoundManager sharedSoundManager];
[sharedSoundManager loadSoundWithKey:@"NormalGe" fileName:@"NormalGe" fileExt:@".caf" frequency:22050];
[sharedSoundManager loadSoundWithKey:@"NormalNa" fileName:@"NormalNa" fileExt:@".caf" frequency:22050];
[sharedSoundManager loadSoundWithKey:@"NormalKe" fileName:@"NormalKe" fileExt:@".caf" frequency:22050];
[sharedSoundManager loadSoundWithKey:@"LoudGe" fileName:@"LoudGe" fileExt:@".caf" frequency:22050];
[sharedSoundManager loadSoundWithKey:@"LoudNa" fileName:@"LoudNe" fileExt:@".caf" frequency:22050];
[sharedSoundManager loadSoundWithKey:@"LoudKe" fileName:@"LoudKe" fileExt:@".caf" frequency:22050];
[sharedSoundManager loadSoundWithKey:@"LoudRa" fileName:@"LoudRa" fileExt:@".caf" frequency:22050];
}
return self;
}
I get no warnings the app gets successfully installed on my iphone, but when it runs it. a SIGABRT error.
if i take the initialization out of the sounds my app works fine.
could you please tell me whats going on?
thank you
and i appreciate everything that you are doing for the community