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 |
|---|---|
void |
setBitRate(Integer bitRate)
Sets the bitrate value for the encoding process.
|
void |
setChannels(Integer channels)
Sets the channels value (1=mono, 2=stereo) for the encoding process.
|
void |
setCodec(String codec)
Sets the codec name 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) for the encoding
process.public void setVolume(Integer volume)
volume - The volume value for the encoding process.Copyright © 2018. All rights reserved.