1
我想重複發送到此方法的聲音?如何重複系統聲音
- (void) playSound:(CFURLRef)soundFileURLRef {
SystemSoundID soundID;
OSStatus errorCode = AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
if (errorCode != 0) {
}else{
AudioServicesPlaySystemSound(soundID);
}
}
我已經看到如何使用numberOfRepeats做出這些答案。但我無法適應我的代碼。