Constructor and Description |
---|
LoopedTrack(Sound sound)
Initializes a new
LoopedTrack for the specified sound. |
LoopedTrack(java.lang.String soundName)
Initializes a new
LoopedTrack for the specified sound. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object anObject) |
javax.sound.sampled.AudioFormat |
getFormat() |
int |
hashCode() |
boolean |
hasNext() |
java.util.Iterator<Sound> |
iterator() |
Sound |
next() |
java.lang.String |
toString() |
public LoopedTrack(java.lang.String soundName)
LoopedTrack
for the specified sound.soundName
- The name of the sound to be played by this track.public LoopedTrack(Sound sound)
LoopedTrack
for the specified sound.sound
- The sound to be played by this track.public java.util.Iterator<Sound> iterator()
iterator
in interface java.lang.Iterable<Sound>
public javax.sound.sampled.AudioFormat getFormat()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Sound>
public boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object