Interface Clip

All Superinterfaces:
Playable
All Known Implementing Classes:
Clip.Silence

public interface Clip extends Playable
Represents a one-shot clip.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A noop clip.
  • Method Summary

    Modifier and Type
    Method
    Description
    Views this clip as a Sound.
    void
    fadeIn(float fadeMillis)
    Fades this clip in over the specified duration.
    void
    fadeOut(float fadeMillis)
    Fades this clip out over the specified duration.
    void
    Preloads this clip's underlying audio data.

    Methods inherited from interface tripleplay.sound.Playable

    isPlaying, play, release, setVolume, stop, volume
  • Method Details

    • fadeIn

      void fadeIn(float fadeMillis)
      Fades this clip in over the specified duration.
    • fadeOut

      void fadeOut(float fadeMillis)
      Fades this clip out over the specified duration.
    • preload

      void preload()
      Preloads this clip's underlying audio data.
    • asSound

      Sound asSound()
      Views this clip as a Sound. Only the Sound.play() and Sound.stop() methods can be used. Useful for passing a clip into code that expects Sound.