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

91 lines
3.5 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.
//------------------------------------------------------------------------------
/// Auxiliary bus sends information per game object per given auxiliary bus.
public class AkAuxSendValue : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkAuxSendValue(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkAuxSendValue obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkAuxSendValue() {
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_AkAuxSendValue(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
/// Game object ID of the listener associated with this send. Use AK_INVALID_GAME_OBJECT as a wildcard to set the auxiliary send to all connected listeners (see AK::SoundEngine::SetListeners).
public ulong listenerID { set { AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_listenerID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_listenerID_get(swigCPtr); }
}
/// Auxiliary bus ID.
public uint auxBusID { set { AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_auxBusID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_auxBusID_get(swigCPtr); }
}
/// A value in the range [0.0f:16.0f] ( -∞ dB to +24 dB).
/// Represents the attenuation or amplification factor applied to the volume of the sound going through the auxiliary bus.
/// A value greater than 1.0f will amplify the sound.
public float fControlValue { set { AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_fControlValue_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_fControlValue_get(swigCPtr); }
}
public void Set(ulong listener, uint id, float value) { AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_Set(swigCPtr, listener, id, value); }
public bool IsSame(ulong listener, uint id) { return AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_IsSame(swigCPtr, listener, id); }
public void Set(UnityEngine.GameObject listener, uint id, float value)
{
var listener_id = AkUnitySoundEngine.GetAkGameObjectID(listener);
AkUnitySoundEngine.PreGameObjectAPICall(listener, listener_id);
Set(listener_id, id, value);
}
public bool IsSame(UnityEngine.GameObject listener, uint id)
{
var listener_id = AkUnitySoundEngine.GetAkGameObjectID(listener);
AkUnitySoundEngine.PreGameObjectAPICall(listener, listener_id);
return IsSame(listener_id, id);
}
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkAuxSendValue_GetSizeOf(); }
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.