|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.sound.BaseSound
org.deken.game.sound.TimeListeningSound
public class TimeListeningSound
Title: TimeListeningSound
Description: TODO
Copyright: Copyright (c) Nov 22, 2011
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.deken.game.sound.BaseSound |
---|
BaseSound.SEQUENCE |
Field Summary | |
---|---|
protected int |
currentSound
|
protected long[] |
playTimes
|
protected long |
sequenceTime
|
protected Sound |
sound
|
protected long |
totalTime
|
Fields inherited from class org.deken.game.sound.BaseSound |
---|
audio, listeners, name, playing |
Constructor Summary | |
---|---|
TimeListeningSound(Sound sound,
long totalTime,
long[] playTimes)
TimeListeningSound needs a Sound object. |
Method Summary | |
---|---|
void |
audioStop()
|
TimeListeningSound |
copy()
Copies the sound. |
Sound |
getSound()
|
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 |
reset()
|
void |
resume()
Resumes the sound object from where it was paused. |
void |
setPlayTimes(long[] playTimes)
|
void |
setSound(Sound sound)
|
void |
stop()
Stops the sound object. |
void |
update(long elapseTime)
The update method is used for filter updates, when sound does have regular updates. |
Methods inherited from class org.deken.game.sound.BaseSound |
---|
addAudio, addSoundListener, copyParent, getName, isPlaying, notifyListeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deken.game.Updateable |
---|
getName |
Field Detail |
---|
protected Sound sound
protected long totalTime
protected long[] playTimes
protected int currentSound
protected long sequenceTime
Constructor Detail |
---|
public TimeListeningSound(Sound sound, long totalTime, long[] playTimes)
sound
- totalTime
- playTimes
- Method Detail |
---|
public void audioStop()
audioStop
in interface AudioListener
public TimeListeningSound copy()
Sound
copy
in interface Sound
public Sound getSound()
public void pause()
Sound
pause
in interface Sound
public void play()
Sound
play
in interface Sound
public void reset()
public void resume()
Sound
resume
in interface Sound
public void stop()
Sound
stop
in interface Sound
public void setPlayTimes(long[] playTimes)
public void setSound(Sound sound)
public void update(long elapseTime)
BaseSound
update
in interface Sound
update
in interface Updateable
update
in class BaseSound
elapseTime
- long
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |