Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4385928

Clip.setLoopPoints returns IllegalArgumentException when endpoint is -1.

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Verified

      Clip.setLoopPoints returns IllegalArgumentException when endpoint is -1.

      java.lang.IllegalArgumentException: End position -1 preceeds start position 0 at com.sun.media.sound.MixerClip.setLoopPoints(MixerClip.java:399)

      According to JavaDocs...
      _____________________________________________________
      public void setLoopPoints(int start, int end)

      Parameters:
      start - the loop's starting position, in sample frames (zero-based)
      end - the loop's ending position, in sample frames (zero-based), or -1 to indicate the final frame
      _____________________________________________________
      Code that demonstrates this behavior is attached.
      This behavior was observed on both Solaris and Windows platforms.



      jerry.barnes@eng 2001-01-29
      Removed from Ladybird project as per request.
      Although this bug applies Ladybird as well as Merlin, there are no engineering resources to address it in the Ladybird project timeframe.

            fbomerssunw Florian Bomers (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: