Package de.gurkenlabs.litiengine.sound
Class IntroTrack
java.lang.Object
de.gurkenlabs.litiengine.sound.IntroTrack
public class IntroTrack
extends java.lang.Object
implements TrackA
Track that plays an intro sound and then loops the specified music sound.Constructor Summary
Constructors Constructor Description IntroTrack(Sound intro, Sound loop)Initializes a newIntroTrackfor the specified sound.IntroTrack(Sound intro, java.lang.String loop)Initializes a newIntroTrackfor the specified sound.IntroTrack(java.lang.String intro, Sound loop)Initializes a newIntroTrackfor the specified sound.IntroTrack(java.lang.String intro, java.lang.String loop)Initializes a newIntroTrackfor the specified sound.Method Summary
Constructor Details
IntroTrack
public IntroTrack(java.lang.String intro, java.lang.String loop)Initializes a newIntroTrackfor the specified sound.- Parameters:
intro- The name of the sound to be played as intro.loop- The name of the sound to be looped.
IntroTrack
Initializes a newIntroTrackfor the specified sound.- Parameters:
intro- The sound to be played as intro.loop- The name of the sound to be looped.
IntroTrack
Initializes a newIntroTrackfor the specified sound.- Parameters:
intro- The name of the sound to be played as intro.loop- The sound to be looped.
IntroTrack
Initializes a newIntroTrackfor the specified sound.- Parameters:
intro- The sound to be played as intro.loop- The sound to be looped.
Method Details
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<Sound>
getFormat
public javax.sound.sampled.AudioFormat getFormat()getIntro
getLoop
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
