Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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;
		}
Ejemplo n.º 3
0
		internal static extern Result FMOD_System_CreateDSP(IntPtr systemHandle, ref DspDescription dspDescription, ref IntPtr dspHandle);
Ejemplo n.º 4
0
 internal static extern Result FMOD_System_CreateDSP(IntPtr systemHandle, ref DspDescription dspDescription, ref IntPtr dspHandle);