Agora C++ API Reference for All Platforms
|
Public Member Functions | |
AudioParams () | |
AudioParams (int samplerate, int channel, rtc::RAW_AUDIO_FRAME_OP_MODE_TYPE type, int samplesPerCall) | |
Public Attributes | |
int | sample_rate |
int | channels |
rtc::RAW_AUDIO_FRAME_OP_MODE_TYPE | mode |
int | samples_per_call |
|
inline |
|
inline |
int agora::media::IAudioFrameObserverBase::AudioParams::sample_rate |
The audio sample rate (Hz), which can be set as one of the following values:
8000
16000
(Default)32000
44100
48000
int agora::media::IAudioFrameObserverBase::AudioParams::channels |
rtc::RAW_AUDIO_FRAME_OP_MODE_TYPE agora::media::IAudioFrameObserverBase::AudioParams::mode |
int agora::media::IAudioFrameObserverBase::AudioParams::samples_per_call |
The number of samples. For example, set it as 1024 for RTMP or RTMPS streaming.