OpusDecoder class abstract

Abstract base class for opus decoders.

Implementers

Constructors

OpusDecoder()

Properties

channels int
Number of channels, must be 1 for mono or 2 for stereo.
no setter
destroyed bool
Wheter this decoder was already destroyed by calling destroy. If so, calling any method will result in an OpusDestroyedError.
no setter
hashCode int
The hash code for this object.
no setterinherited
lastPacketDurationMs int?
The duration of the last decoded packet in ms or null if there was no packet yet.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
The sample rate in Hz for this decoder. Opus supports sample rates from 8kHz to 48kHz so this value must be between 8000 and 48000.
no setter

Methods

decode({bool fec = false, int? loss}) Int16List
decodeFloat({bool autoSoftClip, bool fec = false, int? loss}) Float32List
destroy() → void
Destroys this decoder by releasing all native resources. After this, it is no longer possible to decode using this decoder, so any further method call will throw an OpusDestroyedError.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited