OpusDecoder class

Opus 解码器封装类

Constructors

OpusDecoder({required Channels channels, required int sampleRate})
创建新的 Opus 解码器

Properties

channels Channels
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
final

Methods

decode(Uint8List input, {bool fec = false}) Int16List
解码 Opus 音频数据包为 PCM 样本(16 位整数)
decodeFloat(Uint8List input, {bool fec = false}) Float32List
解码 Opus 音频数据包为 PCM 样本(32 位浮点数)
dispose() → void
释放解码器资源
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