public void playStop() { if (clip != null) { if (playState == PLAYING || playState == PAUSED) { clip.stop(); clip.close(); playState = STOPPED; } } }