这段代码有什么问题?我以前用过它,但现在我收到这些警告......
警告:从不兼容的指针类型传递“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);
}