|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.sound.SoundProcessor
public class SoundProcessor
A SoundProcessor is responsible for processing Sound Nodes in relation to a View.
Most parts are taken from other classes originally coded by David Yazel.
| Method Summary | |
|---|---|
void |
addSound(Sound sound,
BranchGroup rootBranch)
Adds a Sound to the SoundProcessor. |
void |
clearSoundList()
Removes all stored Sound Nodes from the list. |
static SoundProcessor |
getInstance()
Returns the soundProcessor's singleton instance. |
SoundDriver |
getSoundDriver()
Returns the used SoundDriver (default=javasound). |
void |
processAll(BranchGroup rootBranch,
View view,
long frameId)
Process all Sound Nodes, that have been collected from the scenegraph. |
void |
processAll(BranchGroup rootBranch,
View view,
long frameId,
boolean force)
Process all Sound Nodes, that have been collected from the scenegraph. |
boolean |
removeSound(Sound sound)
Removes a Sound Node from the SoundProcessor. |
void |
setSoundDriver(SoundDriver soundDriver)
Sets the SoundDriver to be used by this SoundProcessor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final SoundProcessor getInstance()
public void setSoundDriver(SoundDriver soundDriver)
soundDriver - public final SoundDriver getSoundDriver()
public void addSound(Sound sound,
BranchGroup rootBranch)
sound - the Sound Node to be addedpublic boolean removeSound(Sound sound)
sound - the Sound Node to be removed
public void clearSoundList()
public void processAll(BranchGroup rootBranch,
View view,
long frameId,
boolean force)
public void processAll(BranchGroup rootBranch,
View view,
long frameId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||