public void playSound(String file) throws IOException { Sound s; if (SoundSystem.exists(file)) { s = SoundSystem.getSound(file); } else { s = SoundSystem.loadSound(file, file); } playSound(s); }