Class SongSource

java.lang.Object
de.pottgames.tuningfork.SoundSource
de.pottgames.tuningfork.jukebox.song.SongSource
Direct Known Subclasses:
BufferedSoundSource, StreamedSoundSource

public abstract class SongSource extends SoundSource
Identifies objects to be used as a source of a Song.
  • Constructor Details

    • SongSource

      protected SongSource()
  • Method Details

    • getDuration

      public abstract float getDuration()
      Returns the duration in seconds. Might return -1 if the duration is not available.
      Returns:
      the duration in seconds
    • getPlaybackPosition

      public abstract float getPlaybackPosition()
      Returns the playback position in seconds.
      Returns:
      the playback position in seconds