114 lines
5.5 KiB
C#
114 lines
5.5 KiB
C#
#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated />
|
|
//
|
|
// This file was automatically generated by SWIG (https://www.swig.org).
|
|
// Version 4.4.1
|
|
//
|
|
// Do not make changes to this file unless you know what you are doing - modify
|
|
// the SWIG interface file instead.
|
|
//------------------------------------------------------------------------------
|
|
|
|
/// Platform specific initialization settings
|
|
/// <seealso cref="AK.SoundEngine.Init"/>
|
|
/// <seealso cref="AK.SoundEngine.GetDefaultPlatformInitSettings"/>
|
|
|
|
public class AkPlatformInitSettings : global::System.IDisposable {
|
|
private global::System.IntPtr swigCPtr;
|
|
protected bool swigCMemOwn;
|
|
|
|
internal AkPlatformInitSettings(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
internal static global::System.IntPtr getCPtr(AkPlatformInitSettings obj) {
|
|
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
|
}
|
|
|
|
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
|
Dispose();
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
~AkPlatformInitSettings() {
|
|
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_AkPlatformInitSettings(swigCPtr);
|
|
}
|
|
swigCPtr = global::System.IntPtr.Zero;
|
|
}
|
|
global::System.GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
|
|
/// Lower engine threading properties
|
|
public AkThreadProperties threadLEngine { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadLEngine_set(swigCPtr, AkThreadProperties.getCPtr(value)); }
|
|
get {
|
|
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadLEngine_get(swigCPtr);
|
|
AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
/// Ouput thread threading properties
|
|
public AkThreadProperties threadOutputMgr { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadOutputMgr_set(swigCPtr, AkThreadProperties.getCPtr(value)); }
|
|
get {
|
|
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadOutputMgr_get(swigCPtr);
|
|
AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
/// Bank manager threading properties (its default priority is AK_THREAD_PRIORITY_NORMAL)
|
|
public AkThreadProperties threadBankManager { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadBankManager_set(swigCPtr, AkThreadProperties.getCPtr(value)); }
|
|
get {
|
|
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadBankManager_get(swigCPtr);
|
|
AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
/// Monitor threading properties (its default priority is AK_THREAD_PRIORITY_ABOVENORMAL). This parameter is not used in Release build.
|
|
public AkThreadProperties threadMonitor { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadMonitor_set(swigCPtr, AkThreadProperties.getCPtr(value)); }
|
|
get {
|
|
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadMonitor_get(swigCPtr);
|
|
AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
/// Sampling Rate. Default 48000 Hz
|
|
public uint uSampleRate { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uSampleRate_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uSampleRate_get(swigCPtr); }
|
|
}
|
|
|
|
/// Number of refill buffers in voice buffer. 2 == double-buffered, defaults to 4.
|
|
public ushort uNumRefillsInVoice { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get(swigCPtr); }
|
|
}
|
|
|
|
/// Main audio API to use. Leave to AkAPI_Default for the default sink (default value).
|
|
/// \ref AkAudioAPI
|
|
public AkAudioAPI eAudioAPI { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_eAudioAPI_set(swigCPtr, (int)value); } get { return (AkAudioAPI)AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_eAudioAPI_get(swigCPtr); }
|
|
}
|
|
|
|
/// Number of Apple Spatial Audio point sources to allocate for 3D audio use (each point source is a system audio object). Default: 128
|
|
public uint uNumSpatialAudioPointSources { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumSpatialAudioPointSources_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumSpatialAudioPointSources_get(swigCPtr); }
|
|
}
|
|
|
|
/// Print detailed system output information to the console log
|
|
public bool bVerboseSystemOutput { set { AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_bVerboseSystemOutput_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkPlatformInitSettings_bVerboseSystemOutput_get(swigCPtr); }
|
|
}
|
|
|
|
}
|
|
#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX |