AudioFrame class

Raw audio data.

Annotations
  • @JsonSerializable.new(explicitToJson: true, includeIfNull: false)

Properties

avsyncType → int?
Reserved for future use.
final
buffer → Uint8List?
The data buffer of the audio frame. When the audio frame uses a stereo channel, the data buffer is interleaved. The size of the data buffer is as follows: buffer = samples × channels × bytesPerSample.
final
bytesPerSample → BytesPerSample?
The number of bytes per sample. For PCM, this parameter is generally set to 16 bits (2 bytes).
final
channels → int?
The number of audio channels (the data are interleaved if it is stereo). 1: Mono. 2: Stereo.
final
hashCode → int
The hash code for this object.
no setterinherited
renderTimeMs → int?
The timestamp (ms) of the external audio frame. You can use this timestamp to restore the order of the captured audio frame, and synchronize audio and video frames in video scenarios, including scenarios where external video sources are used.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samplesPerChannel → int?
The number of samples per channel in the audio frame.
final
samplesPerSec → int?
The number of samples per channel in the audio frame.
final
type → AudioFrameType?
The type of the audio frame. See AudioFrameType.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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