The following code ONLY plays one sound - ignores the other. Im very new to IPHONE sdk - ive scoured the web looking for a working example - Please GURUS of OBJC please help a poor Padawan learner. IPhone SDK 2.2.1
(void)viewDidLoad {
path2 = [[NSBundle mainBundle] pathForResource:@"alien" ofType:@"caf"];
oplayer=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path2] error:NULL];
oplayer.delegate = self;
path = [[NSBundle mainBundle] pathForResource:@"Lotus" ofType:@"caf"];
player=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
player.delegate = self;
[oplayer play];
[player play];
}