The definition of the AudioFrame struct.
◆ AudioFrame()
agora::media::IAudioFrameObserverBase::AudioFrame::AudioFrame |
( |
| ) |
|
|
inline |
◆ type
◆ samplesPerChannel
int agora::media::IAudioFrameObserverBase::AudioFrame::samplesPerChannel |
The number of samples per channel in this frame.
◆ bytesPerSample
The number of bytes per sample: #BYTES_PER_SAMPLE
◆ channels
int agora::media::IAudioFrameObserverBase::AudioFrame::channels |
The number of audio channels (data is interleaved, if stereo).
◆ samplesPerSec
int agora::media::IAudioFrameObserverBase::AudioFrame::samplesPerSec |
The number of samples per channel in the audio frame.
◆ buffer
void* agora::media::IAudioFrameObserverBase::AudioFrame::buffer |
The data buffer of the audio frame. When the audio frame uses a stereo channel, the data buffer is interleaved.
Buffer data size: buffer = samples × channels × bytesPerSample.
◆ renderTimeMs
int64_t agora::media::IAudioFrameObserverBase::AudioFrame::renderTimeMs |
The timestamp to render the audio data.
You can use this timestamp to restore the order of the captured audio frame, and synchronize audio and video frames in video scenarios, including scenarios where external video sources are used.
◆ avsync_type
int agora::media::IAudioFrameObserverBase::AudioFrame::avsync_type |