DistanceAttenuationMode

Defines how audio volume attenuates as the distance from the audio source increases.

Entries

Link copied to clipboard

The volume remains constant, playing at a fixed level regardless of the listener’s distance from the auido source.

Link copied to clipboard

The volume decreases according to the inverse square law, dropping rapidly with increasing distance to mimic natural sound propagation. This is the default mode.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): DistanceAttenuationMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.