|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.openal.Sounder.Implementation
com.threerings.openal.Sounder.Conditional
public static class Sounder.Conditional
Plays the first sounder whose condition evaluates to true.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Sounder.Conditional(AlContext ctx,
Scope parentScope,
SounderConfig.Conditional config)
Creates a new conditional implementation. |
|
| Method Summary | |
|---|---|
boolean |
isPlaying()
Checks whether the sound is currently playing. |
boolean |
loops()
Checks whether the configured sound loops. |
void |
scopeUpdated(ScopeEvent event)
Called when the scope has been updated. |
void |
setConfig(SounderConfig.Conditional config)
(Re)configures the implementation. |
void |
start()
Starts playing the sound. |
void |
stop()
Stops the sound. |
void |
update()
Updates the sound. |
| Methods inherited from class com.threerings.openal.Sounder.Implementation |
|---|
dispose, getScopeName |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sounder.Conditional(AlContext ctx,
Scope parentScope,
SounderConfig.Conditional config)
| Method Detail |
|---|
public void setConfig(SounderConfig.Conditional config)
public boolean loops()
Sounder.Implementation
loops in class Sounder.Implementationpublic void start()
Sounder.Implementation
start in class Sounder.Implementationpublic void stop()
Sounder.Implementation
stop in class Sounder.Implementationpublic boolean isPlaying()
Sounder.Implementation
isPlaying in class Sounder.Implementationpublic void update()
Sounder.Implementation
update in class Sounder.Implementationpublic void scopeUpdated(ScopeEvent event)
ScopeUpdateListener
scopeUpdated in interface ScopeUpdateListenerscopeUpdated in class SimpleScope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||