AudioProcessor.AudioFormat
public final class AudioProcessor.AudioFormat
PCM audio format that may be handled by an audio processor.
Summary
Constants |
|
|---|---|
static final AudioProcessor.AudioFormat |
An |
Public fields |
|
|---|---|
final int |
The number of bytes used to represent one audio frame. |
final int |
The number of interleaved channels. |
final int |
The type of linear PCM encoding. |
final int |
The sample rate in Hertz. |
Public constructors |
|---|
AudioFormat(Format format)Creates an instance using the |
AudioFormat(int sampleRate, int channelCount, @C.PcmEncoding int encoding) |
Constants
NOT_SET
public static final AudioProcessor.AudioFormat NOT_SET
An AudioFormat instance to represent an unset AudioFormat. This should not be returned by configure if the processor isActive.
Typically used to represent an inactive AudioProcessor output format.
Public fields
Public constructors
AudioFormat
public AudioFormat(Format format)
Creates an instance using the sampleRate, channelCount and pcmEncoding.