MediaAudioDecoder Class

An audio decoder created by MediaCodecBackend.CreateAudioDecoder.

public abstract class MediaAudioDecoder : MediaCodecImplementation
Inheritance
MediaCodecImplementation MediaAudioDecoder

Constructors

NameDescription
MediaAudioDecoder()

MediaAudioDecoder()

protected MediaAudioDecoder()

No documentation is available.

Methods

NameDescription
Decode(EncodedAudioChunk)Decodes a chunk and returns the audio that is ready (possibly none, when the decoder has a delay). The timestamps of the outputs are the ones of their chunks. The library closes the outputs that the codec cannot deliver (e.g. after a reset).
Flush()Returns the pending outputs (flush()). The default implementation returns none.

Decode(EncodedAudioChunk)

Decodes a chunk and returns the audio that is ready (possibly none, when the decoder has a delay). The timestamps of the outputs are the ones of their chunks. The library closes the outputs that the codec cannot deliver (e.g. after a reset).

public abstract IReadOnlyList<AudioData> Decode(EncodedAudioChunk chunk)

Parameters

chunk EncodedAudioChunk
The chunk.

Returns

IReadOnlyList<AudioData>

Returns the pending outputs (flush()). The default implementation returns none.

public virtual IReadOnlyList<AudioData> Flush()