예제 #1
0
파일: System.cs 프로젝트: HaKDMoDz/InVision
		public RESULT createDSP              (ref DSP_DESCRIPTION description, ref DSP dsp)
		{
			RESULT result = RESULT.OK;
			IntPtr dspraw = new IntPtr();
			DSP    dspnew = null;

			try
			{
				result = FMOD_System_CreateDSP(systemraw, ref description, ref dspraw);
			}
			catch
			{
				result = RESULT.ERR_INVALID_PARAM;
			}
			if (result != RESULT.OK)
			{
				return result;
			}

			if (dsp == null)
			{
				dspnew = new DSP();
				dspnew.setRaw(dspraw);
				dsp = dspnew;
			}
			else
			{
				dsp.setRaw(dspraw);
			}
                             
			return result;  
		}
예제 #2
0
파일: System.cs 프로젝트: HaKDMoDz/InVision
		private static extern RESULT FMOD_System_CreateDSP              (IntPtr system, ref DSP_DESCRIPTION description, ref IntPtr dsp);