问题描述
我需要暂停然后恢复录音,我正在使用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 lotPeaceMassy
推荐答案
初始化并创建 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暂停和恢复录音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!