Server Gateway SDK v3.7.200.21 for Linux Java
Public Member Functions | List of all members
io.agora.rtc.IAudioFrameObserver Interface Reference

Public Member Functions

int onRecordAudioFrame (AgoraLocalUser agora_local_user, String channel_id, AudioFrame frame)
 
int onPlaybackAudioFrame (AgoraLocalUser agora_local_user, String channel_id, AudioFrame frame)
 
int onMixedAudioFrame (AgoraLocalUser agora_local_user, String channel_id, AudioFrame frame)
 
int onPlaybackAudioFrameBeforeMixing (AgoraLocalUser agora_local_user, String channel_id, String uid, AudioFrame frame)
 

Detailed Description

The IAudioFrameObserver interface.

Member Function Documentation

◆ onMixedAudioFrame()

int io.agora.rtc.IAudioFrameObserver.onMixedAudioFrame ( AgoraLocalUser  agora_local_user,
String  channel_id,
AudioFrame  frame 
)

Retrieves the mixed captured and playback audio frame.

Parameters
agora_local_userAn AgoraLocalUser object.
channel_idThe channel name
frameThe audio frame.
Returns
  • 0: The recorded audio frame is valid.
  • 1: The recorded audio frame is invalid.

◆ onPlaybackAudioFrame()

int io.agora.rtc.IAudioFrameObserver.onPlaybackAudioFrame ( AgoraLocalUser  agora_local_user,
String  channel_id,
AudioFrame  frame 
)

Gets the audio frame for playback.

Parameters
agora_local_userAn AgoraLocalUser object.
channel_idThe channel name
frameThe audio frame.
Returns
  • 0: The playback audio frame is valid.
  • 1: The playback audio frame is invalid.

◆ onPlaybackAudioFrameBeforeMixing()

int io.agora.rtc.IAudioFrameObserver.onPlaybackAudioFrameBeforeMixing ( AgoraLocalUser  agora_local_user,
String  channel_id,
String  uid,
AudioFrame  frame 
)

Gets the audio frame for playback.

Parameters
agora_local_userAn AgoraLocalUser object.
channel_idThe channel name.
uidThe user ID.
frameThe audio frame.
Returns
  • 0: The before-mixing playback audio frame is valid.
  • 1: The before-mixing playback audio frame is invalid.

◆ onRecordAudioFrame()

int io.agora.rtc.IAudioFrameObserver.onRecordAudioFrame ( AgoraLocalUser  agora_local_user,
String  channel_id,
AudioFrame  frame 
)

Gets the captured audio frame.

Parameters
agora_local_userAn AgoraLocalUser object.
channel_idThe channel name
frameThe audio frame.
Returns
  • 0: The recorded audio frame is valid.
  • 1: The recorded audio frame is invalid.

The documentation for this interface was generated from the following file: