Agora Java API Reference for Android
Classes | Public Member Functions | Public Attributes | List of all members
io.agora.streaming.AudioStreamConfiguration Class Reference

Classes

interface  SoundFormat
 
interface  SoundRate
 
interface  SoundSize
 
interface  SoundType
 

Public Member Functions

 AudioStreamConfiguration ( @SoundRate int soundRate, @SoundType int soundType, int bitrateKbps)
 
int getSampleRateHz ()
 
int getBytesPerSample ()
 
int getNumberOfChannels ()
 
int getBitrate ()
 
String toString ()
 

Public Attributes

int sampleRateHz
 
int bytesPerSample
 
int numberOfChannels
 
int bitrate
 

Detailed Description

Configurations for the audio stream.

Member Data Documentation

◆ sampleRateHz

int io.agora.streaming.AudioStreamConfiguration.sampleRateHz

Sampling rate (Hz). The default value is 44100 (i.e. 44.1kHz).

◆ bytesPerSample

int io.agora.streaming.AudioStreamConfiguration.bytesPerSample

Number of bytes per sample. The default value is 2 (i.e. 16-bit PCM).

◆ numberOfChannels

int io.agora.streaming.AudioStreamConfiguration.numberOfChannels

Number of channels. The defualt value is 2 (i.e. stereo).

◆ bitrate

int io.agora.streaming.AudioStreamConfiguration.bitrate

The target bitrate (Kbps) of the output audio stream to be published. The default value is 48 Kbps.