|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.effect.sound.Mp3Sound
public class Mp3Sound
This class represents an mp3 sound file that can be played
Constructor Summary | |
---|---|
Mp3Sound(java.lang.String path,
boolean loop)
Creates a new mp3 sound wich can optionally be looped. |
Method Summary | |
---|---|
java.lang.String |
getSoundPath()
Returns the file path to the sound file. |
boolean |
hasFinished()
Determines if the current sound has finished playing, because it came to an end. |
boolean |
isLooped()
Determines if the sound was specified to be looped. |
void |
play()
Starts playing the assigned sound file. |
void |
stop()
Stops playing the assigned sound file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mp3Sound(java.lang.String path, boolean loop)
path
- path to the sound file (.mp3)loop
- loop the file? --> true=yes, false=noMethod Detail |
---|
public java.lang.String getSoundPath()
SoundFileIface
getSoundPath
in interface SoundFileIface
public void play()
SoundFileIface
play
in interface SoundFileIface
public boolean isLooped()
SoundFileIface
isLooped
in interface SoundFileIface
public boolean hasFinished()
public void stop()
SoundFileIface
stop
in interface SoundFileIface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |