Class AudioProcessor.AudioFormat
- java.lang.Object
-
- com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat
-
- Enclosing interface:
- AudioProcessor
public static final class AudioProcessor.AudioFormat extends Object
PCM audio format that may be handled by an audio processor.
-
-
Field Summary
Fields Modifier and Type Field Description int
bytesPerFrame
The number of bytes used to represent one audio frame.int
channelCount
The number of interleaved channels.@com.google.android.exoplayer2.C.PcmEncoding int
encoding
The type of linear PCM encoding.static AudioProcessor.AudioFormat
NOT_SET
AnAudioProcessor.AudioFormat
instance to represent an unsetAudioProcessor.AudioFormat
.int
sampleRate
The sample rate in Hertz.
-
Constructor Summary
Constructors Constructor Description AudioFormat(int sampleRate, int channelCount, @com.google.android.exoplayer2.C.PcmEncoding int encoding)
-
-
-
Field Detail
-
NOT_SET
public static final AudioProcessor.AudioFormat NOT_SET
AnAudioProcessor.AudioFormat
instance to represent an unsetAudioProcessor.AudioFormat
. This should not be returned byAudioProcessor.configure(AudioFormat)
if the processorAudioProcessor.isActive()
.Typically used to represent an inactive
AudioProcessor
output format.
-
sampleRate
public final int sampleRate
The sample rate in Hertz.
-
channelCount
public final int channelCount
The number of interleaved channels.
-
encoding
public final @com.google.android.exoplayer2.C.PcmEncoding int encoding
The type of linear PCM encoding.
-
bytesPerFrame
public final int bytesPerFrame
The number of bytes used to represent one audio frame.
-
-