-
Notifications
You must be signed in to change notification settings - Fork 271
AUAudioCapture
jiangdsuccess edited this page Aug 27, 2016
·
27 revisions
#介绍 利用IOS自带的AudioUnit来实现音频采集和混响功能。 #基本步骤
- Block类提供
@property (nonatomic, retain) KSYAUAudioCapture* audioCapDev;
- 创建音频采集对象
self.audioCapDev = [[KSYAUAudioCapture alloc] init];
- 启动音频采集
[self.audioCapDev startCapture];
- 停止音频采集
[self.audioCapDev stopCapture];
##耳返
- 是否播放采集的声音
@property(nonatomic, assign) BOOL bPlayCapturedAudio;
##混响场景
- 取值及效果:
reverbType= 0;//关闭
reverbType =1;//录音棚
reverbType =2;//演唱会
reverbType =3;//KTV
reverbType =4;//小舞台
@property(nonatomic, assign) int reverbType;
##声音音量
- 取值从0.0~1.0;
@property(nonatomic, assign) Float32 micVolume;