--- old/src/java.desktop/share/classes/com/sun/media/sound/DirectAudioDeviceProvider.java 2016-08-12 17:01:39.000000000 +0300 +++ new/src/java.desktop/share/classes/com/sun/media/sound/DirectAudioDeviceProvider.java 2016-08-12 17:01:39.000000000 +0300 @@ -28,7 +28,6 @@ import javax.sound.sampled.Mixer; import javax.sound.sampled.spi.MixerProvider; - /** * DirectAudioDevice provider. * @@ -36,8 +35,6 @@ */ public final class DirectAudioDeviceProvider extends MixerProvider { - // STATIC VARIABLES - /** * Set of info objects for all port input devices on the system. */ @@ -48,18 +45,11 @@ */ private static DirectAudioDevice[] devices; - - // STATIC - static { // initialize Platform.initialize(); } - - // CONSTRUCTOR - - /** * Required public no-arg constructor. */ @@ -92,6 +82,7 @@ } } + @Override public Mixer.Info[] getMixerInfo() { synchronized (DirectAudioDeviceProvider.class) { Mixer.Info[] localArray = new Mixer.Info[infos.length]; @@ -100,7 +91,7 @@ } } - + @Override public Mixer getMixer(Mixer.Info info) { synchronized (DirectAudioDeviceProvider.class) { // if the default device is asked, we provide the mixer @@ -125,7 +116,6 @@ String.format("Mixer %s not supported by this provider", info)); } - private static Mixer getDevice(DirectAudioDeviceInfo info) { int index = info.getIndex(); if (devices[index] == null) { @@ -134,9 +124,6 @@ return devices[index]; } - // INNER CLASSES - - /** * Info class for DirectAudioDevices. Adds an index value and a string for * making native references to a particular device. @@ -171,7 +158,6 @@ } } // class DirectAudioDeviceInfo - // NATIVE METHODS private static native int nGetNumDevices(); // index: [0..nGetNumDevices()-1] private static native DirectAudioDeviceInfo nNewDirectAudioDeviceInfo(int deviceIndex);