|
|||||||||
| 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.Scripted
public static class Sounder.Scripted
Plays a scripted sequence of sounders.
| Field Summary | |
|---|---|
protected boolean |
_completed
If true, the script has completed. |
protected SounderConfig.Scripted |
_config
The implementation config. |
protected long |
_last
The time of the last update. |
protected MutableLong |
_now
The current time. |
protected int |
_sidx
The index of the current sounder. |
protected Sounder[] |
_sounders
The component sounders. |
protected float |
_time
The amount of time elapsed. |
protected float[] |
_times
The times of the sounders. |
| Fields inherited from class com.threerings.openal.Sounder.Implementation |
|---|
_ctx, _started, _transform |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Sounder.Scripted(AlContext ctx,
Scope parentScope,
SounderConfig.Scripted config)
Creates a new scripted implementation. |
|
| Method Summary | |
|---|---|
boolean |
isPlaying()
Checks whether the sound is currently playing. |
boolean |
loops()
Checks whether the configured sound loops. |
void |
setConfig(SounderConfig.Scripted config)
(Re)configures the implementation. |
void |
start()
Starts playing the sound. |
protected void |
startSounders()
Starts all sounders scheduled before or at the current time. |
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, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SounderConfig.Scripted _config
protected Sounder[] _sounders
protected float[] _times
protected float _time
protected int _sidx
protected long _last
protected boolean _completed
@Bound protected MutableLong _now
| Constructor Detail |
|---|
public Sounder.Scripted(AlContext ctx,
Scope parentScope,
SounderConfig.Scripted config)
| Method Detail |
|---|
public void setConfig(SounderConfig.Scripted 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.Implementationprotected void startSounders()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||