FfmpegAudioDecoder

@UnstableApi
class FfmpegAudioDecoder(format: Format, numInputBuffers: Int, numOutputBuffers: Int, initialInputBufferSize: Int, outputFloat: Boolean) : SimpleDecoder<DecoderInputBuffer?, SimpleDecoderOutputBuffer?, FfmpegDecoderException?>

Constructors

Link copied to clipboard
constructor(format: Format, numInputBuffers: Int, numOutputBuffers: Int, initialInputBufferSize: Int, outputFloat: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the channel count of output audio.

Link copied to clipboard
val encoding: @C.PcmEncoding Int

Returns the encoding of output audio.

Link copied to clipboard
open override val name: String
Link copied to clipboard

Returns the sample rate of output audio.

Functions

Link copied to clipboard
open override fun decode(inputBuffer: DecoderInputBuffer, outputBuffer: SimpleDecoderOutputBuffer, reset: Boolean): FfmpegDecoderException?
Link copied to clipboard
@Nullable
fun dequeueInputBuffer(): DecoderInputBuffer?
Link copied to clipboard
@Nullable
fun dequeueOutputBuffer(): SimpleDecoderOutputBuffer?
Link copied to clipboard
fun flush()
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
fun queueInputBuffer(inputBuffer: DecoderInputBuffer?)
Link copied to clipboard
open override fun release()
Link copied to clipboard
fun setOutputStartTimeUs(outputStartTimeUs: Long)