Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SNTXAudioPrepProxy

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

SNTXAudioPrepProxy Class Reference

Inherits from NSObject
Conforms to SNAudioPreprocessProxy

SNPCMPlayer

TRTCAudioFrameDelegate
Declared in SNTXAudioPrepProxy.h

SNTXAudioPrepProxy.mm

Tasks

– enableAudioPreprocess:

– disableAudioPreprocess:

– closeAudioPreprocess

– startPlay

– stopPlay

– getPCMFormat

– setProvider:

– destroy

– setVolume:

– volume

Instance Methods

closeAudioPreprocess

关闭音频预处理

- (void)closeAudioPreprocess

Discussion

关闭音频预处理

Declared In

  • SNAudioPreprocessProxy.h

destroy

销毁播放器,再次使用时需要重新初始化

- (void)destroy

Discussion

销毁播放器,再次使用时需要重新初始化

Declared In

  • SNPCMPlayer.h

disableAudioPreprocess:

关闭指定的音频预处理

- (void)disableAudioPreprocess:(id<SNAudioPrepProtocol>)*processor*

Discussion

关闭指定的音频预处理

Declared In

  • SNAudioPreprocessProxy.h

enableAudioPreprocess:

开启音频预处理

- (void)enableAudioPreprocess:(id<SNAudioPrepProtocol>)*processor*

Discussion

开启音频预处理

Declared In

  • SNAudioPreprocessProxy.h

getPCMFormat

通过该接口,可以获取当前房间内的PCM数据格式

- (SNPCMFormat *)getPCMFormat

Discussion

通过该接口,可以获取当前房间内的PCM数据格式

Declared In

  • SNPCMPlayer.h

setProvider:

PCM 提供方

- (void)setProvider:(id<SNPCMPlayerProvider>)*provider*

Discussion

PCM 提供方

Declared In

  • SNPCMPlayer.h

setVolume:

设置播放音量,默认 30

- (void)setVolume:(int)*volume*

Discussion

设置播放音量,默认 30

Declared In

  • SNPCMPlayer.h

startPlay

开始播放

- (void)startPlay

Discussion

开始播放

Declared In

  • SNPCMPlayer.h

stopPlay

停止播放

- (void)stopPlay

Discussion

停止播放

Declared In

  • SNPCMPlayer.h

volume

获取播放音量

- (int)volume

Discussion

获取播放音量

Declared In

  • SNPCMPlayer.h

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /