Package de.gurkenlabs.litiengine.sound
Class IntroTrack
java.lang.Object
de.gurkenlabs.litiengine.sound.IntroTrack
public class IntroTrack
extends java.lang.Object
implements Track
A
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 newIntroTrack
for the specified sound.IntroTrack(Sound intro, java.lang.String loop)
Initializes a newIntroTrack
for the specified sound.IntroTrack(java.lang.String intro, Sound loop)
Initializes a newIntroTrack
for the specified sound.IntroTrack(java.lang.String intro, java.lang.String loop)
Initializes a newIntroTrack
for the specified sound.Method Summary
Constructor Details
IntroTrack
public IntroTrack(java.lang.String intro, java.lang.String loop)Initializes a newIntroTrack
for 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 newIntroTrack
for the specified sound.- Parameters:
intro
- The sound to be played as intro.loop
- The name of the sound to be looped.
IntroTrack
Initializes a newIntroTrack
for the specified sound.- Parameters:
intro
- The name of the sound to be played as intro.loop
- The sound to be looped.
IntroTrack
Initializes a newIntroTrack
for the specified sound.- Parameters:
intro
- The sound to be played as intro.loop
- The sound to be looped.
Method Details
iterator
- Specified by:
iterator
in interfacejava.lang.Iterable<Sound>
getFormat
public javax.sound.sampled.AudioFormat getFormat()getIntro
getLoop
equals
public boolean equals(java.lang.Object anObject)- 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