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

76 lines
2.8 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.
//------------------------------------------------------------------------------
/// Necessary settings for setting externally-loaded sources
public class AkSourceSettings : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkSourceSettings(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkSourceSettings obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkSourceSettings() {
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_AkSourceSettings(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
/// Source ID (available in the SoundBank content files)
public uint sourceID { set { AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_sourceID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_sourceID_get(swigCPtr); }
}
/// Pointer to the data to be set for the source
public global::System.IntPtr pMediaMemory { set { AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_pMediaMemory_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_pMediaMemory_get(swigCPtr); }
}
/// Size, in bytes, of the data to be set for the source
public uint uMediaSize { set { AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_uMediaSize_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_uMediaSize_get(swigCPtr); }
}
public void Clear() { AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_Clear(swigCPtr); }
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_GetSizeOf(); }
public void Clone(AkSourceSettings other) { AkUnitySoundEnginePINVOKE.CSharp_AkSourceSettings_Clone(swigCPtr, AkSourceSettings.getCPtr(other)); }
public AkSourceSettings() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkSourceSettings(), true) {
}
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.