1public static void play(Clip clip) {
2 if (Settings.getSettings().isVolumeOn()) {
3 FloatControl volume = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);
4 volume.setValue(-1 * Settings.getSettings().getVolume());
5 clip.start();
6 }
7}