Skip to content

SNAudioMix

Ju Liaoyuan edited this page Dec 20, 2022 · 1 revision

SNAudioMix Class Reference

  Inherits from NSObject
  Declared in SNAudioMix.h

SNAudioMix.mm

Tasks

Other Methods

– processMix:bgmBuffer:mixedOutBuffer:

Other Methods

  micVolume property

  bgmVolume property

Properties

bgmVolume

0 ~ 100 default is 100

@property (nonatomic, assign) NSInteger bgmVolume

Discussion

0 ~ 100 default is 100

Declared In

  • SNAudioMix.h

micVolume

0 ~ 100 default is 100

@property (nonatomic, assign) NSInteger micVolume

Discussion

0 ~ 100 default is 100

Declared In

  • SNAudioMix.h

Instance Methods

processMix:bgmBuffer:mixedOutBuffer:

mic的PCM数据

- (void)processMix:(short *)*micBuf* bgmBuffer:(short *)*bgmBuf* mixedOutBuffer:(short **)*mixedOutBuf*

Parameters

micBuf
   mic的PCM数据

bgmBuf
   bgm的PCM数据

mixedOutBuf
   混音后的PCM数据,内部会回传处理好的数组地址,外界无需关心内存管理

Declared In

  • SNAudioMix.h
Clone this wiki locally