Serializablepublic class AudioAttributes extends Object implements Serializable
| Modifier and Type | Field | Description |
|---|---|---|
static String |
DIRECT_STREAM_COPY |
This value can be setted in the codec field to perform a direct stream
copy, without re-encoding of the audio stream.
|
| Constructor | Description |
|---|---|
AudioAttributes() |
| Modifier and Type | Method | Description |
|---|---|---|
Integer |
getQuality() |
|
void |
setBitRate(Integer bitRate) |
Sets the bitrate value for the encoding process.
|
void |
setChannels(Integer channels) |
Sets the channels value (1=mono, 2=stereo, 4=quad) for the encoding process.
|
void |
setCodec(String codec) |
Sets the codec name for the encoding process.
|
void |
setQuality(Integer quality) |
The audio quality value for the encoding process.
|
void |
setSamplingRate(Integer samplingRate) |
Sets the samplingRate value for the encoding process.
|
void |
setVolume(Integer volume) |
Sets the volume value for the encoding process.
|
String |
toString() |
public static final String DIRECT_STREAM_COPY
public void setCodec(String codec)
Encoder.getAudioEncoders().
A special value can be picked from
DIRECT_STREAM_COPY.codec - The codec name for the encoding process.public void setBitRate(Integer bitRate)
bitRate - The bitrate value for the encoding process.public void setSamplingRate(Integer samplingRate)
samplingRate - The samplingRate value for the encoding process.public void setChannels(Integer channels)
channels - The channels value (1=mono, 2=stereo, 4=quad) for the encoding
process.public void setVolume(Integer volume)
volume - The volume value for the encoding process.public Integer getQuality()
public void setQuality(Integer quality)
quality - the audio conversion quality to setCopyright © 2019. All rights reserved.