我想重复发送到此方法的声音吗?
- (void) playSound:(CFURLRef)soundFileURLRef {
SystemSoundID soundID;
OSStatus errorCode = AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
if (errorCode != 0) {
}else{
AudioServicesPlaySystemSound(soundID);
}
}
我已经看到了有关如何使用 numberOfRepeats 进行此操作的答案。但我无法将其放入我的代码中。