@Override
	public void unload(Core core) throws ResourceException {
		if (!AL.isCreated()) {
			return;
		}
		
		IntBuffer buffer = (IntBuffer) BufferUtils.createIntBuffer(1).put(this.sound.getBufferName()).rewind();
		AL10.alDeleteBuffers(buffer);
		int error = AL10.alGetError();
		if (error != AL10.AL_NO_ERROR) {
			throw new ResourceException("unable to unload sound buffer, error: " + error);
		}		
		this.sound = null;
	}