Back to Exoplayer

AudioProcessor.AudioFormat (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/audio/AudioProcessor.AudioFormat.html

latest4.1 KB
Original Source

Package com.google.android.exoplayer2.audio

Class AudioProcessor.AudioFormat


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.

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 | An AudioProcessor.AudioFormat instance to represent an unset AudioProcessor.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) | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | boolean | equals​(Object o) | | | int | hashCode() | | | String | toString() | |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Field Detail

- 

NOT_SET

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.

- 

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.

Constructor Detail

- 

AudioFormat

public AudioFormat​(int sampleRate,
                   int channelCount,
                   @com.google.android.exoplayer2.C.PcmEncoding int encoding)

Method Detail

- 

toString

public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()

Overrides:toString in class Object

- 

equals

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

- 

hashCode

public int hashCode()

Overrides:hashCode in class Object