public RESULT getDSPHead(ref DSP dsp) { RESULT rESULT = RESULT.OK; IntPtr raw = IntPtr.Zero; try { rESULT = ChannelGroup.FMOD_ChannelGroup_GetDSPHead(channelgroupraw, ref raw); } catch { rESULT = RESULT.ERR_INVALID_PARAM; } RESULT result; if (rESULT != RESULT.OK) { result = rESULT; } else { if (dsp == null) { DSP dSP = new DSP(); dSP.setRaw(raw); dsp = dSP; } else { dsp.setRaw(raw); } result = rESULT; } return(result); }