public RESULT getBusList(out Bus[] array) { array = null; int num; RESULT rESULT = Bank.FMOD_Studio_Bank_GetBusCount(this.rawPtr, out num); if (rESULT != RESULT.OK) { return(rESULT); } if (num == 0) { array = new Bus[0]; return(rESULT); } IntPtr[] array2 = new IntPtr[num]; int num2; rESULT = Bank.FMOD_Studio_Bank_GetBusList(this.rawPtr, array2, num, out num2); if (rESULT != RESULT.OK) { return(rESULT); } if (num2 > num) { num2 = num; } array = new Bus[num2]; for (int i = 0; i < num2; i++) { array[i] = new Bus(array2[i]); } return(RESULT.OK); }
public RESULT getBusCount(out int count) { return(Bank.FMOD_Studio_Bank_GetBusCount(this.rawPtr, out count)); }