|
|||||||||
| 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
public abstract static class Sounder.BaseClip
Base class for Sounder.BaseClip, Sounder.MetaClip, and Sounder.VariableClip.
| Field Summary | |
|---|---|
protected SounderConfig.Original |
_config
The implementation configuration. |
protected Sound |
_sound
The (currently playing) sound. |
protected Vector3f |
_vector
A result vector for computation. |
| 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.BaseClip(AlContext ctx,
Scope parentScope)
Creates a new implementation. |
|
| Method Summary | |
|---|---|
protected Sound |
getSound(String file,
float gain,
float pitch,
Sound sound)
Retrieves the sound corresponding to the specified file. |
protected Sound |
getSound(String file,
Sound sound)
Retrieves the sound corresponding to the specified file. |
boolean |
isPlaying()
Checks whether the sound is currently playing. |
protected void |
playSound(float gain)
Plays the sound. |
void |
scopeUpdated(ScopeEvent event)
Called when the scope has been updated. |
void |
setConfig(SounderConfig.Original config)
(Re)configures the implementation. |
void |
stop()
Stops the sound. |
void |
update()
Updates the sound. |
protected abstract void |
updateFromConfig()
Updates the clip from its config. |
protected void |
updateSoundTransform()
Updates the position and direction of the sound. |
| Methods inherited from class com.threerings.openal.Sounder.Implementation |
|---|
dispose, getScopeName, loops, start |
| 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.Original _config
protected Sound _sound
protected Vector3f _vector
| Constructor Detail |
|---|
public Sounder.BaseClip(AlContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void setConfig(SounderConfig.Original config)
public 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 SimpleScopeprotected abstract void updateFromConfig()
protected void playSound(float gain)
protected void updateSoundTransform()
protected Sound getSound(String file,
Sound sound)
sound - an existing sound to reuse, if appropriate.
protected Sound getSound(String file,
float gain,
float pitch,
Sound sound)
sound - an existing sound to reuse, if appropriate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||