-
Bug
-
Resolution: Fixed
-
P4
-
None
-
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.
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.