public RESULT addInput(DSP target, ref DSPConnection dspconnection)
{
RESULT rESULT = RESULT.OK;
IntPtr raw = IntPtr.Zero;
try
{
rESULT = DSP.FMOD_DSP_AddInput(dspraw, target.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);
}