zombie.core.sound
Class NoAttenuation
java.lang.Object
zombie.core.sound.NoAttenuation
- All Implemented Interfaces:
- Attenuator
public class NoAttenuation
- extends java.lang.Object
- implements Attenuator
An Attenuator
that performs no attenuation at all
Method Summary |
float |
getAttenuation(float x,
float y)
Calculate the attenuation at the specifed point, in absolute world coordinates. |
float |
getXPosition(float x,
float y,
float z)
|
float |
getYPosition(float x,
float y,
float z)
|
float |
getZPosition(float x,
float y,
float z)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final Attenuator INSTANCE
NoAttenuation
public NoAttenuation()
getAttenuation
public float getAttenuation(float x,
float y)
- Description copied from interface:
Attenuator
- Calculate the attenuation at the specifed point, in absolute world coordinates. The closer something is to the "origin",
the higher the gain will be, up to 1.0f maximum.
- Specified by:
getAttenuation
in interface Attenuator
- Returns:
- gain factor, between 0.0f and 1.0f inclusive.
getXPosition
public float getXPosition(float x,
float y,
float z)
- Specified by:
getXPosition
in interface Attenuator
getYPosition
public float getYPosition(float x,
float y,
float z)
- Specified by:
getYPosition
in interface Attenuator
getZPosition
public float getZPosition(float x,
float y,
float z)
- Specified by:
getZPosition
in interface Attenuator