com.threerings.openal
Class Sounder.BaseClip

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.openal.Sounder.Implementation
          extended by com.threerings.openal.Sounder.BaseClip
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
Sounder.Clip, Sounder.MetaClip, Sounder.VariableClip
Enclosing class:
Sounder

public abstract static class Sounder.BaseClip
extends Sounder.Implementation

Base class for Sounder.BaseClip, Sounder.MetaClip, and Sounder.VariableClip.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
Sounder.BaseClip(AlContext ctx, Scope parentScope)
          Creates a new implementation.
 
Method Summary
 boolean isPlaying()
          Checks whether the sound is currently playing.
 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.
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sounder.BaseClip

public Sounder.BaseClip(AlContext ctx,
                        Scope parentScope)
Creates a new implementation.

Method Detail

setConfig

public void setConfig(SounderConfig.Original config)
(Re)configures the implementation.


stop

public void stop()
Description copied from class: Sounder.Implementation
Stops the sound.

Specified by:
stop in class Sounder.Implementation

isPlaying

public boolean isPlaying()
Description copied from class: Sounder.Implementation
Checks whether the sound is currently playing.

Specified by:
isPlaying in class Sounder.Implementation

update

public void update()
Description copied from class: Sounder.Implementation
Updates the sound.

Overrides:
update in class Sounder.Implementation

scopeUpdated

public void scopeUpdated(ScopeEvent event)
Description copied from interface: ScopeUpdateListener
Called when the scope has been updated.

Specified by:
scopeUpdated in interface ScopeUpdateListener
Overrides:
scopeUpdated in class SimpleScope


Copyright © 2011. All Rights Reserved.