szlsay / STQRCodeController

一个简易的二维码识别控制器
MIT License
54 stars 12 forks source link

播放声音的时候崩溃 #2

Open jianmu297 opened 7 years ago

jianmu297 commented 7 years ago

- (void)playSystemSound{ SystemSoundID soundID; NSString *strSoundFile = [[NSBundle st_qrcodeControllerBundle] pathForResource:@"st_noticeMusic" ofType:@"wav"]; AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath:strSoundFile],&soundID); AudioServicesPlaySystemSound(soundID); }中的

AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath:strSoundFile],&soundID);这一行崩溃了。。。

szlsay commented 7 years ago

出现问题的系统是?