//public DspParameterDescription(string name, string label, string description, DspParameterDescriptionData dData) // : this(name, label, description, DspParameterType.Data) //{ // _descUnion = dData.ToFmod(); //} public DspParameterDescription(ref DSP_PARAMETER_DESC desc) : this() { Type = (DspParameterType)desc.type; Name = new string(desc.name); Label = new string(desc.label); Description = desc.description; _descUnion = desc.desc; }
public RESULT getParameterInfo(int index, out DSP_PARAMETER_DESC desc) { IntPtr ptr; RESULT rESULT = DSP.FMOD5_DSP_GetParameterInfo(this.rawPtr, index, out ptr); if (rESULT == RESULT.OK) { desc = (DSP_PARAMETER_DESC)Marshal.PtrToStructure(ptr, typeof(DSP_PARAMETER_DESC)); } else { desc = default(DSP_PARAMETER_DESC); } return(rESULT); }
public RESULT getParameterInfo (int index, out DSP_PARAMETER_DESC desc) { IntPtr descPtr; RESULT result = FMOD_DSP_GetParameterInfo(rawPtr, index, out descPtr); if (result == RESULT.OK) { desc = (DSP_PARAMETER_DESC)Marshal.PtrToStructure(descPtr, typeof(DSP_PARAMETER_DESC)); } else { desc = new DSP_PARAMETER_DESC(); } return result; }
private static extern RESULT FMOD5_DSP_GetParameterInfo(IntPtr dsp, int index, out DSP_PARAMETER_DESC desc);
public RESULT getParameterInfo(int index, out DSP_PARAMETER_DESC desc) { return(FMOD5_DSP_GetParameterInfo(handle, index, out desc)); }
public RESULT getParameterInfo(int index, out DSP_PARAMETER_DESC desc) { IntPtr ptr; RESULT rESULT = DSP.FMOD5_DSP_GetParameterInfo(this.rawPtr, index, out ptr); if (rESULT == RESULT.OK) { desc = (DSP_PARAMETER_DESC)Marshal.PtrToStructure(ptr, typeof(DSP_PARAMETER_DESC)); } else { desc = default(DSP_PARAMETER_DESC); } return rESULT; }