public final class

AudioProcessor.AudioFormat

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.audio.AudioProcessor.AudioFormat

Overview

PCM audio format that may be handled by an audio processor.

Summary

Fields
public final intbytesPerFrame

The number of bytes used to represent one audio frame.

public final intchannelCount

The number of interleaved channels.

public final intencoding

The type of linear PCM encoding.

public static final AudioProcessor.AudioFormatNOT_SET

public final intsampleRate

The sample rate in Hertz.

Constructors
publicAudioFormat(int sampleRate, int channelCount, int encoding)

Methods
public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public static final AudioProcessor.AudioFormat NOT_SET

public final int sampleRate

The sample rate in Hertz.

public final int channelCount

The number of interleaved channels.

public final int encoding

The type of linear PCM encoding.

public final int bytesPerFrame

The number of bytes used to represent one audio frame.

Constructors

public AudioFormat(int sampleRate, int channelCount, int encoding)

Methods

public java.lang.String toString()