|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.Leaf
org.j3d.aviatrix3d.Sound
org.j3d.aviatrix3d.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, format, freq, loop, paramsChanged, paused, pitch, playChanged, playing, seq, soundSource |
Fields inherited from class org.j3d.aviatrix3d.Node |
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
PointSound()
Creates a sound. |
Method Summary | |
boolean |
isEnabled()
State check to see whether the sound is enabled. |
void |
postRender(net.java.games.joal.AL al)
|
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, checkForCyclicChild, getBounds, isPaused, isPlaying, markBoundsDirty, paramsUpdated, pauseSound, recomputeBounds, requestBoundsUpdate, setAudioSource, setLive, setUpdateHandler, startSound, stopSound |
Methods inherited from class org.j3d.aviatrix3d.Node |
boundsChanged, checkForCyclicParent, getParent, removeParent, setBounds, setParent, updateBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
dataChanged, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, 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 setRefDistance(float distance)
distance
- The distance in unitspublic void setMaxDistance(float distance)
distance
- The distance in unitspublic void setRolloffFactor(float factor)
factor
- public void render(net.java.games.joal.AL al, javax.vecmath.Matrix4f transform)
render
in class Sound
al
- The al context to render withtransform
- The transformation stack to this nodepublic void postRender(net.java.games.joal.AL al)
postRender
in class Sound
public boolean isEnabled()
isEnabled
in class Sound
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |