List of usage examples for javax.sound.sampled Mixer close
@Override
void close();
From source file:SoundManagerTest.java
/** * Does any clean up before closing.//from w w w .j a v a 2s . c om */ 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(); } }