NSString *filePath = [[NSBundle mainBundle] pathForResource:@"flip_1" ofType:@"wav"];
if (filePath) {
AudioServicesCreateSystemSoundID((__bridge CFURLRef _Nonnull)[NSURL fileURLWithPath:filePath], &soundID);
AudioServicesPlaySystemSound(soundID);
}
if (filePath) {
AudioServicesCreateSystemSoundID((__bridge CFURLRef _Nonnull)[NSURL fileURLWithPath:filePath], &soundID);
AudioServicesPlaySystemSound(soundID);
}
![https://i-blog.csdnimg.cn/blog_migrate/120cedfa0316090a6d11e72285b80372.webp?x-image-process=image/format,png](https://i-blog.csdnimg.cn/blog_migrate/120cedfa0316090a6d11e72285b80372.webp?x-image-process=image/format,png)