NERtc Windows SDK
V4.4.301
|
#include <nertc_engine_defines.h>
Public 成员函数 | |
virtual void | onAudioFrameDidRecord (NERtcAudioFrame *frame)=0 |
virtual void | onAudioFrameWillPlayback (NERtcAudioFrame *frame)=0 |
virtual void | onMixedAudioFrame (NERtcAudioFrame *frame)=0 |
virtual void | onPlaybackAudioFrameBeforeMixing (uint64_t userID, NERtcAudioFrame *frame)=0 |
The voice observer object.
Some APIs allow you to modify the content that void *data points to in the frame. However, you cannot modify the format. If you need to modify the format, you must call the corresponding setting interface.
|
pure virtual |
Occurs when the audio data is captured. The callback is used to process the audio data.
frame | The audio frame. |
|
pure virtual |
Occurs when the audio data is played back. The callback is used to process the audio data.
frame | The audio frame. |
|
pure virtual |
Gets the raw audio data of the local user and all remote users after mixing.
frame | The audio frame. |
|
pure virtual |
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.
userID | The ID of a remote user. |
frame | The audio frame. |