FMOD_Studio_System_GetBankCount() private method

private FMOD_Studio_System_GetBankCount ( IntPtr studiosystem, int &count ) : RESULT
studiosystem System.IntPtr
count int
return RESULT
Beispiel #1
0
        public RESULT getBankList(out Bank[] array)
        {
            array = null;
            int    num;
            RESULT rESULT = System.FMOD_Studio_System_GetBankCount(this.rawPtr, out num);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            if (num == 0)
            {
                array = new Bank[0];
                return(rESULT);
            }
            IntPtr[] array2 = new IntPtr[num];
            int      num2;

            rESULT = System.FMOD_Studio_System_GetBankList(this.rawPtr, array2, num, out num2);
            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            if (num2 > num)
            {
                num2 = num;
            }
            array = new Bank[num2];
            for (int i = 0; i < num2; i++)
            {
                array[i] = new Bank(array2[i]);
            }
            return(RESULT.OK);
        }
Beispiel #2
0
 public RESULT getBankCount(out int count)
 {
     return(System.FMOD_Studio_System_GetBankCount(this.rawPtr, out count));
 }