#include <AgoraMediaBase.h>
◆ AUDIO_FRAME_TYPE
Audio frame types.
| Enumerator |
|---|
| FRAME_TYPE_PCM16 | 0: 16-bit PCM.
|
◆ ~IAudioFrameObserverBase()
| virtual IAudioFrameObserverBase::~IAudioFrameObserverBase |
( |
| ) |
|
|
inlinevirtual |
◆ onMixedAudioFrame()
| virtual bool IAudioFrameObserverBase::onMixedAudioFrame |
( |
const char * |
channelId, |
|
|
AudioFrame & |
audioFrame |
|
) |
| |
|
pure virtual |
Occurs when the mixed audio data is received.
- Parameters
-
| channelId | The channel name |
| audioFrame | The reference to the audio frame: AudioFrame. |
- Returns
- true: The mixed audio data is valid and is encoded and sent.
- false: The mixed audio data is invalid and is not encoded or sent.
◆ onPlaybackAudioFrame()
| virtual bool IAudioFrameObserverBase::onPlaybackAudioFrame |
( |
const char * |
channelId, |
|
|
AudioFrame & |
audioFrame |
|
) |
| |
|
pure virtual |
Occurs when the playback audio frame is received.
- Parameters
-
| channelId | The channel name |
| audioFrame | The reference to the audio frame: AudioFrame. |
- Returns
- true: The playback audio frame is valid and is encoded and sent.
- false: The playback audio frame is invalid and is not encoded or sent.
◆ onPlaybackAudioFrameBeforeMixing()
| virtual bool IAudioFrameObserverBase::onPlaybackAudioFrameBeforeMixing |
( |
const char * |
channelId, |
|
|
base::user_id_t |
userId, |
|
|
AudioFrame & |
audioFrame |
|
) |
| |
|
inlinevirtual |
Occurs when the before-mixing playback audio frame is received.
- Parameters
-
| channelId | A null pointer |
| userId | ID of the remote user. |
| audioFrame | The reference to the audio frame: AudioFrame. |
- Returns
- true: The before-mixing playback audio frame is valid and is encoded and sent.
- false: The before-mixing playback audio frame is invalid and is not encoded or sent.
Reimplemented in IAudioFrameObserver.
◆ onRecordAudioFrame()
| virtual bool IAudioFrameObserverBase::onRecordAudioFrame |
( |
const char * |
channelId, |
|
|
AudioFrame & |
audioFrame |
|
) |
| |
|
pure virtual |
Occurs when the recorded audio frame is received.
- Parameters
-
| channelId | The channel name |
| audioFrame | The reference to the audio frame: AudioFrame. |
- Returns
- true: The recorded audio frame is valid and is encoded and sent.
- false: The recorded audio frame is invalid and is not encoded or sent.
The documentation for this class was generated from the following file: