XAudioFrame class

One chunk of captured microphone audio: mono signed 16-bit PCM at XAudioCapture.sampleRate, with the RMS level of that chunk.

Constructors

XAudioFrame(Int16List samples)
Wraps samples and derives level from them.
XAudioFrame.fromBytes(Uint8List bytes)
Decodes a native frame — little-endian Int16, the byte order of every platform this plugin runs on.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
level → double
Root-mean-square amplitude over samples, 0 (silence) to 1 (full scale). Computed in Dart so every platform reports the same number for the same audio.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samples → Int16List
The PCM samples, one per mono sample slot.
final

Methods

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