private ISound addSound() throws UnsupportedAudioFileException, IOException, LineUnavailableException { ISound result = soundFactory.createSound(); result.load(); result.setRepeat(false); result.closeOnEnd(false); result.setVolume(volume); soundList.add(result); return result; }
private void setAllVolumes() { for (ISound sound : soundList) sound.setVolume(volume); }