This site has been permanently archived. The content on this site was last updated in 2019.
GvrAudioEngine.DistanceRolloffModel
Stay organized with collections
Save and categorize content based on your preferences.
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. |
Inherited Methods
From class
java.lang.Object
boolean
|
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
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
()
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["`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."]]],["`GvrAudioEngine.DistanceRolloffModel` defines three distance effect models: `LINEAR` (value 1), `LOGARITHMIC` (value 0), and `NONE` (value 2). These constants dictate how distance affects audio. `LINEAR` implements a linear rolloff, `LOGARITHMIC` applies a logarithmic rolloff, and `NONE` indicates no distance rolloff. This class also provides a default constructor `GvrAudioEngine.DistanceRolloffModel()`, and inherits standard methods from the `java.lang.Object` class.\n"]]