public static void playClip(Clip clip) { if (clip != null) { clip.stop(); clip.setFramePosition(0); clip.start(); } }