FMOD_DSP_GetInput() private méthode

private FMOD_DSP_GetInput ( IntPtr dsp, int index, IntPtr &input, IntPtr &inputconnection ) : RESULT
dsp System.IntPtr
index int
input System.IntPtr
inputconnection System.IntPtr
Résultat RESULT
Exemple #1
0
        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);
        }