com.sun.media.sound
static class: DirectAudioDevice.DirectDLI [javadoc |
source]
java.lang.Object
javax.sound.sampled.Line.Info
javax.sound.sampled.DataLine.Info
com.sun.media.sound.DirectAudioDevice$DirectDLI
Private inner class for the DataLine.Info objects
adds a little magic for the isFormatSupported so
that the automagic conversion of endianness and sign
does not show up in the formats array.
I.e. the formats array contains only the formats
that are really supported by the hardware,
but isFormatSupported() also returns true
for formats with wrong endianness.
Field Summary |
---|
AudioFormat[] | hardwareFormats | |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from com.sun.media.sound.DirectAudioDevice$DirectDLI Detail: |
public boolean isFormatSupportedInHardware(AudioFormat format) {
if (format == null) return false;
for (int i = 0; i < hardwareFormats.length; i++) {
if (format.matches(hardwareFormats[i])) {
return true;
}
}
return false;
}
|