Package de.gurkenlabs.litiengine.sound
Class SinglePlayTrack
java.lang.Object
de.gurkenlabs.litiengine.sound.SinglePlayTrack
public class SinglePlayTrack
extends java.lang.Object
implements Track
A
Track
that plays a sound once and then stops.Constructor Summary
Constructors Constructor Description SinglePlayTrack(Sound sound)
Initializes a newSinglePlayTrack
for the specified sound.SinglePlayTrack(java.lang.String soundName)
Initializes a newSinglePlayTrack
for the specified sound.Method Summary
Constructor Details
SinglePlayTrack
public SinglePlayTrack(java.lang.String soundName)Initializes a newSinglePlayTrack
for the specified sound.- Parameters:
soundName
- The name of the sound to be played by this track.
SinglePlayTrack
Initializes a newSinglePlayTrack
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()equals
public boolean equals(java.lang.Object obj)- 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