AudioAttenuation class Audio
Spatialization parameters for a positional sound.
Backends re-apply these every frame, so fields may be mutated freely. Event-style sources whose attenuation is authored externally treat these as an override hint at most; see the backend's documentation.
Constructors
- AudioAttenuation({double minDistance = 1.0, double maxDistance = 500.0, AudioRolloff rolloff = AudioRolloff.inverse, double rolloffFactor = 1.0, double dopplerFactor = 1.0})
Properties
- dopplerFactor ↔ double
-
Doppler strength for this sound.
0disables doppler,1.0is physically correct.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- maxDistance ↔ double
-
Distance beyond which the sound no longer attenuates (or is
silent, for AudioRolloff.linear).
getter/setter pair
- minDistance ↔ double
-
Distance at which attenuation begins. Inside it the sound plays at
full volume.
getter/setter pair
- rolloff ↔ AudioRolloff
-
The rolloff curve between minDistance and maxDistance.
getter/setter pair
- rolloffFactor ↔ double
-
Steepness multiplier for the rolloff curve.
1.0is the model's natural curve.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited