-
Notifications
You must be signed in to change notification settings - Fork 5
SNAudioMix
Ju Liaoyuan edited this page Dec 20, 2022
·
1 revision
Inherits from NSObject
Declared in SNAudioMix.h
SNAudioMix.mm
– processMix:bgmBuffer:mixedOutBuffer:
micVolume property
bgmVolume property
0 ~ 100 default is 100
@property (nonatomic, assign) NSInteger bgmVolume
0 ~ 100 default is 100
SNAudioMix.h
0 ~ 100 default is 100
@property (nonatomic, assign) NSInteger micVolume
0 ~ 100 default is 100
SNAudioMix.h
mic的PCM数据
- (void)processMix:(short *)*micBuf* bgmBuffer:(short *)*bgmBuf* mixedOutBuffer:(short **)*mixedOutBuf*
micBuf
mic的PCM数据
bgmBuf
bgm的PCM数据
mixedOutBuf
混音后的PCM数据,内部会回传处理好的数组地址,外界无需关心内存管理
SNAudioMix.h
Sona Wiki