OpusEncoder class
Opus 编码器封装类
Constructors
- OpusEncoder({required Channels channels, required int sampleRate, Application application = Application.voip})
- 创建新的 Opus 编码器
Properties
- application → Application
-
final
- 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
-
dispose(
) → void - 释放编码器资源
-
encode(
Int16List input, {int? inputSize}) → Uint8List - 将 PCM 样本编码为 Opus 数据包(16 位整数输入)
-
encodeFloat(
Float32List input, {int? inputSize}) → Uint8List - 将 PCM 样本编码为 Opus 数据包(32 位浮点数输入)
-
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