net.jinx.audio
Class TestAudible

java.lang.Object
  extended by net.jinx.audio.AbstractAudible
      extended by net.jinx.audio.TestAudible
All Implemented Interfaces:
Audible

public class TestAudible
extends AbstractAudible

This class is used for testing only. It's API is not stable in any sense of the word and will eventually vanish without any prior warning, except this one.


Constructor Summary
TestAudible()
           
 
Method Summary
 void deinit()
          Deinitializes this AbstractAudible.
 void init(net.java.games.joal.AL al, net.java.games.joal.ALC alc)
          Stores the AL and ALC objects for later.
 void update()
          Updates OpenAL with new data for this Audible.
 
Methods inherited from class net.jinx.audio.AbstractAudible
getAL, getALC, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAudible

public TestAudible()
Method Detail

init

public void init(net.java.games.joal.AL al,
                 net.java.games.joal.ALC alc)
Description copied from class: AbstractAudible
Stores the AL and ALC objects for later.

Specified by:
init in interface Audible
Overrides:
init in class AbstractAudible
Parameters:
al - the AL object to use for audio rendering.
alc - the ALC object to use for audio rendering.

deinit

public void deinit()
Description copied from class: AbstractAudible
Deinitializes this AbstractAudible.

Specified by:
deinit in interface Audible
Overrides:
deinit in class AbstractAudible

update

public void update()
Description copied from interface: Audible
Updates OpenAL with new data for this Audible. In a properly designed system, this should be called on a regular basis.