org.hermit.android.sound
Class Effect

java.lang.Object
  extended by org.hermit.android.sound.Effect

public class Effect
extends java.lang.Object

Class representing a specific sound effect.


Method Summary
 boolean isPlaying()
          Determine whether this effect is playing.
 void loop()
          Start playing this sound effect in a continuous loop.
 void play()
          Play this sound effect.
 void play(float rvol)
          Play this sound effect.
 void stop()
          Stop this sound effect immediately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

play

public void play()
Play this sound effect.


play

public void play(float rvol)
Play this sound effect.

Parameters:
rvol - Relative volume for this sound, 0 - 1.

loop

public void loop()
Start playing this sound effect in a continuous loop.


stop

public void stop()
Stop this sound effect immediately.


isPlaying

public final boolean isPlaying()
Determine whether this effect is playing.

Returns:
True if this sound effect is playing.