|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.openal.Listener
public class Listener
Represents the OpenAL listener object.
| Field Summary | |
|---|---|
protected float |
_ax
The orientation of the listener (initialized to the OpenAL defaults). |
protected float |
_ay
The orientation of the listener (initialized to the OpenAL defaults). |
protected float |
_az
The orientation of the listener (initialized to the OpenAL defaults). |
protected float |
_gain
The gain of the listener. |
protected float |
_px
The position of the listener. |
protected float |
_py
The position of the listener. |
protected float |
_pz
The position of the listener. |
protected float |
_ux
The orientation of the listener (initialized to the OpenAL defaults). |
protected float |
_uy
The orientation of the listener (initialized to the OpenAL defaults). |
protected float |
_uz
The orientation of the listener (initialized to the OpenAL defaults). |
protected FloatBuffer |
_vbuf
A buffer for floating point values. |
protected float |
_vx
The velocity of the listener. |
protected float |
_vy
The velocity of the listener. |
protected float |
_vz
The velocity of the listener. |
| Constructor Summary | |
|---|---|
protected |
Listener()
The listener is only to be created by the SoundManager. |
| Method Summary | |
|---|---|
float |
getPositionX()
Returns the x component of the listener's position. |
float |
getPositionY()
Returns the y component of the listener's position. |
float |
getPositionZ()
Returns the z component of the listener's position. |
void |
setGain(float gain)
Sets the gain of the listener. |
void |
setOrientation(float ax,
float ay,
float az,
float ux,
float uy,
float uz)
Sets the orientation of the listener in terms of an "at" (direction) and "up" vector. |
void |
setPosition(float x,
float y,
float z)
Sets the position of the listener. |
void |
setVelocity(float x,
float y,
float z)
Sets the velocity of the listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float _px
protected float _py
protected float _pz
protected float _vx
protected float _vy
protected float _vz
protected float _gain
protected float _ax
protected float _ay
protected float _az
protected float _ux
protected float _uy
protected float _uz
protected FloatBuffer _vbuf
| Constructor Detail |
|---|
protected Listener()
SoundManager.
| Method Detail |
|---|
public void setPosition(float x,
float y,
float z)
public float getPositionX()
public float getPositionY()
public float getPositionZ()
public void setVelocity(float x,
float y,
float z)
public void setGain(float gain)
public void setOrientation(float ax,
float ay,
float az,
float ux,
float uy,
float uz)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||