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

94 lines
4.3 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.
//------------------------------------------------------------------------------
/// Structure used to query info on active playing segments.
public class AkSegmentInfo : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkSegmentInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkSegmentInfo obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkSegmentInfo() {
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_AkSegmentInfo(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
/// Current position of the segment, relative to the Entry Cue, in milliseconds. Range is [-iPreEntryDuration, iActiveDuration+iPostExitDuration].
public int iCurrentPosition { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iCurrentPosition_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iCurrentPosition_get(swigCPtr); }
}
/// Duration of the pre-entry region of the segment, in milliseconds.
public int iPreEntryDuration { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iPreEntryDuration_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iPreEntryDuration_get(swigCPtr); }
}
/// Duration of the active region of the segment (between the Entry and Exit Cues), in milliseconds.
public int iActiveDuration { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iActiveDuration_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iActiveDuration_get(swigCPtr); }
}
/// Duration of the post-exit region of the segment, in milliseconds.
public int iPostExitDuration { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iPostExitDuration_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iPostExitDuration_get(swigCPtr); }
}
/// Number of milliseconds remaining in the "looking-ahead" state of the segment, when it is silent but streamed tracks are being prefetched.
public int iRemainingLookAheadTime { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iRemainingLookAheadTime_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_iRemainingLookAheadTime_get(swigCPtr); }
}
/// Beat Duration in seconds.
public float fBeatDuration { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fBeatDuration_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fBeatDuration_get(swigCPtr); }
}
/// Bar Duration in seconds.
public float fBarDuration { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fBarDuration_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fBarDuration_get(swigCPtr); }
}
/// Grid duration in seconds.
public float fGridDuration { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridDuration_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridDuration_get(swigCPtr); }
}
/// Grid offset in seconds.
public float fGridOffset { set { AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridOffset_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridOffset_get(swigCPtr); }
}
public AkSegmentInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkSegmentInfo(), true) {
}
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.