com.threerings.openal
Class Sounder.MetaStream

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.openal.Sounder.Implementation
          extended by com.threerings.openal.Sounder.BaseStream
              extended by com.threerings.openal.Sounder.MetaStream
All Implemented Interfaces:
Scope, ScopeUpdateListener
Enclosing class:
Sounder

public static class Sounder.MetaStream
extends Sounder.BaseStream

Selects from a number of streams.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
Sounder.MetaStream(AlContext ctx, Scope parentScope, SounderConfig.MetaStream config)
          Creates a new stream implementation.
 
Method Summary
 boolean loops()
          Checks whether the configured sound loops.
 void setConfig(SounderConfig.MetaStream config)
          (Re)configures the implementation.
 void start()
          Starts playing the sound.
 
Methods inherited from class com.threerings.openal.Sounder.BaseStream
isPlaying, setConfig, stop
 
Methods inherited from class com.threerings.openal.Sounder.Implementation
dispose, getScopeName, update
 
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.MetaStream

public Sounder.MetaStream(AlContext ctx,
                          Scope parentScope,
                          SounderConfig.MetaStream config)
Creates a new stream implementation.

Method Detail

setConfig

public void setConfig(SounderConfig.MetaStream 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


Copyright © 2011. All Rights Reserved.