docs/doc/reference/com/google/android/exoplayer2/audio/AudioProcessor.AudioFormat.html
Package com.google.android.exoplayer2.audio
Enclosing interface:AudioProcessor
public static final classAudioProcessor.AudioFormatextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
PCM audio format that may be handled by an audio processor.
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 |
An AudioProcessor.AudioFormat instance to represent an unset AudioProcessor.AudioFormat.
|
| int | sampleRate |
The sample rate in Hertz.
|
Constructors | Constructor | Description |
| --- | --- |
| AudioFormat(int sampleRate, int channelCount, @com.google.android.exoplayer2.C.PcmEncoding int encoding) | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object o) | |
| int | hashCode() | |
| String | toString() | |
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
public static final[AudioProcessor.AudioFormat](AudioProcessor.AudioFormat.html "class in com.google.android.exoplayer2.audio")NOT_SET
An AudioProcessor.AudioFormat instance to represent an unset AudioProcessor.AudioFormat. This should not be returned by AudioProcessor.configure(AudioFormat) if the processor AudioProcessor.isActive().
Typically used to represent an inactive AudioProcessor output format.
-
public final int sampleRate
The sample rate in Hertz.
-
public final int channelCount
The number of interleaved channels.
-
public final @com.google.android.exoplayer2.C.PcmEncoding int encoding
The type of linear PCM encoding.
-
public final int bytesPerFrame
The number of bytes used to represent one audio frame.
-
public AudioFormat(int sampleRate,
int channelCount,
@com.google.android.exoplayer2.C.PcmEncoding int encoding)
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()
Overrides:toString in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")o)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object