com.planeth.common.audio
Class BufferedClip

java.lang.Object
  extended bycom.planeth.common.audio.BufferedClip

public class BufferedClip
extends java.lang.Object

Buffered Audio Clip

Author:
Andreas Grässer, gal@planet-h.com.
created Jun 19, 2005
See Also:
AudioClipConfig

Field Summary
static java.lang.String SLIM_SOUNDS_PATH
           
static java.lang.String SOUNDS_PATH
           
 
Constructor Summary
BufferedClip(java.lang.String fileName)
          Constructor for BufferedClip.
BufferedClip(java.lang.String fileName, AudioClipConfig settings)
          Constructor for BufferedClip.
 
Method Summary
 boolean isLoop()
          Returns true, if the Clip is configured as a loop
 void play()
          Plays the clip
 void stop()
          Stops the clip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOUNDS_PATH

public static final java.lang.String SOUNDS_PATH
See Also:
Constant Field Values

SLIM_SOUNDS_PATH

public static final java.lang.String SLIM_SOUNDS_PATH
See Also:
Constant Field Values
Constructor Detail

BufferedClip

public BufferedClip(java.lang.String fileName)
Constructor for BufferedClip.
SINGLE_BUFFER_NO_LOOP AudioClipConfig is used.

Parameters:
fileName - the name of the audiofile to be loaded

BufferedClip

public BufferedClip(java.lang.String fileName,
                    AudioClipConfig settings)
Constructor for BufferedClip.

Parameters:
fileName - the name of the audiofile to be loaded
settings - the AudioClipConfig with the settings for the clip
Method Detail

play

public void play()
Plays the clip


stop

public void stop()
Stops the clip


isLoop

public boolean isLoop()
Returns true, if the Clip is configured as a loop

Returns:
Returns true, if the Clip is configured as a loop