Incorrect behaviour of AudioSystem.getTargetFormats/getTargetEncodings/isConversionSupported

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: client-libs
    • None
    • b105
    • generic
    • generic

      Behavior of AudioSystem.getTargetFormats/getTargetEncodings/isConversionSupported contradicts each other.

      The problem comes from the AudioSystem.getAudioInputStream and the code below:
              if (sourceStream.getFormat().matches(targetFormat)) {
                  return sourceStream;
              }
      Note that getTargetFormats/getTargetEncodings/isConversionSupported does not take into account that getAudioInputStream do not throw an expection in this case even for some custom AudioStream which is not supported by the converters.

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

              Created:
              Updated:
              Resolved: