示例#1
0
        public IntPtr             UserData;              /* [in] Optional. Specify 0 to ignore. This is user data to be attached to the DSP unit during creation.  Access via DSP::getUserData. */
        #endregion

        #region Public Methods
        public override bool Equals(object obj)
        {
            if (obj is DspDescription)
            {
                DspDescription otherDescription = (DspDescription)obj;
                return(this.Name == otherDescription.Name && this.NumberOfParameters == otherDescription.NumberOfParameters);
            }
            else
            {
                return(false);
            }
        }
示例#2
0
		public Dsp CreateDsp(ref DspDescription description)
		{
			currentResult = Result.Ok;
			IntPtr dspHandle = new IntPtr();
			Dsp dsp = null;

			try
			{
				currentResult = NativeMethods.FMOD_System_CreateDSP(handle, ref description, ref dspHandle);
			}
			catch (System.Runtime.InteropServices.ExternalException)
			{
				currentResult = Result.InvalidParameterError;
			}
			
			if (currentResult == Result.Ok)
			{
				dsp = new Dsp();
				dsp.Handle = dspHandle;				
			}

			return dsp;
		}
		internal static extern Result FMOD_System_CreateDSP(IntPtr systemHandle, ref DspDescription dspDescription, ref IntPtr dspHandle);
示例#4
0
 internal static extern Result FMOD_System_CreateDSP(IntPtr systemHandle, ref DspDescription dspDescription, ref IntPtr dspHandle);