连着真机调,没有发现异常啊
NSString *file = [[NSBundle mainBundle]pathForResource:@"right" ofType:@"wav"];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) [NSURL fileURLWithPath:file],&systemsoundID);
NSString *filewrong = [[NSBundle mainBundle]pathForResource:@"error" ofType:@"wav"];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) [NSURL fileURLWithPath:filewrong],&systemsoundID_wrong);对应的调试窗口
NSString *file = [[NSBundle mainBundle]pathForResource:@"right" ofType:@"wav"];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) [NSURL fileURLWithPath:file],&systemsoundID);
NSString *filewrong = [[NSBundle mainBundle]pathForResource:@"error" ofType:@"wav"];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) [NSURL fileURLWithPath:filewrong],&systemsoundID_wrong);对应的调试窗口
解决方案 »
- 初学者对obj-c类方法互相调用顺序的疑惑
- 跪求XCODE开发上农历转公历的算法,以及计算两个农历日相差天数的算法
- 大家好,请教个问题,iPhone是否有模拟器可以调试程序?
- ipad发送邮件的时候,收件人没有收到邮件是怎么回事????
- [我是搬运工]IOS和OS X新开发语言–Swift介绍
- 大家都在用什么电脑做开发啊?
- 开发过程中在一个UITableView中嵌套一个tableView所遇到的问题
- 新人虚心请教有关UISplitViewController右侧的viewcontroller设置新的controller之后按钮点击事件不管用的问题
- 如何让服务器与客户端连接起来(小白)
- 以application/json格式向阿里云oss传输大文件过程中,有1%的概率文件中会出现乱码
- 怎么取消Tableview的分割线
- ios里的.m里这样写法是什么含义?
但是,我看网上也有其他人有这种现象:
http://www.cocoachina.com/bbs/read.php?tid-42803.html
无法解决,暂时放弃了,不用系统声音。换播放器。
加
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];