System.err.println("Error generating audio buffer");
LoggingSystem.getLogger().log(Level.WARNING, "Error generating audio buffer");
	public void load(String file, String name) {		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.getRepository().bind(name, effect);		buffer.release();	}