|
||||||||||
| 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
public abstract class Sound
Base for all Sound Nodes to be placed into the scenegraph.
| Field Summary | |
|---|---|
static int |
DURATION_UNKNOWN
|
static int |
INFINITE_LOOPS
|
static float |
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 | |
|---|---|
Sound(SoundContainer soundContainer)
|
|
Sound(SoundContainer soundContainer,
float gain)
|
|
| Method Summary | |
|---|---|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group). |
long |
getDuration()
|
float |
getInitialGain()
|
int |
getLoopType()
|
float |
getPriority()
|
org.openmali.spatial.bounds.Bounds |
getRegion()
|
BoundingLeaf |
getSchedulingBoundingLeaf()
|
org.openmali.spatial.bounds.Bounds |
getSchedulingBounds()
|
SingletonSoundContainer |
getSingletonSoundContainer()
|
SoundContainer |
getSoundContainer()
|
long |
getSoundPosition()
|
SoundSource |
getSource()
|
boolean |
isContinuousEnabled()
|
boolean |
isDisabled()
|
boolean |
isEnabled()
|
boolean |
isPaused()
|
boolean |
isPlaying()
|
boolean |
isReady()
|
boolean |
isReady(View view)
|
boolean |
isReleaseEnabled()
|
void |
play()
|
void |
setContinuousEnabled(boolean continuousEnabled)
|
void |
setDeactivated(boolean val)
Never use this method on your own! |
void |
setDisabled(boolean disabled)
|
void |
setEnabled(boolean enabled)
Enables or disables this Sound Node. |
void |
setInitialGain(float initialGain)
|
protected void |
setLive(boolean live)
If making node non-live when it was live deallocates sound resources associated with this sound node, and marks this node as non-enabled by call to setEnable(false). |
void |
setLoopType(int loopType)
|
void |
setPaused(boolean paused)
Pauses or resumes this Sound Node. |
void |
setPriority(float priority)
|
void |
setRegion(org.openmali.spatial.bounds.Bounds region)
|
void |
setReleaseEnabled(boolean releaseEnable)
|
void |
setRestarted(boolean val)
Never use this method on your own! |
void |
setSchedulingBoundingLeaf(BoundingLeaf boundingLeaf)
|
void |
setSchedulingBounds(org.openmali.spatial.bounds.Bounds bounds)
|
void |
setSource(SoundSource source)
Should be set only by the View |
boolean |
traverse(DetailedTraversalCallback callback)
Traverses the scenegraph from this node on. |
boolean |
wasDeactivated()
Never use this method on your own! |
boolean |
wasRestarted()
Never use this method on your own! |
| 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 |
| Field Detail |
|---|
public static final float NO_FILTER
public static final int DURATION_UNKNOWN
public static final int INFINITE_LOOPS
| Constructor Detail |
|---|
public Sound(SoundContainer soundContainer,
float gain)
public Sound(SoundContainer soundContainer)
| Method Detail |
|---|
public void setSource(SoundSource source)
source - public SoundSource getSource()
public void setDisabled(boolean disabled)
public final boolean isDisabled()
public void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.Enableableenabled - public final boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableablepublic void setRestarted(boolean val)
public final boolean wasRestarted()
public void setDeactivated(boolean val)
public final boolean wasDeactivated()
public final SoundContainer getSoundContainer()
public final SingletonSoundContainer getSingletonSoundContainer()
public void setInitialGain(float initialGain)
public final float getInitialGain()
public void setPriority(float priority)
public final float getPriority()
public void setRegion(org.openmali.spatial.bounds.Bounds region)
public final org.openmali.spatial.bounds.Bounds getRegion()
public void play()
public void setLoopType(int loopType)
public final int getLoopType()
public void setReleaseEnabled(boolean releaseEnable)
public final boolean isReleaseEnabled()
public void setContinuousEnabled(boolean continuousEnabled)
public final boolean isContinuousEnabled()
public void setSchedulingBounds(org.openmali.spatial.bounds.Bounds bounds)
public final org.openmali.spatial.bounds.Bounds getSchedulingBounds()
public void setSchedulingBoundingLeaf(BoundingLeaf boundingLeaf)
public final BoundingLeaf getSchedulingBoundingLeaf()
public final long getDuration()
public final boolean isReady()
public final boolean isReady(View view)
public final boolean isPlaying()
public void setPaused(boolean paused)
paused - public final boolean isPaused()
protected void setLive(boolean live)
setLive in class SceneGraphObjectpublic final long getSoundPosition()
public void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class Nodepublic boolean traverse(DetailedTraversalCallback callback)
traverse in class Leafcallback - the listener is notified of any traversed Node on the way
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||