GvrAudioEngine.DistanceRolloffModel

  • GvrAudioEngine.DistanceRolloffModel defines constants for controlling how sound volume changes with distance in VR audio.

  • Three rolloff models are available: LINEAR, LOGARITHMIC, and NONE.

  • LINEAR provides a linear decrease in volume over distance.

  • LOGARITHMIC decreases volume logarithmically, offering a more natural attenuation.

  • NONE disables distance-based volume changes.

public static abstract class GvrAudioEngine.DistanceRolloffModel

Defines constants representing different distance effect rolloff models.

Constants

int LINEAR Linear distance rolloff model.
int LOGARITHMIC Logarithmic distance rolloff model.
int NONE No distance rolloff will be applied.

Public Constructors

Inherited Methods

Constants

public static final int LINEAR

Linear distance rolloff model.

Constant Value: 1

public static final int LOGARITHMIC

Logarithmic distance rolloff model.

Constant Value: 0

public static final int NONE

No distance rolloff will be applied.

Constant Value: 2

Public Constructors

public GvrAudioEngine.DistanceRolloffModel ()