Hi Guys,
In my app I play sounds through this code.
Code:
-(IBAction)wasdanou {
NSString *path = [[NSBundle mainBundle] pathForResource:@"wasdanou" ofType:@"mp3"];
AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
theAudio.delegate=self;
[theAudio play];
}
now i'ld really like to have a stop button to stop the sound.
anybody an idea to solve this little problem?
thanks in advance,
jeroen