Obtains a set of audio formats supported by the data line. Note that
isFormatSupported(AudioFormat)
might return
true
for certain additional formats that are missing from the set returned by
getFormats()
. The reverse is not the case:
isFormatSupported(AudioFormat)
is guaranteed to return
true
for all formats returned by
getFormats()
.
Some fields in the AudioFormat
instances can be set to NOT_SPECIFIED
if that field does not apply to the format, or if the format supports a wide range of values for that field. For example, a multi-channel device supporting up to 64 channels, could set the channel field in the AudioFormat
instances returned by this method to NOT_SPECIFIED
.