FMOD.DSP.FMOD_DSP_AddInput C# (CSharp) Method

FMOD_DSP_AddInput() private method

private FMOD_DSP_AddInput ( IntPtr dsp, IntPtr target, IntPtr &connection, DSPCONNECTION_TYPE type ) : RESULT
dsp System.IntPtr
target System.IntPtr
connection System.IntPtr
type DSPCONNECTION_TYPE
return RESULT
        private static extern RESULT FMOD_DSP_AddInput                  (IntPtr dsp, IntPtr target, out IntPtr connection, DSPCONNECTION_TYPE type);
        [DllImport(VERSION.dll)]

Usage Example

Example #1
0
        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);
        }