|
Agora Java API Reference for Android
|
Raw audio data. More...
#include <AgoraMediaBase.h>
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 |
| int64_t | presentationMs |
| int | audioTrackNumber |
| uint32_t | rtpTimestamp |
Raw audio data.
| AUDIO_FRAME_TYPE agora::media::IAudioFrameObserverBase::AudioFrame::type |
The type of the audio frame. See AUDIO_FRAME_TYPE.
| int agora::media::IAudioFrameObserverBase::AudioFrame::samplesPerChannel |
The number of samples per channel in the audio frame.
| agora::rtc::BYTES_PER_SAMPLE agora::media::IAudioFrameObserverBase::AudioFrame::bytesPerSample |
The number of bytes per sample. For PCM, this parameter is generally set to 16 bits (2 bytes).
| int agora::media::IAudioFrameObserverBase::AudioFrame::channels |
The number of audio channels (the data are interleaved if it is stereo).
| int agora::media::IAudioFrameObserverBase::AudioFrame::samplesPerSec |
The number of samples per channel in the audio frame.
| 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. The size of the data buffer is as follows: buffer = samples × channels × bytesPerSample.
| int64_t agora::media::IAudioFrameObserverBase::AudioFrame::renderTimeMs |
The timestamp (ms) of the external audio frame. 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.
| int agora::media::IAudioFrameObserverBase::AudioFrame::avsync_type |
Reserved for future use.
| int64_t agora::media::IAudioFrameObserverBase::AudioFrame::presentationMs |
The pts timestamp of this audio frame.
This timestamp is used to indicate the origin pts time of the frame, and sync with video frame by the pts time stamp
| int agora::media::IAudioFrameObserverBase::AudioFrame::audioTrackNumber |
The number of the audio track.
| uint32_t agora::media::IAudioFrameObserverBase::AudioFrame::rtpTimestamp |
RTP timestamp of the first sample in the audio frame
1.8.18