AudioToolbox を使用して 1 つのボタンを押すと、このサウンドが再生されます。
-(void) onButtonPressSound {
NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"sound" ofType:@"m4a"];
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath: soundPath], &soundID);
AudioServicesPlaySystemSound (soundID);
}
このボタンを押した後、1 つずつではなく 2 つのサウンドを再生するにはどうすればよいですか?
ありがとうございました、