com.threerings.openal
Class Sounder.Stream

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.Stream
All Implemented Interfaces:
Scope, ScopeUpdateListener
Enclosing class:
Sounder

public static class Sounder.Stream
extends Sounder.BaseStream

Plays a sound stream.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.openal.Sounder.BaseStream
Sounder.BaseStream.StackedStream, Sounder.BaseStream.TransformedStream
 
Field Summary
protected  SounderConfig.Stream _config
          The implementation configuration.
 
Fields inherited from class com.threerings.openal.Sounder.BaseStream
_stream, _streamGain
 
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.Stream(AlContext ctx, Scope parentScope, SounderConfig.Stream config)
          Creates a new stream implementation.
 
Method Summary
 boolean loops()
          Checks whether the configured sound loops.
 void setConfig(SounderConfig.Stream config)
          (Re)configures the implementation.
 void start()
          Starts playing the sound.
 
Methods inherited from class com.threerings.openal.Sounder.BaseStream
isPlaying, setConfig, startStream, stop, stopStream
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected SounderConfig.Stream _config
The implementation configuration.

Constructor Detail

Sounder.Stream

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

Method Detail

setConfig

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