public class LocalAudioStats
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
internalCodec
The internal payload codec.
|
private int |
numChannels
The number of audio channels.
|
private int |
sentBitrate
The average bitrate (Kbps) of sending the local user's audio stream.
|
private int |
sentSampleRate
The sampling rate (Hz) of sending the local user's audio stream.
|
private double |
voicePitch
Voice pitch frequency in Hz.
|
| Constructor and Description |
|---|
LocalAudioStats()
Default constructor for LocalAudioStats.
|
LocalAudioStats(int numChannels,
int sentSampleRate,
int sentBitrate,
int internalCodec,
double voicePitch)
Constructs LocalAudioStats with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInternalCodec()
Gets the internal payload codec.
|
int |
getNumChannels()
Gets the number of audio channels.
|
int |
getSentBitrate()
Gets the average bitrate (Kbps) of sending the local user's audio stream.
|
int |
getSentSampleRate()
Gets the sampling rate (Hz) of sending the local user's audio stream.
|
double |
getVoicePitch()
Gets the voice pitch frequency in Hz.
|
void |
setInternalCodec(int internalCodec)
Sets the internal payload codec.
|
void |
setNumChannels(int numChannels)
Sets the number of audio channels.
|
void |
setSentBitrate(int sentBitrate)
Sets the average bitrate (Kbps) of sending the local user's audio stream.
|
void |
setSentSampleRate(int sentSampleRate)
Sets the sampling rate (Hz) of sending the local user's audio stream.
|
void |
setVoicePitch(double voicePitch)
Sets the voice pitch frequency in Hz.
|
java.lang.String |
toString() |
private int numChannels
private int sentSampleRate
private int sentBitrate
private int internalCodec
private double voicePitch
public LocalAudioStats()
public LocalAudioStats(int numChannels,
int sentSampleRate,
int sentBitrate,
int internalCodec,
double voicePitch)
numChannels - The number of audio channelssentSampleRate - The sampling rate (Hz) of sending the local user's audio streamsentBitrate - The average bitrate (Kbps) of sending the local user's audio streaminternalCodec - The internal payload codecvoicePitch - Voice pitch frequency in Hzpublic int getNumChannels()
public void setNumChannels(int numChannels)
numChannels - The number of audio channelspublic int getSentSampleRate()
public void setSentSampleRate(int sentSampleRate)
sentSampleRate - The sampling rate (Hz) of sending the local user's audio streampublic int getSentBitrate()
public void setSentBitrate(int sentBitrate)
sentBitrate - The average bitrate (Kbps) of sending the local user's audio streampublic int getInternalCodec()
public void setInternalCodec(int internalCodec)
internalCodec - The internal payload codecpublic double getVoicePitch()
public void setVoicePitch(double voicePitch)
voicePitch - Voice pitch frequency in Hzpublic java.lang.String toString()
toString in class java.lang.Object