SoundEngine class abstract
Plays PlaySoundActions and keeps the clock clock triggers tick on.
On the web sounds are synthesised with the Web Audio API and scheduled
on AudioContext.currentTime, so a click lined up ahead of time lands
exactly on its beat whatever the frame rate or timer jitter. Elsewhere
the clock is a stopwatch and sounds are silent.
- Implementers
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
play(
SoundVoice voice, {double? time, double volume = 1, double pitch = 1}) → void -
Plays
voiceattimeseconds on now's clock (now if in the past), atvolume(0–2) andpitch(a ratio). -
resume(
) → void - Starts (or resumes) audio; browsers allow it only after a user gesture, so this is called on every play.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited