public RESULT addDSP(DSP dsp, ref DSPConnection dspconnection) { RESULT rESULT = RESULT.OK; IntPtr raw = IntPtr.Zero; try { rESULT = Channel.FMOD_Channel_AddDSP(channelraw, dsp.getRaw(), ref raw); } catch { rESULT = RESULT.ERR_INVALID_PARAM; } RESULT result; if (rESULT != RESULT.OK) { result = rESULT; } else { if (dspconnection == null) { DSPConnection dSPConnection = new DSPConnection(); dSPConnection.setRaw(raw); dspconnection = dSPConnection; } else { dspconnection.setRaw(raw); } result = rESULT; } return(result); }