|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.SceneGraphObject org.j3d.aviatrix3d.Node org.j3d.aviatrix3d.Leaf org.j3d.aviatrix3d.Sound org.j3d.aviatrix3d.PointSound
public class PointSound
A PointSound class which emits sound in all directions from a point.
The sound will attenuate by distance based on the refDistance and maxDistance parameters.
Field Summary | |
---|---|
protected float |
maxDistance
Maximum distance of a source. |
protected float |
refDistance
The distance when gain rolloff starts |
protected float |
rolloffFactor
How quickly does the sound decrease over distance. |
Fields inherited from class org.j3d.aviatrix3d.Sound |
---|
buffer, dataChanged, enabled, format, freq, loop, paramsChanged, paused, pitch, playChanged, playing, seq, soundSource, values |
Fields inherited from class org.j3d.aviatrix3d.Node |
---|
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Fields inherited from interface org.j3d.aviatrix3d.rendering.LeafCullable |
---|
AUDIO_CULLABLE, CLIP_CULLABLE, FOG_CULLABLE, GEOMETRY_CULLABLE, LIGHT_CULLABLE, OVERRIDE_CULLABLE |
Constructor Summary | |
---|---|
PointSound()
Creates a sound. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
int |
compareTo(PointSound ps)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Compare this object for equality to the given object. |
boolean |
equals(PointSound ps)
Compares this object with the specified object to check for equivalence. |
void |
postRender(net.java.games.joal.AL al)
This method is called after a node has been rendered. |
void |
render(net.java.games.joal.AL al,
javax.vecmath.Matrix4f transform)
This method is called to render this node. |
void |
setMaxDistance(float distance)
Set the distance when gain rolloff reaches zero. |
void |
setRefDistance(float distance)
Set the distance when gain rolloff starts. |
void |
setRolloffFactor(float factor)
Set the rollloffFactor. |
Methods inherited from class org.j3d.aviatrix3d.Sound |
---|
audioUpdated, compareTo, equals, getBounds, getCullableType, getRenderable, isEnabled, isPaused, isPlaying, isSpatialised, markBoundsDirty, paramsUpdated, pauseSound, recomputeBounds, setAudioSource, setEnabled, startSound, stopSound |
Methods inherited from class org.j3d.aviatrix3d.Node |
---|
boundsChanged, checkForCyclicParent, getParent, removeParent, requestBoundsUpdate, setBounds, setParent, updateBounds, updateParentBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float refDistance
protected float maxDistance
protected float rolloffFactor
Constructor Detail |
---|
public PointSound()
Method Detail |
---|
public void render(net.java.games.joal.AL al, javax.vecmath.Matrix4f transform)
al
- The al context to render withtransform
- The transformation stack to this nodepublic void postRender(net.java.games.joal.AL al)
AudioRenderable
al
- The al context to draw withpublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
o
- The objec to be compared
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Objectpublic boolean equals(java.lang.Object o)
equals
in interface Renderable
equals
in class java.lang.Object
o
- The object to be compared
public void setRefDistance(float distance)
distance
- The distance in units
InvalidWriteTimingException
- This was not called during the
data changed callback timepublic void setMaxDistance(float distance)
distance
- The distance in units
InvalidWriteTimingException
- This was not called during the
data changed callback timepublic void setRolloffFactor(float factor)
factor
-
InvalidWriteTimingException
- This was not called during the
data changed callback timepublic int compareTo(PointSound ps)
ps
- The argument instance to be compared
public boolean equals(PointSound ps)
ps
- The background instance to be compared
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |