public class AudioAttributes
extends java.lang.Object
implements java.io.Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.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.
|
| 构造器和说明 |
|---|
AudioAttributes() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setBitRate(java.lang.Integer bitRate)
Sets the bitrate value for the encoding process.
|
void |
setChannels(java.lang.Integer channels)
Sets the channels value (1=mono, 2=stereo) for the encoding process.
|
void |
setCodec(java.lang.String codec)
Sets the codec name for the encoding process.
|
void |
setSamplingRate(java.lang.Integer samplingRate)
Sets the samplingRate value for the encoding process.
|
void |
setVolume(java.lang.Integer volume)
Sets the volume value for the encoding process.
|
java.lang.String |
toString() |
public static final java.lang.String DIRECT_STREAM_COPY
public void setCodec(java.lang.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(java.lang.Integer bitRate)
bitRate - The bitrate value for the encoding process.public void setSamplingRate(java.lang.Integer samplingRate)
samplingRate - The samplingRate value for the encoding process.public void setChannels(java.lang.Integer channels)
channels - The channels value (1=mono, 2=stereo) for the encoding
process.public void setVolume(java.lang.Integer volume)
volume - The volume value for the encoding process.public java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2019. All Rights Reserved.