private boolean checkALError() {
        switch (AL10.alGetError()) {
            case AL10.AL_NO_ERROR:
                return false;
            case AL10.AL_INVALID_NAME:
                errorMessage("Invalid name parameter.");
                return true;
            case AL10.AL_INVALID_ENUM:
                errorMessage("Invalid parameter.");
                return true;
            case AL10.AL_INVALID_VALUE:
                errorMessage("Invalid enumerated parameter value.");
                return true;
            case AL10.AL_INVALID_OPERATION:
                errorMessage("Illegal call.");
                return true;
            case AL10.AL_OUT_OF_MEMORY:
                errorMessage("Unable to allocate memory.");
                return true;
            default:
                errorMessage("An unrecognized error occurred.");
                return true;
        }
    }