Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSURL *newURL = [[NSURL alloc] initFileURLWithPath:soundFilePath];
- NSError *error;
- AVAudioPlayer *myAudio1 = [[AVAudioPlayer alloc]initWithContentsOfURL:newURL error:&error];
- myAudio1.delegate = self;
- [myAudio1 play];
Add Comment
Please, Sign In to add comment