DistanceAttenuation


@RequiresSpatialApi(value = 4)
sealed interface DistanceAttenuation

Known direct subclasses
DistanceAttenuation.Auto

Allows the system to choose the most appropriate attenuation curve.

DistanceAttenuation.Custom

Configures a custom distance attenuation model

DistanceAttenuation.Linear

Configures linear rolloff between minDistance and maxDistance.

DistanceAttenuation.Natural

Configures a natural-sounding rolloff curve.

DistanceAttenuation.None

Disables distance attenuation for a sound source.


Configures how sound attenuation changes over distance.

Summary

Nested types

Allows the system to choose the most appropriate attenuation curve.

Configures a custom distance attenuation model

Configures linear rolloff between minDistance and maxDistance.

Configures a natural-sounding rolloff curve.

Disables distance attenuation for a sound source.