StreamOpusEncoder<T extends num>.bytes constructor
StreamOpusEncoder<T extends num>.bytes ({})
Creates a new StreamOpusEncoder with sampleRate
, channels
and
application
type that expects its input Lists to be bytes
in form of Uint8List.
The bytes are either interpreted as floats (if floatInput
is true
),
or as s16le (if floatInput
is false
).
For more information of the parameters see the documentation of fillUpLastFrame
and copyOutput
.
Implementation
StreamOpusEncoder.bytes(
{required FrameTime frameTime,
required bool floatInput,
required int sampleRate,
required int channels,
required Application application,
bool fillUpLastFrame = true,
bool copyOutput = true})
: this._(frameTime, floatInput, Uint8List, sampleRate, channels,
application, fillUpLastFrame, copyOutput);