Engine class final

Controls the loading and unloading of Sounds.

Should be initialized before doing anything. Should be started to hear any sound.

Available extensions

Constructors

Engine()

Properties

hashCode int
The hash code for this object.
no setterinherited
isInit bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init([int periodMs = 10]) Future<void>
Initializes an engine.
loadSound(AudioData audioData) Future<Sound>
Copies data to the internal memory location and creates a Sound from it.
loadSoundFile(String filePath) Future<Sound>
Loads a sound file and creates a Sound from it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Starts an engine.
toString() String
A string representation of this object.
inherited

Operators

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