Class SinglePlayTrack

java.lang.Object
de.gurkenlabs.litiengine.sound.SinglePlayTrack
All Implemented Interfaces:
Track, Iterable<Sound>

public class SinglePlayTrack extends Object implements Track
A Track that plays a sound once and then stops.
  • Constructor Details

    • SinglePlayTrack

      public SinglePlayTrack(String soundName)
      Initializes a new SinglePlayTrack for the specified sound.
      Parameters:
      soundName - The name of the sound to be played by this track.
    • SinglePlayTrack

      public SinglePlayTrack(Sound sound)
      Initializes a new SinglePlayTrack for the specified sound.
      Parameters:
      sound - The sound to be played by this track.
  • Method Details