Package io.agora.rtc2.audio
Class AudioParams
java.lang.Object
io.agora.rtc2.audio.AudioParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of audio channels, which can be set as either of the following values: - 1: (Default) Mono.intThe use mode of the audio data, which can be set as either of the following values: - RAW_AUDIO_FRAME_OP_MODE_READ_ONLY (0): Read-only mode, For example, when users acquire the data with the Agora SDK, then start the media push.intThe audio sample rate (Hz), which can be set as one of the following values: - 8000.intThe number of samples, such as 1024 for the media push. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sampleRate
public int sampleRateThe audio sample rate (Hz), which can be set as one of the following values: - 8000. - (Default) 16000. - 32000. - 44100 - 48000 -
channel
public int channelThe number of audio channels, which can be set as either of the following values: - 1: (Default) Mono. - 2: Stereo. -
mode
public int modeThe use mode of the audio data, which can be set as either of the following values: - RAW_AUDIO_FRAME_OP_MODE_READ_ONLY (0): Read-only mode, For example, when users acquire the data with the Agora SDK, then start the media push. - RAW_AUDIO_FRAME_OP_MODE_READ_WRITE (2): Read and write mode, For example, when users have their own audio-effect processing module and perform some voice pre-processing, such as a voice change. -
samplesPerCall
public int samplesPerCallThe number of samples, such as 1024 for the media push.
-
-
Constructor Details
-
AudioParams
public AudioParams(int sampleRate, int channelCnt, int mode, int samplesPerCall)
-
-
Method Details