net.jinx.action
Class AudioRenderer
java.lang.Object
net.jinx.action.Actor
net.jinx.action.AudioRenderer
- All Implemented Interfaces:
- ClockSensitive, OwnerListener, SceneListener
public class AudioRenderer
- extends Actor
- implements ClockSensitive, OwnerListener
Renders the Audible Actors in a Scene using OpenAL and the Deimos Audio
library (the net.jinx.audio package).
API Stability: Alpha.
|
Constructor Summary |
AudioRenderer(java.lang.String name,
net.java.games.joal.AL al,
net.java.games.joal.ALC alc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AudioRenderer
public AudioRenderer(java.lang.String name,
net.java.games.joal.AL al,
net.java.games.joal.ALC alc)
getAL
protected net.java.games.joal.AL getAL()
getALC
protected net.java.games.joal.ALC getALC()
actorAdded
public void actorAdded(Actor actor,
Scene scene)
- Description copied from interface:
SceneListener
- Called when an Actor has been added to the Scene. It is also called
once for each actor when the Listener is added to the Scene.
- Specified by:
actorAdded in interface SceneListener
- Parameters:
actor - the Actor that has been added.scene - the Scene that this event came from.
actorRemoved
public void actorRemoved(Actor actor,
Scene scene)
- Description copied from interface:
SceneListener
- Called when an Actor has been removed from the Scene. It is also called
once for each actor when the Listener is removed from the Scene.
- Specified by:
actorRemoved in interface SceneListener
- Parameters:
actor - the Actor that has been removed.scene - the Scene that this event came from.
processEvent
protected void processEvent(ActorEvent event)
- Description copied from class:
Actor
- Processes an ActorEvent. This is what most Actor objects exist for.
- Specified by:
processEvent in class Actor
- Parameters:
event - the ActorEvent to process.
getListener
protected Listener getListener()