1
我想重复发送到此方法的声音?如何重复系统声音
- (void) playSound:(CFURLRef)soundFileURLRef {
SystemSoundID soundID;
OSStatus errorCode = AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
if (errorCode != 0) {
}else{
AudioServicesPlaySystemSound(soundID);
}
}
我已经看到如何使用numberOfRepeats做出这些答案。但我无法适应我的代码。