//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;
        }
예제 #2
0
        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);
        }
예제 #3
0
 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;
 }
예제 #4
0
 private static extern RESULT FMOD5_DSP_GetParameterInfo(IntPtr dsp, int index, out DSP_PARAMETER_DESC desc);
예제 #5
0
 public RESULT getParameterInfo(int index, out DSP_PARAMETER_DESC desc)
 {
     return(FMOD5_DSP_GetParameterInfo(handle, index, out desc));
 }
예제 #6
0
파일: DSP.cs 프로젝트: GameDiffs/TheForest
 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;
 }