public class Audio extends Object implements Serializable
| Constructor and Description |
|---|
Audio() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getBitRateInBps()
Returns the audio bit rate
|
Integer |
getChannels()
Returns the number of audio channels.
|
Integer |
getSampleRateInHz()
Returns the audio sample rate.
|
void |
setBitRateInBps(Integer bitRateInBps)
Sets the audio bit rate.
|
void |
setChannels(Integer channels)
Sets the number of audio channels.
|
void |
setSampleRateInHz(Integer sampleRateInHz)
Sets the audio sample rate
|
String |
toString() |
Audio |
withBitRateInBps(Integer bitRateInBps)
Sets the audio bit rate and returns this object.
|
Audio |
withChannels(Integer channels)
Sets the number of audio channels and returns this object.
|
Audio |
withSampleRateInHz(Integer sampleRateInHz)
Sets the audio sample rate and returns this object
|
public Integer getBitRateInBps()
public void setBitRateInBps(Integer bitRateInBps)
bitRateInBps - the audio bit ratepublic Audio withBitRateInBps(Integer bitRateInBps)
bitRateInBps - the audio bit ratepublic Integer getSampleRateInHz()
public void setSampleRateInHz(Integer sampleRateInHz)
sampleRateInHz - the audio sample ratepublic Audio withSampleRateInHz(Integer sampleRateInHz)
sampleRateInHz - the audio sample ratepublic Integer getChannels()
public void setChannels(Integer channels)
channels - the number of audio channelspublic Audio withChannels(Integer channels)
channels - the number of audio channelsCopyright © 2022. All rights reserved.