org.deken.game.sound
Class SingleSound

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

public class SingleSound
extends BaseSound

Title: SingleSound

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
SingleSound(Audio audio, java.lang.String name)
           
 
Method Summary
 void audioStop()
           
 SingleSound 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

SingleSound

public SingleSound(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 SingleSound copy()
Description copied from interface: Sound
Copies the sound.

Returns:
Sound