List of usage examples for javax.sound.sampled Mixer isOpen
boolean isOpen();
From source file:SoundManagerTest.java
/** * Does any clean up before closing.//w ww. ja v a 2 s. co m */ protected void cleanUp() { // signal to unpause setPaused(false); // close the mixer (stops any running sounds) Mixer mixer = AudioSystem.getMixer(null); if (mixer.isOpen()) { mixer.close(); } }