private static extern RESULT FMOD_System_CreateDSP(IntPtr system, ref DSP_DESCRIPTION description, ref IntPtr dsp);
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; }