private static extern RESULT FMOD_Studio_EventDescription_GetParameter(IntPtr eventdescription, string name, out PARAMETER_DESCRIPTION parameter);
 public RESULT getParameter(string name, out PARAMETER_DESCRIPTION parameter)
 {
     parameter = new FMOD.Studio.PARAMETER_DESCRIPTION();
     return FMOD_Studio_EventDescription_GetParameter(rawPtr, name, out parameter);
 }
 private static extern RESULT FMOD_Studio_EventDescription_GetParameterByIndex(IntPtr eventdescription, int index, out PARAMETER_DESCRIPTION parameter);
 public RESULT getParameterByIndex(int index, out PARAMETER_DESCRIPTION parameter)
 {
     parameter = new FMOD.Studio.PARAMETER_DESCRIPTION();
     return FMOD_Studio_EventDescription_GetParameterByIndex(rawPtr, index, out parameter);
 }
Exemplo n.º 5
0
            public RESULT getParameter(string name, out PARAMETER_DESCRIPTION parameter)
            {
                parameter = new PARAMETER_DESCRIPTION();

                PARAMETER_DESCRIPTION_INTERNAL paramInternal;
                RESULT result = FMOD_Studio_EventDescription_GetParameter(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), out paramInternal);
                if (result != RESULT.OK)
                {
                return result;
                }
                paramInternal.assign(out parameter);
                return result;
            }
Exemplo n.º 6
0
            public RESULT getParameterByIndex(int index, out PARAMETER_DESCRIPTION parameter)
            {
                parameter = new PARAMETER_DESCRIPTION();

                PARAMETER_DESCRIPTION_INTERNAL paramInternal;
                RESULT result = FMOD_Studio_EventDescription_GetParameterByIndex(rawPtr, index, out paramInternal);
                if (result != RESULT.OK)
                {
                return result;
                }
                paramInternal.assign(out parameter);
                return result;
            }
Exemplo n.º 7
0
            public PARAMETER_TYPE type; /* Type of the parameter */

            // Helper functions
            public void assign(out PARAMETER_DESCRIPTION publicDesc)
            {
                publicDesc.name = MarshallingHelper.stringFromNativeUtf8(name);
                publicDesc.minimum = minimum;
                publicDesc.maximum = maximum;
                publicDesc.type = type;
            }
Exemplo n.º 8
0
            public RESULT getDescription(out PARAMETER_DESCRIPTION description)
            {
                description = new PARAMETER_DESCRIPTION();

                PARAMETER_DESCRIPTION_INTERNAL paramInternal;
                RESULT result = FMOD_Studio_ParameterInstance_GetDescription(rawPtr, out paramInternal);
                if (result != RESULT.OK)
                {
                return result;
                }
                paramInternal.assign(out description);
                return result;
            }