net.jinx.action
Class AudioRenderer

java.lang.Object
  extended by net.jinx.action.Actor
      extended by 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)
           
 
Method Summary
 void actorAdded(Actor actor, Scene scene)
          Called when an Actor has been added to the Scene.
 void actorRemoved(Actor actor, Scene scene)
          Called when an Actor has been removed from the Scene.
protected  net.java.games.joal.AL getAL()
           
protected  net.java.games.joal.ALC getALC()
           
protected  Listener getListener()
           
protected  void processEvent(ActorEvent event)
          Processes an ActorEvent.
 
Methods inherited from class net.jinx.action.Actor
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioRenderer

public AudioRenderer(java.lang.String name,
                     net.java.games.joal.AL al,
                     net.java.games.joal.ALC alc)
Method Detail

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()