/ Published in: Objective C
Expand |
Embed | Plain Text
AVAudioPlayer* player = [[AVAudioPlayer alloc]initWithContentsOfURL:fileURL error:&error]; if(error){ NSLog(@"error = %@", error); NSLog(@"[error code] = %d",[error code]); return; } player.delegate = self; [player play]; } -(void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player successfully:(BOOL)flag{ [player release]; }
You need to login to post a comment.
