public abstract class AudioSource extends SceneGraphNode
Modifier and Type | Class and Description |
---|---|
static class |
AudioSource.State |
Constructor and Description |
---|
AudioSource(String name) |
Modifier and Type | Method and Description |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
void |
addAudioListener(AudioListener listener) |
abstract SampleReader |
createReader()
The return value must be a new sample reader for each call; readers must be able to
operate in parallel.
|
AudioSource.State |
getState() |
void |
pause() |
void |
removeAudioListener(AudioListener listener) |
void |
setState(AudioSource.State state)
set the state of the node.
|
void |
start() |
void |
stop() |
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString
public AudioSource(String name)
public abstract SampleReader createReader()
public void setState(AudioSource.State state)
state
- the new state of the audio sourcepublic AudioSource.State getState()
public void start()
public void stop()
public void pause()
public void accept(SceneGraphVisitor v)
SceneGraphNode
accept
in class SceneGraphNode
public void addAudioListener(AudioListener listener)
public void removeAudioListener(AudioListener listener)