| Modifier and Type | Field and Description |
|---|---|
protected SampleFormat |
Configurable.sampleFormat
The sample format for audio encoder.
|
| Modifier and Type | Method and Description |
|---|---|
static SampleFormat |
SampleFormat.byId(int id) |
SampleFormat |
Demuxer.getSampleFormat() |
SampleFormat |
Decoder.getSampleFormat() |
SampleFormat |
Configurable.getSampleFormat()
Get sample format.
|
SampleFormat |
Coder.getSampleFormat() |
SampleFormat |
AudioFormat.getSampleFormat()
Get the sample format.
|
SampleFormat[] |
Codec.getSupportedSampleFormats()
Get all supported sample formats by this
Codec. |
static SampleFormat |
SampleFormat.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SampleFormat[] |
SampleFormat.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Audio.getFormatDepth(SampleFormat format)
Get number of bytes per sample for specified sample format.
|
static Number |
Audio.getValue(ByteBuffer buffer,
SampleFormat format,
int index)
Read a
Number at specified index from ByteBuffer for specified
SampleFormat. |
void |
Encoder.setSampleFormat(SampleFormat format) |
void |
Configurable.setSampleFormat(SampleFormat sampleFormat)
Set new sample format.
|
void |
AudioFormat.setSampleFormat(SampleFormat sampleFormat)
Set the sample format.
|
| Constructor and Description |
|---|
AudioFormat(SampleFormat sampleFormat,
ChannelLayout channelLayout,
int channels,
int sampleRate)
Creates a new
AudioFormat with specified values. |
Copyright © 2013. All Rights Reserved.