SilentSound class

A silent sound.

If a tree falls in a forest, but nobody is there to hear it, does it truly make a sound?

Implemented types

Constructors

SilentSound({required SilentSoundChannel channel, double gain = 0.7, bool looping = false, double pitchBend = 1.0, double position = 0.0, bool keepAlive = false})
Create an instance.

Properties

channel SilentSoundChannel
The channel this sound is playing through.
final
gain double
Get the gain for this sound.
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
keepAlive bool
Whether or not to keep this sound alive.
final
looping bool
Whether or not this sound should loop.
getter/setter pairoverride
pitchBend double
Get the pitch bend for this sound.
getter/setter pairoverride
position double
Get the position of the play head in this sound.
getter/setter pairoverride
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.
override
destroy() → void
Destroy this sound.
override
fade({required double length, double endGain = 0.0, double? startGain, double preFade = 0.0}) → void
Fade this sound.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pause this sound.
override
toString() String
A string representation of this object.
inherited
unpause() → void
Unpause this sound.
override

Operators

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