FMOD_Studio_Bank_GetVCACount() private method

private FMOD_Studio_Bank_GetVCACount ( IntPtr bank, int &count ) : RESULT
bank System.IntPtr
count int
return RESULT
Exemplo n.º 1
0
        public RESULT getVCAList(out VCA[] array)
        {
            array = null;
            int    num;
            RESULT rESULT = Bank.FMOD_Studio_Bank_GetVCACount(this.rawPtr, out num);

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

            rESULT = Bank.FMOD_Studio_Bank_GetVCAList(this.rawPtr, array2, num, out num2);
            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            if (num2 > num)
            {
                num2 = num;
            }
            array = new VCA[num2];
            for (int i = 0; i < num2; i++)
            {
                array[i] = new VCA(array2[i]);
            }
            return(RESULT.OK);
        }
Exemplo n.º 2
0
 public RESULT getVCACount(out int count)
 {
     return(Bank.FMOD_Studio_Bank_GetVCACount(this.rawPtr, out count));
 }