NERtc iOS SDK  V4.4.301
构造函数 | 所有成员列表
<NERtcEngineAudioFrameObserver>协议 参考

Returns the audio data If you need to process audio data, you need to implement this protocol. 更多...

#import <NERtcEngineDelegate.h>

类 <NERtcEngineAudioFrameObserver> 继承关系图:

构造函数

(void) - onNERtcEngineAudioFrameDidRecord:
 Occurs when the audio data is captured. 更多...
 
(void) - onNERtcEngineAudioFrameWillPlayback:
 Occurs when the audio data is played back. 更多...
 
(void) - onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:frame:
 Gets the raw audio data of a specified remote user before audio mixing. 更多...
 
(void) - onNERtcEngineMixedAudioFrame:
 Gets the raw audio data of the local user and all remote users after mixing. 更多...
 

详细描述

Returns the audio data If you need to process audio data, you need to implement this protocol.

函数文档

◆ onNERtcEngineAudioFrameDidRecord:

- (void) onNERtcEngineAudioFrameDidRecord: (NERtcAudioFrame *)  frame
optional

Occurs when the audio data is captured.

The callback is used to process the audio data.

  • The returned audio data has read and write permissions.
  • The callback is triggered when an operation is driven by the local audio data.
  • The callback returns synchronously, and the engine continues the audio processing flow.

You cannot modify the content void *data points to in the frame and the format. If you want to modify the format, you can set the format by calling setParameter : kNERtcKeyObserveRecordAudioFrameFormat.

参数
frameThe audio frame data. For more information, see NERtcAudioFrame.

◆ onNERtcEngineAudioFrameWillPlayback:

- (void) onNERtcEngineAudioFrameWillPlayback: (NERtcAudioFrame *)  frame
optional

Occurs when the audio data is played back.

The callback is used to process the audio data.

  • The callback returns synchronously, and the engine continues the audio processing flow. -The returned audio data has read and write permissions.
  • The callback is triggered when an operation is driven by the local audio data.

You cannot modify the content void *data points to in the frame and the format. If you want to modify the format, you can set the format by calling setParameter : kNERtcKeyObserveRecordAudioFrameFormat.

参数
frameThe audio frame data. For more information, see NERtcAudioFrame.

◆ onNERtcEngineMixedAudioFrame:

- (void) onNERtcEngineMixedAudioFrame: (NERtcAudioFrame *)  frame
optional

Gets the raw audio data of the local user and all remote users after mixing.

注解
  • The callback is in read-only mode.
  • The returned audio data is read-only.
  • The callback is triggered when an operation is driven by the local audio data.

You cannot modify the content that void *data points to in the frame and the format. If you need to modify the format, you can call setMixedAudioFrameParameters.

参数
frameThe audio frame data. For more information, see NERtcAudioFrame.

◆ onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:frame:

- (void) onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID: (uint64_t)  userID
frame: (NERtcAudioFrame *)  frame 
optional

Gets the raw audio data of a specified remote user before audio mixing.

After the audio observer is registered, if the remote audio is subscribed by default and the remote user enables the audio, the SDK triggers this callback when the audio data before audio mixing is captured, and the audio data is returned to the user.

注解
  • The returned audio data is read-only.
  • You cannot modify the content that void *data pointed to in the frame and the format.
参数
userIDThe ID of a remote user.
frameThe audio frame data. For more information, see NERtcAudioFrame.

该协议的文档由以下文件生成: