【发布时间】:2009-08-04 12:25:07
【问题描述】:
我正在编写一个应用程序,其中一部分是使用 AVAudioRecorder 和 AVAudioPlayer 类录制和播放声音。我将声音文件设置如下。
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
resourcePath = [resourcePath stringByAppendingString:@"/sound.caf"];
self.soundFileURL = [NSURL fileURLWithPath:resourcePath];
当我在模拟器中运行应用程序时,它工作正常。但是当我将应用程序加载到设备中时它不起作用。有没有人知道问题可能是什么。
嗨,咕咕。我试过你的答案。但设备没有声音。它在模拟器中工作。当我在分发设备中进行测试时,我收到了崩溃报告“未知内核 [0]:错误:AMC 重置 [非致命错误]:无法锁定 BSU”
【问题讨论】:
标签: iphone