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 newLoopedTrackfor the specified sound.LoopedTrack(java.lang.String soundName)Initializes a newLoopedTrackfor the specified sound.Method Summary
Constructor Details
LoopedTrack
public LoopedTrack(java.lang.String soundName)Initializes a newLoopedTrackfor the specified sound.- Parameters:
soundName- The name of the sound to be played by this track.
LoopedTrack
Initializes a newLoopedTrackfor the specified sound.- Parameters:
sound- The sound to be played by this track.
Method Details
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<Sound>
getFormat
public javax.sound.sampled.AudioFormat getFormat()hasNext
public boolean hasNext()- Specified by:
hasNextin interfacejava.util.Iterator<Sound>
next
- Specified by:
nextin interfacejava.util.Iterator<Sound>
equals
public boolean equals(java.lang.Object anObject)- Overrides:
equalsin classjava.lang.Object
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
