com.threerings.openal
Class Sounder.Clip
java.lang.Object
com.threerings.expr.SimpleScope
com.threerings.openal.Sounder.Implementation
com.threerings.openal.Sounder.BaseClip
com.threerings.openal.Sounder.Clip
- All Implemented Interfaces:
- Scope, ScopeUpdateListener
- Enclosing class:
- Sounder
public static class Sounder.Clip
- extends Sounder.BaseClip
Plays a sound clip.
| Fields inherited from interface com.threerings.expr.Scope |
EPOCH, NOW |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_config
protected SounderConfig.Clip _config
- The clip config.
Sounder.Clip
public Sounder.Clip(AlContext ctx,
Scope parentScope,
SounderConfig.Clip config)
- Creates a new clip implementation.
setConfig
public void setConfig(SounderConfig.Clip config)
- (Re)configures the implementation.
loops
public boolean loops()
- Description copied from class:
Sounder.Implementation
- Checks whether the configured sound loops.
- Overrides:
loops in class Sounder.Implementation
start
public void start()
- Description copied from class:
Sounder.Implementation
- Starts playing the sound.
- Specified by:
start in class Sounder.Implementation
updateFromConfig
protected void updateFromConfig()
- Description copied from class:
Sounder.BaseClip
- Updates the clip from its config.
- Specified by:
updateFromConfig in class Sounder.BaseClip