LoggingSystem.getLogger().log(Level.INFO, "Loaded file "+file);
	public void run() {		while (!killed) {			String name= null;			String file= null;			if (batchList.size() >= 2) {				synchronized (batchList) {					name= (String)batchList.remove(0);					file= (String)batchList.remove(0);				}				ISoundBuffer buffer= null;				if (file.endsWith(".wav")) {					System.out.println("Loading " + file + " as " + name);					buffer= new LWJGLWaveBuffer();					buffer.load(file);				}				if (file.endsWith(".mp3")) {					System.out.println("Loading " + file + " as " + name);					buffer= new LWJGLMP3Buffer();					buffer.load(file);				}				AL.alBufferData(					buffer.getBufferNumber(),					buffer.getChannels(),					buffer.getBufferData(),					buffer.getBufferData().capacity(),					buffer.getSampleRate());				if (AL.alGetError() != AL.AL_NO_ERROR) {					System.err.println("Error generating audio buffer");				}				SoundEffect effect= new SoundEffect(buffer.getBufferNumber(), ISound.SOUND_TYPE_EFFECT);				EffectRepository rep=EffectRepository.getRepository();				synchronized(rep){					rep.bind(name, effect);				}				buffer.release();							}			try{				Thread.sleep(waitTime);			}catch(InterruptedException ie){			}		}	}