AudioFrame class
- Implemented types
Constructors
- AudioFrame({Uint8List? samples, int epoch = 0, int sequence = 0, int frameSizeInInterleavedSamples = 0, int timeStampInInterleavedSamples = 0, bool isFirst = false, bool isLast = false, double averageVolume = 0.0, double audioEventEstimatedDuration = 0.0})
-
AudioFrame.fromJson(Map<
String, dynamic> json) -
factory
- AudioFrame.fromReader(TeleportObjectReader reader)
-
factory
- AudioFrame.fromTeleport(Uint8List data)
-
factory
Properties
- audioEventEstimatedDuration ↔ double
-
getter/setter pair
- averageVolume ↔ double
-
getter/setter pair
- epoch ↔ int
-
getter/setter pair
- frameSizeInInterleavedSamples ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFirst ↔ bool
-
getter/setter pair
- isLast ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samples ↔ Uint8List
-
getter/setter pair
- sequence ↔ int
-
getter/setter pair
- timeStampInInterleavedSamples ↔ int
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toProtocolMessage(
int senderId, {ProtocolMessageOverrides? overrides}) → ProtocolMessage -
Frames the message under its type's opcode and payload version. The type's default flags
(unreliable for an unreliable message) are added to
overrides' own.override -
toString(
) → String -
A string representation of this object.
inherited
-
toTeleport(
) → Uint8List -
writeTo(
TeleportObjectWriter scope) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fieldIdAudioEventEstimatedDuration → const int
- fieldIdAverageVolume → const int
- fieldIdEpoch → const int
- fieldIdFrameSizeInInterleavedSamples → const int
- fieldIdIsFirst → const int
- fieldIdIsLast → const int
- fieldIdSamples → const int
- fieldIdSequence → const int
- fieldIdTimeStampInInterleavedSamples → const int
-
teleportMessageType
→ const TeleportMessageType<
AudioFrame> - teleportOpcode → const int
- teleportVersion → const int