Class Track

java.lang.Object
icyllis.modernui.audio.Track
All Implemented Interfaces:
AutoCloseable

public class Track extends Object implements AutoCloseable
  • Constructor Details

  • Method Details

    • isPlaying

      public boolean isPlaying()
    • play

      public void play()
    • pause

      public void pause()
    • setPosition

      public void setPosition(float x, float y, float z)
    • setGain

      public void setGain(float gain)
    • getTime

      public float getTime()
    • getLength

      public float getLength()
    • getSampleRate

      public int getSampleRate()
    • seek

      public boolean seek(int sampleOffset)
    • seekToSeconds

      public boolean seekToSeconds(float seconds)
    • tick

      public void tick()
    • setAnalyzer

      public void setAnalyzer(@Nullable FFT fft, @Nullable Consumer<FFT> callback)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable