FallOffMode
Declaration
public sealed enum Strawberry.Sound.FallOffMode
Specifies the attenuation (fall-off) model used for 3D spatialized sounds, determining how the volume decreases as the distance between the audio source and the listener increases.
Members
| Name | Value | Description |
|---|---|---|
None |
0 | No distance attenuation. The sound's volume remains constant regardless of the distance between the source and the listener. |
InverseDistanceClamped |
1 | Inverse distance model with clamping. Volume attenuates inversely with distance, but is clamped so it does not exceed the volume at the reference distance, and stops attenuating beyond the maximum distance. |
InverseDistance |
2 | Inverse distance model without clamping. Volume attenuates inversely with distance, continuing to decrease indefinitely without a maximum distance cutoff. |
LinearDistance |
3 | Linear distance model without clamping. Volume decreases linearly between the reference distance and the maximum distance, reaching zero at the maximum distance. |
LinearDistanceClamped |
4 | Linear distance model with clamping. Volume decreases linearly between the reference distance and the maximum distance, and is clamped so it does not exceed the volume at the reference distance. |
ExponentDistance |
5 | Exponential distance model without clamping. Volume attenuates exponentially with distance, continuing to decrease indefinitely. |
ExponentDistanceClamped |
6 | Exponential distance model with clamping. Volume attenuates exponentially with distance, but is clamped so it does not exceed the volume at the reference distance, and stops attenuating beyond the maximum distance. |
Fields
None static
No distance attenuation. The sound's volume remains constant regardless of the distance between the source and the listener.
FallOffMode None = 0
InverseDistanceClamped static
Inverse distance model with clamping. Volume attenuates inversely with distance, but is clamped so it does not exceed the volume at the reference distance, and stops attenuating beyond the maximum distance.
FallOffMode InverseDistanceClamped = 1
InverseDistance static
Inverse distance model without clamping. Volume attenuates inversely with distance, continuing to decrease indefinitely without a maximum distance cutoff.
FallOffMode InverseDistance = 2
LinearDistance static
Linear distance model without clamping. Volume decreases linearly between the reference distance and the maximum distance, reaching zero at the maximum distance.
FallOffMode LinearDistance = 3
LinearDistanceClamped static
Linear distance model with clamping. Volume decreases linearly between the reference distance and the maximum distance, and is clamped so it does not exceed the volume at the reference distance.
FallOffMode LinearDistanceClamped = 4
ExponentDistance static
Exponential distance model without clamping. Volume attenuates exponentially with distance, continuing to decrease indefinitely.
FallOffMode ExponentDistance = 5
ExponentDistanceClamped static
Exponential distance model with clamping. Volume attenuates exponentially with distance, but is clamped so it does not exceed the volume at the reference distance, and stops attenuating beyond the maximum distance.
FallOffMode ExponentDistanceClamped = 6