com.threerings.openal.config
Class SounderConfig.MetaStream

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.openal.config.SounderConfig.Implementation
          extended by com.threerings.openal.config.SounderConfig.Original
              extended by com.threerings.openal.config.SounderConfig.Fixed
                  extended by com.threerings.openal.config.SounderConfig.BaseStream
                      extended by com.threerings.openal.config.SounderConfig.MetaStream
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
SounderConfig

public static class SounderConfig.MetaStream
extends SounderConfig.BaseStream

Selects between a number of substreams.


Field Summary
 float crossFade
          The cross-fade between tracks.
 SounderConfig.WeightedFile[] files
          The files from which to choose.
 
Fields inherited from class com.threerings.openal.config.SounderConfig.BaseStream
attenuate, fadeIn, fadeOut, push, stack
 
Fields inherited from class com.threerings.openal.config.SounderConfig.Fixed
gain, pitch
 
Fields inherited from class com.threerings.openal.config.SounderConfig.Original
coneInnerAngle, coneOuterAngle, coneOuterGain, directional, maxDistance, maxGain, minGain, referenceDistance, rolloffFactor, sourceRelative
 
Constructor Summary
SounderConfig.MetaStream()
           
 
Method Summary
 Sounder.Implementation getSounderImplementation(AlContext ctx, Scope scope, Sounder.Implementation impl)
          Creates or updates a sounder implementation for this configuration.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources to the provided set.
 
Methods inherited from class com.threerings.openal.config.SounderConfig.Fixed
getGain, getPitch
 
Methods inherited from class com.threerings.openal.config.SounderConfig.Implementation
getUpdateReferences, invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

files

@Editable(weight=-3.0)
public SounderConfig.WeightedFile[] files
The files from which to choose.


crossFade

@Editable(min=0.0,
          step=0.01,
          hgroup="f")
public float crossFade
The cross-fade between tracks.

Constructor Detail

SounderConfig.MetaStream

public SounderConfig.MetaStream()
Method Detail

getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Description copied from class: SounderConfig.Implementation
Adds the implementation's update resources to the provided set.

Overrides:
getUpdateResources in class SounderConfig.Implementation

getSounderImplementation

public Sounder.Implementation getSounderImplementation(AlContext ctx,
                                                       Scope scope,
                                                       Sounder.Implementation impl)
Description copied from class: SounderConfig.Implementation
Creates or updates a sounder implementation for this configuration.

Specified by:
getSounderImplementation in class SounderConfig.Implementation
scope - the sounder's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.


Copyright © 2011. All Rights Reserved.