简体   繁体   English

AVAudiorecorder-使用iOS 6.0.1的iPhone 4上没有录音

[英]AVAudiorecorder - no sound recording on iPhone 4 with iOS 6.0.1

I'm recording audio on every iOS simulator available and on some devices without any problems (for example iPhone 4 with iOS 5.1.1 or iPhone 4S with iOS 6.0.1), but recently I got feedback from my client telling me that audio recording on iPhone 4 with iOS 6.0.1 fails with no crash - they click record and nothing happens. 我正在每个可用的iOS模拟器以及某些设备上录制音频而没有任何问题(例如,带有iOS 5.1.1的iPhone 4或带有iOS 6.0.1的iPhone 4S),但是最近我从客户那里得到了反馈,告诉我音频录制在装有iOS 6.0.1的iPhone 4上,它不会失败且不会崩溃-他们单击了记录,没有任何反应。 Has anyone encountered that problem? 有人遇到过这个问题吗? Is this device specific? 该设备特定吗? Or the usually working and widely used code for AVAudioRecorder needs to have some specific settings on this one device + system combination? 还是在AVAudioRecorder上通常可用且广泛使用的代码需要在此设备+系统组合上进行一些特定设置?

我也发生过这种情况,在我的情况下,PrepareToRecord()失败了,因为文件路径中的文件夹丢失了(尚未创建)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM