|
|||||||||
| 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.BaseClip
com.threerings.openal.Sounder.MetaClip
public static class Sounder.MetaClip
Plays a randomly selected clip.
| Field Summary | |
|---|---|
protected SounderConfig.MetaClip |
_config
The implementation configuration. |
protected Sound[] |
_sounds
The sounds. |
protected float[] |
_weights
The weights. |
| Fields inherited from class com.threerings.openal.Sounder.BaseClip |
|---|
_sound, _vector |
| 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.MetaClip(AlContext ctx,
Scope parentScope,
SounderConfig.MetaClip config)
Creates a new clip implementation. |
|
| Method Summary | |
|---|---|
boolean |
loops()
Checks whether the configured sound loops. |
void |
setConfig(SounderConfig.MetaClip config)
(Re)configures the implementation. |
void |
start()
Starts playing the sound. |
protected void |
updateFromConfig()
Updates the clip from its config. |
| Methods inherited from class com.threerings.openal.Sounder.BaseClip |
|---|
getSound, getSound, isPlaying, playSound, scopeUpdated, setConfig, stop, update, updateSoundTransform |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SounderConfig.MetaClip _config
protected Sound[] _sounds
protected float[] _weights
| Constructor Detail |
|---|
public Sounder.MetaClip(AlContext ctx,
Scope parentScope,
SounderConfig.MetaClip config)
| Method Detail |
|---|
public void setConfig(SounderConfig.MetaClip config)
public boolean loops()
Sounder.Implementation
loops in class Sounder.Implementationpublic void start()
Sounder.Implementation
start in class Sounder.Implementationprotected void updateFromConfig()
Sounder.BaseClip
updateFromConfig in class Sounder.BaseClip
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||