Files
2026-03-23 14:28:21 +01:00

73 lines
2.4 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 AkMIDIPost : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkMIDIPost(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkMIDIPost obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkMIDIPost() {
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_AkMIDIPost(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
public AkMIDIEvent midiEvent { set { AkUnitySoundEnginePINVOKE.CSharp_AkMIDIPost_midiEvent_set(swigCPtr, AkMIDIEvent.getCPtr(value)); }
get {
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkMIDIPost_midiEvent_get(swigCPtr);
AkMIDIEvent ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent(cPtr, false);
return ret;
}
}
/// Frame offset (in samples) for MIDI event post
public ulong uOffset { set { AkUnitySoundEnginePINVOKE.CSharp_AkMIDIPost_uOffset_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkMIDIPost_uOffset_get(swigCPtr); }
}
public void Clone(AkMIDIPost other) { AkUnitySoundEnginePINVOKE.CSharp_AkMIDIPost_Clone(swigCPtr, AkMIDIPost.getCPtr(other)); }
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkMIDIPost_GetSizeOf(); }
public AkMIDIPost() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkMIDIPost(), true) {
}
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.