public class EncodedAudioFrameInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
captureTimeMs
Capture timestamp in milliseconds
|
private int |
codec
Codec type of the audio frame
|
private int |
numberOfChannels
Number of audio channels
|
private int |
sampleRateHz
Sampling rate of the audio frame in Hz
|
private int |
samplesPerChannel
Number of samples per audio channel
|
private int |
sendEvenIfEmpty
Whether to send the frame even if it is empty
|
private int |
speech
Indicates whether the frame contains speech
|
| Constructor and Description |
|---|
EncodedAudioFrameInfo()
Default constructor for EncodedAudioFrameInfo.
|
EncodedAudioFrameInfo(int speech,
int codec,
int sampleRateHz,
int samplesPerChannel,
int numberOfChannels,
int sendEvenIfEmpty,
long captureTimeMs)
Constructs EncodedAudioFrameInfo with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCaptureTimeMs()
Gets the capture timestamp in milliseconds.
|
int |
getCodec()
Gets the codec type of the audio frame.
|
int |
getNumberOfChannels()
Gets the number of audio channels.
|
int |
getSampleRateHz()
Gets the sampling rate of the audio frame in Hz.
|
int |
getSamplesPerChannel()
Gets the number of samples per audio channel.
|
int |
getSendEvenIfEmpty()
Gets whether to send the frame even if it is empty.
|
int |
getSpeech()
Gets whether the frame contains speech.
|
void |
setCaptureTimeMs(long captureTimeMs)
Sets the capture timestamp in milliseconds.
|
void |
setCodec(int codec)
Sets the codec type of the audio frame.
|
void |
setNumberOfChannels(int numberOfChannels)
Sets the number of audio channels.
|
void |
setSampleRateHz(int sampleRateHz)
Sets the sampling rate of the audio frame in Hz.
|
void |
setSamplesPerChannel(int samplesPerChannel)
Sets the number of samples per audio channel.
|
void |
setSendEvenIfEmpty(int sendEvenIfEmpty)
Sets whether to send the frame even if it is empty.
|
void |
setSpeech(int speech)
Sets whether the frame contains speech.
|
java.lang.String |
toString() |
private int speech
private int codec
private int sendEvenIfEmpty
private int sampleRateHz
private int samplesPerChannel
private int numberOfChannels
private long captureTimeMs
public EncodedAudioFrameInfo()
public EncodedAudioFrameInfo(int speech,
int codec,
int sampleRateHz,
int samplesPerChannel,
int numberOfChannels,
int sendEvenIfEmpty,
long captureTimeMs)
speech - Indicates whether the frame contains speechcodec - Codec type of the audio framesampleRateHz - Sampling rate of the audio frame in HzsamplesPerChannel - Number of samples per audio channelnumberOfChannels - Number of audio channelssendEvenIfEmpty - Whether to send the frame even if it is emptycaptureTimeMs - Capture timestamp in millisecondspublic int getSpeech()
public void setSpeech(int speech)
speech - Whether the frame contains speechpublic int getCodec()
public void setCodec(int codec)
codec - Codec type of the audio framepublic int getSendEvenIfEmpty()
public void setSendEvenIfEmpty(int sendEvenIfEmpty)
sendEvenIfEmpty - Whether to send the frame even if it is emptypublic int getSampleRateHz()
public void setSampleRateHz(int sampleRateHz)
sampleRateHz - Sampling rate of the audio frame in Hzpublic int getSamplesPerChannel()
public void setSamplesPerChannel(int samplesPerChannel)
samplesPerChannel - Number of samples per audio channelpublic int getNumberOfChannels()
public void setNumberOfChannels(int numberOfChannels)
numberOfChannels - Number of audio channelspublic long getCaptureTimeMs()
public void setCaptureTimeMs(long captureTimeMs)
captureTimeMs - Capture timestamp in millisecondspublic java.lang.String toString()
toString in class java.lang.Object