本文介绍了录制音频剪辑时设置时间限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照帖子标题查找了搜索字词,但是唉...



我正在使用AVFoundation构建iPhone应用程序。



是否有正确的程序来限制将要录制的音频量?我想最多10秒。



感谢您提供任何帮助/建议/提示/指示..

   - (BOOL)recordForDuration:(NSTimeInterval)持续时间

我认为这样做会有所作为!




I looked for search terms along the lines of the post title, but alas..

I am building an iPhone app using AVFoundation.

Is there a correct procedure to limit the amount of audio that will be recorded? I would like a maximum of 10 seconds.

Thanks for any help/advice/tips/pointers..

解决方案

AVAudioRecorder has the following method:

- (BOOL)recordForDuration:(NSTimeInterval)duration

I think that will do the trick!

http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAudioRecorder_ClassReference/Reference/Reference.html#//apple_ref/doc/uid/TP40008238

这篇关于录制音频剪辑时设置时间限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 08:33
查看更多