如何使用AVAudioRecorder暂停和恢复录音 [英] How to pause and resume audio recording using AVAudioRecorder

查看:324
本文介绍了如何使用AVAudioRecorder暂停和恢复录音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要暂停然后恢复录音,我正在使用AVAudioRecorder进行录音...
任何人都知道怎么做?
任何帮助都将受到高度赞赏!
非常感谢
Peace
Massy

I need to pause and then resume an audio recording, I'm using AVAudioRecorder for my recording sessions... Anyone knows how to do this? Any help will be higly appreciated! Thanks a lot Peace Massy

推荐答案

初始化并创建<的对象后code> AVAudioRecorder ,假设 AVAudioRecorder *录音机,只需拨打 [录音机录音] 记录并 [记录器暂停] 暂停。

After initializing and creating an object of AVAudioRecorder, lets say AVAudioRecorder *recorder, simply call [recorder record] to record and [recorder pause] to pause.

如果您正在调用记录并以单独的方法暂停例如点击不同的按钮然后你需要使录音机一个班级变量。

If you are calling record and pause in separate method e.g. on click of different buttons then you need to make recorder a class level variable.

这篇关于如何使用AVAudioRecorder暂停和恢复录音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆