8
tôi sử dụng mã dưới đây để chơi âm thanhlặp lại chơi tự động
NSURL* musicFile = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"01" ofType:@"mp3"]];
AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:musicFile error:nil];
[audioPlayer play];
Tôi muốn lặp lại tập tin âm thanh này tự động khi nó kết thúc như thế nào?
đặt nó trong một vòng lặp? – Chris