Package de.gurkenlabs.litiengine.sound
Class LoopedTrack
java.lang.Object
de.gurkenlabs.litiengine.sound.LoopedTrack
public class LoopedTrack
extends java.lang.Object
implements Track, java.util.Iterator<Sound>
Constructor Summary
Constructors Constructor Description LoopedTrack(Sound sound)
Initializes a newLoopedTrack
for the specified sound.LoopedTrack(java.lang.String soundName)
Initializes a newLoopedTrack
for the specified sound.Method Summary
Constructor Details
LoopedTrack
public LoopedTrack(java.lang.String soundName)Initializes a newLoopedTrack
for the specified sound.- Parameters:
soundName
- The name of the sound to be played by this track.
LoopedTrack
Initializes a newLoopedTrack
for the specified sound.- Parameters:
sound
- The sound to be played by this track.
Method Details
iterator
- Specified by:
iterator
in interfacejava.lang.Iterable<Sound>
getFormat
public javax.sound.sampled.AudioFormat getFormat()hasNext
public boolean hasNext()- Specified by:
hasNext
in interfacejava.util.Iterator<Sound>
next
- Specified by:
next
in interfacejava.util.Iterator<Sound>
equals
public boolean equals(java.lang.Object anObject)- Overrides:
equals
in classjava.lang.Object
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object