Agora RTC Objective-C API Reference  Refactor
Data Fields
IAudioFrameObserverBase::AudioFrame Struct Reference

Data Fields

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

Detailed Description

The definition of the AudioFrame struct.

Constructor & Destructor Documentation

◆ AudioFrame()

AudioFrame ( )
inline

Field Documentation

◆ type

The audio frame type: AUDIO_FRAME_TYPE.

◆ samplesPerChannel

int samplesPerChannel

The number of samples per channel in this frame.

◆ bytesPerSample

The number of bytes per sample: #BYTES_PER_SAMPLE

◆ channels

int channels

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

◆ samplesPerSec

int samplesPerSec

The sample rate of the audio frame.

◆ buffer

void* buffer

The pointer to the audio data buffer.

◆ renderTimeMs

int64_t 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.

◆ avsync_type

int avsync_type