|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.audio.AbstractAudible
public abstract class AbstractAudible
Simple abstract Audible implementation that takes care of storing the AL and
ALC objects from the init(AL, ALC) method for you. Both init and deinit are
implemented, leaving only update().
API Stability: Alpha; this is subject to change at any time.
Constructor Summary | |
---|---|
AbstractAudible()
Constructor; does nothing. |
Method Summary | |
---|---|
void |
deinit()
Deinitializes this AbstractAudible. |
protected net.java.games.joal.AL |
getAL()
Provides the AL object from the init(AL, ALC) method. |
protected net.java.games.joal.ALC |
getALC()
Provides the ALC object from the init(AL, ALC) method. |
void |
init(net.java.games.joal.AL al,
net.java.games.joal.ALC alc)
Stores the AL and ALC objects for later. |
boolean |
isInitialized()
Provides a way to determine if this Audible is in an initialized state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.jinx.audio.Audible |
---|
update |
Constructor Detail |
---|
public AbstractAudible()
Method Detail |
---|
public void init(net.java.games.joal.AL al, net.java.games.joal.ALC alc)
init
in interface Audible
al
- the AL object to use for audio rendering.alc
- the ALC object to use for audio rendering.
java.lang.NullPointerException
- if al or alc are null.public boolean isInitialized()
protected net.java.games.joal.AL getAL()
protected net.java.games.joal.ALC getALC()
public void deinit()
deinit
in interface Audible
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |