1
이 방법으로 보내는 사운드를 반복하고 싶습니까?어떻게 시스템 사운드를 반복 할 수 있습니까?
- (void) playSound:(CFURLRef)soundFileURLRef {
SystemSoundID soundID;
OSStatus errorCode = AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
if (errorCode != 0) {
}else{
AudioServicesPlaySystemSound(soundID);
}
}
numberOfRepeats를 사용하여 어떻게 작성했는지에 대한 답변을 보았습니다. 하지만 내 코드에 맞지 않습니다.