docs/doc/reference/com/google/android/exoplayer2/ext/flac/LibflacAudioRenderer.html
Package com.google.android.exoplayer2.ext.flac
All Implemented Interfaces:PlayerMessage.Target, Renderer, RendererCapabilities, MediaClock
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classLibflacAudioRendererextends[DecoderAudioRenderer](../../audio/DecoderAudioRenderer.html "class in com.google.android.exoplayer2.audio")<[FlacDecoder](FlacDecoder.html "class in com.google.android.exoplayer2.ext.flac")>
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.
Decodes and renders audio using the native Flac decoder.
-
Renderer.MessageType, Renderer.State, Renderer.WakeupListener
-
RendererCapabilities.AdaptiveSupport, RendererCapabilities.Capabilities, RendererCapabilities.DecoderSupport, RendererCapabilities.FormatSupport, RendererCapabilities.HardwareAccelerationSupport, RendererCapabilities.Listener, RendererCapabilities.TunnelingSupport
-
MSG_CUSTOM_BASE, MSG_SET_AUDIO_ATTRIBUTES, MSG_SET_AUDIO_SESSION_ID, MSG_SET_AUX_EFFECT_INFO, MSG_SET_CAMERA_MOTION_LISTENER, MSG_SET_CHANGE_FRAME_RATE_STRATEGY, MSG_SET_PREFERRED_AUDIO_DEVICE, MSG_SET_SCALING_MODE, MSG_SET_SKIP_SILENCE_ENABLED, MSG_SET_VIDEO_EFFECTS, MSG_SET_VIDEO_FRAME_METADATA_LISTENER, MSG_SET_VIDEO_OUTPUT, MSG_SET_VIDEO_OUTPUT_RESOLUTION, MSG_SET_VOLUME, MSG_SET_WAKEUP_LISTENER, STATE_DISABLED, STATE_ENABLED, STATE_STARTED
-
ADAPTIVE_NOT_SEAMLESS, ADAPTIVE_NOT_SUPPORTED, ADAPTIVE_SEAMLESS, ADAPTIVE_SUPPORT_MASK, DECODER_SUPPORT_FALLBACK, DECODER_SUPPORT_FALLBACK_MIMETYPE, DECODER_SUPPORT_PRIMARY, FORMAT_EXCEEDS_CAPABILITIES, FORMAT_HANDLED, FORMAT_SUPPORT_MASK, FORMAT_UNSUPPORTED_DRM, FORMAT_UNSUPPORTED_SUBTYPE, FORMAT_UNSUPPORTED_TYPE, HARDWARE_ACCELERATION_NOT_SUPPORTED, HARDWARE_ACCELERATION_SUPPORT_MASK, HARDWARE_ACCELERATION_SUPPORTED, MODE_SUPPORT_MASK, TUNNELING_NOT_SUPPORTED, TUNNELING_SUPPORT_MASK, TUNNELING_SUPPORTED
Constructors | Constructor | Description |
| --- | --- |
| LibflacAudioRenderer() |
Deprecated.
|
| LibflacAudioRenderer(Handler eventHandler, AudioRendererEventListener eventListener, AudioProcessor... audioProcessors) |
Deprecated.
Creates an instance.
|
| LibflacAudioRenderer(Handler eventHandler, AudioRendererEventListener eventListener, AudioSink audioSink) |
Deprecated.
Creates an instance. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| protected FlacDecoder | createDecoder(Format format, CryptoConfig cryptoConfig) |
Deprecated.
Creates a decoder for the given format.
|
| String | getName() |
Deprecated.
Returns the name of this renderer, for logging and debugging purposes.
|
| protected Format | getOutputFormat(FlacDecoder decoder) |
Deprecated.
Returns the format of audio buffers output by the decoder.
|
| protected @com.google.android.exoplayer2.C.FormatSupport int | supportsFormatInternal(Format format) |
Deprecated.
Returns the C.FormatSupport for the given Format.
|
-
canReuseDecoder, experimentalSetEnableKeepAudioTrackOnSeek, getMediaClock, getPlaybackParameters, getPositionUs, getSinkFormatSupport, handleMessage, isEnded, isReady, onDisabled, onEnabled, onPositionDiscontinuity, onPositionReset, onQueueInputBuffer, onStarted, onStopped, onStreamChanged, render, setPlaybackParameters, sinkSupportsFormat, supportsFormat
-
clearListener, createRendererException, createRendererException, disable, enable, getCapabilities, getConfiguration, getFormatHolder, getIndex, getLastResetPositionUs, getPlayerId, getReadingPositionUs, getState, getStream, getStreamFormats, getTrackType, hasReadStreamToEnd, init, isCurrentStreamFinal, isSourceReady, maybeThrowStreamError, onRelease, onRendererCapabilitiesChanged, onReset, readSource, release, replaceStream, reset, resetPosition, setCurrentStreamFinal, setListener, skipSource, start, stop, supportsMixedMimeTypeAdaptation
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
setPlaybackSpeed
-
public LibflacAudioRenderer()
Deprecated.
-
public LibflacAudioRenderer(@Nullable[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")eventHandler,
@Nullable[AudioRendererEventListener](../../audio/AudioRendererEventListener.html "interface in com.google.android.exoplayer2.audio")eventListener,[AudioProcessor](../../audio/AudioProcessor.html "interface in com.google.android.exoplayer2.audio")... audioProcessors)
Deprecated.
Creates an instance.
Parameters:eventHandler - A handler to use when delivering events to eventListener. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.audioProcessors - Optional AudioProcessors that will process audio before output.
-
public LibflacAudioRenderer(@Nullable[Handler](https://developer.android.com/reference/android/os/Handler.html "class or interface in android.os")eventHandler,
@Nullable[AudioRendererEventListener](../../audio/AudioRendererEventListener.html "interface in com.google.android.exoplayer2.audio")eventListener,[AudioSink](../../audio/AudioSink.html "interface in com.google.android.exoplayer2.audio")audioSink)
Deprecated.
Creates an instance.
Parameters:eventHandler - A handler to use when delivering events to eventListener. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.audioSink - The sink to which audio will be output.
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getName()
Deprecated.
Description copied from interface: Renderer
Returns the name of this renderer, for logging and debugging purposes. Should typically be the renderer's (un-obfuscated) class name. Returns:The name of this renderer.
-
[@FormatSupport](../../C.FormatSupport.html "annotation in com.google.android.exoplayer2")protected @com.google.android.exoplayer2.C.FormatSupport int supportsFormatInternal([Format](../../Format.html "class in com.google.android.exoplayer2")format)
Deprecated.
Description copied from class: DecoderAudioRenderer
Returns the C.FormatSupport for the given Format.
Specified by:supportsFormatInternal in class DecoderAudioRenderer<FlacDecoder>Parameters:format - The format, which has an audio Format.sampleMimeType.Returns:The C.FormatSupport for this Format.
-
protected[FlacDecoder](FlacDecoder.html "class in com.google.android.exoplayer2.ext.flac")createDecoder([Format](../../Format.html "class in com.google.android.exoplayer2")format,
@Nullable[CryptoConfig](../../decoder/CryptoConfig.html "interface in com.google.android.exoplayer2.decoder")cryptoConfig)
throws[FlacDecoderException](FlacDecoderException.html "class in com.google.android.exoplayer2.ext.flac")
Deprecated.
Creates a decoder for the given format.
Specified by:createDecoder in class DecoderAudioRenderer<FlacDecoder>Parameters:format - The format for which a decoder is required.cryptoConfig - The CryptoConfig object required for decoding encrypted content. May be null and can be ignored if decoder does not handle encrypted content.Returns:The decoder.Throws:FlacDecoderException
-
protected[Format](../../Format.html "class in com.google.android.exoplayer2")getOutputFormat([FlacDecoder](FlacDecoder.html "class in com.google.android.exoplayer2.ext.flac")decoder)
Deprecated.
Returns the format of audio buffers output by the decoder. Will not be called until the first output buffer has been dequeued, so the decoder may use input data to determine the format.
Specified by:getOutputFormat in class DecoderAudioRenderer<FlacDecoder>Parameters:decoder - The decoder.