|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Sound
org.xith3d.scenegraph.PointSound
public class PointSound
PointSounds are those sounds which exist in the point in space within the
transform groups it exists. It is assumed that the sound exists within its
local coordinate system at (0, 0, 0).
PointSounds have their volume attenuated based on an inverse distance formula
which is acoustically similar to that of the human ear. This is not linear,
but rather logarithmic in nature.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Sound |
|---|
DURATION_UNKNOWN, INFINITE_LOOPS, NO_FILTER |
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
PointSound(SoundContainer soundContainer)
|
|
PointSound(SoundContainer soundContainer,
float gain)
|
|
| Method Summary | |
|---|---|
float |
getMaxDistance()
|
float |
getMaxVolume()
|
float |
getMinVolume()
|
float |
getReferenceDistance()
The reference distance is the distance from the view that the sound will become at maximum volume. |
float |
getRolloffFactor()
The rollover-factor compresses or expands the range this sound can be heard. 0 will make the sound unattenuated (uneffected by distance). 1 is the normal setting. 0.5 will make the sound appear to be twice as close as it really is, while 2 will make it sound twice as far away as it really is. |
void |
setMaxDistance(float maxDistance)
Sets the max distance before the sound is a min volume. |
void |
setMaxVolume(float maxVolume)
Sets the max volume for this sound. |
void |
setMinVolume(float minVolume)
Sets the minimum volume, even at max distance. |
void |
setReferenceDistance(float referenceDistance)
The reference distance is the distance from the view that the sound will become at maximum volume. |
void |
setRolloffFactor(float rolloffFactor)
The rollover-factor compresses or expands the range this sound can be heard. 0 will make the sound unattenuated (uneffected by distance). 1 is the normal setting. 0.5 will make the sound appear to be twice as close as it really is, while 2 will make it sound twice as far away as it really is. |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PointSound(SoundContainer soundContainer,
float gain)
public PointSound(SoundContainer soundContainer)
| Method Detail |
|---|
public void setMinVolume(float minVolume)
minVolume - public final float getMinVolume()
public void setMaxVolume(float maxVolume)
maxVolume - public final float getMaxVolume()
public void setMaxDistance(float maxDistance)
maxDistance - public final float getMaxDistance()
public void setRolloffFactor(float rolloffFactor)
public final float getRolloffFactor()
public void setReferenceDistance(float referenceDistance)
public final float getReferenceDistance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||