public static AKRESULT PrepareGameSyncs(PreparationType in_PreparationType, AkGroupType in_eGameSyncType, uint in_GroupID, uint[] in_paGameSyncID, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_3((int)in_PreparationType, (int)in_eGameSyncType, in_GroupID, in_paGameSyncID, in_uNumGameSyncs, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode()); return ret; } }
public static AKRESULT PrepareEvent(PreparationType in_PreparationType, uint[] in_pEventID, uint in_uNumEvent, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_3((int)in_PreparationType, in_pEventID, in_uNumEvent, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode()); return ret; } }
public static AKRESULT PrepareGameSyncs(PreparationType in_PreparationType, AkGroupType in_eGameSyncType, string in_pszGroupName, string [] in_ppszGameSyncName, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { //Find the required size int size = 0; foreach(string s in in_ppszGameSyncName) size += s.Length + 1; int sizeofChar = 2; //Unicode IntPtr pMem = Marshal.AllocHGlobal(size * sizeofChar); //Write the length of array Marshal.WriteInt16(pMem, (short)in_ppszGameSyncName.Length); IntPtr pCurrent = (IntPtr)(pMem.ToInt64() + sizeofChar); //Copy the strings one after the other. foreach(string s in in_ppszGameSyncName) { Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); pCurrent = (IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); Marshal.WriteInt16(pCurrent, 0); //Null-terminated string pCurrent = (IntPtr)(pCurrent.ToInt64() + sizeofChar); } in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); try { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_2((int)in_PreparationType, (int)in_eGameSyncType, in_pszGroupName, pMem, in_uNumGameSyncs, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode()); return ret; } finally { Marshal.FreeHGlobal(pMem); } }
public static AKRESULT PrepareBank(PreparationType in_PreparationType, string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_7((int)in_PreparationType, in_pszString, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode()); return ret; } }
public static AKRESULT PrepareBank(PreparationType in_PreparationType, uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, AkBankContent in_uFlags) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_10((int)in_PreparationType, in_bankID, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode(), (int)in_uFlags); return ret; } }
public static AKRESULT UnloadBank(uint in_bankID, IntPtr in_pInMemoryBankPtr, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_8(in_bankID, in_pInMemoryBankPtr, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode()); return ret; } }
public static AKRESULT LoadBank(IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_5(in_pInMemoryBankPtr, in_uInMemoryBankSize, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode(), out out_bankID); return ret; } }
public static AKRESULT LoadBank(uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, int in_memPoolId) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_4(in_bankID, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode(), in_memPoolId); return ret; } }
public static AKRESULT UnloadBank(string in_pszString, IntPtr in_pInMemoryBankPtr, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_6(in_pszString, in_pInMemoryBankPtr, (IntPtr)0, in_pCookie != null ? (IntPtr)in_pCookie.GetHashCode() : (IntPtr)0); return ret; } }
public static AKRESULT LoadBank(string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, int in_memPoolId, out uint out_bankID) { in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_4(in_pszString, (IntPtr)0, in_pCookie != null ? (IntPtr)in_pCookie.GetHashCode() : (IntPtr)0, in_memPoolId, out out_bankID); return ret; } }