IAudioEncodedFrameObserver
The encoded audio observer.
FOnMixedAudioEncodedFrame
Gets the mixed and encoded audio data of the local and all remote users.
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnMixedAudioEncodedFrame, const TArray<int64>, frameBuffer, int, length, const FEncodedAudioFrameInfo&, audioEncodedFrameInfo);
After calling RegisterAudioEncodedFrameObserver and setting the audio profile as AUDIO_ENCODED_FRAME_OBSERVER_POSITION_MIXED, you can get the mixed and encoded audio data of the local and all remote users through this callback.
Parameters
- frameBuffer
- The audio buffer.
- length
- The data length (byte).
- audioEncodedFrameInfo
- Audio information after encoding. See FEncodedAudioFrameInfo.
FOnPlaybackAudioEncodedFrame
Gets the encoded audio data of all remote users.
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnPlaybackAudioEncodedFrame, const TArray<int64>, frameBuffer, int, length, const FEncodedAudioFrameInfo&, audioEncodedFrameInfo);
After calling RegisterAudioEncodedFrameObserver and setting the encoded audio as AUDIO_ENCODED_FRAME_OBSERVER_POSITION_PLAYBACK, you can get encoded audio data of all remote users through this callback.
Parameters
- frameBuffer
- The audio buffer.
- length
- The data length (byte).
- audioEncodedFrameInfo
- Audio information after encoding. See FEncodedAudioFrameInfo.
FOnRecordAudioEncodedFrame
Gets the encoded audio data of the local user.
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnRecordAudioEncodedFrame, const TArray<int64>, frameBuffer, int, length, const FEncodedAudioFrameInfo&, audioEncodedFrameInfo);
After calling RegisterAudioEncodedFrameObserver and setting the encoded audio as AUDIO_ENCODED_FRAME_OBSERVER_POSITION_RECORD, you can get the encoded audio data of the local user from this callback.
Parameters
- frameBuffer
- The audio buffer.
- length
- The data length (byte).
- audioEncodedFrameInfo
- Audio information after encoding. See FEncodedAudioFrameInfo.