Page Summary
-
GvrAudioEngine.DistanceRolloffModeldefines constants for controlling how sound volume changes with distance in VR audio. -
Three rolloff models are available:
LINEAR,LOGARITHMIC, andNONE. -
LINEARprovides a linear decrease in volume over distance. -
LOGARITHMICdecreases volume logarithmically, offering a more natural attenuation. -
NONEdisables 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