Interface SoundData


public interface SoundData
A singular sound source.
Author:
Matthew Tropiano
  • Method Details

    • getPath

      String getPath()
      Returns:
      the path to the source.
    • getInputStream

      InputStream getInputStream()
      Returns:
      an input stream for reading the sound data.
    • isStream

      boolean isStream()
      Affects how the sound is loaded. If not a stream, the data is loaded fully.
      Returns:
      true if this is a streaming source, false if not (is a clip).
    • replacesOldSounds

      boolean replacesOldSounds()
      Returns:
      true if this sound should replace an existing instance of its playback, false to not.
    • isAlwaysPlayed

      boolean isAlwaysPlayed()
      Returns:
      true if this sound cannot be culled, or its play event must succeed.
    • getLimit

      int getLimit()
      Returns:
      the amount of concurrent instances of this sound can be playing. 0 or less is infinite.
    • getPitchVariance

      float getPitchVariance()
      Returns:
      the amount of pitch to vary each play. Scalar value.