Sound class abstract
A sound that has been played by a SoundBackend instance.
- Implementers
Constructors
- Sound()
Properties
- channel → SoundChannel
-
The channel this sound is playing through.
no setter
- gain ↔ double
-
Get the gain for this sound.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepAlive → bool
-
Whether or not to keep this sound alive.
no setter
- looping ↔ bool
-
Whether or not this sound should loop.
getter/setter pair
- pitchBend ↔ double
-
Get the pitch bend for this sound.
getter/setter pair
- position ↔ double
-
Get the position of the play head in this sound.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelFade(
) → void - Cancel any fade that has begun for this sound.
-
destroy(
) → void - Destroy this sound.
-
fade(
{required double length, double endGain = 0.0, double? startGain, double preFade = 0.0}) → void - Fade this sound.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Pause this sound.
-
toString(
) → String -
A string representation of this object.
inherited
-
unpause(
) → void - Unpause this sound.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited