public RESULT getInput(int index, ref DSP input, ref DSPConnection inputconnection)
{
RESULT rESULT = RESULT.OK;
IntPtr raw = IntPtr.Zero;
IntPtr raw2 = IntPtr.Zero;
try
{
rESULT = DSP.FMOD_DSP_GetInput(dspraw, index, ref raw, ref raw2);
}
catch
{
rESULT = RESULT.ERR_INVALID_PARAM;
}
RESULT result;
if (rESULT != RESULT.OK)
{
result = rESULT;
}
else
{
if (input == null)
{
DSP dSP = new DSP();
dSP.setRaw(raw);
input = dSP;
}
else
{
input.setRaw(raw);
}
if (inputconnection == null)
{
DSPConnection dSPConnection = new DSPConnection();
dSPConnection.setRaw(raw2);
inputconnection = dSPConnection;
}
else
{
inputconnection.setRaw(raw2);
}
result = rESULT;
}
return(result);
}