com.threerings.openal
Class Sounder.Scripted

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

public static class Sounder.Scripted
extends Sounder.Implementation

Plays a scripted sequence of sounders.


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

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

Method Detail

setConfig

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

stop

public void stop()
Description copied from class: Sounder.Implementation
Stops the sound.

Specified by:
stop in class Sounder.Implementation

isPlaying

public boolean isPlaying()
Description copied from class: Sounder.Implementation
Checks whether the sound is currently playing.

Specified by:
isPlaying in class Sounder.Implementation

update

public void update()
Description copied from class: Sounder.Implementation
Updates the sound.

Overrides:
update in class Sounder.Implementation


Copyright © 2011. All Rights Reserved.