How to pause and resume audio recording using AVAudioRecorder

☆樱花仙子☆ 提交于 2019-12-01 09:32:37

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.

To pause the recording, use the following methods on AVAudioRecorder:

- (void)pause

and to resume, use:

- (BOOL)record

It's all here in the docs...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!