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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: