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

IllegalArgumentException is not thrown by Clip.open(AudioFormat,byte[], int, int)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • client-libs
    • None
    • b143
    • generic

      According the specification of Clip.open:

           * @throws IllegalArgumentException if the buffer size does not represent an
           * integral number of sample frames, or if {@code format} is not
           * fully specified or invalid
           */
          void open(AudioFormat format, byte[] data, int offset, int bufferSize)

      We have two implementations of the Clip.
       - SoftMixingClip - exception is thrown
       - DirectAudioDevice - exception is not thrown

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: