public RESULT getParameterByIndex(int index, out ParameterInstance instance)
            {
                RESULT result = RESULT.OK;
                IntPtr parameterinstanceraw = new IntPtr();

                instance = null;

                try
                {
                    result = FMOD_Studio_EventInstance_GetParameterByIndex(rawPtr, index, out parameterinstanceraw);
                }
                catch
                {
                    result = RESULT.ERR_INVALID_PARAM;
                }
                if (result != RESULT.OK)
                {
                    return(result);
                }
                instance = new ParameterInstance();
                instance.setRaw(parameterinstanceraw);

                return(result);
            }
            public RESULT getParameter(string name, out ParameterInstance instance)
            {
                RESULT result = RESULT.OK;
                IntPtr parameterinstanceraw = new IntPtr();

                instance = null;

                try
                {
                    result = FMOD_Studio_EventInstance_GetParameter(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), out parameterinstanceraw);
                }
                catch
                {
                    result = RESULT.ERR_INVALID_PARAM;
                }
                if (result != RESULT.OK)
                {
                    return(result);
                }
                instance = new ParameterInstance();
                instance.setRaw(parameterinstanceraw);

                return(result);
            }