このメソッドに送信されるサウンドを繰り返したいですか?
- (void) playSound:(CFURLRef)soundFileURLRef {
SystemSoundID soundID;
OSStatus errorCode = AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
if (errorCode != 0) {
}else{
AudioServicesPlaySystemSound(soundID);
}
}
numberOfRepeats を使用してこれを作成する方法についての回答を見てきました。しかし、私のコードには収まりません。