Feat : Wwise Integration
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "AK.Wwise.Unity.API",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"AK.Wwise.Unity.ProjectDatabase",
|
||||
"AK.Wwise.Unity.Utilities",
|
||||
"AK.Wwise.Unity.Logging"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [
|
||||
"Lumin",
|
||||
"Stadia"
|
||||
],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [
|
||||
"!UNITY_SERVER"
|
||||
],
|
||||
"versionDefines": [
|
||||
{
|
||||
"name": "com.unity.addressables",
|
||||
"expression": "1.8",
|
||||
"define": "UNITY_ADDRESSABLES"
|
||||
},
|
||||
{
|
||||
"name": "com.audiokinetic.wwise.addressables",
|
||||
"expression": "1.0.0",
|
||||
"define": "AK_WWISE_ADDRESSABLES"
|
||||
}
|
||||
],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c5c66b6bc5eac04882a23d175f256f5
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,86 @@
|
||||
#if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
/*******************************************************************************
|
||||
The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
|
||||
Technology released in source code form as part of the game integration package.
|
||||
The content of this file may not be used without valid licenses to the
|
||||
AUDIOKINETIC Wwise Technology.
|
||||
Note that the use of the game engine is subject to the Unity(R) Terms of
|
||||
Service at https://unity3d.com/legal/terms-of-service
|
||||
|
||||
License Usage
|
||||
|
||||
Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
|
||||
this file in accordance with the end user license agreement provided with the
|
||||
software or, alternatively, in accordance with the terms contained
|
||||
in a written agreement between you and Audiokinetic Inc.
|
||||
Copyright (c) 2026 Audiokinetic Inc.
|
||||
*******************************************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
public partial class AkUnitySoundEngine
|
||||
{
|
||||
#region User Hooks - Extended for Auto-Registration
|
||||
|
||||
private const string AkGameObjTypeString = "AkGameObj, AK.Wwise.Unity.MonoBehaviour";
|
||||
|
||||
private static void AutoRegister(UnityEngine.GameObject gameObject, ulong id)
|
||||
{
|
||||
if (!gameObject)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Type AkGameObjectType = Type.GetType(AkGameObjTypeString);
|
||||
if (gameObject.GetComponent(AkGameObjectType) == null)
|
||||
{
|
||||
gameObject.AddComponent(AkGameObjectType);
|
||||
}
|
||||
}
|
||||
|
||||
static partial void PreGameObjectAPICallUserHook(UnityEngine.GameObject gameObject, ulong id)
|
||||
{
|
||||
if (!IsInRegisteredList(id) && IsInitialized())
|
||||
{
|
||||
AutoRegister(gameObject, id);
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly System.Collections.Generic.HashSet<ulong> RegisteredGameObjects =
|
||||
new System.Collections.Generic.HashSet<ulong>();
|
||||
|
||||
static partial void PostRegisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id)
|
||||
{
|
||||
if (result == AKRESULT.AK_Success)
|
||||
{
|
||||
RegisteredGameObjects.Add(id);
|
||||
}
|
||||
}
|
||||
|
||||
static partial void PostUnregisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id)
|
||||
{
|
||||
if (result == AKRESULT.AK_Success)
|
||||
{
|
||||
RegisteredGameObjects.Remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
static partial void ClearRegisteredGameObjects()
|
||||
{
|
||||
RegisteredGameObjects.Clear();
|
||||
}
|
||||
|
||||
private static bool IsInRegisteredList(ulong id)
|
||||
{
|
||||
return RegisteredGameObjects.Contains(id);
|
||||
}
|
||||
|
||||
// Helper method that a user might want to implement
|
||||
public static bool IsGameObjectRegistered(UnityEngine.GameObject in_gameObject)
|
||||
{
|
||||
return IsInRegisteredList(GetAkGameObjectID(in_gameObject));
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 04c6d34c834b084428aed2601422ea55
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f776122595e844418eff2940bd3fb3c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84f11be3d6021ee4cac9426d6e7b4b27
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,171 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public enum AKRESULT {
|
||||
/// This feature is not implemented.
|
||||
AK_NotImplemented = 0,
|
||||
/// The operation was successful.
|
||||
AK_Success = 1,
|
||||
/// The operation failed.
|
||||
AK_Fail = 2,
|
||||
/// The operation succeeded partially.
|
||||
AK_PartialSuccess = 3,
|
||||
/// Incompatible formats
|
||||
AK_NotCompatible = 4,
|
||||
/// The stream is already connected to another node.
|
||||
AK_AlreadyConnected = 5,
|
||||
/// The provided file is the wrong format or unexpected values causes the file to be invalid.
|
||||
AK_InvalidFile = 7,
|
||||
/// The file header is too large.
|
||||
AK_AudioFileHeaderTooLarge = 8,
|
||||
/// The maximum was reached.
|
||||
AK_MaxReached = 9,
|
||||
/// The ID is invalid.
|
||||
AK_InvalidID = 14,
|
||||
/// The ID was not found.
|
||||
AK_IDNotFound = 15,
|
||||
/// The InstanceID is invalid.
|
||||
AK_InvalidInstanceID = 16,
|
||||
/// No more data is available from the source.
|
||||
AK_NoMoreData = 17,
|
||||
/// The StateGroup is not a valid channel.
|
||||
AK_InvalidStateGroup = 20,
|
||||
/// The child already has a parent.
|
||||
AK_ChildAlreadyHasAParent = 21,
|
||||
/// The language is invalid (applies to the Low-Level I/O).
|
||||
AK_InvalidLanguage = 22,
|
||||
/// It is not possible to add itself as its own child.
|
||||
AK_CannotAddItselfAsAChild = 23,
|
||||
/// Something is not within bounds, check the documentation of the function returning this code.
|
||||
AK_InvalidParameter = 31,
|
||||
/// The item could not be added because it was already in the list.
|
||||
AK_ElementAlreadyInList = 35,
|
||||
/// This path is not known.
|
||||
AK_PathNotFound = 36,
|
||||
/// Stuff in vertices before trying to start it
|
||||
AK_PathNoVertices = 37,
|
||||
/// Only a running path can be paused.
|
||||
AK_PathNotRunning = 38,
|
||||
/// Only a paused path can be resumed.
|
||||
AK_PathNotPaused = 39,
|
||||
/// This path is already there.
|
||||
AK_PathNodeAlreadyInList = 40,
|
||||
/// This path is not there.
|
||||
AK_PathNodeNotInList = 41,
|
||||
/// The consumer needs more.
|
||||
AK_DataNeeded = 43,
|
||||
/// The consumer does not need more.
|
||||
AK_NoDataNeeded = 44,
|
||||
/// The provider has available data.
|
||||
AK_DataReady = 45,
|
||||
/// The provider does not have available data.
|
||||
AK_NoDataReady = 46,
|
||||
/// Memory error.
|
||||
AK_InsufficientMemory = 52,
|
||||
/// The requested action was cancelled (not an error).
|
||||
AK_Cancelled = 53,
|
||||
/// Trying to load a bank using an ID which is not defined.
|
||||
AK_UnknownBankID = 54,
|
||||
/// Error while reading a bank.
|
||||
AK_BankReadError = 56,
|
||||
/// Invalid switch type (used with the switch container)
|
||||
AK_InvalidSwitchType = 57,
|
||||
/// Source format not known yet.
|
||||
AK_FormatNotReady = 63,
|
||||
/// The bank version is not compatible with the current bank reader.
|
||||
AK_WrongBankVersion = 64,
|
||||
/// File not found.
|
||||
AK_FileNotFound = 66,
|
||||
/// Specified ID doesn't match a valid hardware device: either the device doesn't exist or is disabled.
|
||||
AK_DeviceNotReady = 67,
|
||||
/// The bank load failed because the bank is already loaded.
|
||||
AK_BankAlreadyLoaded = 69,
|
||||
/// The effect on the node is rendered.
|
||||
AK_RenderedFX = 71,
|
||||
/// A routine needs to be executed on some CPU.
|
||||
AK_ProcessNeeded = 72,
|
||||
/// The executed routine has finished its execution.
|
||||
AK_ProcessDone = 73,
|
||||
/// The memory manager should have been initialized at this point.
|
||||
AK_MemManagerNotInitialized = 74,
|
||||
/// The stream manager should have been initialized at this point.
|
||||
AK_StreamMgrNotInitialized = 75,
|
||||
/// The machine does not support SSE instructions (required on PC).
|
||||
AK_SSEInstructionsNotSupported = 76,
|
||||
/// The system is busy and could not process the request.
|
||||
AK_Busy = 77,
|
||||
/// Channel configuration is not supported in the current execution context.
|
||||
AK_UnsupportedChannelConfig = 78,
|
||||
/// Plugin media is not available for effect.
|
||||
AK_PluginMediaNotAvailable = 79,
|
||||
/// Sound was Not Allowed to play.
|
||||
AK_MustBeVirtualized = 80,
|
||||
/// SDK command is too large to fit in the command queue.
|
||||
AK_CommandTooLarge = 81,
|
||||
/// A play request was rejected due to the MIDI filter parameters.
|
||||
AK_RejectedByFilter = 82,
|
||||
/// Detecting incompatibility between Custom platform of banks and custom platform of connected application
|
||||
AK_InvalidCustomPlatformName = 83,
|
||||
/// Plugin DLL could not be loaded, either because it is not found or one dependency is missing.
|
||||
AK_DLLCannotLoad = 84,
|
||||
/// Plugin DLL search path could not be found.
|
||||
AK_DLLPathNotFound = 85,
|
||||
/// No Java VM provided in AkInitSettings.
|
||||
AK_NoJavaVM = 86,
|
||||
/// OpenSL returned an error. Check error log for more details.
|
||||
AK_OpenSLError = 87,
|
||||
/// Plugin is not registered. Make sure to implement a AK::PluginRegistration class for it and use AK_STATIC_LINK_PLUGIN in the game binary.
|
||||
AK_PluginNotRegistered = 88,
|
||||
/// A pointer to audio data was not aligned to the platform's required alignment (check AkTypes.h in the platform-specific folder)
|
||||
AK_DataAlignmentError = 89,
|
||||
/// Incompatible Audio device.
|
||||
AK_DeviceNotCompatible = 90,
|
||||
/// Two Wwise objects share the same ID.
|
||||
AK_DuplicateUniqueID = 91,
|
||||
/// The Init bank was not loaded yet, the sound engine isn't completely ready yet.
|
||||
AK_InitBankNotLoaded = 92,
|
||||
/// The specified device ID does not match with any of the output devices that the sound engine is currently using.
|
||||
AK_DeviceNotFound = 93,
|
||||
/// Calling a function with a playing ID that is not known.
|
||||
AK_PlayingIDNotFound = 94,
|
||||
/// One parameter has a invalid float value such as NaN, INF or FLT_MAX.
|
||||
AK_InvalidFloatValue = 95,
|
||||
/// Media file format unexpected
|
||||
AK_FileFormatMismatch = 96,
|
||||
/// No distinct listener provided for AddOutput
|
||||
AK_NoDistinctListener = 97,
|
||||
/// Resource is in use and cannot be released.
|
||||
AK_ResourceInUse = 99,
|
||||
/// Invalid bank type. The bank type was either supplied through a function call (e.g. LoadBank) or obtained from a bank loaded from memory.
|
||||
AK_InvalidBankType = 100,
|
||||
/// Init() was called but that element was already initialized.
|
||||
AK_AlreadyInitialized = 101,
|
||||
/// The component being used is not initialized. Most likely AK::SoundEngine::Init() was not called yet, or AK::SoundEngine::Term was called too early.
|
||||
AK_NotInitialized = 102,
|
||||
/// The file access permissions prevent opening a file.
|
||||
AK_FilePermissionError = 103,
|
||||
/// Rare file error occured, as opposed to AK_FileNotFound or AK_FilePermissionError. This lumps all unrecognized OS file system errors.
|
||||
AK_UnknownFileError = 104,
|
||||
/// When using StdStream, file operations can be blocking or not. When not blocking, operations need to be synchronized externally properly. If not, this error occurs.
|
||||
AK_TooManyConcurrentOperations = 105,
|
||||
/// The file requested was found and opened but is either 0 bytes long or not the expected size. This usually point toward a Low Level IO Hook implementation error.
|
||||
AK_InvalidFileSize = 106,
|
||||
/// Returned by functions to indicate to the caller the that the operation is done asynchronously. Used by Low Level IO Hook implementations when async operation are suppored by the hardware.
|
||||
AK_Deferred = 107,
|
||||
/// The combination of base path and file name exceeds maximum buffer lengths.
|
||||
AK_FilePathTooLong = 108,
|
||||
/// This method should not be called when the object is in its current state.
|
||||
AK_InvalidState = 109,
|
||||
/// End of enum, invalid value.
|
||||
AKRESULT_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2ccd470c2815be1439b4a257370f818f
|
||||
@@ -0,0 +1,85 @@
|
||||
#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 containing information about system-level support for 3D audio.
|
||||
/// "3D Audio" refers to a system's ability to position sound sources in a virtual 3D space, pan them accordingly on a range of physical speakers, and produce a binaural mix where appropriate.
|
||||
/// We prefer "3D Audio" to "Spatial" to avoid ambiguity with spatial audio, which typically involves sound propagation and environment effects.
|
||||
|
||||
public class Ak3DAudioSinkCapabilities : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal Ak3DAudioSinkCapabilities(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(Ak3DAudioSinkCapabilities obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~Ak3DAudioSinkCapabilities() {
|
||||
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_Ak3DAudioSinkCapabilities(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Channel configuration of the main mix.
|
||||
public AkChannelConfig channelConfig { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_channelConfig_set(swigCPtr, AkChannelConfig.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_channelConfig_get(swigCPtr);
|
||||
AkChannelConfig ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkChannelConfig(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Maximum number of System Audio Objects that can be active concurrently. A value of zero indicates the system does not support this feature.
|
||||
public uint uMaxSystemAudioObjects { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// How many System Audio Objects can currently be sent to the sink. This value can change at runtime depending on what is playing. Can never be higher than uMaxSystemAudioObjects.
|
||||
public uint uAvailableSystemAudioObjects { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Separate pass-through mix is supported.
|
||||
public bool bPassthrough { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bPassthrough_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bPassthrough_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Can handle multi-channel objects
|
||||
public bool bMultiChannelObjects { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public Ak3DAudioSinkCapabilities() : this(AkUnitySoundEnginePINVOKE.CSharp_new_Ak3DAudioSinkCapabilities(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02135ef60b97bb04d983d6f65bc5f01d
|
||||
@@ -0,0 +1,24 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// 3D position type: defines what acts as the emitter position for computing spatialization against the listener. Used when Ak3DSpatializationMode is AK_SpatializationMode_PositionOnly or AK_SpatializationMode_PositionAndOrientation.
|
||||
public enum Ak3DPositionType {
|
||||
/// 3D spatialization is computed directly from the emitter game object position.
|
||||
AK_3DPositionType_Emitter = 0,
|
||||
/// 3D spatialization is computed from the emitter game object position, translated by user-defined automation.
|
||||
AK_3DPositionType_EmitterWithAutomation = 1,
|
||||
/// 3D spatialization is computed from the listener game object position, translated by user-defined automation.
|
||||
AK_3DPositionType_ListenerWithAutomation = 2,
|
||||
/// End of enum, invalid value.
|
||||
AK_3DPositionType_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fd31efe778896854c9458aab86b8e32c
|
||||
@@ -0,0 +1,24 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// 3D spatialization mode.
|
||||
public enum Ak3DSpatializationMode {
|
||||
/// No spatialization
|
||||
AK_SpatializationMode_None = 0,
|
||||
/// Spatialization based on emitter position only.
|
||||
AK_SpatializationMode_PositionOnly = 1,
|
||||
/// Spatialization based on both emitter position and emitter orientation.
|
||||
AK_SpatializationMode_PositionAndOrientation = 2,
|
||||
/// End of enum, invalid value.
|
||||
AK_SpatializationMode_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56b42bc7a8055d54fa08af2e829872cd
|
||||
@@ -0,0 +1,80 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// 3D data needed for 3D spatialization.
|
||||
/// Undergoes transformations based on emitter-listener placement.
|
||||
|
||||
public class Ak3dData : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal Ak3dData(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(Ak3dData obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~Ak3dData() {
|
||||
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_Ak3dData(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public Ak3dData() : this(AkUnitySoundEnginePINVOKE.CSharp_new_Ak3dData(), true) {
|
||||
}
|
||||
|
||||
/// Object position / orientation.
|
||||
public AkTransform xform { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_xform_set(swigCPtr, AkTransform.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_xform_get(swigCPtr);
|
||||
AkTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkTransform(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Spread [0,1]
|
||||
public float spread { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_spread_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_spread_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Focus [0,1]
|
||||
public float focus { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_focus_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_focus_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Emitter channel mask. With 3D spatialization, zeroed channels should be dropped.
|
||||
public uint uEmitterChannelMask { set { AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_uEmitterChannelMask_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_Ak3dData_uEmitterChannelMask_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b331f6b9957ba014b9c3bf11e2c7b3b6
|
||||
@@ -0,0 +1,95 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Describes the acoustic surface properties of one or more triangles.
|
||||
/// An single acoustic surface may describe any number of triangles, depending on the granularity desired. For example, if desired for debugging, one could create a unique
|
||||
/// ``AkAcousticSurface`` struct for each triangle, and define a unique name for each. Alternatively, a single ``AkAcousticSurface`` could be used to describe all triangles.
|
||||
/// In fact it is not necessary to define any acoustic surfaces at all. If the ``AkTriangle::surface`` field is left as ``AK_INVALID_SURFACE``, then a default-constructed ``AkAcousticSurface`` is used.
|
||||
|
||||
public class AkAcousticSurface : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkAcousticSurface(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkAcousticSurface obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkAcousticSurface() {
|
||||
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_AkAcousticSurface(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Constructor
|
||||
public AkAcousticSurface() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkAcousticSurface(), true) {
|
||||
}
|
||||
|
||||
/// Acoustic texture ShareSet ID for the surface. The acoustic texture is authored in Wwise, and the shareset ID may be obtained by calling ``AK::SoundEngine::GetIDFromString``
|
||||
/// <seealso cref="\ref AK.SoundEngine.GetIDFromString"/>
|
||||
public uint textureID { set { AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_textureID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_textureID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Transmission loss value to apply when simulating sound transmission through this geometric surface.
|
||||
/// Transmission is only simulated on a sound when the sound has **Enable Diffraction and Transmission** box
|
||||
/// enabled in Wwise Authoring.
|
||||
/// If more than one surface is intersected between the emitter and the listener, the result depends on ``AkSpatialAudioInitSettings::eTransmissionOperation``. The default behavior is to use the maximum of all surfaces' transmission loss values.
|
||||
/// Transmission loss is applied on the mix connection between the emitter and the listener for the dry path, and between the emitter and the room for the wet path.
|
||||
/// The transmission loss value is converted to volume attenuation, low-pass and/or high-pass filtering, using the transmission loss curves defined on the sound in Wwise Authoring.
|
||||
/// A transmission loss value of 0 has special meaning in some contexts:
|
||||
/// - Setting a transmission loss value of 0 effectively disables a surface for ray intersection. It is ignored for all diffraction and reflection calculations.
|
||||
/// - When geometry is used to define the shape of a Reverb Zone, surfaces with a transmission loss of 0 define the center of the transition between the Reverb Zone and its parent Room.
|
||||
/// Only surfaces with transmission loss of 0 define the transition region, allowing the user to have transitions around parts of the geometry (certain walls, for example), and not others.
|
||||
/// Valid range: (0.f-1.f)
|
||||
/// - \ref AkRoomParams
|
||||
/// - \ref AK::SpatialAudio::SetReverbZone
|
||||
public float transmissionLoss { set { AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_transmissionLoss_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_transmissionLoss_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Name to describe this surface
|
||||
public string strName { set { AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_strName_set(swigCPtr, value); } get { return AkUnitySoundEngine.StringFromIntPtrString(AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_strName_get(swigCPtr)); }
|
||||
}
|
||||
|
||||
public void Clear() { AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_Clear(swigCPtr); }
|
||||
|
||||
public void DeleteName() { AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_DeleteName(swigCPtr); }
|
||||
|
||||
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_GetSizeOf(); }
|
||||
|
||||
public void Clone(AkAcousticSurface other) { AkUnitySoundEnginePINVOKE.CSharp_AkAcousticSurface_Clone(swigCPtr, AkAcousticSurface.getCPtr(other)); }
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d6ac87795e7d9ce4486c667227c45ba7
|
||||
@@ -0,0 +1,30 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Denotes actions that can be executed on nodes referenced by events in an action of type Play
|
||||
/// <seealso cref="
|
||||
/// - AK.SoundEngine.ExecuteActionOnEvent"/>
|
||||
public enum AkActionOnEventType {
|
||||
/// Stop
|
||||
AkActionOnEventType_Stop = 0,
|
||||
/// Pause
|
||||
AkActionOnEventType_Pause = 1,
|
||||
/// Resume
|
||||
AkActionOnEventType_Resume = 2,
|
||||
/// Break
|
||||
AkActionOnEventType_Break = 3,
|
||||
/// Release envelope
|
||||
AkActionOnEventType_ReleaseEnvelope = 4,
|
||||
/// End of enum, invalid value.
|
||||
AkActionOnEventType_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb9d8b5ca1b4efc48935c52d8e394b8d
|
||||
@@ -0,0 +1,70 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Curve types of the Attenuation Editor.
|
||||
public enum AkAttenuationCurveType {
|
||||
/// The distance-driven dry volume curve.
|
||||
AttenuationCurveID_VolumeDry = 0,
|
||||
/// The distance-driven game-defined auxiliary send curve.
|
||||
AttenuationCurveID_VolumeAuxGameDef,
|
||||
/// The distance-driven user-defined auxiliary send curve.
|
||||
AttenuationCurveID_VolumeAuxUserDef,
|
||||
/// The distance-driven low-pass filter (pre send) curve.
|
||||
AttenuationCurveID_LowPassFilter,
|
||||
/// The distance-driven high-pass filter (pre send) curve.
|
||||
AttenuationCurveID_HighPassFilter,
|
||||
/// The distance-driven high shelf filter curve.
|
||||
AttenuationCurveID_HighShelf,
|
||||
/// The distance-driven Spread curve.
|
||||
AttenuationCurveID_Spread,
|
||||
/// The distance-driven Focus curve.
|
||||
AttenuationCurveID_Focus,
|
||||
/// The obstruction-driven volume curve.
|
||||
AttenuationCurveID_ObstructionVolume,
|
||||
/// The obstruction-driven low-pass filter curve.
|
||||
AttenuationCurveID_ObstructionLPF,
|
||||
/// The obstruction-driven high-pass filter curve.
|
||||
AttenuationCurveID_ObstructionHPF,
|
||||
/// The obstruction-driven high shelf filter curve.
|
||||
AttenuationCurveID_ObstructionHSF,
|
||||
/// The occlusion-driven volume curve.
|
||||
AttenuationCurveID_OcclusionVolume,
|
||||
/// The occlusion-driven low-pass filter curve.
|
||||
AttenuationCurveID_OcclusionLPF,
|
||||
/// The occlusion-driven high-pass filter curve.
|
||||
AttenuationCurveID_OcclusionHPF,
|
||||
/// The occlusion-driven high shelf filter curve.
|
||||
AttenuationCurveID_OcclusionHSF,
|
||||
/// The diffraction-driven volume curve.
|
||||
AttenuationCurveID_DiffractionVolume,
|
||||
/// The diffraction-driven low-pass filter curve.
|
||||
AttenuationCurveID_DiffractionLPF,
|
||||
/// The diffraction-driven high-pass filter curve.
|
||||
AttenuationCurveID_DiffractionHPF,
|
||||
/// The diffraction-driven high shelf filter curve.
|
||||
AttenuationCurveID_DiffractionHSF,
|
||||
/// The transmission-driven volume curve.
|
||||
AttenuationCurveID_TransmissionVolume,
|
||||
/// The transmission-driven low-pass filter curve.
|
||||
AttenuationCurveID_TransmissionLPF,
|
||||
/// The transmission-driven high-pass filter curve.
|
||||
AttenuationCurveID_TransmissionHPF,
|
||||
/// The transmission-driven high shelf filter curve.
|
||||
AttenuationCurveID_TransmissionHSF,
|
||||
/// The maximum number of curve types.
|
||||
AttenuationCurveID_MaxCount,
|
||||
/// Symbol for "Use Project".
|
||||
AttenuationCurveID_Project = 254,
|
||||
/// Symbol for "None".
|
||||
AttenuationCurveID_None = 255
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5efc4800336bd4b4e99f6b65c0b55c56
|
||||
@@ -0,0 +1,23 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public enum AkAudioDeviceEvent {
|
||||
/// Sent after an Audio Device has initialized. Initialization might have failed, check the AKRESULT.
|
||||
AkAudioDeviceEvent_Initialization,
|
||||
/// Audio device was removed through explicit call (AK::SoundEngine::RemoveOutput or AK::SoundEngine::Term)
|
||||
AkAudioDeviceEvent_Removal,
|
||||
/// Audio device was removed because of a system event (disconnection), hardware or driver problem. Check the AKRESULT when called through AkDeviceStatusCallbackFunc, it may give more context.
|
||||
AkAudioDeviceEvent_SystemRemoval,
|
||||
/// End of enum, invalid value.
|
||||
AkAudioDeviceEvent_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6614297e4ab76154e8fdbf23126dc64f
|
||||
@@ -0,0 +1,29 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public enum AkAudioDeviceState {
|
||||
/// The audio device state is unknown or invalid.
|
||||
AkDeviceState_Unknown = 0,
|
||||
/// The audio device is active That is, the audio adapter that connects to the endpoint device is present and enabled.
|
||||
AkDeviceState_Active = 1 << 0,
|
||||
/// The audio device is disabled.
|
||||
AkDeviceState_Disabled = 1 << 1,
|
||||
/// The audio device is not present because the audio adapter that connects to the endpoint device has been removed from the system.
|
||||
AkDeviceState_NotPresent = 1 << 2,
|
||||
/// The audio device is unplugged.
|
||||
AkDeviceState_Unplugged = 1 << 3,
|
||||
/// End of enum, invalid value.
|
||||
AkDeviceState_Last,
|
||||
/// Includes audio devices in all states.
|
||||
AkDeviceState_All = AkDeviceState_Active|AkDeviceState_Disabled|AkDeviceState_NotPresent|AkDeviceState_Unplugged
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 674d5b97a51e0954d8bbcc22b278958e
|
||||
@@ -0,0 +1,117 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Defines the parameters of an audio buffer format.
|
||||
|
||||
public class AkAudioFormat : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkAudioFormat(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkAudioFormat obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkAudioFormat() {
|
||||
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_AkAudioFormat(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Number of samples per second
|
||||
public uint uSampleRate { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uSampleRate_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uSampleRate_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Channel configuration.
|
||||
public AkChannelConfig channelConfig { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_channelConfig_set(swigCPtr, AkChannelConfig.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_channelConfig_get(swigCPtr);
|
||||
AkChannelConfig ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkChannelConfig(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Number of bits per sample.
|
||||
public uint uBitsPerSample { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uBitsPerSample_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uBitsPerSample_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Number of bytes per sample frame. (For example a 5.1 PCM 16bit should have a uBlockAlign equal to 6(5.1 channels)*2(16 bits per sample) = 12.
|
||||
public uint uBlockAlign { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uBlockAlign_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uBlockAlign_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Data type ID (AkDataTypeID).
|
||||
public uint uTypeID { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uTypeID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uTypeID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Interleave ID (AkDataInterleaveID).
|
||||
public uint uInterleaveID { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uInterleaveID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_uInterleaveID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Get the number of channels.
|
||||
/// <returns>The number of channels</returns>
|
||||
public uint GetNumChannels() { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_GetNumChannels(swigCPtr); }
|
||||
|
||||
/// Get the number of bits per sample.
|
||||
/// <returns>The number of bits per sample</returns>
|
||||
public uint GetBitsPerSample() { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_GetBitsPerSample(swigCPtr); }
|
||||
|
||||
/// Get the block alignment.
|
||||
/// <returns>The block alignment</returns>
|
||||
public uint GetBlockAlign() { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_GetBlockAlign(swigCPtr); }
|
||||
|
||||
/// Get the data sample format (Float or Integer).
|
||||
/// <returns>The data sample format</returns>
|
||||
public uint GetTypeID() { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_GetTypeID(swigCPtr); }
|
||||
|
||||
/// Get the interleaved type.
|
||||
/// <returns>The interleaved type</returns>
|
||||
public uint GetInterleaveID() { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_GetInterleaveID(swigCPtr); }
|
||||
|
||||
/// Set all parameters of the audio format structure.
|
||||
/// Channels are specified by channel mask (standard configs).
|
||||
/// <param name="in_uSampleRate"> Number of samples per second</param>
|
||||
/// <param name="in_channelConfig"> Channel configuration</param>
|
||||
/// <param name="in_uBitsPerSample"> Number of bits per sample</param>
|
||||
/// <param name="in_uBlockAlign"> Number of bytes per sample frame. (For example a 5.1 PCM 16bit should have a uBlockAlign equal to 6(5.1 channels)*2(16 bits per sample) = 12.</param>
|
||||
/// <param name="in_uTypeID"> Data sample format (Float or Integer)</param>
|
||||
/// <param name="in_uInterleaveID"> Interleaved type</param>
|
||||
public void SetAll(uint in_uSampleRate, AkChannelConfig in_channelConfig, uint in_uBitsPerSample, uint in_uBlockAlign, uint in_uTypeID, uint in_uInterleaveID) { AkUnitySoundEnginePINVOKE.CSharp_AkAudioFormat_SetAll(swigCPtr, in_uSampleRate, AkChannelConfig.getCPtr(in_channelConfig), in_uBitsPerSample, in_uBlockAlign, in_uTypeID, in_uInterleaveID); }
|
||||
|
||||
public AkAudioFormat() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkAudioFormat(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a5aafa4be8e4fc458b20a6a47919376
|
||||
@@ -0,0 +1,60 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkAudioInterruptionCallbackInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkAudioInterruptionCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkAudioInterruptionCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkAudioInterruptionCallbackInfo() {
|
||||
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_AkAudioInterruptionCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public bool bEnterInterruption { get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioInterruptionCallbackInfo_bEnterInterruption_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkAudioInterruptionCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkAudioInterruptionCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5aa6845eca13e241966e58760c56e05
|
||||
@@ -0,0 +1,20 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Enum of the possible object destinations when reaching a 3D audio-capable sink
|
||||
public enum AkAudioObjectDestination {
|
||||
eDefault = 0,
|
||||
eMainMix = 1,
|
||||
ePassthrough = 2,
|
||||
eSystemAudioObject = 3
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e31b6354a590044694ec4c6ba8d9bc5
|
||||
@@ -0,0 +1,66 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Configured audio settings
|
||||
|
||||
public class AkAudioSettings : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkAudioSettings(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkAudioSettings obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkAudioSettings() {
|
||||
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_AkAudioSettings(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Number of samples per audio frame (256, 512, 1024 or 2048).
|
||||
public uint uNumSamplesPerFrame { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerFrame_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerFrame_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Number of samples per second.
|
||||
public uint uNumSamplesPerSecond { set { AkUnitySoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerSecond_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerSecond_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkAudioSettings() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkAudioSettings(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f83976bc30f9d914c8659483663556cc
|
||||
@@ -0,0 +1,60 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkAudioSourceChangeCallbackInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkAudioSourceChangeCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkAudioSourceChangeCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkAudioSourceChangeCallbackInfo() {
|
||||
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_AkAudioSourceChangeCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public bool bOtherAudioPlaying { get { return AkUnitySoundEnginePINVOKE.CSharp_AkAudioSourceChangeCallbackInfo_bOtherAudioPlaying_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkAudioSourceChangeCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkAudioSourceChangeCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9b6b1bf614443e4bb2e320e3c2341cc
|
||||
@@ -0,0 +1,91 @@
|
||||
#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.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83eddc22b52b91347aa3790858ab6430
|
||||
@@ -0,0 +1,66 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkBankCallbackInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkBankCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkBankCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkBankCallbackInfo() {
|
||||
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_AkBankCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public uint bankID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkBankCallbackInfo_bankID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public global::System.IntPtr inMemoryBankPtr { get { return AkUnitySoundEnginePINVOKE.CSharp_AkBankCallbackInfo_inMemoryBankPtr_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AKRESULT loadResult { get { return (AKRESULT)AkUnitySoundEnginePINVOKE.CSharp_AkBankCallbackInfo_loadResult_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkBankCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkBankCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 22f3367a1389c874092da1d42b3a06e8
|
||||
@@ -0,0 +1,26 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Parameter to be passed to AK::SoundEngine::PrepareBank().
|
||||
/// Use AkBankContent_All to load both the media and structural content from the bank.
|
||||
/// Use AkBankContent_StructureOnly to load only the structural content, including events, from the bank and then later use the PrepareEvent() functions to load media on demand from loose files on the disk.
|
||||
/// <seealso cref="
|
||||
/// - AK.SoundEngine.PrepareBank"/>
|
||||
public enum AkBankContent {
|
||||
/// Use AkBankContent_StructureOnly to load only the structural content, including Events, and then later use the PrepareEvent() functions to load media on demand from loose files on the disk.
|
||||
AkBankContent_StructureOnly,
|
||||
/// Use AkBankContent_All to load both the media and structural content.
|
||||
AkBankContent_All,
|
||||
/// End of enum, invalid value.
|
||||
AkBankContent_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12b69fbee854dba4e89f94213cb517f8
|
||||
@@ -0,0 +1,24 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Bank types
|
||||
public enum AkBankTypeEnum {
|
||||
/// User-defined bank.
|
||||
AkBankType_User = 0,
|
||||
/// Bank generated for one event.
|
||||
AkBankType_Event = 30,
|
||||
/// Bank generated for one bus or aux bus.
|
||||
AkBankType_Bus = 31,
|
||||
/// End of enum, invalid value.
|
||||
AkBankType_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2f7dae7f5fef5745906fd810462ec7d
|
||||
@@ -0,0 +1,90 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Positioning data inherited from sound structures and mix busses.
|
||||
|
||||
public class AkBehavioralPositioningData : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkBehavioralPositioningData(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkBehavioralPositioningData obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkBehavioralPositioningData() {
|
||||
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_AkBehavioralPositioningData(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public AkBehavioralPositioningData() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkBehavioralPositioningData(), true) {
|
||||
}
|
||||
|
||||
/// Center percentage [0,1]
|
||||
public float center { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_center_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_center_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Pan left-right [-1,1]
|
||||
public float panLR { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panLR_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panLR_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Pan back-front [-1,1]
|
||||
public float panBF { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panBF_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panBF_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Pan down-up [-1,1]
|
||||
public float panDU { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panDU_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panDU_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Panning vs 3D spatialization mix ([0,1], 1 being 100% spatialized).
|
||||
public float panSpatMix { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panSpatMix_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panSpatMix_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// 3D spatialization mode.
|
||||
public Ak3DSpatializationMode spatMode { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_spatMode_set(swigCPtr, (int)value); } get { return (Ak3DSpatializationMode)AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_spatMode_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Speaker panning type.
|
||||
public AkSpeakerPanningType panType { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panType_set(swigCPtr, (int)value); } get { return (AkSpeakerPanningType)AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panType_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// When true, audio objects 3D spatialized onto a planar channel configuration will be given a minimum spread value based on their elevation angle, equal to sin(elevation)**2.
|
||||
public bool enableHeightSpread { set { AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_enableHeightSpread_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_enableHeightSpread_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 489696dd2aeabda43be58e3246802127
|
||||
@@ -0,0 +1,21 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public enum AkCallbackCategory {
|
||||
None,
|
||||
Event,
|
||||
Monitoring,
|
||||
Bank,
|
||||
AudioInterruption,
|
||||
AudioSourceChange
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 103d4642e60f7bb4d87440a8cd873337
|
||||
@@ -0,0 +1,65 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkCallbackInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkCallbackInfo() {
|
||||
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_AkCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// User data, passed to PostEvent()
|
||||
public global::System.IntPtr pCookie { get { return AkUnitySoundEnginePINVOKE.CSharp_AkCallbackInfo_pCookie_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Game object ID
|
||||
public ulong gameObjID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkCallbackInfo_gameObjID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 27d222eea40594346b5af883083af003
|
||||
@@ -0,0 +1,75 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// This class allows the Sound Engine callbacks to be processed in the user thread instead of the audio thread.
|
||||
/// This is done by accumulating the callback generating events until the game calls CallbackSerializer::PostCallbacks().
|
||||
/// All pending callbacks will be done at that point. This removes the need for external synchronization for the callback
|
||||
/// functions that the game would need otherwise.
|
||||
|
||||
public class AkCallbackSerializer : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkCallbackSerializer(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkCallbackSerializer obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkCallbackSerializer() {
|
||||
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_AkCallbackSerializer(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static AKRESULT Init() { return (AKRESULT)AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_Init(); }
|
||||
|
||||
public static void Term() { AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_Term(); }
|
||||
|
||||
public static global::System.IntPtr Lock() { return AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_Lock(); }
|
||||
|
||||
public static void Unlock() { AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_Unlock(); }
|
||||
|
||||
public static void SetLocalOutput(uint in_uErrorLevel, string in_ip, uint in_port, string in_xmlFilePath, uint in_msXmlTranslatorTimeout, uint in_msWaapiTranslatorTimeout) { AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_SetLocalOutput(in_uErrorLevel, in_ip, in_port, in_xmlFilePath, in_msXmlTranslatorTimeout, in_msWaapiTranslatorTimeout); }
|
||||
|
||||
public static void FreeXmlTranslatorHandle(string in_xmlFilePath, uint in_msXmlTranslatorTimeout) { AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_FreeXmlTranslatorHandle(in_xmlFilePath, in_msXmlTranslatorTimeout); }
|
||||
|
||||
public static AKRESULT AudioSourceChangeCallbackFunc(bool in_bOtherAudioPlaying, object in_pCookie) { return (AKRESULT)AkUnitySoundEnginePINVOKE.CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc(in_bOtherAudioPlaying, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); }
|
||||
|
||||
public AkCallbackSerializer() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkCallbackSerializer(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91e0af96d50b21e4f84735e419bef568
|
||||
@@ -0,0 +1,62 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Type of callback. Used as a bitfield in methods AK::SoundEngine::PostEvent() and AK::SoundEngine::DynamicSequence::Open().
|
||||
public enum AkCallbackType {
|
||||
/// Callback triggered when reaching the end of an event. No additional callback information.
|
||||
AK_EndOfEvent = 1,
|
||||
/// Callback triggered when reaching the end of a dynamic sequence item. Callback info can be cast to AkDynamicSequenceItemCallbackInfo.
|
||||
AK_EndOfDynamicSequenceItem = 2,
|
||||
/// Callback triggered when encountering a marker during playback. Callback info can be cast to AkMarkerCallbackInfo.
|
||||
AK_Marker = 4,
|
||||
/// Callback triggered when the duration of the sound is known by the sound engine. Callback info can be cast to AkDurationCallbackInfo.
|
||||
AK_Duration = 8,
|
||||
/// Callback triggered at each frame, letting the client modify the speaker volume matrix. Callback info can be cast to AkSpeakerVolumeMatrixCallbackInfo.
|
||||
AK_SpeakerVolumeMatrix = 16,
|
||||
/// Callback triggered when playback skips a frame due to stream starvation. No additional callback information.
|
||||
AK_Starvation = 32,
|
||||
/// Callback triggered when music playlist container must select the next item to play. Callback info can be cast to AkMusicPlaylistCallbackInfo.
|
||||
AK_MusicPlaylistSelect = 64,
|
||||
/// Callback triggered when a "Play" or "Seek" command has been executed ("Seek" commands are issued from AK::SoundEngine::SeekOnEvent()). Applies to objects of the Containers hierarchy only. No additional callback information.
|
||||
AK_MusicPlayStarted = 128,
|
||||
/// Enable notifications on Music Beat. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncBeat = 256,
|
||||
/// Enable notifications on Music Bar. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncBar = 512,
|
||||
/// Enable notifications on Music Entry Cue. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncEntry = 1024,
|
||||
/// Enable notifications on Music Exit Cue. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncExit = 2048,
|
||||
/// Enable notifications on Music Grid. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncGrid = 4096,
|
||||
/// Enable notifications on Music Custom Cue. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncUserCue = 8192,
|
||||
/// Enable notifications on Music switch transition synchronization point. Callback info can be cast to AkMusicSyncCallbackInfo.
|
||||
AK_MusicSyncPoint = 16384,
|
||||
/// Enable notifications for MIDI events. Callback info can be cast to AkMIDIEventCallbackInfo.
|
||||
AK_MIDIEvent = 32768,
|
||||
/// Callback triggered when dynamic sequence must select the next item to play. Callback info can be cast to AkDynamicSequenceSelectCallbackInfo.
|
||||
AK_DynamicSequenceSelect = 65536,
|
||||
/// Last callback unused bit, invalid value.
|
||||
AK_Callback_Last = 131072,
|
||||
/// Use this flag if you want to receive all notifications concerning AK_MusicSync registration.
|
||||
AK_MusicSyncAll = 32512,
|
||||
/// Bitmask for all callback types.
|
||||
AK_CallbackBits = 1048575,
|
||||
/// Enable play position information of music objects, queried via AK::MusicEngine::GetPlayingSegmentInfo().
|
||||
AK_EnableGetMusicPlayPosition = 2097152,
|
||||
/// Enable stream buffering information for use by AK::SoundEngine::GetSourceStreamBuffering().
|
||||
AK_EnableGetSourceStreamBuffering = 4194304,
|
||||
/// Last source info enable bit, invalid value.
|
||||
AK_SourceInfo_Last = 8388608
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 27d6f3e3703f2ec43b440e2447f26e3c
|
||||
@@ -0,0 +1,164 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Defines a channel configuration.
|
||||
/// Examples:
|
||||
/// <code> AkChannelConfig cfg;
|
||||
///
|
||||
/// Create a stereo configuration.
|
||||
/// cfg.SetStandard(AK_SPEAKER_SETUP_STEREO);
|
||||
///
|
||||
/// Create a 7.1.4 configuration (7.1 plus 4 height channels).
|
||||
/// cfg.SetStandard(AK_SPEAKER_SETUP_AURO_11POINT1_740);
|
||||
/// or
|
||||
/// cfg.SetStandard(AK_SPEAKER_SETUP_DOLBY_7_1_4);
|
||||
///
|
||||
/// Create a 3rd order ambisonic configuration.
|
||||
/// cfg.SetAmbisonic(16); // pass in the number of spherical harmonics, (N+1)^2, where N is the ambisonics order.
|
||||
///
|
||||
/// Invalidate (usually means "As Parent")
|
||||
/// cfg.Clear();</code>
|
||||
|
||||
public class AkChannelConfig : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkChannelConfig(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkChannelConfig obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkChannelConfig() {
|
||||
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_AkChannelConfig(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Number of channels.
|
||||
public uint uNumChannels { set { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_uNumChannels_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_uNumChannels_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Channel config type (AkChannelConfigType).
|
||||
public uint eConfigType { set { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_eConfigType_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_eConfigType_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Channel mask (configuration).
|
||||
public uint uChannelMask { set { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_uChannelMask_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_uChannelMask_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public uint uFullCfg { set { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_uFullCfg_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_uFullCfg_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Construct standard channel config from channel mask
|
||||
public static AkChannelConfig Standard(uint in_uChannelMask) {
|
||||
AkChannelConfig ret = new AkChannelConfig(AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Standard(in_uChannelMask), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static AkChannelConfig Anonymous(uint in_uNumChannels) {
|
||||
AkChannelConfig ret = new AkChannelConfig(AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Anonymous(in_uNumChannels), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// Construct ambisonic channel config from number of channels (NOT order)
|
||||
public static AkChannelConfig Ambisonic(uint in_uNumChannels) {
|
||||
AkChannelConfig ret = new AkChannelConfig(AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Ambisonic(in_uNumChannels), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static AkChannelConfig Object() {
|
||||
AkChannelConfig ret = new AkChannelConfig(AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Object(), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// Constructor. Clears / sets the channel config in "invalid" state (IsValid() returns false).
|
||||
public AkChannelConfig() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkChannelConfig__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public AkChannelConfig(AkChannelConfig rCopy) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkChannelConfig__SWIG_1(AkChannelConfig.getCPtr(rCopy)), true) {
|
||||
}
|
||||
|
||||
/// Constructor. Sets number of channels, and config type according to whether channel mask is defined or not. If defined, it must be consistent with the number of channels.
|
||||
public AkChannelConfig(uint in_uNumChannels, uint in_uChannelMask) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkChannelConfig__SWIG_2(in_uNumChannels, in_uChannelMask), true) {
|
||||
}
|
||||
|
||||
/// Clear the channel config. Becomes "invalid" (IsValid() returns false).
|
||||
public void Clear() { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Clear(swigCPtr); }
|
||||
|
||||
/// Set channel config as a standard configuration specified with given channel mask.
|
||||
public void SetStandard(uint in_uChannelMask) { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetStandard(swigCPtr, in_uChannelMask); }
|
||||
|
||||
/// Set channel config as either a standard or an anonymous configuration, specified with both a given channel mask (0 if anonymous) and a number of channels (which must match the channel mask if standard).
|
||||
public void SetStandardOrAnonymous(uint in_uNumChannels, uint in_uChannelMask) { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetStandardOrAnonymous(swigCPtr, in_uNumChannels, in_uChannelMask); }
|
||||
|
||||
/// Set channel config as an anonymous configuration specified with given number of channels.
|
||||
public void SetAnonymous(uint in_uNumChannels) { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetAnonymous(swigCPtr, in_uNumChannels); }
|
||||
|
||||
/// Set channel config as an ambisonic configuration specified with given number of channels.
|
||||
public void SetAmbisonic(uint in_uNumChannels) { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetAmbisonic(swigCPtr, in_uNumChannels); }
|
||||
|
||||
/// Set channel config as an object-based configuration (implies dynamic number of objects).
|
||||
public void SetObject() { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetObject(swigCPtr); }
|
||||
|
||||
/// Set channel config as the main mix channel configuration
|
||||
public void SetSameAsMainMix() { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetSameAsMainMix(swigCPtr); }
|
||||
|
||||
/// Set channel config as the passthrough mix channel configuration
|
||||
public void SetSameAsPassthrough() { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_SetSameAsPassthrough(swigCPtr); }
|
||||
|
||||
/// Returns true if valid, false otherwise (as when it is constructed, or invalidated using Clear()).
|
||||
public bool IsValid() { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_IsValid(swigCPtr); }
|
||||
|
||||
/// Serialize channel config into a 32-bit word.
|
||||
public uint Serialize() { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Serialize(swigCPtr); }
|
||||
|
||||
/// Deserialize channel config from a 32-bit word.
|
||||
public void Deserialize(uint in_uChannelConfig) { AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_Deserialize(swigCPtr, in_uChannelConfig); }
|
||||
|
||||
/// Returns a new config based on 'this' with no LFE.
|
||||
public AkChannelConfig RemoveLFE() {
|
||||
AkChannelConfig ret = new AkChannelConfig(AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_RemoveLFE(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// Returns a new config based on 'this' with no Front Center channel.
|
||||
public AkChannelConfig RemoveCenter() {
|
||||
AkChannelConfig ret = new AkChannelConfig(AkUnitySoundEnginePINVOKE.CSharp_AkChannelConfig_RemoveCenter(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce9a94fe6e5a45f488043dfdbb0ac0c0
|
||||
@@ -0,0 +1,30 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Channel configuration type.
|
||||
public enum AkChannelConfigType {
|
||||
/// Channel mask == 0 and channels are anonymous.
|
||||
AK_ChannelConfigType_Anonymous = 0,
|
||||
/// Channels must be identified with standard defines in AkSpeakerConfigs.
|
||||
AK_ChannelConfigType_Standard = 1,
|
||||
/// Ambisonics. Channel mask == 0 and channels follow standard ambisonic order.
|
||||
AK_ChannelConfigType_Ambisonic = 2,
|
||||
/// Object-based configurations.
|
||||
AK_ChannelConfigType_Objects = 3,
|
||||
/// End of enum, invalid value.
|
||||
AK_ChannelConfigType_Last,
|
||||
/// Special setting for bus objects to use the audio device main configuration.
|
||||
AK_ChannelConfigType_UseDeviceMain = 14,
|
||||
/// Special setting for bus objects to use the audio device passthrough configuration.
|
||||
AK_ChannelConfigType_UseDevicePassthrough = 15
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ecdf6751c495d94399c5d0ab18969e9
|
||||
@@ -0,0 +1,68 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Positioning information for a sound, with specified subset of its channels.
|
||||
|
||||
public class AkChannelEmitter : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkChannelEmitter(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkChannelEmitter obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkChannelEmitter() {
|
||||
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_AkChannelEmitter(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Emitter position.
|
||||
public AkWorldTransform position { set { AkUnitySoundEnginePINVOKE.CSharp_AkChannelEmitter_position_set(swigCPtr, AkWorldTransform.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkChannelEmitter_position_get(swigCPtr);
|
||||
AkWorldTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkWorldTransform(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Channels to which the above position applies.
|
||||
public uint uInputChannels { set { AkUnitySoundEnginePINVOKE.CSharp_AkChannelEmitter_uInputChannels_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkChannelEmitter_uInputChannels_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c4b1ff006c17d9e4db5aca6ead6fae9f
|
||||
@@ -0,0 +1,21 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Channel ordering type.
|
||||
public enum AkChannelOrdering {
|
||||
ChannelOrdering_Standard = 0,
|
||||
ChannelOrdering_Film,
|
||||
ChannelOrdering_FuMa,
|
||||
ChannelOrdering_RunTime,
|
||||
ChannelOrdering_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee22b65da0289a546bf5be0f5e824317
|
||||
@@ -0,0 +1,26 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Nature of the connection binding an input to a bus.
|
||||
public enum AkConnectionType {
|
||||
/// Direct (main, dry) connection.
|
||||
ConnectionType_Direct = 0,
|
||||
/// Connection by a game-defined send.
|
||||
ConnectionType_GameDefSend = 1,
|
||||
/// Connection by a user-defined send.
|
||||
ConnectionType_UserDefSend = 2,
|
||||
/// Connection by a early reflections send.
|
||||
ConnectionType_ReflectionsSend = 3,
|
||||
/// End of enum, invalid value.
|
||||
ConnectionType_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aa959e7426a673e438da20eb7c64574e
|
||||
@@ -0,0 +1,40 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Curve interpolation types
|
||||
public enum AkCurveInterpolation {
|
||||
/// Log3
|
||||
AkCurveInterpolation_Log3 = 0,
|
||||
/// Sine
|
||||
AkCurveInterpolation_Sine = 1,
|
||||
/// Log1
|
||||
AkCurveInterpolation_Log1 = 2,
|
||||
/// Inversed S Curve
|
||||
AkCurveInterpolation_InvSCurve = 3,
|
||||
/// Linear (Default)
|
||||
AkCurveInterpolation_Linear = 4,
|
||||
/// S Curve
|
||||
AkCurveInterpolation_SCurve = 5,
|
||||
/// Exp1
|
||||
AkCurveInterpolation_Exp1 = 6,
|
||||
/// Reciprocal of sine curve
|
||||
AkCurveInterpolation_SineRecip = 7,
|
||||
/// Exp3
|
||||
AkCurveInterpolation_Exp3 = 8,
|
||||
/// Update this value to reflect last curve available for fades
|
||||
AkCurveInterpolation_LastFadeCurve = 8,
|
||||
/// Constant ( not valid for fading values )
|
||||
AkCurveInterpolation_Constant = 9,
|
||||
/// End of enum, invalid value.
|
||||
AkCurveInterpolation_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 752b18ba777c7564aaa9d5c2ba44e415
|
||||
@@ -0,0 +1,79 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkDeviceDescription : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkDeviceDescription(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkDeviceDescription obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkDeviceDescription() {
|
||||
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_AkDeviceDescription(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Device ID for Wwise. This is the same as what is returned from AK::GetDeviceID and AK::GetDeviceIDFromName. Use it to specify the main device in AkPlatformInitSettings.idAudioDevice or in AK::SoundEngine::AddSecondaryOutput.
|
||||
public uint idDevice { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_idDevice_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_idDevice_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// The user-friendly name for the device.
|
||||
public string deviceName { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceName_set(swigCPtr, value); } get { return AkUnitySoundEngine.StringFromIntPtrOSString(AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceName_get(swigCPtr)); }
|
||||
}
|
||||
|
||||
/// Bitmask used to filter the device based on their state.
|
||||
public AkAudioDeviceState deviceStateMask { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceStateMask_set(swigCPtr, (int)value); } get { return (AkAudioDeviceState)AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceStateMask_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Identify default device. Always false when not supported.
|
||||
public bool isDefaultDevice { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_isDefaultDevice_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_isDefaultDevice_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public void Clear() { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_Clear(swigCPtr); }
|
||||
|
||||
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_GetSizeOf(); }
|
||||
|
||||
public void Clone(AkDeviceDescription other) { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceDescription_Clone(swigCPtr, AkDeviceDescription.getCPtr(other)); }
|
||||
|
||||
public AkDeviceDescription() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkDeviceDescription(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb7ebd7f5022bf743af9e1f9a0786113
|
||||
@@ -0,0 +1,101 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkDeviceSettings : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkDeviceSettings(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkDeviceSettings obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkDeviceSettings() {
|
||||
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_AkDeviceSettings(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Pointer for I/O memory allocated by user.
|
||||
/// Pass NULL if you want memory to be allocated via AK::MemoryMgr::Malign().
|
||||
/// If specified, uIOMemorySize, uIOMemoryAlignment and ePoolAttributes are ignored.
|
||||
public global::System.IntPtr pIOMemory { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_pIOMemory_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_pIOMemory_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Size of memory for I/O (for automatic streams). It is passed directly to AK::MemoryMgr::Malign(), after having been rounded down to a multiple of uGranularity.
|
||||
public uint uIOMemorySize { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemorySize_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemorySize_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// I/O memory alignment. It is passed directly to AK::MemoryMgr::Malign().
|
||||
public uint uIOMemoryAlignment { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemoryAlignment_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemoryAlignment_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Attributes for I/O memory. Here, specify the allocation type (AkMemType_Device, and so on). It is passed directly to AK::MemoryMgr::Malign().
|
||||
public uint ePoolAttributes { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_ePoolAttributes_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_ePoolAttributes_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// I/O requests granularity (typical bytes/request).
|
||||
public uint uGranularity { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uGranularity_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uGranularity_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Scheduler thread properties.
|
||||
public AkThreadProperties threadProperties { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_threadProperties_set(swigCPtr, AkThreadProperties.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_threadProperties_get(swigCPtr);
|
||||
AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Targetted automatic stream buffer length (ms). When a stream reaches that buffering, it stops being scheduled for I/O except if the scheduler is idle.
|
||||
public float fTargetAutoStmBufferLength { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Maximum number of transfers that can be sent simultaneously to the Low-Level I/O.
|
||||
public uint uMaxConcurrentIO { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxConcurrentIO_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxConcurrentIO_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// If true, the device attempts to reuse I/O buffers that have already been streamed from disk. This is particularly useful when streaming small looping sounds. However, there is a small increase in CPU usage when allocating memory, and a slightly larger memory footprint in the StreamManager pool.
|
||||
public bool bUseStreamCache { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_bUseStreamCache_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_bUseStreamCache_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Maximum number of bytes that can be "pinned" using AK::SoundEngine::PinEventInStreamCache() or AK::IAkStreamMgr::PinFileInCache()
|
||||
public uint uMaxCachePinnedBytes { set { AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxCachePinnedBytes_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxCachePinnedBytes_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bc615c5cef29c9d468312b83310d72ff
|
||||
@@ -0,0 +1,141 @@
|
||||
#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 for retrieving information about paths for a given emitter.
|
||||
/// The diffraction paths represent indirect sound paths from the emitter to the listener, whether they go through portals
|
||||
/// (via the rooms and portals API) or are diffracted around edges (via the geometric diffraction API).
|
||||
/// The direct path is included here and can be identified by checking ``nodeCount`` == 0. The direct path may have a non-zero transmission loss
|
||||
/// if it passes through geometry or between rooms.
|
||||
|
||||
public class AkDiffractionPathInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkDiffractionPathInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkDiffractionPathInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkDiffractionPathInfo() {
|
||||
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_AkDiffractionPathInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Emitter position. This is the source position for an emitter. In all cases, except for radial emitters, it is the same position as the game object position.
|
||||
/// For radial emitters, it is the calculated position at the edge of the volume.
|
||||
public AkVector64 emitterPos { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_emitterPos_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_emitterPos_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Virtual emitter position. This is the position that is passed to the sound engine to render the audio using multi-positioning, for this particular path.
|
||||
public AkWorldTransform virtualPos { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_virtualPos_set(swigCPtr, AkWorldTransform.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_virtualPos_get(swigCPtr);
|
||||
AkWorldTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkWorldTransform(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Total number of nodes in the path. Defines the number of valid entries in the ``nodes``, ``angles``, and ``portals`` arrays. The ``rooms`` array has one extra slot to fit the emitter's room.
|
||||
public uint nodeCount { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_nodeCount_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_nodeCount_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Calculated total diffraction from this path, normalized to the range [0,1]
|
||||
/// The diffraction amount is calculated from the sum of the deviation angles from a straight line, of all angles at each nodePoint.
|
||||
/// This value is applied internally, by spatial audio, as the Diffraction value and built-in parameter of the emitter game object.
|
||||
/// <seealso cref="
|
||||
/// - \ref AkSpatialAudioInitSettings"/>
|
||||
public float diffraction { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_diffraction_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_diffraction_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Calculated total transmission loss from this path, normalized to the range [0,1]
|
||||
/// This field will be 0 for diffraction paths where ``nodeCount`` > 0. It may be non-zero for the direct path where ``nodeCount`` == 0.
|
||||
/// The path's transmission loss value might be geometric transmission loss, if geometry was intersected in the path,
|
||||
/// or room transmission loss, if no geometry was available.
|
||||
/// The geometric transmission loss is calculated from the transmission loss values assigned to the geometry that this path transmits through.
|
||||
/// If a path transmits through multiple geometries with different transmission loss values, the largest value is taken.
|
||||
/// The room transmission loss is taken from the emitter and listener rooms' transmission loss values, and likewise,
|
||||
/// if the listener's room and the emitter's room have different transmission loss values, the greater of the two is used.
|
||||
/// This value is applied internally, by spatial audio, as the Transmission Loss value and built-in parameter of the emitter game object.
|
||||
/// <seealso cref="
|
||||
/// - \ref AkSpatialAudioInitSettings
|
||||
/// - \ref AkRoomParams
|
||||
/// - \ref AkAcousticSurface"/>
|
||||
public float transmissionLoss { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_transmissionLoss_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_transmissionLoss_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Total path length
|
||||
/// Represents the sum of the length of the individual segments between nodes, with a correction factor applied for diffraction.
|
||||
/// The correction factor simulates the phenomenon where by diffracted sound waves decay faster than incident sound waves and can be customized in the spatial audio init settings.
|
||||
/// <seealso cref="
|
||||
/// - \ref AkSpatialAudioInitSettings"/>
|
||||
public float totLength { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_totLength_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_totLength_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Obstruction value for this path
|
||||
/// This value includes the accumulated portal obstruction for all portals along the path.
|
||||
public float obstructionValue { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_obstructionValue_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_obstructionValue_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Occlusion value for this path
|
||||
/// This value includes the accumulated portal occlusion for all portals along the path.
|
||||
public float occlusionValue { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_occlusionValue_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_occlusionValue_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Propagation path gain.
|
||||
/// Includes volume tapering gain to ensure that diffraction paths do not cut in or out when the maximum diffraction angle is exceeded.
|
||||
public float gain { set { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_gain_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_gain_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetSizeOf(); }
|
||||
|
||||
public UnityEngine.Vector3 GetNodes(uint idx) { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetNodes(swigCPtr, idx); }
|
||||
|
||||
public float GetAngles(uint idx) { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetAngles(swigCPtr, idx); }
|
||||
|
||||
public ulong GetPortals(uint idx) { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetPortals(swigCPtr, idx); }
|
||||
|
||||
public ulong GetRooms(uint idx) { return AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetRooms(swigCPtr, idx); }
|
||||
|
||||
public void Clone(AkDiffractionPathInfo other) { AkUnitySoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_Clone(swigCPtr, AkDiffractionPathInfo.getCPtr(other)); }
|
||||
|
||||
public AkDiffractionPathInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkDiffractionPathInfo(), true) {
|
||||
}
|
||||
|
||||
/// Defines the maximum number of nodes that a user can retrieve information about. Longer paths will be truncated.
|
||||
public const uint kMaxNodes = 8;
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 369c8f4f530faf74499c518b7c59bfc7
|
||||
@@ -0,0 +1,67 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkDurationCallbackInfo : AkEventCallbackInfo {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
|
||||
internal AkDurationCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkDurationCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal override void setCPtr(global::System.IntPtr cPtr) {
|
||||
base.setCPtr(AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_SWIGUpcast(cPtr));
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing) {
|
||||
lock(this) {
|
||||
if (swigCPtr != global::System.IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
AkUnitySoundEnginePINVOKE.CSharp_delete_AkDurationCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
|
||||
/// Duration of the sound (unit: milliseconds)
|
||||
public float fDuration { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_fDuration_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Estimated duration of the sound depending on source settings such as pitch. (unit: milliseconds)
|
||||
public float fEstimatedDuration { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_fEstimatedDuration_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Audio Node ID of playing item
|
||||
public uint audioNodeID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_audioNodeID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file)
|
||||
public uint mediaID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_mediaID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// True if source is streaming, false otherwise.
|
||||
public bool bStreaming { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_bStreaming_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkDurationCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkDurationCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ec26e6fcf076e59459d68a3f6fea1589
|
||||
@@ -0,0 +1,59 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkDynamicSequenceItemCallbackInfo : AkCallbackInfo {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
|
||||
internal AkDynamicSequenceItemCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkDynamicSequenceItemCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal override void setCPtr(global::System.IntPtr cPtr) {
|
||||
base.setCPtr(AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast(cPtr));
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing) {
|
||||
lock(this) {
|
||||
if (swigCPtr != global::System.IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
AkUnitySoundEnginePINVOKE.CSharp_delete_AkDynamicSequenceItemCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
|
||||
/// Playing ID of Dynamic Sequence, returned by AK::SoundEngine:DynamicSequence::Open()
|
||||
public uint playingID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_playingID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Audio Node ID of finished item
|
||||
public uint audioNodeID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_audioNodeID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Custom info passed to the DynamicSequence::Open function
|
||||
public global::System.IntPtr pCustomInfo { get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_pCustomInfo_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkDynamicSequenceItemCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkDynamicSequenceItemCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b4f04e2abb8fac40971800743c54f87
|
||||
@@ -0,0 +1,25 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Denotes operations that can be executed on a Dynamic Sequence.
|
||||
/// <seealso cref="
|
||||
/// - AkCmd_DynamicSequence_Op"/>
|
||||
public enum AkDynamicSequenceOp {
|
||||
AkDynamicSequenceOp_Play,
|
||||
AkDynamicSequenceOp_Pause,
|
||||
AkDynamicSequenceOp_Resume,
|
||||
AkDynamicSequenceOp_Stop,
|
||||
AkDynamicSequenceOp_Break,
|
||||
AkDynamicSequenceOp_Close,
|
||||
AkDynamicSequenceOp_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a7646b8cc5e91f14097e63f06bd7f6d5
|
||||
@@ -0,0 +1,83 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Callback information structure corresponding to \ref AK_DynamicSequenceSelect.
|
||||
/// Called when a dynamic sequence must select its next item to play.
|
||||
/// The callee is expected to fill out the information contained in this structure.
|
||||
/// If there is no item available to play, the callee must set ``audioNodeID`` to ``AK_INVALID_UNIQUE_ID``.
|
||||
/// This will cause the dynamic sequence to stop. Use ``AK::SoundEngine::DynamicSequence::Play`` to start playback again.
|
||||
/// When opening a dynamic sequence with the callback flag ``AK_DynamicSequenceSelect``, the callback is the ONLY way to determine the next item to play.
|
||||
/// ``AK::SoundEngine::DynamicSequence::LockPlaylist`` always returns ``NULL`` for dynamic sequences opened with ``AK_DynamicSequenceSelect``.
|
||||
///
|
||||
/// <seealso cref="
|
||||
/// - AK.SoundEngine.DynamicSequence.Open"/>
|
||||
|
||||
public class AkDynamicSequenceSelectCallbackInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkDynamicSequenceSelectCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkDynamicSequenceSelectCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkDynamicSequenceSelectCallbackInfo() {
|
||||
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_AkDynamicSequenceSelectCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Unique ID of Audio Node (can be resolved using AK::SoundEngine::DynamicDialogue API). Set to AK_INVALID_UNIQUE_ID to signal that no item is available to play.
|
||||
public uint audioNodeID { set { AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_audioNodeID_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_audioNodeID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Delay before playing this item, in milliseconds
|
||||
public int msDelay { set { AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_msDelay_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_msDelay_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Optional user data
|
||||
public global::System.IntPtr pCustomInfo { set { AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_pCustomInfo_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_pCustomInfo_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Optional external sources. Use API described in AkExternalSourceArray.h to add required external sources to play the next item.
|
||||
public global::System.IntPtr arExternalSources { set { AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_arExternalSources_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkDynamicSequenceSelectCallbackInfo_arExternalSources_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkDynamicSequenceSelectCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkDynamicSequenceSelectCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b58cdca684a4494b87eeaf137b440ce
|
||||
@@ -0,0 +1,37 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// The AkDynamicSequenceType is specified when creating a new dynamic sequence.
|
||||
/// In sample accurate mode, when a dynamic sequence item finishes playing and there is another item
|
||||
/// pending in its playlist, the next sound will be stitched to the end of the ending sound. In this
|
||||
/// mode, if there are one or more pending items in the playlist while the dynamic sequence is playing,
|
||||
/// or if something is added to the playlist during the playback, the dynamic sequence
|
||||
/// can remove the next item to be played from the playlist and prepare it for sample accurate playback before
|
||||
/// the first sound is finished playing. This mechanism helps keep sounds sample accurate, but then
|
||||
/// you might not be able to remove that next item from the playlist if required.
|
||||
/// If your game requires the capability of removing the next to be played item from the
|
||||
/// playlist at any time, then you should use the DynamicSequenceType_NormalTransition option instead.
|
||||
/// In this mode, you cannot ensure sample accuracy between sounds.
|
||||
/// Note that a Stop or a Break will always prevent the next to be played sound from actually being played.
|
||||
///
|
||||
/// <seealso cref="
|
||||
/// - AkCmd_DynamicSequence_Open
|
||||
/// - AK.SoundEngine.DynamicSequence.Open"/>
|
||||
public enum AkDynamicSequenceType {
|
||||
/// Sample accurate mode
|
||||
AkDynamicSequenceType_SampleAccurate,
|
||||
/// Normal transition mode, allows the entire playlist to be edited at all times.
|
||||
AkDynamicSequenceType_NormalTransition,
|
||||
/// End of enum, invalid value.
|
||||
AkDynamicSequenceType_Last
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf0f2795c96e3514f8d53b9a339e1b76
|
||||
@@ -0,0 +1,22 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Rendering modes of the overall Sound Engine
|
||||
public enum AkEngineRenderingMode {
|
||||
/// Regular operation, based on real audio sink cadence
|
||||
AkEngineRenderingMode_Online = 0,
|
||||
/// No audio output, rendering as fast as possible, every operation is serialized (streaming, monitoring, bank loads, etc)
|
||||
AkEngineRenderingMode_Offline = 1,
|
||||
/// No audio output, rendering as fast as possible, but regular threaded operations still happen in threads.
|
||||
AkEngineRenderingMode_OfflineThreaded = 2
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7156fc336910dbf4db66c40a5a111bd9
|
||||
@@ -0,0 +1,55 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkEventCallbackInfo : AkCallbackInfo {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
|
||||
internal AkEventCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkUnitySoundEnginePINVOKE.CSharp_AkEventCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkEventCallbackInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal override void setCPtr(global::System.IntPtr cPtr) {
|
||||
base.setCPtr(AkUnitySoundEnginePINVOKE.CSharp_AkEventCallbackInfo_SWIGUpcast(cPtr));
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing) {
|
||||
lock(this) {
|
||||
if (swigCPtr != global::System.IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
AkUnitySoundEnginePINVOKE.CSharp_delete_AkEventCallbackInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
|
||||
/// Playing ID of Event, returned by PostEvent()
|
||||
public uint playingID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkEventCallbackInfo_playingID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Unique ID of Event, passed to PostEvent()
|
||||
public uint eventID { get { return AkUnitySoundEnginePINVOKE.CSharp_AkEventCallbackInfo_eventID_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public AkEventCallbackInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkEventCallbackInfo(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3906b5927c35a5245b4485f46673103a
|
||||
@@ -0,0 +1,71 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// AkExtent describes an extent with width, height and depth. halfWidth, halfHeight and halfDepth should form a vector from the centre of the volume to the positive corner.
|
||||
/// Used in ``AkPortalParams``, negative values in the extent will cause an error. For rooms, negative values can be used to opt out of room transmission.
|
||||
|
||||
public class AkExtent : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkExtent(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkExtent obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkExtent() {
|
||||
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_AkExtent(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public AkExtent() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkExtent__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public AkExtent(float in_halfWidth, float in_halfHeight, float in_halfDepth) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkExtent__SWIG_1(in_halfWidth, in_halfHeight, in_halfDepth), true) {
|
||||
}
|
||||
|
||||
public float halfWidth { set { AkUnitySoundEnginePINVOKE.CSharp_AkExtent_halfWidth_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExtent_halfWidth_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public float halfHeight { set { AkUnitySoundEnginePINVOKE.CSharp_AkExtent_halfHeight_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExtent_halfHeight_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public float halfDepth { set { AkUnitySoundEnginePINVOKE.CSharp_AkExtent_halfDepth_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExtent_halfDepth_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 363cf9ecce93dce4881e4f84a94c5e8a
|
||||
@@ -0,0 +1,90 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkExternalSourceInfo : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkExternalSourceInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkExternalSourceInfo obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkExternalSourceInfo() {
|
||||
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_AkExternalSourceInfo(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public AkExternalSourceInfo() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public AkExternalSourceInfo(global::System.IntPtr in_pInMemory, uint in_uiMemorySize, uint in_iExternalSrcCookie, uint in_idCodec) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_1(in_pInMemory, in_uiMemorySize, in_iExternalSrcCookie, in_idCodec), true) {
|
||||
}
|
||||
|
||||
public AkExternalSourceInfo(string in_pszFileName, uint in_iExternalSrcCookie, uint in_idCodec) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_2(in_pszFileName, in_iExternalSrcCookie, in_idCodec), true) {
|
||||
}
|
||||
|
||||
public AkExternalSourceInfo(uint in_idFile, uint in_iExternalSrcCookie, uint in_idCodec) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_3(in_idFile, in_iExternalSrcCookie, in_idCodec), true) {
|
||||
}
|
||||
|
||||
public void Clear() { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_Clear(swigCPtr); }
|
||||
|
||||
public void Clone(AkExternalSourceInfo other) { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_Clone(swigCPtr, AkExternalSourceInfo.getCPtr(other)); }
|
||||
|
||||
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_GetSizeOf(); }
|
||||
|
||||
public uint iExternalSrcCookie { set { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_iExternalSrcCookie_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_iExternalSrcCookie_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public uint idCodec { set { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idCodec_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idCodec_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public string szFile { set { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_szFile_set(swigCPtr, value); } get { return AkUnitySoundEngine.StringFromIntPtrString(AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_szFile_get(swigCPtr)); }
|
||||
}
|
||||
|
||||
public global::System.IntPtr pInMemory { set { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_pInMemory_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_pInMemory_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public uint uiMemorySize { set { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_uiMemorySize_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_uiMemorySize_get(swigCPtr); }
|
||||
}
|
||||
|
||||
public uint idFile { set { AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idFile_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idFile_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e212baca9157b5c41aa065d3786855d2
|
||||
@@ -0,0 +1,27 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Define the orientation of the the floor plane with respect to the X,Y,Z axes, and which axes represent the side, front and up vectors as a basis for rotations in Wwise.
|
||||
/// AkFloorPlane is used in to orient the Game Object 3D Viewer in Wwise, and in the transformation of geometry instances in Wwise Spatial Audio.
|
||||
public enum AkFloorPlane {
|
||||
/// The floor is oriented along the ZX-plane. The front vector points towards +Z, the up vector towards +Y, and the side vector towards +X.
|
||||
AkFloorPlane_XZ = 0,
|
||||
/// The floor is oriented along the XY-plane. The front vector points towards +X, the up vector towards +Z, and the side vector towards +Y.
|
||||
AkFloorPlane_XY,
|
||||
/// The floor is oriented along the YZ-plane. The front vector points towards +Y, the up vector towards +X, and the side vector towards +Z.
|
||||
AkFloorPlane_YZ,
|
||||
/// End of enum, invalid value.
|
||||
AkFloorPlane_Last,
|
||||
/// The Wwise default floor plane is ZX.
|
||||
AkFloorPlane_Default = AkFloorPlane_XZ
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 412ea31fc31de144dbfb682a95d2ad37
|
||||
@@ -0,0 +1,101 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/// Parameters passed to ``SetGeometryInstance``
|
||||
|
||||
public class AkGeometryInstanceParams : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkGeometryInstanceParams(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkGeometryInstanceParams obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkGeometryInstanceParams() {
|
||||
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_AkGeometryInstanceParams(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Constructor
|
||||
/// Creates an instance with an identity transform.
|
||||
/// A default-constructed AkGeometryInstanceParams assumes the default floor plane is passed to AkInitSettings::eFloorPlane.
|
||||
public AkGeometryInstanceParams() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkGeometryInstanceParams(), true) {
|
||||
}
|
||||
|
||||
/// Set the position and orientation of the geometry instance.
|
||||
/// AkWorldTransform uses one vector to define the position of the geometry instance, and two more to define the orientation; a forward vector and an up vector.
|
||||
/// To ensure that a geometry instance has the correct rotation with respect to the game, AkInitSettings::eFloorPlane must be initialized with the correct value.
|
||||
///
|
||||
/// <seealso cref="
|
||||
/// - \ref AkInitSettings.eFloorPlane
|
||||
/// - \ref AK.SpatialAudio.SetGeometryInstance
|
||||
/// - \ref AK.SpatialAudio.RemoveGeometryInstance"/>
|
||||
public AkWorldTransform PositionAndOrientation { set { AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_PositionAndOrientation_set(swigCPtr, AkWorldTransform.getCPtr(value)); }
|
||||
get {
|
||||
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_PositionAndOrientation_get(swigCPtr);
|
||||
AkWorldTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkWorldTransform(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// Set the 3-dimensional scaling of the geometry instance.
|
||||
/// <seealso cref="
|
||||
/// - \ref AK.SpatialAudio.SetGeometryInstance
|
||||
/// - \ref AK.SpatialAudio.RemoveGeometryInstance"/>
|
||||
public UnityEngine.Vector3 Scale { set { AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_Scale_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_Scale_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// When enabled, the geometry instance is indexed for ray computation and used to compute reflection, diffraction, and transmission.
|
||||
/// If the geometry instance is used only for room containment, this flag must be set to false.
|
||||
/// - \ref AK::SpatialAudio::SetRoom
|
||||
/// - \ref AkRoomParams
|
||||
public bool UseForReflectionAndDiffraction { set { AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_UseForReflectionAndDiffraction_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_UseForReflectionAndDiffraction_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// [\ref Experimental] When set to false (default), the intersection of the geometry instance with any portal bounding box is subtracted from the geometry. In effect, an opening is created at the portal location through which sound can pass.
|
||||
/// When set to true, portals cannot create openings in the geometry instance. Enable this to allow the geometry instance to be an obstacle to paths going into or through portal bounds.
|
||||
/// - \ref AK::SpatialAudio::SetPortal
|
||||
public bool BypassPortalSubtraction { set { AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_BypassPortalSubtraction_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_BypassPortalSubtraction_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// A solid geometry instance applies transmission loss once for each time a transmission path enters and exits its volume, using the max transmission loss between each hit surface. A non-solid geometry instance is one where each surface is infinitely thin, applying transmission loss at each surface. This option has no effect if the Transmission Operation is set to Max.
|
||||
public bool IsSolid { set { AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_IsSolid_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkGeometryInstanceParams_IsSolid_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b573425f599e5440b863953939c0b9a
|
||||
@@ -0,0 +1,48 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Bit field of various locations in the audio processing loop where the game can be called back.
|
||||
public enum AkGlobalCallbackLocation {
|
||||
/// Right after successful registration of callback/plugin. Typically used by plugins along with AkGlobalCallbackLocation_Term for allocating memory for the lifetime of the sound engine.
|
||||
AkGlobalCallbackLocation_Register = (1 << 0),
|
||||
/// Start of audio processing. The number of frames about to be rendered depends on the sink/end-point and can be zero.
|
||||
AkGlobalCallbackLocation_Begin = (1 << 1),
|
||||
/// Start of frame rendering, before having processed game messages.
|
||||
AkGlobalCallbackLocation_PreProcessMessageQueueForRender = (1 << 2),
|
||||
/// After one or more messages have been processed, but before updating game object and listener positions internally.
|
||||
AkGlobalCallbackLocation_PostMessagesProcessed = (1 << 3),
|
||||
/// Start of frame rendering, after having processed game messages.
|
||||
AkGlobalCallbackLocation_BeginRender = (1 << 4),
|
||||
/// End of frame rendering.
|
||||
AkGlobalCallbackLocation_EndRender = (1 << 5),
|
||||
/// End of audio processing.
|
||||
AkGlobalCallbackLocation_End = (1 << 6),
|
||||
/// Sound engine termination.
|
||||
AkGlobalCallbackLocation_Term = (1 << 7),
|
||||
/// Send monitor data
|
||||
AkGlobalCallbackLocation_Monitor = (1 << 8),
|
||||
/// Send monitor data connection to recap.
|
||||
AkGlobalCallbackLocation_MonitorRecap = (1 << 9),
|
||||
/// Sound engine initialization.
|
||||
AkGlobalCallbackLocation_Init = (1 << 10),
|
||||
/// Sound engine suspension through \ref AK::SoundEngine::Suspend
|
||||
AkGlobalCallbackLocation_Suspend = (1 << 11),
|
||||
/// Sound engine awakening through \ref AK::SoundEngine::WakeupFromSuspend
|
||||
AkGlobalCallbackLocation_WakeupFromSuspend = (1 << 12),
|
||||
/// Wwise Profiler has connected to the game.
|
||||
AkGlobalCallbackLocation_ProfilerConnect = (1 << 13),
|
||||
/// Wwise Profiler has disconnected from the game.
|
||||
AkGlobalCallbackLocation_ProfilerDisconnect = (1 << 14),
|
||||
/// Total number of global callback locations.
|
||||
AkGlobalCallbackLocation_Num = 15
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c2e4f50f09a1400478ced53d3efb7f05
|
||||
@@ -0,0 +1,20 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Game sync group type
|
||||
public enum AkGroupType {
|
||||
/// Type switch
|
||||
AkGroupType_Switch = 0,
|
||||
/// Type state
|
||||
AkGroupType_State = 1
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4451f66506ba9e047bdaf6b1749729e3
|
||||
@@ -0,0 +1,88 @@
|
||||
#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.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
public class AkImageSourceParams : global::System.IDisposable {
|
||||
private global::System.IntPtr swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AkImageSourceParams(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
internal static global::System.IntPtr getCPtr(AkImageSourceParams obj) {
|
||||
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
|
||||
}
|
||||
|
||||
internal virtual void setCPtr(global::System.IntPtr cPtr) {
|
||||
Dispose();
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
~AkImageSourceParams() {
|
||||
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_AkImageSourceParams(swigCPtr);
|
||||
}
|
||||
swigCPtr = global::System.IntPtr.Zero;
|
||||
}
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public AkImageSourceParams() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkImageSourceParams__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public AkImageSourceParams(AkVector64 in_sourcePosition, float in_fDistanceScalingFactor, float in_fLevel) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkImageSourceParams__SWIG_1(in_sourcePosition, in_fDistanceScalingFactor, in_fLevel), true) {
|
||||
}
|
||||
|
||||
/// Image source position, relative to the world.
|
||||
public AkVector64 sourcePosition { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_sourcePosition_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_sourcePosition_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Image source distance scaling. This number effectively scales the sourcePosition vector with respect to the listener and, consequently, scales distance and preserves orientation.
|
||||
public float fDistanceScalingFactor { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fDistanceScalingFactor_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fDistanceScalingFactor_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Game-controlled level for this source, linear.
|
||||
public float fLevel { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fLevel_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fLevel_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Diffraction amount, normalized to the range [0,1].
|
||||
public float fDiffraction { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fDiffraction_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fDiffraction_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// Portal occlusion amount, in the range [0,1].
|
||||
public float fOcclusion { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fOcclusion_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_fOcclusion_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// If there is a shadow zone diffraction just after the emitter in the reflection path, indicates the number of diffraction edges, otherwise 0 if no diffraction.
|
||||
public byte uDiffractionEmitterSide { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionEmitterSide_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionEmitterSide_get(swigCPtr); }
|
||||
}
|
||||
|
||||
/// If there is a shadow zone diffraction before reaching the listener in the reflection path, indicates the number of diffraction edges, otherwise 0 if no diffraction.
|
||||
public byte uDiffractionListenerSide { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionListenerSide_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionListenerSide_get(swigCPtr); }
|
||||
}
|
||||
|
||||
}
|
||||
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b8a0a02fc17ede45a82de42d37d3061
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user