com.threerings.openal
Class Sounder.Implementation

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.openal.Sounder.Implementation
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
Sounder.BaseClip, Sounder.BaseStream, Sounder.Compound, Sounder.Conditional, Sounder.Random, Sounder.Scripted, Sounder.Sequential
Enclosing class:
Sounder

public abstract static class Sounder.Implementation
extends SimpleScope

The actual sounder implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
Sounder.Implementation(AlContext ctx, Scope parentScope)
          Creates a new implementation.
 
Method Summary
 void dispose()
          Releases the resources associated with this scope.
 String getScopeName()
          Returns the name of this scope for purposes of qualification.
abstract  boolean isPlaying()
          Checks whether the sound is currently playing.
 boolean loops()
          Checks whether the configured sound loops.
abstract  void start()
          Starts playing the sound.
abstract  void stop()
          Stops the sound.
 void update()
          Updates the sound.
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sounder.Implementation

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

Method Detail

loops

public boolean loops()
Checks whether the configured sound loops.


start

public abstract void start()
Starts playing the sound.


stop

public abstract void stop()
Stops the sound.


isPlaying

public abstract boolean isPlaying()
Checks whether the sound is currently playing.


update

public void update()
Updates the sound.


getScopeName

public String getScopeName()
Description copied from interface: Scope
Returns the name of this scope for purposes of qualification. Can return null if qualified symbols cannot specifically address this scope.

Specified by:
getScopeName in interface Scope
Overrides:
getScopeName in class SimpleScope

dispose

public void dispose()
Description copied from class: SimpleScope
Releases the resources associated with this scope.

Overrides:
dispose in class SimpleScope


Copyright © 2011. All Rights Reserved.