Files
Ipseity-Demo/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs
T
2026-03-23 14:28:21 +01:00

65 lines
1.9 KiB
C#

#if !(UNITY_QNX) // Disable under unsupported platforms.
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.4.0
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
public class AkCallbackInfo : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkCallbackInfo obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkCallbackInfo() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AkUnitySoundEnginePINVOKE.CSharp_delete_AkCallbackInfo(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
/// User data, passed to PostEvent()
public global::System.IntPtr pCookie { get { return AkUnitySoundEnginePINVOKE.CSharp_AkCallbackInfo_pCookie_get(swigCPtr); }
}
/// Game object ID
public ulong gameObjID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkCallbackInfo_gameObjID_get(swigCPtr); }
}
public AkCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkCallbackInfo(), true) {
}
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.