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

67 lines
2.6 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 AkDurationCallbackInfo : AkEventCallbackInfo {
private global::System.IntPtr swigCPtr;
internal AkDurationCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkDurationCallbackInfo obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal override void setCPtr(global::System.IntPtr cPtr) {
base.setCPtr(AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_SWIGUpcast(cPtr));
swigCPtr = cPtr;
}
protected override void Dispose(bool disposing) {
lock(this) {
if (swigCPtr != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AkUnitySoundEnginePINVOKE.CSharp_delete_AkDurationCallbackInfo(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
base.Dispose(disposing);
}
}
/// Duration of the sound (unit: milliseconds)
public float fDuration { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_fDuration_get(swigCPtr); }
}
/// Estimated duration of the sound depending on source settings such as pitch. (unit: milliseconds)
public float fEstimatedDuration { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_fEstimatedDuration_get(swigCPtr); }
}
/// Audio Node ID of playing item
public uint audioNodeID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_audioNodeID_get(swigCPtr); }
}
/// Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file)
public uint mediaID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_mediaID_get(swigCPtr); }
}
/// True if source is streaming, false otherwise.
public bool bStreaming { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_bStreaming_get(swigCPtr); }
}
public AkDurationCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkDurationCallbackInfo(), true) {
}
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.