录制时iOS无法播放音频

时间:2013-06-04 09:04:30

标签: ios

我正在研究iOS AurioTouch2演示。我想在处理音频数据时播放一首歌。这是播放音频代码。

NSString *path = [[NSBundle mainBundle] pathForResource:@"FoldBeep" ofType:@"wav"];
SystemSoundID theSoundID;
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &theSoundID);

我试过了。它不起作用。有人能帮助我吗?

0 个答案:

没有答案