Bentley
Senior Software Engineer
Saturday, September 13, 2014
iOS AVAudioPlayer 재시작하기
AVAudioPlayer에서 이미 생성되고 있는 사운드 재시작하는 방법이다.
//Pause the player and restart it
if (player.playing) {
NSLog(@"Reset sound: %@", selectedSound);
[player pause];
}
player.currentTime = 0;
[player play];
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment