Agora C++ API Reference for All Platforms
|
#include <IAgoraMediaEngine.h>
Public Attributes | |
AUDIO_FRAME_TYPE | type |
int | samples |
int | bytesPerSample |
int | channels |
int | samplesPerSec |
void * | buffer |
int64_t | renderTimeMs |
int | avsync_type |
Definition of AudioFrame
AUDIO_FRAME_TYPE agora::media::IAudioFrameObserver::AudioFrame::type |
The type of the audio frame. See AUDIO_FRAME_TYPE
int agora::media::IAudioFrameObserver::AudioFrame::samples |
The number of samples per channel in the audio frame.
int agora::media::IAudioFrameObserver::AudioFrame::bytesPerSample |
The number of bytes per audio sample, which is usually 16-bit (2-byte).
int agora::media::IAudioFrameObserver::AudioFrame::channels |
The number of audio channels.
int agora::media::IAudioFrameObserver::AudioFrame::samplesPerSec |
The sample rate.
void* agora::media::IAudioFrameObserver::AudioFrame::buffer |
The data buffer of the audio frame. When the audio frame uses a stereo channel, the data buffer is interleaved. The size of the data buffer is as follows: buffer
= samples
× channels
× bytesPerSample
.
int64_t agora::media::IAudioFrameObserver::AudioFrame::renderTimeMs |
The timestamp (ms) of the external audio frame. You can use this parameter for the following purposes:
int agora::media::IAudioFrameObserver::AudioFrame::avsync_type |
Reserved parameter.