com.threerings.openal.config
Class SounderConfig.VariableClip
java.lang.Object
com.threerings.util.DeepObject
com.threerings.openal.config.SounderConfig.Implementation
com.threerings.openal.config.SounderConfig.Original
com.threerings.openal.config.SounderConfig.Variable
com.threerings.openal.config.SounderConfig.VariableClip
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Enclosing class:
- SounderConfig
public static class SounderConfig.VariableClip
- extends SounderConfig.Variable
Plays a clip with variable parameters.
|
Field Summary |
String |
file
The sound resource from which to load the clip. |
boolean |
loop
Whether or not the sound loops. |
loop
@Editable(weight=-3.0,
hgroup="f")
public boolean loop
- Whether or not the sound loops.
file
@Editable(editor="resource",
nullable=true,
weight=-3.0,
hgroup="f")
@FileConstraints(description="m.sound_files_desc",
extensions=".ogg",
directory="sound_dir")
public String file
- The sound resource from which to load the clip.
SounderConfig.VariableClip
public SounderConfig.VariableClip()
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.