private static extern RESULT FMOD_ChannelGroup_AddDSP (IntPtr channelgroup, CHANNELCONTROL_DSP_INDEX index, IntPtr dsp, ref IntPtr connection);
public RESULT addDSP (DSP dsp, CHANNELCONTROL_DSP_INDEX index, ref DSPConnection connection) { RESULT result = RESULT.OK; IntPtr dspconnectionraw = new IntPtr(); DSPConnection dspconnectionnew = null; try { result = FMOD_ChannelGroup_AddDSP(channelgroupraw, index, dsp.getRaw(), ref dspconnectionraw); } catch { result = RESULT.ERR_INVALID_PARAM; } if (result != RESULT.OK) { return result; } if (connection == null) { dspconnectionnew = new DSPConnection(); dspconnectionnew.setRaw(dspconnectionraw); connection = dspconnectionnew; } else { connection.setRaw(dspconnectionraw); } return result; }