Server Gateway SDK v3.8.202.20 for Linux C++
Public Member Functions | Public Attributes | List of all members
agora::media::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()

agora::media::IAudioFrameObserverBase::AudioFrame::AudioFrame ( )
inline

Member Data Documentation

◆ avsync_type

int agora::media::IAudioFrameObserverBase::AudioFrame::avsync_type

◆ buffer

void* agora::media::IAudioFrameObserverBase::AudioFrame::buffer

The pointer to the audio data buffer.

◆ bytesPerSample

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

The number of bytes per sample.

◆ channels

int agora::media::IAudioFrameObserverBase::AudioFrame::channels

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

◆ renderTimeMs

int64_t agora::media::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 agora::media::IAudioFrameObserverBase::AudioFrame::samplesPerChannel

The number of samples per channel in this frame.

◆ samplesPerSec

int agora::media::IAudioFrameObserverBase::AudioFrame::samplesPerSec

The sample rate of the audio frame.

◆ type

AUDIO_FRAME_TYPE agora::media::IAudioFrameObserverBase::AudioFrame::type

The audio frame type: AUDIO_FRAME_TYPE.


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