Agora Server Gateway SDK C++ API Reference
Public Member Functions | Public Attributes | List of all members
IAudioFrameObserverBase::AudioFrame Struct Reference

#include <AgoraMediaBase.h>

Public Member Functions

 AudioFrame ()
 

Public Attributes

AUDIO_FRAME_TYPE type
 
int samplesPerChannel
 
agora::rtc::BYTES_PER_SAMPLE bytesPerSample
 
int channels
 
int samplesPerSec
 
void * buffer
 
int64_t renderTimeMs
 
int avsync_type
 

Detailed Description

The definition of the AudioFrame struct.

Constructor & Destructor Documentation

◆ AudioFrame()

IAudioFrameObserverBase::AudioFrame::AudioFrame ( )
inline

Member Data Documentation

◆ avsync_type

int IAudioFrameObserverBase::AudioFrame::avsync_type

◆ buffer

void* IAudioFrameObserverBase::AudioFrame::buffer

The pointer to the audio data buffer.

◆ bytesPerSample

agora::rtc::BYTES_PER_SAMPLE IAudioFrameObserverBase::AudioFrame::bytesPerSample

The number of bytes per sample.

◆ channels

int IAudioFrameObserverBase::AudioFrame::channels

The number of audio channels (data is interleaved, if stereo).

◆ renderTimeMs

int64_t IAudioFrameObserverBase::AudioFrame::renderTimeMs

The timestamp to render the audio data. Use this member for audio-video synchronization when rendering the audio.

Note
This parameter is the timestamp for audio rendering. Set it as 0.

◆ samplesPerChannel

int IAudioFrameObserverBase::AudioFrame::samplesPerChannel

The number of samples per channel in this frame.

◆ samplesPerSec

int IAudioFrameObserverBase::AudioFrame::samplesPerSec

The sample rate of the audio frame.

◆ type

AUDIO_FRAME_TYPE IAudioFrameObserverBase::AudioFrame::type

The audio frame type: AUDIO_FRAME_TYPE.


The documentation for this struct was generated from the following file: