Engine class final
Controls the loading and unloading of Sound
s.
Should be initialized before doing anything. Should be started to hear any sound.
- Available extensions
Constructors
- Engine()
Properties
Methods
-
init(
[int periodMs = 10]) → Future< void> - Initializes an engine.
-
loadSound(
AudioData audioData) → Future< Sound> -
Copies
data
to the internal memory location and creates aSound
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