101 lines
5.1 KiB
C#
101 lines
5.1 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.
|
|
//------------------------------------------------------------------------------
|
|
|
|
/// Platform-independent initialization settings of output devices.
|
|
|
|
public class AkOutputSettings : global::System.IDisposable {
|
|
private global::System.IntPtr swigCPtr;
|
|
protected bool swigCMemOwn;
|
|
|
|
internal AkOutputSettings(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
internal static global::System.IntPtr getCPtr(AkOutputSettings obj) {
|
|
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
|
}
|
|
|
|
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
|
Dispose();
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
~AkOutputSettings() {
|
|
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_AkOutputSettings(swigCPtr);
|
|
}
|
|
swigCPtr = global::System.IntPtr.Zero;
|
|
}
|
|
global::System.GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
|
|
public AkOutputSettings() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_0(), true) {
|
|
}
|
|
|
|
public AkOutputSettings(string in_szDeviceShareSet, uint in_idDevice, AkChannelConfig in_channelConfig, AkPanningRule in_ePanning) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_1(in_szDeviceShareSet, in_idDevice, AkChannelConfig.getCPtr(in_channelConfig), (int)in_ePanning), true) {
|
|
}
|
|
|
|
public AkOutputSettings(string in_szDeviceShareSet, uint in_idDevice, AkChannelConfig in_channelConfig) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_2(in_szDeviceShareSet, in_idDevice, AkChannelConfig.getCPtr(in_channelConfig)), true) {
|
|
}
|
|
|
|
public AkOutputSettings(string in_szDeviceShareSet, uint in_idDevice) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_3(in_szDeviceShareSet, in_idDevice), true) {
|
|
}
|
|
|
|
public AkOutputSettings(string in_szDeviceShareSet) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_4(in_szDeviceShareSet), true) {
|
|
}
|
|
|
|
/// Unique ID of a custom audio device to be used. Custom audio devices are defined in the Audio Device Shareset section of the Wwise project.
|
|
/// If you want to output normally through the output device defined on the Master Bus in your project, leave this field to its default value (AK_INVALID_UNIQUE_ID, or value 0).
|
|
/// Typical usage: AkInitSettings.eOutputSettings.audioDeviceShareset = AK::SoundEngine::GetIDFromString("InsertYourAudioDeviceSharesetNameHere");
|
|
/// <seealso cref="\ref AK.SoundEngine.GetIDFromString"/>
|
|
/// <seealso cref="\ref soundengine_plugins_audiodevices"/>
|
|
/// <seealso cref="\ref integrating_secondary_outputs"/>
|
|
/// <seealso cref="\ref default_audio_devices"/>
|
|
public uint audioDeviceShareset { set { AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_audioDeviceShareset_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_audioDeviceShareset_get(swigCPtr); }
|
|
}
|
|
|
|
/// Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
|
|
/// <seealso cref="\ref obtaining_device_id"/>
|
|
public uint idDevice { set { AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_idDevice_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_idDevice_get(swigCPtr); }
|
|
}
|
|
|
|
/// Rule for 3D panning of signals routed to a stereo bus. In AkPanningRule_Speakers mode, the angle of the front loudspeakers
|
|
/// (uSpeakerAngles[0]) is used. In AkPanningRule_Headphones mode, the speaker angles are superseded by constant power panning
|
|
/// between two virtual microphones spaced 180 degrees apart.
|
|
public AkPanningRule ePanningRule { set { AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_ePanningRule_set(swigCPtr, (int)value); } get { return (AkPanningRule)AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_ePanningRule_get(swigCPtr); }
|
|
}
|
|
|
|
/// Channel configuration for this output. Call AkChannelConfig::Clear() to let the engine use the default output configuration.
|
|
/// Hardware might not support the selected configuration.
|
|
public AkChannelConfig channelConfig { set { AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_channelConfig_set(swigCPtr, AkChannelConfig.getCPtr(value)); }
|
|
get {
|
|
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkOutputSettings_channelConfig_get(swigCPtr);
|
|
AkChannelConfig ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkChannelConfig(cPtr, false);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
}
|
|
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms. |