public class AudioAttributes extends Object implements Serializable
| Modifier and Type | Field and 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 and Description |
|---|
AudioAttributes() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getQuality() |
AudioAttributes |
setBitRate(Integer bitRate)
Sets the bitrate value for the encoding process.
|
AudioAttributes |
setChannels(Integer channels)
Sets the channels value (1=mono, 2=stereo, 4=quad) for the encoding process.
|
AudioAttributes |
setCodec(String codec)
Sets the codec name for the encoding process.If null or not specified
the encoder will perform a direct stream copy.
|
AudioAttributes |
setQuality(Integer quality)
The audio quality value for the encoding process.
|
AudioAttributes |
setSamplingRate(Integer samplingRate)
Sets the samplingRate value for the encoding process.
|
AudioAttributes |
setVolume(Integer volume)
Sets the volume value for the encoding process.
|
String |
toString() |
public static final String DIRECT_STREAM_COPY
public AudioAttributes setCodec(String codec)
Encoder.getAudioEncoders().
A special value can be picked from
DIRECT_STREAM_COPY.codec - The codec name for the encoding process.public AudioAttributes setBitRate(Integer bitRate)
bitRate - The bitrate value for the encoding process.public AudioAttributes setSamplingRate(Integer samplingRate)
samplingRate - The samplingRate value for the encoding process.public AudioAttributes setChannels(Integer channels)
channels - The channels value (1=mono, 2=stereo, 4=quad) for the encoding
process.public AudioAttributes setVolume(Integer volume)
volume - The volume value for the encoding process.public Integer getQuality()
public AudioAttributes setQuality(Integer quality)
quality - the audio conversion quality to setCopyright © 2020. All rights reserved.