MediaAudioDecoder Class
An audio decoder created by MediaCodecBackend.CreateAudioDecoder.
public abstract class MediaAudioDecoder : MediaCodecImplementation- Inheritance
MediaCodecImplementationMediaAudioDecoder
Constructors
| Name | Description |
|---|---|
| MediaAudioDecoder() |
MediaAudioDecoder()
protected MediaAudioDecoder()No documentation is available.
Methods
| Name | Description |
|---|---|
| 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)Flush()
MediaCodecBackend.csReturns the pending outputs (flush()). The default implementation returns none.
public virtual IReadOnlyList<AudioData> Flush()