FMOD_Studio_System_LoadBankCustom() private method

private FMOD_Studio_System_LoadBankCustom ( IntPtr studiosystem, BANK_INFO &info, LOAD_BANK_FLAGS flags, IntPtr &bank ) : RESULT
studiosystem System.IntPtr
info BANK_INFO
flags LOAD_BANK_FLAGS
bank System.IntPtr
return RESULT
Beispiel #1
0
        public RESULT loadBankCustom(BANK_INFO info, LOAD_BANK_FLAGS flags, out Bank bank)
        {
            bank      = null;
            info.size = Marshal.SizeOf(info);
            IntPtr raw    = 0;
            RESULT rESULT = System.FMOD_Studio_System_LoadBankCustom(this.rawPtr, ref info, flags, out raw);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            bank = new Bank(raw);
            return(rESULT);
        }