Constructor and Description |
---|
SinglePlayTrack(Sound sound)
Initializes a new
SinglePlayTrack for the specified sound. |
SinglePlayTrack(java.lang.String soundName)
Initializes a new
SinglePlayTrack for the specified sound. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
javax.sound.sampled.AudioFormat |
getFormat() |
int |
hashCode() |
java.util.Iterator<Sound> |
iterator() |
java.lang.String |
toString() |
public SinglePlayTrack(java.lang.String soundName)
SinglePlayTrack
for the specified sound.soundName
- The name of the sound to be played by this track.public SinglePlayTrack(Sound sound)
SinglePlayTrack
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 equals(java.lang.Object obj)
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