764 lines
21 KiB
C#
764 lines
21 KiB
C#
/*******************************************************************************
|
|
The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
|
|
Technology released in source code form as part of the game integration package.
|
|
The content of this file may not be used without valid licenses to the
|
|
AUDIOKINETIC Wwise Technology.
|
|
Note that the use of the game engine is subject to the Unity(R) Terms of
|
|
Service at https://unity3d.com/legal/terms-of-service
|
|
|
|
License Usage
|
|
|
|
Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
|
|
this file in accordance with the end user license agreement provided with the
|
|
software or, alternatively, in accordance with the terms contained
|
|
in a written agreement between you and Audiokinetic Inc.
|
|
Copyright (c) 2025 Audiokinetic Inc.
|
|
*******************************************************************************/
|
|
#if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR)
|
|
using System.Threading.Tasks;
|
|
|
|
public partial class WwiseProjectDatabase
|
|
{
|
|
static WwiseProjectDatabase()
|
|
{
|
|
PlatformName = "Windows";
|
|
}
|
|
public static void PostInitCallback()
|
|
{
|
|
SoundBankDirectoryUpdated?.Invoke();
|
|
}
|
|
public static event System.Action SoundBankDirectoryUpdated;
|
|
public static async Task<bool> InitAsync(string inDirectoryPath, string inDirectoryPlatformName)
|
|
{
|
|
InitCheckUp(inDirectoryPath);
|
|
if (!ProjectInfoExists)
|
|
return false;
|
|
|
|
try
|
|
{
|
|
await Task.Run(() => WwiseProjectDatabasePINVOKE_Windows.Init(inDirectoryPath, inDirectoryPlatformName));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
return ProjectInfoExists;
|
|
}
|
|
|
|
public static void Init(string inDirectoryPath, string inDirectoryPlatformName, string language = null)
|
|
{
|
|
InitCheckUp(inDirectoryPath);
|
|
if (!ProjectInfoExists)
|
|
return;
|
|
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.Init(inDirectoryPath, inDirectoryPlatformName);
|
|
if (!string.IsNullOrEmpty(language))
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.SetCurrentLanguage(language);
|
|
}
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
|
|
}
|
|
|
|
public static void SetCurrentPlatform(string inDirectoryPlatformName)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.SetCurrentPlatform(inDirectoryPlatformName);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static void SetCurrentLanguage(string inLanguageName)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.SetCurrentLanguage(inLanguageName);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static string StringFromIntPtrString(System.IntPtr ptr)
|
|
{
|
|
try
|
|
{
|
|
return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(ptr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* SoundBanks
|
|
*/
|
|
|
|
public static global::System.IntPtr GetSoundBankRefString(string soundBankName, string soundBankType)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankRefString(soundBankName, soundBankType);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static global::System.IntPtr GetAllSoundBanksRef()
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetAllSoundBanksRef();
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static uint GetSoundBankCount()
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankCount();
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static global::System.IntPtr GetSoundBankRefIndex(global::System.IntPtr soundBankArrayRef, int index)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankRefIndex(soundBankArrayRef, index);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static void DeleteSoundBanksArrayRef(global::System.IntPtr soundBankArrayRef)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeleteSoundBanksArrayRef(soundBankArrayRef);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static string GetSoundBankName(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetSoundBankName(soundBankRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetSoundBankPath(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetSoundBankPath(soundBankRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetSoundBankLanguage(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetSoundBankLanguage(soundBankRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetSoundBankLanguageId(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankLanguageId(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static System.IntPtr GetSoundBankGuid(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankGuid(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetSoundBankShortId(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankShortId(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static bool IsUserBank(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.IsUserBank(soundBankRefPtr);
|
|
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static bool IsInitBank(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.IsInitBank(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static bool IsSoundBankValid(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.IsSoundBankValid(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static global::System.IntPtr GetSoundBankMedia(global::System.IntPtr soundBankRefPtr, int index)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankMedia(soundBankRefPtr, index);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static uint GetSoundBankMediasCount(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankMediasCount(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static global::System.IntPtr GetSoundBankEvent(global::System.IntPtr soundBankRefPtr, int index)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankEvent(soundBankRefPtr, index);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static uint GetSoundBankEventsCount(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetSoundBankEventsCount(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static void DeleteSoundBankRef(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeleteSoundBankRef(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Medias
|
|
*/
|
|
|
|
public static string GetMediaName(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetMediaName(mediaRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetMediaPath(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetMediaPath(mediaRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetMediaShortId(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetMediaShortId(mediaRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetMediaLanguage(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetMediaLanguage(mediaRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static bool GetMediaIsStreaming(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetMediaIsStreaming(mediaRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetMediaLocation(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetMediaLocation(mediaRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetMediaCachePath(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetMediaCachePath(mediaRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static void DeleteMediaRef(global::System.IntPtr mediaRefPtr)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeleteMediaRef(mediaRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Events
|
|
*/
|
|
|
|
public static global::System.IntPtr GetEventRefString(string soundBankName)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventRefString(soundBankName);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetEventName(global::System.IntPtr eventRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetEventName(eventRefPtr));
|
|
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetEventPath(global::System.IntPtr eventRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetEventPath(eventRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static System.IntPtr GetEventGuid(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventGuid(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetEventShortId(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventShortId(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static float GetEventMaxAttenuation(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventMaxAttenuation(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static float GetEventMinDuration(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventMinDuration(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static float GetEventMaxDuration(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventMaxDuration(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static global::System.IntPtr GetEventMedia(global::System.IntPtr soundBankRefPtr, int index)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventMedia(soundBankRefPtr, index);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetEventMediasCount(global::System.IntPtr soundBankRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetEventMediasCount(soundBankRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static void DeleteEventRef(global::System.IntPtr eventRefPtr)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeleteEventRef(eventRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Platform
|
|
*/
|
|
|
|
public static global::System.IntPtr GetPlatformRef(string soundBankName)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetPlatformRef(soundBankName);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetPlatformName(global::System.IntPtr platformRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetPlatformName(platformRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static global::System.IntPtr GetPlatformGuid(global::System.IntPtr platformRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetPlatformGuid(platformRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static void DeletePlatformRef(global::System.IntPtr platformRefPtr)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeletePlatformRef(platformRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Plugin
|
|
*/
|
|
|
|
public static global::System.IntPtr GetAllPluginRef()
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetAllPluginRef();
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static uint GetPluginCount()
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetPluginCount();
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static global::System.IntPtr GetPluginRefIndex(global::System.IntPtr soundBankArrayRef, int index)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetPluginRefIndex(soundBankArrayRef, index);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static uint GetPluginId(global::System.IntPtr pluginRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabasePINVOKE_Windows.GetPluginId(pluginRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static string GetPluginName(global::System.IntPtr pluginRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetPluginName(pluginRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static string GetPluginDLL(global::System.IntPtr pluginRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetPluginDLL(pluginRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static string GetPluginStaticLib(global::System.IntPtr pluginRefPtr)
|
|
{
|
|
try
|
|
{
|
|
return WwiseProjectDatabase.StringFromIntPtrString(WwiseProjectDatabasePINVOKE_Windows.GetPluginStaticLib(pluginRefPtr));
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
public static void DeletePluginRef(global::System.IntPtr pluginRefPtr)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeletePluginRef(pluginRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
|
|
public static void DeletePluginArrayRef(global::System.IntPtr pluginArrayRefPtr)
|
|
{
|
|
try
|
|
{
|
|
WwiseProjectDatabasePINVOKE_Windows.DeletePluginArrayRef(pluginArrayRefPtr);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
LogProjectDatabaseDLLException(e);
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
#endif |