このコードの何が問題になっていますか?以前は使用していましたが、現在、これらの警告が表示されています...
警告:互換性のないポインタ型から「AudioServicesCreateSystemSoundID」の引数2を渡します
警告:「AudioServicesPlaySystemSound」の引数1を渡すと、キャストなしでポインターから整数になります
-(void)playfireSound{
NSString *path = [[NSBundle mainBundle] pathForResource:@"fireSound" ofType:@"wav"];
NSURL *url = [NSURL fileURLWithPath:path];
AudioServicesCreateSystemSoundID((CFURLRef) url, &fireSound);
AudioServicesPlaySystemSound(fireSound);
}