mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
83 lines
1.4 KiB
C#
83 lines
1.4 KiB
C#
using System;
|
|
|
|
public class AkSourceSettings : IDisposable
|
|
{
|
|
private IntPtr swigCPtr;
|
|
|
|
protected bool swigCMemOwn;
|
|
|
|
public uint sourceID
|
|
{
|
|
get
|
|
{
|
|
return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_sourceID_get(swigCPtr);
|
|
}
|
|
set
|
|
{
|
|
AkSoundEnginePINVOKE.CSharp_AkSourceSettings_sourceID_set(swigCPtr, value);
|
|
}
|
|
}
|
|
|
|
public IntPtr pMediaMemory
|
|
{
|
|
get
|
|
{
|
|
return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_pMediaMemory_get(swigCPtr);
|
|
}
|
|
set
|
|
{
|
|
AkSoundEnginePINVOKE.CSharp_AkSourceSettings_pMediaMemory_set(swigCPtr, value);
|
|
}
|
|
}
|
|
|
|
public uint uMediaSize
|
|
{
|
|
get
|
|
{
|
|
return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_uMediaSize_get(swigCPtr);
|
|
}
|
|
set
|
|
{
|
|
AkSoundEnginePINVOKE.CSharp_AkSourceSettings_uMediaSize_set(swigCPtr, value);
|
|
}
|
|
}
|
|
|
|
internal AkSourceSettings(IntPtr cPtr, bool cMemoryOwn)
|
|
{
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
public AkSourceSettings()
|
|
: this(AkSoundEnginePINVOKE.CSharp_new_AkSourceSettings(), true)
|
|
{
|
|
}
|
|
|
|
internal static IntPtr getCPtr(AkSourceSettings obj)
|
|
{
|
|
return (obj != null) ? obj.swigCPtr : IntPtr.Zero;
|
|
}
|
|
|
|
~AkSourceSettings()
|
|
{
|
|
Dispose();
|
|
}
|
|
|
|
public virtual void Dispose()
|
|
{
|
|
lock (this)
|
|
{
|
|
if (swigCPtr != IntPtr.Zero)
|
|
{
|
|
if (swigCMemOwn)
|
|
{
|
|
swigCMemOwn = false;
|
|
AkSoundEnginePINVOKE.CSharp_delete_AkSourceSettings(swigCPtr);
|
|
}
|
|
swigCPtr = IntPtr.Zero;
|
|
}
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
}
|