|
||||||||||
| 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.
| Field Summary | |
|---|---|
protected org.openmali.vecmath2.Point3f |
listenerPosition
|
| Constructor Summary | |
|---|---|
SoundProcessor()
Creates a new SoundProcessor. |
|
| Method Summary | |
|---|---|
void |
addSound(Sound sound)
Adds a Sound to the SoundProcessor. |
void |
clearSoundList()
Removes all stored Sound Nodes from the list. |
SoundDriver |
getSoundDriver()
|
void |
process(Sound sound,
View view)
Processes a Sound Node to let it play. |
void |
processAll(View view,
long frameId)
Process all Sound Nodes, that have been collected from the scenegraph. |
void |
processAll(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 |
| Field Detail |
|---|
protected org.openmali.vecmath2.Point3f listenerPosition
| Constructor Detail |
|---|
public SoundProcessor()
| Method Detail |
|---|
public void setSoundDriver(SoundDriver soundDriver)
soundDriver - public SoundDriver getSoundDriver()
public void addSound(Sound sound)
sound - the Sound Node to be addedpublic boolean removeSound(Sound sound)
sound - the Sound Node to be removed
public void clearSoundList()
public void process(Sound sound,
View view)
sound - the Sound Node to be processed
public void processAll(View view,
long frameId,
boolean force)
public void processAll(View view,
long frameId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||