|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjplay.Sound
public class Sound
Class responsible for controlling the execution of sounds.
Constructor Summary | |
---|---|
Sound(java.lang.String fileName)
Class Constructor. |
Method Summary | |
---|---|
void |
decreaseVolume(float value)
Method responsible for decrease the volume. |
void |
increaseVolume(float value)
Method responsible for increasing the volume. |
boolean |
isExecuting()
Returns true if the sound is running, false otherwise. |
void |
load(java.lang.String fileName)
Loads a sound. |
void |
pause()
Pauses the execution of the sound. |
void |
play()
Starts the execution of the sound. |
void |
setRepeat(boolean value)
This method is responsible for making the sound to run indefinitely. |
void |
setVolume(float value)
Sets the current volume. |
void |
stop()
Stops the execution of the sound. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sound(java.lang.String fileName)
fileName
- Method Detail |
---|
public void load(java.lang.String fileName)
fileName
- File path.public void increaseVolume(float value)
value
- This value will be added to the current volume value.public void decreaseVolume(float value)
value
- This value will be subtracted from the current volume value.public void setVolume(float value)
value
- public void play()
public void stop()
public void pause()
public void setRepeat(boolean value)
value
- public boolean isExecuting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |