public class RtmpStreamingAudioConf
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
bitrate
Bitrate (Kbps)
|
private int |
bytesPerSample
Bytes per sample
|
private int |
numberOfChannels
Number of channels
|
private int |
sampleRateHz
Sample rate (Hz)
|
| Constructor and Description |
|---|
RtmpStreamingAudioConf()
Default constructor for RtmpStreamingAudioConf.
|
RtmpStreamingAudioConf(int sampleRateHz,
int bytesPerSample,
int numberOfChannels,
int bitrate)
Constructs RtmpStreamingAudioConf with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitrate()
Gets the bitrate (Kbps).
|
int |
getBytesPerSample()
Gets the bytes per sample.
|
int |
getNumberOfChannels()
Gets the number of channels.
|
int |
getSampleRateHz()
Gets the sample rate (Hz).
|
void |
setBitrate(int bitrate)
Sets the bitrate (Kbps).
|
void |
setBytesPerSample(int bytesPerSample)
Sets the bytes per sample.
|
void |
setNumberOfChannels(int numberOfChannels)
Sets the number of channels.
|
void |
setSampleRateHz(int sampleRateHz)
Sets the sample rate (Hz).
|
private int sampleRateHz
private int bytesPerSample
private int numberOfChannels
private int bitrate
public RtmpStreamingAudioConf()
public RtmpStreamingAudioConf(int sampleRateHz,
int bytesPerSample,
int numberOfChannels,
int bitrate)
sampleRateHz - Sample rate (Hz)bytesPerSample - Bytes per samplenumberOfChannels - Number of channelsbitrate - Bitrate (Kbps)public int getSampleRateHz()
public void setSampleRateHz(int sampleRateHz)
sampleRateHz - Sample rate (Hz)public int getBytesPerSample()
public void setBytesPerSample(int bytesPerSample)
bytesPerSample - Bytes per samplepublic int getNumberOfChannels()
public void setNumberOfChannels(int numberOfChannels)
numberOfChannels - Number of channelspublic int getBitrate()
public void setBitrate(int bitrate)
bitrate - Bitrate (Kbps)