Class ToInt16PcmAudioProcessor
- java.lang.Object
-
- com.google.android.exoplayer2.audio.BaseAudioProcessor
-
- com.google.android.exoplayer2.audio.ToInt16PcmAudioProcessor
-
- All Implemented Interfaces:
AudioProcessor
@Deprecated public final class ToInt16PcmAudioProcessor extends BaseAudioProcessor
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.AnAudioProcessor
that converts different PCM audio encodings to 16-bit integer PCM. The following encodings are supported as input:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.audio.AudioProcessor
AudioProcessor.AudioFormat, AudioProcessor.UnhandledAudioFormatException
-
-
Field Summary
-
Fields inherited from class com.google.android.exoplayer2.audio.BaseAudioProcessor
inputAudioFormat, outputAudioFormat
-
Fields inherited from interface com.google.android.exoplayer2.audio.AudioProcessor
EMPTY_BUFFER
-
-
Constructor Summary
Constructors Constructor Description ToInt16PcmAudioProcessor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AudioProcessor.AudioFormat
onConfigure(AudioProcessor.AudioFormat inputAudioFormat)
Deprecated.Called when the processor is configured for a new input format.void
queueInput(ByteBuffer inputBuffer)
Deprecated.Queues audio data between the position and limit of theinputBuffer
for processing.-
Methods inherited from class com.google.android.exoplayer2.audio.BaseAudioProcessor
configure, flush, getOutput, hasPendingOutput, isActive, isEnded, onFlush, onQueueEndOfStream, onReset, queueEndOfStream, replaceOutputBuffer, reset
-
-
-
-
Method Detail
-
onConfigure
@CanIgnoreReturnValue public AudioProcessor.AudioFormat onConfigure(AudioProcessor.AudioFormat inputAudioFormat) throws AudioProcessor.UnhandledAudioFormatException
Deprecated.Description copied from class:BaseAudioProcessor
Called when the processor is configured for a new input format.- Overrides:
onConfigure
in classBaseAudioProcessor
- Throws:
AudioProcessor.UnhandledAudioFormatException
-
queueInput
public void queueInput(ByteBuffer inputBuffer)
Deprecated.Description copied from interface:AudioProcessor
Queues audio data between the position and limit of theinputBuffer
for processing. After calling this method, processed output may be available viaAudioProcessor.getOutput()
. CallingqueueInput(ByteBuffer)
again invalidates any pending output.- Parameters:
inputBuffer
- The input buffer to process. It must be a direct byte buffer with native byte order. Its contents are treated as read-only. Its position will be advanced by the number of bytes consumed (which may be zero). The caller retains ownership of the provided buffer.
-
-