public void assign(out PARAMETER_DESCRIPTION publicDesc)
 {
     publicDesc.name    = MarshallingHelper.stringFromNativeUtf8(this.name);
     publicDesc.minimum = this.minimum;
     publicDesc.maximum = this.maximum;
     publicDesc.type    = this.type;
 }
 public void assign(out PARAMETER_DESCRIPTION publicDesc)
 {
     publicDesc.name = MarshallingHelper.stringFromNativeUtf8(this.name);
     publicDesc.minimum = this.minimum;
     publicDesc.maximum = this.maximum;
     publicDesc.type = this.type;
 }
Ejemplo n.º 3
0
 public RESULT getParameter(string name, out PARAMETER_DESCRIPTION parameter)
 {
     using (StringHelper.ThreadSafeEncoding threadSafeEncoding = StringHelper.GetFreeHelper())
     {
         return(FMOD_Studio_EventDescription_GetParameter(handle, threadSafeEncoding.byteFromStringUTF8(name), out parameter));
     }
 }
Ejemplo n.º 4
0
 public ParameterDescription(PARAMETER_DESCRIPTION description)
     : this()
 {
     Name = description.name;
     Minimum = description.minimum;
     Maximum = description.maximum;
     Type = (ParameterType)description.type;
 }
Ejemplo n.º 5
0
        public RESULT getDescription(out PARAMETER_DESCRIPTION description)
        {
            description = default(PARAMETER_DESCRIPTION);
            PARAMETER_DESCRIPTION_INTERNAL pARAMETER_DESCRIPTION_INTERNAL;
            RESULT rESULT = ParameterInstance.FMOD_Studio_ParameterInstance_GetDescription(this.rawPtr, out pARAMETER_DESCRIPTION_INTERNAL);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            pARAMETER_DESCRIPTION_INTERNAL.assign(out description);
            return(rESULT);
        }
Ejemplo n.º 6
0
        public RESULT getParameter(string name, out PARAMETER_DESCRIPTION parameter)
        {
            parameter = default(PARAMETER_DESCRIPTION);
            PARAMETER_DESCRIPTION_INTERNAL pARAMETER_DESCRIPTION_INTERNAL;
            RESULT rESULT = EventDescription.FMOD_Studio_EventDescription_GetParameter(this.rawPtr, Encoding.UTF8.GetBytes(name + '\0'), out pARAMETER_DESCRIPTION_INTERNAL);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            pARAMETER_DESCRIPTION_INTERNAL.assign(out parameter);
            return(rESULT);
        }
Ejemplo n.º 7
0
        public RESULT getParameterByIndex(int index, out PARAMETER_DESCRIPTION parameter)
        {
            parameter = default(PARAMETER_DESCRIPTION);
            PARAMETER_DESCRIPTION_INTERNAL pARAMETER_DESCRIPTION_INTERNAL;
            RESULT rESULT = EventDescription.FMOD_Studio_EventDescription_GetParameterByIndex(this.rawPtr, index, out pARAMETER_DESCRIPTION_INTERNAL);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            pARAMETER_DESCRIPTION_INTERNAL.assign(out parameter);
            return(rESULT);
        }
Ejemplo n.º 8
0
        public PARAMETER_TYPE type;                        /* Type of the parameter */

        // Helper functions
        public void assign(out PARAMETER_DESCRIPTION publicDesc)
        {
            publicDesc.name = MarshallingHelper.stringFromNativeUtf8(name);
            publicDesc.index = index;
            publicDesc.minimum = minimum;
            publicDesc.maximum = maximum;
            publicDesc.defaultValue = defaultValue;
            publicDesc.type = type;
        }
Ejemplo n.º 9
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;
        }
Ejemplo n.º 10
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;
        }
Ejemplo n.º 11
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;
        }
 private static extern RESULT FMOD_Studio_ParameterInstance_GetDescription(IntPtr parameter, out PARAMETER_DESCRIPTION description);
 private static extern RESULT FMOD_Studio_EventDescription_GetParameter(IntPtr eventdescription, string name, out PARAMETER_DESCRIPTION parameter);
 private static extern RESULT FMOD_Studio_EventDescription_GetParameterByIndex(IntPtr eventdescription, int index, 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));
 }
 public RESULT getParameterByIndex(int index, out PARAMETER_DESCRIPTION parameter)
 {
     parameter = new FMOD.Studio.PARAMETER_DESCRIPTION();
     return(FMOD_Studio_EventDescription_GetParameterByIndex(rawPtr, index, out parameter));
 }
Ejemplo n.º 17
0
 public RESULT getParameterByIndex(int index, out PARAMETER_DESCRIPTION parameter)
 {
     return(FMOD_Studio_EventDescription_GetParameterByIndex(handle, index, out parameter));
 }
Ejemplo n.º 18
0
 // Helper functions
 public void assign(out PARAMETER_DESCRIPTION publicDesc)
 {
     publicDesc.name = stringFromNativeUtf8(name);
     publicDesc.minimum = minimum;
     publicDesc.maximum = maximum;
     publicDesc.type = type;
 }
 public RESULT getDescription(out PARAMETER_DESCRIPTION description)
 {
     return(FMOD_Studio_ParameterInstance_GetDescription(handle, out description));
 }