public void fadeOut() {
                double volume = 0.6;

                for (;;) {
                        if (((volume - 0.05) < 0) || !setVolume(volume)) {
                                break;
                        }
                        try {
                                Thread.sleep(150);
                        } catch (Exception exception) {
                        }
                        volume -= 0.025;
                }
                if (synthesizer != null) {
                        synthesizer.close();
                        synthesizer = null;
                }
                if (sequencer != null) {
                        if (sequencer.isOpen()) {
                                sequencer.stop();
                        }
                        sequencer.close();
                }
        }