org.deken.game.sound
Class LoopedSound

java.lang.Object
  extended by org.deken.game.sound.BaseSound
      extended by org.deken.game.sound.LoopedSound
All Implemented Interfaces:
AudioListener, Sound, Updateable

public class LoopedSound
extends BaseSound

Title: TODO

Description: TODO

Copyright: Copyright (c) Nov 19, 2011

Version:
1.0
Author:
Gary Deken

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deken.game.sound.BaseSound
BaseSound.SEQUENCE
 
Field Summary
 
Fields inherited from class org.deken.game.sound.BaseSound
audio, listeners, name, playing
 
Constructor Summary
LoopedSound(Audio audio, java.lang.String name)
           
 
Method Summary
 void audioStop()
           
 LoopedSound copy()
          Copies the sound.
 void pause()
          Pauses the sound object at it's current location.
 void play()
          Plays the sound object, with an option to loop the sound.
 void resume()
          Resumes the sound object from where it was paused.
 void stop()
          Stops the sound object.
 
Methods inherited from class org.deken.game.sound.BaseSound
addAudio, addSoundListener, copyParent, getName, isPlaying, notifyListeners, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopedSound

public LoopedSound(Audio audio,
                   java.lang.String name)
Method Detail

play

public void play()
Description copied from interface: Sound
Plays the sound object, with an option to loop the sound.


stop

public void stop()
Description copied from interface: Sound
Stops the sound object.


pause

public void pause()
Description copied from interface: Sound
Pauses the sound object at it's current location.


resume

public void resume()
Description copied from interface: Sound
Resumes the sound object from where it was paused.


audioStop

public void audioStop()

copy

public LoopedSound copy()
Description copied from interface: Sound
Copies the sound.

Returns:
Sound