diff --git a/Assets/MainMenuMusic.cs b/Assets/MainMenuMusic.cs index 6f63a87c2..c09ed45dc 100644 --- a/Assets/MainMenuMusic.cs +++ b/Assets/MainMenuMusic.cs @@ -8,7 +8,7 @@ public class MainMenuMusic : MonoBehaviour // Start is called before the first frame update void Start() { - AkSoundEngine.RegisterGameObj(gameObject); - ActionGameManager.PlayMusic(ActionGameManager.SoundBanksInfo.GetSoundBank(MusicSoundbankName).Id, gameObject); + // TODO: SFX: Menu Music + //ActionGameManager.PlayMusic(ActionGameManager.SoundBanksInfo.GetSoundBank(MusicSoundbankName).Id, gameObject); } } diff --git a/Assets/Materials/Brushes/Main Menu Ambient Fog Tint.mat b/Assets/Materials/Brushes/Main Menu Ambient Fog Tint.mat index 2b6e8b260..650b446ca 100644 --- a/Assets/Materials/Brushes/Main Menu Ambient Fog Tint.mat +++ b/Assets/Materials/Brushes/Main Menu Ambient Fog Tint.mat @@ -58,7 +58,7 @@ Material: m_Floats: - _BumpScale: 1 - _Cutoff: 1 - - _Depth: 1 + - _Depth: 0.1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 6.2832 @@ -78,6 +78,6 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0.17647058, g: 0.5897114, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/Materials/Brushes/Main Menu Sun Fog Tint.mat b/Assets/Materials/Brushes/Main Menu Sun Fog Tint.mat index 903a75e74..1c64894bb 100644 --- a/Assets/Materials/Brushes/Main Menu Sun Fog Tint.mat +++ b/Assets/Materials/Brushes/Main Menu Sun Fog Tint.mat @@ -58,7 +58,7 @@ Material: m_Floats: - _BumpScale: 1 - _Cutoff: 1 - - _Depth: 2.9 + - _Depth: 2 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 6.2832 @@ -70,7 +70,7 @@ Material: - _OcclusionStrength: 1 - _Parallax: 0.02 - _Phase: 0 - - _Power: 0.5 + - _Power: 2 - _SinePower: 1.25 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 @@ -78,6 +78,6 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 0.60475, b: 0.411, a: 1} + - _Color: {r: 1, g: 0.39424297, b: 0.09900004, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/Materials/Brushes/Sector Patch Depth Large.mat b/Assets/Materials/Brushes/Sector Patch Depth Large.mat index e931eed11..ad90104b3 100644 --- a/Assets/Materials/Brushes/Sector Patch Depth Large.mat +++ b/Assets/Materials/Brushes/Sector Patch Depth Large.mat @@ -57,9 +57,9 @@ Material: m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - - _Constant: 13 + - _Constant: -2.3 - _Cutoff: 0.5 - - _Depth: -30 + - _Depth: 10 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 0.005 diff --git a/Assets/Materials/Brushes/Sector Patch Depth Small.mat b/Assets/Materials/Brushes/Sector Patch Depth Small.mat index 93182c17c..779a96e3e 100644 --- a/Assets/Materials/Brushes/Sector Patch Depth Small.mat +++ b/Assets/Materials/Brushes/Sector Patch Depth Small.mat @@ -57,9 +57,9 @@ Material: m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - - _Constant: 9 + - _Constant: -2.2 - _Cutoff: 0.5 - - _Depth: -30 + - _Depth: 11.4 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 0.01 diff --git a/Assets/Materials/Brushes/Wormhole Gravity.mat b/Assets/Materials/Brushes/Wormhole Gravity.mat index cab097589..afce9c26c 100644 --- a/Assets/Materials/Brushes/Wormhole Gravity.mat +++ b/Assets/Materials/Brushes/Wormhole Gravity.mat @@ -57,7 +57,7 @@ Material: m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - - _Cutoff: 0.1 + - _Cutoff: 0.153 - _Depth: 2000 - _DetailNormalMapScale: 1 - _DstBlend: 0 diff --git a/Assets/Materials/Brushes/Wormhole Lighting.mat b/Assets/Materials/Brushes/Wormhole Lighting.mat index 20cc7eff4..2072b00bb 100644 --- a/Assets/Materials/Brushes/Wormhole Lighting.mat +++ b/Assets/Materials/Brushes/Wormhole Lighting.mat @@ -58,7 +58,7 @@ Material: m_Floats: - _BumpScale: 1 - _Cutoff: 1 - - _Depth: 3 + - _Depth: 8 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 6.2832 @@ -70,7 +70,7 @@ Material: - _OcclusionStrength: 1 - _Parallax: 0.02 - _Phase: 0 - - _Power: 12 + - _Power: 124.97 - _SinePower: 1.25 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 @@ -78,6 +78,6 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 0.53900003, b: 0.86855793, a: 1} + - _Color: {r: 1, g: 0.24800003, b: 0.7833221, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/Materials/Brushes/Wormhole Waves.mat b/Assets/Materials/Brushes/Wormhole Waves.mat index cbe3e86e7..7902c5c36 100644 --- a/Assets/Materials/Brushes/Wormhole Waves.mat +++ b/Assets/Materials/Brushes/Wormhole Waves.mat @@ -58,7 +58,7 @@ Material: m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - - _Depth: 24 + - _Depth: 33.9 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 2 @@ -74,7 +74,7 @@ Material: - _SinePower: 1.25 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - - _Speed: 10 + - _Speed: 15 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 diff --git a/Assets/Materials/UI/Map Gravity Lines.mat b/Assets/Materials/UI/Map Gravity Lines.mat index 749d876be..10f1f0a79 100644 --- a/Assets/Materials/UI/Map Gravity Lines.mat +++ b/Assets/Materials/UI/Map Gravity Lines.mat @@ -86,7 +86,7 @@ Material: - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - - _Scale: 0.5 + - _Scale: 4.8001804 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 diff --git a/Assets/Plugins/PDTAA.meta b/Assets/Plugins/AtmosphereScattering.meta similarity index 77% rename from Assets/Plugins/PDTAA.meta rename to Assets/Plugins/AtmosphereScattering.meta index 51ed0aa4a..e278c94ff 100644 --- a/Assets/Plugins/PDTAA.meta +++ b/Assets/Plugins/AtmosphereScattering.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 427395ce555f40649b294dbc76cd84b4 +guid: 4a05bb7e252ad90438c47651bf01d639 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Plugins/PDTAA/Textures.meta b/Assets/Plugins/AtmosphereScattering/Example.meta similarity index 77% rename from Assets/Plugins/PDTAA/Textures.meta rename to Assets/Plugins/AtmosphereScattering/Example.meta index 109bfcb37..f57919432 100644 --- a/Assets/Plugins/PDTAA/Textures.meta +++ b/Assets/Plugins/AtmosphereScattering/Example.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d20256cc7e82c41409096d0f7337479b +guid: 1160bd9542584c24f9b140d6356fd375 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Plugins/AtmosphereScattering/Example/New Scene.unity b/Assets/Plugins/AtmosphereScattering/Example/New Scene.unity new file mode 100644 index 000000000..454fbabb1 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Example/New Scene.unity @@ -0,0 +1,544 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 1147614136} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.056427088, g: 0.12670922, b: 0.296874, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 9 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &7102893 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 7102896} + - component: {fileID: 7102895} + - component: {fileID: 7102894} + - component: {fileID: 7102898} + - component: {fileID: 7102897} + - component: {fileID: 7102899} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &7102894 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 +--- !u!20 &7102895 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 10000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &7102896 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -172.5} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &7102897 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff26db721962cdf4a8edcdfa9a767d2a, type: 3} + m_Name: + m_EditorClassIdentifier: + profile: {fileID: 0} +--- !u!114 &7102898 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45d85419f2e23c540999c1a1fee6ed90, type: 3} + m_Name: + m_EditorClassIdentifier: + distance: 10 + center: {x: 0, y: 0, z: 0} + scale: 1 + distanceSpeed: 0.1 + rotationSpeed: 0.1 +--- !u!114 &7102899 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b535dacf702e20c4b9ef528e42081835, type: 3} + m_Name: + m_EditorClassIdentifier: + volumeTexSize: {x: 128, y: 128, z: 32} +--- !u!1 &74323546 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 74323548} + - component: {fileID: 74323547} + - component: {fileID: 74323549} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &74323547 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 74323546} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &74323548 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 74323546} + m_LocalRotation: {x: -0.03515344, y: -0.86159647, z: 0.50277907, w: 0.060241405} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 59.559002, y: -164.05801, z: 13.835001} +--- !u!114 &74323549 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 74323546} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 325c269146dc2ac49b190f730a961573, type: 3} + m_Name: + m_EditorClassIdentifier: + basePosition: {x: 0, y: 50, z: 0} +--- !u!1 &297555710 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 297555712} + - component: {fileID: 297555711} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &297555711 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 297555710} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e16dd2ddbdfa7ea4f87a3cfb032ffd0f, type: 3} + m_Name: + m_EditorClassIdentifier: + progressiveUpdate: 1 + computeShader: {fileID: 7200000, guid: 2d4396a54b390d742b84d4bb4a122e54, type: 3} + outputDebug: 0 + lutConfig: + transmittanceSize: {x: 256, y: 128} + scatteringSize: {x: 32, y: 128, z: 32} + irradianceSize: {x: 64, y: 32} + cameraVolumeSize: {x: 128, y: 128, z: 32} + atmosphereConfig: {fileID: 11400000, guid: 8e73e89daf00b8447b2410427953df25, type: 2} +--- !u!4 &297555712 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 297555710} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 2.736024, y: 2.8123064, z: -0.70711327} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!21 &1147614136 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Skybox/AtmosphereScatteringPrecomputed + m_Shader: {fileID: 4800000, guid: e2088dd19a71d1244976cd0de1ff68a7, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: [] + m_Colors: [] +--- !u!1 &1729729729 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 1996505793} + serializedVersion: 5 + m_Component: + - component: {fileID: 1729729730} + m_Layer: 0 + m_Name: Missing Prefab + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1729729730 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 1996505793} + m_GameObject: {fileID: 1729729729} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1764631964 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1764631968} + - component: {fileID: 1764631967} + - component: {fileID: 1764631966} + - component: {fileID: 1764631965} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1764631965 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_Materials: + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1764631966 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1764631967 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1764631968 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -969, y: 1, z: 7922} + m_LocalScale: {x: 2000, y: 2000, z: 2000} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &1996505793 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalScale.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalScale.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 474104, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + propertyPath: m_LocalScale.z + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: d5335c8f26bfe754b960f5d390edcb98, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta b/Assets/Plugins/AtmosphereScattering/Example/New Scene.unity.meta similarity index 74% rename from Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta rename to Assets/Plugins/AtmosphereScattering/Example/New Scene.unity.meta index f565d2cf5..73121f5f7 100644 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta +++ b/Assets/Plugins/AtmosphereScattering/Example/New Scene.unity.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 425cca07b3c798944847d3d20dfa7ecb +guid: dacf033ff4744d446a53da2400fe27bc DefaultImporter: externalObjects: {} userData: diff --git a/Assets/Wwise.meta b/Assets/Plugins/AtmosphereScattering/Scripts.meta similarity index 77% rename from Assets/Wwise.meta rename to Assets/Plugins/AtmosphereScattering/Scripts.meta index c9ffe63ce..96633224e 100644 --- a/Assets/Wwise.meta +++ b/Assets/Plugins/AtmosphereScattering/Scripts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f6bd1e7de98f4ec42bd5f8801681e5e9 +guid: 11b97a229abf2df46a16432582b9f95d folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/AerialPerspective.cs b/Assets/Plugins/AtmosphereScattering/Scripts/AerialPerspective.cs new file mode 100644 index 000000000..bdfe9da23 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AerialPerspective.cs @@ -0,0 +1,92 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.AtmosphereScattering { + + public class AerialPerspective : MonoBehaviour { + private new Camera camera; + private void Start() { + camera = GetComponent(); + if ((camera.depthTextureMode & DepthTextureMode.Depth) == 0) + camera.depthTextureMode |= DepthTextureMode.Depth; + material = new Material(Shader.Find("Hidden/Yangrc/AerialPerspective")); + } + + private Material material; + + [ImageEffectOpaque] + private void OnRenderImage(RenderTexture source, RenderTexture destination) { + material.SetVector("_ProjectionExtents", camera.GetProjectionExtents()); + Graphics.Blit(source, destination, material, 0); + } + + private void Update() { + //Control sun intensity. + } + + private RenderTexture transmittanceVolume; + private RenderTexture scatteringVolume; + public Vector3Int volumeTexSize = new Vector3Int(128, 128, 32); + + Vector3[] _FrustumCorners = new Vector3[4]; + //Generate camera volume texture. + private void OnPreRender() { + if (RenderSettings.sun == null) + return; + // get four corners of camera frustom in world space + // bottom left + _FrustumCorners[0] = camera.ViewportToWorldPoint(new Vector3(0, 0, camera.farClipPlane)); + // bottom right + _FrustumCorners[1] = camera.ViewportToWorldPoint(new Vector3(1, 0, camera.farClipPlane)); + // top left + _FrustumCorners[2] = camera.ViewportToWorldPoint(new Vector3(0, 1, camera.farClipPlane)); + // top right + _FrustumCorners[3] = camera.ViewportToWorldPoint(new Vector3(1, 1, camera.farClipPlane)); + + //Render camera volume texture. + var projection_matrix = GL.GetGPUProjectionMatrix(camera.projectionMatrix, false); + AtmLutHelper.CreateCameraAlignedVolumeTexture(ref transmittanceVolume, ref scatteringVolume, volumeTexSize); + AtmLutHelper.UpdateCameraVolume( + transmittanceVolume, + scatteringVolume, + volumeTexSize, + transform.position, + -RenderSettings.sun.transform.forward, + _FrustumCorners, + new Vector2(camera.nearClipPlane, camera.farClipPlane) + ); + + //Set it. + Shader.SetGlobalTexture("_CameraVolumeTransmittance", transmittanceVolume); + Shader.SetGlobalTexture("_CameraVolumeScattering", scatteringVolume); + var vp_matrix = projection_matrix * camera.worldToCameraMatrix; + Shader.SetGlobalMatrix("_Camera_VP", vp_matrix); + } + + private void OnDisable() { + Shader.SetGlobalTexture("_CameraVolumeTransmittance", null); + Shader.SetGlobalTexture("_CameraVolumeScattering", null); + } + } + + public static class CameraExtension { + public static Vector4 GetProjectionExtents(this Camera camera, float texelOffsetX, float texelOffsetY) { + if (camera == null) + return Vector4.zero; + + float oneExtentY = camera.orthographic ? camera.orthographicSize : Mathf.Tan(0.5f * Mathf.Deg2Rad * camera.fieldOfView); + float oneExtentX = oneExtentY * camera.aspect; + float texelSizeX = oneExtentX / (0.5f * camera.pixelWidth); + float texelSizeY = oneExtentY / (0.5f * camera.pixelHeight); + float oneJitterX = texelSizeX * texelOffsetX; + float oneJitterY = texelSizeY * texelOffsetY; + + return new Vector4(oneExtentX, oneExtentY, oneJitterX, oneJitterY);// xy = frustum extents at distance 1, zw = jitter at distance 1 + } + + public static Vector4 GetProjectionExtents(this Camera camera) { + return GetProjectionExtents(camera, 0.0f, 0.0f); + } + } +} \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/AkPluginActivator.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/AerialPerspective.cs.meta similarity index 83% rename from Assets/Wwise/API/Editor/AkPluginActivator.cs.meta rename to Assets/Plugins/AtmosphereScattering/Scripts/AerialPerspective.cs.meta index 24b1e3d33..ff5b69655 100644 --- a/Assets/Wwise/API/Editor/AkPluginActivator.cs.meta +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AerialPerspective.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7d727add5552d4f429e0497a8d6f4cb3 +guid: b535dacf702e20c4b9ef528e42081835 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/AtmLutHelper.cs b/Assets/Plugins/AtmosphereScattering/Scripts/AtmLutHelper.cs new file mode 100644 index 000000000..4d2b51de1 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AtmLutHelper.cs @@ -0,0 +1,568 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using UnityEngine; +namespace Yangrc.AtmosphereScattering { + + public static class HighResolutionDateTime { + public static bool IsAvailable { get; private set; } + + [DllImport("Kernel32.dll", CallingConvention = CallingConvention.Winapi)] + private static extern void GetSystemTimePreciseAsFileTime(out long filetime); + + public static DateTime UtcNow { + get { + if (!IsAvailable) { + throw new InvalidOperationException( + "High resolution clock isn't available."); + } + + long filetime; + GetSystemTimePreciseAsFileTime(out filetime); + + return DateTime.FromFileTimeUtc(filetime); + } + } + + static HighResolutionDateTime() { + try { + long filetime; + GetSystemTimePreciseAsFileTime(out filetime); + IsAvailable = true; + } catch (EntryPointNotFoundException) { + // Not running Windows 8 or higher. + IsAvailable = false; + } + } + } + + public class ProgressiveLutUpdater { + + public void Cleanup() { + var allTextures = new List { + this.groundIrradianceCombine, + this.multiScatteringCombine, + this.multiScatteringDensity, + + this.singleMie, + this.singleRayleigh, + this.transmittance, + }; + allTextures.AddRange( + this.groundIrradianceTemp); + allTextures.AddRange( + this.multiScatteringTemp); + + for (int i = 0; i < allTextures.Count; i++) { + if (allTextures[i] != null && allTextures[i].IsCreated()) + allTextures[i].Release(); + } + } + + public interface ITimeLogger { + void Log(string itemName); + } + + public AtmosphereConfig atmConfigToUse { get; set; } + public AtmosphereConfig atmConfigUsedToUpdate { get; private set; } + public AtmLutGenerateConfig lutConfig { get; set; } + ITimeLogger logger; + public ProgressiveLutUpdater(AtmosphereConfig atmConfig, AtmLutGenerateConfig lutConfig, ITimeLogger logger = null) { + this.atmConfigToUse = atmConfig; + this.lutConfig = lutConfig; + this.logger = logger; + working = false; + atmConfigUsedToUpdate = ScriptableObject.CreateInstance(); + } + public const int k_MultiScatteringOrderDepth = 4; + + public RenderTexture[] groundIrradianceTemp = new RenderTexture[k_MultiScatteringOrderDepth + 1]; + public RenderTexture multiScatteringDensity; + public RenderTexture[] multiScatteringTemp = new RenderTexture[k_MultiScatteringOrderDepth + 1]; + + public RenderTexture transmittance; + public RenderTexture singleRayleigh, singleMie; + public RenderTexture multiScatteringCombine, groundIrradianceCombine; + internal string name; + + public bool working { get; private set; } + + private void Log(string t) { + if (this.logger != null) + logger.Log(t); + } + + public IEnumerator UpdateCoroutine() { + working = true; + atmConfigUsedToUpdate.CopyDataFrom(atmConfigToUse); + AtmLutHelper.CreateTransmittanceTexture(ref transmittance, lutConfig); + using (new ConvenientStopwatch("Complete Lut update timecost", Log)) { + //Update transmittance. + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + using (new ConvenientStopwatch("Transmittance ", Log)) { + AtmLutHelper.UpdateTransmittance( + transmittance, + lutConfig, + 0.0f, + 1.0f + ); + yield return null; + } + + //Update GroundDirect + using (new ConvenientStopwatch("GroundDirect", Log)) { + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + AtmLutHelper.CreateGroundIrradianceTexture(ref groundIrradianceTemp[0], 0, lutConfig); + AtmLutHelper.UpdateGroundDirectIrradiance(groundIrradianceTemp[0], transmittance, lutConfig, 0.0f, 1.0f); + yield return null; + } + + //Update SingleRayleigh/Mie + using (new ConvenientStopwatch("Single Rayleigh/Mie", Log)) { + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + AtmLutHelper.CreateSingleRayleighMieTexture(ref singleRayleigh, ref singleMie, lutConfig); + AtmLutHelper.UpdateSingleRayleighMie(singleRayleigh, singleMie, transmittance, lutConfig); + yield return null; + } + + AtmLutHelper.CreateMultiScatteringTexture(ref multiScatteringTemp[1], 1, lutConfig); //This texture is not "Meaningful"(Since the 1-st order should be SingleRayleigh and SingleMie, and this tex won't be used in actual computation either), but we need to make an empty one to avoid shader error. + + using (new ConvenientStopwatch("GroundIrradiance 1", Log)) { + //Ground irradiance of 1-st order scattering. + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + AtmLutHelper.CreateGroundIrradianceTexture(ref groundIrradianceTemp[1], 1, lutConfig); + AtmLutHelper.UpdateGroundIrradiance(groundIrradianceTemp[1], singleRayleigh, singleMie, multiScatteringTemp[1], 1, lutConfig, 0.0f, 1.0f); + yield return null; + } + + //Real game start. + AtmLutHelper.CreateMultiScatteringDensityTexture(ref multiScatteringDensity, lutConfig); + + for (int i = 2; i <= k_MultiScatteringOrderDepth; i++) { + using (new ConvenientStopwatch("Multi Scattering Density" + i, Log)) { + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + AtmLutHelper.UpdateMultiScatteringDensity(multiScatteringDensity, transmittance, singleRayleigh, singleMie, multiScatteringTemp[i - 1], groundIrradianceTemp[i - 2], i, lutConfig); + yield return null; + } + + AtmLutHelper.CreateGroundIrradianceTexture(ref groundIrradianceTemp[i], i, lutConfig); + using (new ConvenientStopwatch("Ground Irradiance" + i, Log)) { + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + AtmLutHelper.UpdateGroundIrradiance(groundIrradianceTemp[i], singleRayleigh, singleMie, multiScatteringTemp[i - 1], i - 1, lutConfig); + yield return null; + } + + AtmLutHelper.CreateMultiScatteringTexture(ref multiScatteringTemp[i], i, lutConfig); + using (new ConvenientStopwatch("Multi Scattering " + i, Log)) { + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + AtmLutHelper.UpdateMultiScatteringCombineDensity(multiScatteringTemp[i], transmittance, multiScatteringDensity, lutConfig); + yield return null; + } + } + + //Combine our multiscattering texture. + AtmLutHelper.CreateFinalCombinedTexture(ref multiScatteringCombine, ref groundIrradianceCombine, lutConfig); + AtmLutHelper.ClearFinalCombinedMultiScatter(multiScatteringCombine, lutConfig); + AtmLutHelper.ClearFinalCombinedIrradiance(groundIrradianceCombine, lutConfig); + + AtmLutHelper.ApplyComputeShaderParams(lutConfig, atmConfigUsedToUpdate); + for (int i = 2; i <= k_MultiScatteringOrderDepth; i++) { + AtmLutHelper.UpdateFinalCombinedMultiScatter(multiScatteringCombine, multiScatteringTemp[i], lutConfig); + } + + for (int i = 1; i <= k_MultiScatteringOrderDepth; i++) { + AtmLutHelper.UpdateFinalCombinedIrradiance(groundIrradianceCombine, groundIrradianceTemp[i], lutConfig); + } + } + //All calculations are done. + + /* DON"T RELEASE TEMP TEXTURES HERE, IT WILL CAUSE GRAPHICS GLITCH(FLASHING) WHEN RENDERING SKYBOX. I DON'T KNOW WHY.(2017.4.11f1) */ + /* AND THAT GLITCH COST ME 4 HOURS TO FIND OUT, THANK YOU UNITY */ + /* I guess that after combine dispatch call, the process isn't finished immediately, if we release the textures right now, it will blow up. */ + /* but I tried to wait for a few frame(yield return null), still doesn't work. */ + ////Release all temp textures. They won't be used in the future. + //for (int i = 0; i < groundIrradianceTemp.Length; i++) { + // if (groundIrradianceTemp[i] != null) { + // groundIrradianceTemp[i].Release(); + // groundIrradianceTemp[i] = null; + // } + //} + //for (int i = 0; i < multiScatteringTemp.Length; i++) { + // if (multiScatteringTemp[i] != null) { + // multiScatteringTemp[i].Release(); + // multiScatteringTemp[i] = null; + // } + //} + + //Done! + working = false; + yield break; + } + } + + [System.Serializable] + public class AtmLutGenerateConfig { + public Vector2Int transmittanceSize = new Vector2Int(512, 512); + public Vector3Int scatteringSize = new Vector3Int(32, 32, 128); + public Vector2Int irradianceSize = new Vector2Int(32, 32); + public Vector3Int cameraVolumeSize = new Vector3Int(128, 128, 32); + private static class Keys { + private static readonly int transmittanceSize = Shader.PropertyToID("TransmittanceSize"); + private static readonly int scatteringSize = Shader.PropertyToID("ScatteringSize"); + private static readonly int irradianceSize = Shader.PropertyToID("IrradianceSize"); + } + public void Apply(ComputeShader shader) { + shader.SetInts("TransmittanceSize", transmittanceSize.x, transmittanceSize.y); + shader.SetInts("ScatteringSize", scatteringSize.x, scatteringSize.y, scatteringSize.z); + shader.SetInts("IrradianceSize", irradianceSize.x, irradianceSize.y); + } + } + + public class ConvenientStopwatch : System.IDisposable { + public ConvenientStopwatch(string name, System.Action Log = null) { + this.name = name; + start = HighResolutionDateTime.UtcNow; + this.Log = Log; + } + System.Action Log; + DateTime start; + string name; + public void Dispose() { + var timeSpan = HighResolutionDateTime.UtcNow - start; + if (Log != null) + Log(name + ":" + timeSpan.TotalMilliseconds); + } + } + + public static class AtmLutHelper { + + public static void Init(ComputeShader shader) { + if (computeShader == null) { + AtmLutHelper.computeShader = shader; + SetupKernals(computeShader); + } + } + + public static ComputeShader computeShader; + private static int CalculateTransmittanceLUT; + private static int CalculateSingleScatteringLUT; + private static int CalculateGroundDirectIrradianceLUT; + private static int CalculateGroundIndirectIrradianceLUT; + private static int CalculateMultipleScatteringDensityLUT; + private static int CalculateMultipleScatteringLUT; + private static int SumGroundIrradianceLUT; + private static int SumMultipleScatteringLUT; + private static int ClearCombineGroundIrradianceLUT; + private static int ClearCombineMultipleScatteringLUT; + + private static int CalculateCameraScatteringVolume; + + /// + /// These functions help do all the "SetXXX" stuff. + /// So we can focus on how to generate Luts. + /// + + private static void SetupKernals(ComputeShader computeShader) { + CalculateTransmittanceLUT = computeShader.FindKernel("CalculateTransmittanceLUT"); + CalculateSingleScatteringLUT = computeShader.FindKernel("CalculateSingleScatteringLUT"); + CalculateGroundDirectIrradianceLUT = computeShader.FindKernel("CalculateGroundDirectIrradianceLUT"); + CalculateGroundIndirectIrradianceLUT = computeShader.FindKernel("CalculateGroundIndirectIrradianceLUT"); + CalculateMultipleScatteringDensityLUT = computeShader.FindKernel("CalculateMultipleScatteringDensityLUT"); + CalculateMultipleScatteringLUT = computeShader.FindKernel("CalculateMultipleScatteringLUT"); + SumGroundIrradianceLUT = computeShader.FindKernel("CombineGroundIrradianceLUT"); + SumMultipleScatteringLUT = computeShader.FindKernel("CombineMultipleScatteringLUT"); + ClearCombineGroundIrradianceLUT = computeShader.FindKernel("ClearCombineGroundIrradianceLUT"); + ClearCombineMultipleScatteringLUT = computeShader.FindKernel("ClearCombineMultipleScatteringLUT"); + + CalculateCameraScatteringVolume = computeShader.FindKernel("CalculateCameraScatteringVolume"); + } + + public static void ApplyComputeShaderParams(AtmLutGenerateConfig lutConfig, AtmosphereConfig atmConfig) { + lutConfig.Apply(computeShader); + atmConfig.Apply(computeShader); + } + + private static void CreateLUT(ref RenderTexture result, string name, int width, int height, int zsize, RenderTextureFormat format, bool forceReplace = false) { + if (result != null) { + if (!forceReplace && result.name == name && result.width == width && result.height == height && result.volumeDepth == zsize && result.format == format) + return; + result.Release(); + } + result = new RenderTexture(width, height, 0, format, RenderTextureReadWrite.Linear); + result.name = name; + result.enableRandomWrite = true; + if (zsize > 0) { + result.dimension = UnityEngine.Rendering.TextureDimension.Tex3D; + result.volumeDepth = zsize; + } else { + result.dimension = UnityEngine.Rendering.TextureDimension.Tex2D; + } + result.filterMode = FilterMode.Bilinear; + result.wrapMode = TextureWrapMode.Clamp; + result.Create(); + } + + private static void NormalizeProgressPointer(float start, float end, int length, out int startInt, out int endInt) { + if (end < start) { + var t = start; + start = end; + end = t; + } + + start = Mathf.Clamp01(start); + end = Mathf.Clamp01(end); + startInt = Mathf.RoundToInt(length * start); + endInt = Mathf.RoundToInt(length * end); + } + + public static void CreateTransmittanceTexture( + ref RenderTexture target, + AtmLutGenerateConfig lutconfig) { + CreateLUT(ref target, "Transmittance", lutconfig.transmittanceSize.x, lutconfig.transmittanceSize.y, 0, RenderTextureFormat.ARGBFloat); + } + + public static void CreateSingleRayleighMieTexture(ref RenderTexture rayleigh, ref RenderTexture mie, AtmLutGenerateConfig lutconfig) { + CreateLUT(ref rayleigh, "SingleMie", lutconfig.scatteringSize.x, lutconfig.scatteringSize.y, lutconfig.scatteringSize.z, RenderTextureFormat.ARGBFloat); + CreateLUT(ref mie, "SingleRayleigh", lutconfig.scatteringSize.x, lutconfig.scatteringSize.y, lutconfig.scatteringSize.z, RenderTextureFormat.ARGBFloat); + } + + public static void CreateGroundIrradianceTexture(ref RenderTexture target, int order, AtmLutGenerateConfig lutconfig) { + CreateLUT(ref target, "Ground Irrdiance Order " + order, lutconfig.irradianceSize.x, lutconfig.irradianceSize.y, 0, RenderTextureFormat.ARGBFloat); + } + + public static void CreateMultiScatteringDensityTexture( + ref RenderTexture result, + AtmLutGenerateConfig lutConfig + ) { + CreateLUT(ref result, "MultiScatteringDensity", lutConfig.scatteringSize.x, lutConfig.scatteringSize.y, lutConfig.scatteringSize.z, RenderTextureFormat.ARGBFloat); + } + + public static void CreateMultiScatteringTexture( + ref RenderTexture result, + int order, + AtmLutGenerateConfig lutConfig + ) { + CreateLUT(ref result, "MultiScattering " + order, lutConfig.scatteringSize.x, lutConfig.scatteringSize.y, lutConfig.scatteringSize.z, RenderTextureFormat.ARGBFloat); + } + + public static void CreateFinalCombinedTexture( + ref RenderTexture MultipleScatteringLUT, + ref RenderTexture IrradianceLUT, + AtmLutGenerateConfig lutConfig + ) { + CreateLUT(ref MultipleScatteringLUT, "Multiple Scattering Combined Final", lutConfig.scatteringSize.x, lutConfig.scatteringSize.y, lutConfig.scatteringSize.z, RenderTextureFormat.ARGBFloat, true); + CreateLUT(ref IrradianceLUT, "Irradiance Combined Final", lutConfig.irradianceSize.x, lutConfig.irradianceSize.y, 0, RenderTextureFormat.ARGBFloat, true); + } + + public static void CreateCameraAlignedVolumeTexture( + ref RenderTexture transmittance, + ref RenderTexture scattering, + Vector3Int volumeTexSize + ) { + CreateLUT(ref transmittance, + "CameraVolumeTransmittance", + volumeTexSize.x, + volumeTexSize.y, + volumeTexSize.z, + RenderTextureFormat.ARGBFloat, + false); + CreateLUT(ref scattering, + "CameraVolumeScattering", + volumeTexSize.x, + volumeTexSize.y, + volumeTexSize.z, + RenderTextureFormat.ARGBFloat, + false); + } + + public static void UpdateTransmittance( + RenderTexture target, + AtmLutGenerateConfig lutConfig, + float start = 0.0f, + float end = 1.0f + ) { + int xStart, xEnd; + NormalizeProgressPointer(start, end, lutConfig.transmittanceSize.x / 32, out xStart, out xEnd); + computeShader.SetInts("_ThreadOffset", xStart, 0, 0); + computeShader.SetTexture(CalculateTransmittanceLUT, "TransmittanceLUTResult", target); + computeShader.Dispatch(CalculateTransmittanceLUT, xEnd - xStart, lutConfig.transmittanceSize.y / 32, 1); + } + + public static void UpdateSingleRayleighMie( + RenderTexture rayleightarget, + RenderTexture mietarget, + RenderTexture TransmittanceLUT, + AtmLutGenerateConfig lutConfig, + float start = 0.0f, + float end = 1.0f + ) { + + int xStart, xEnd; + NormalizeProgressPointer(start, end, lutConfig.scatteringSize.x / 8, out xStart, out xEnd); + computeShader.SetInts("_ThreadOffset", xStart, 0, 0); + + computeShader.SetTexture(CalculateSingleScatteringLUT, "TransmittanceLUT", TransmittanceLUT); + computeShader.SetTexture(CalculateSingleScatteringLUT, "SingleScatteringMieLUTResult", mietarget); + computeShader.SetTexture(CalculateSingleScatteringLUT, "SingleScatteringRayleighLUTResult", rayleightarget); + + computeShader.Dispatch(CalculateSingleScatteringLUT, xEnd - xStart, lutConfig.scatteringSize.y / 8, lutConfig.scatteringSize.z / 8); + } + + public static void UpdateGroundDirectIrradiance( + RenderTexture target, + RenderTexture TransmittanceLUT, + AtmLutGenerateConfig lutConfig, + float start = 0.0f, + float end = 1.0f + ) { + int xStart, xEnd; + NormalizeProgressPointer(start, end, lutConfig.irradianceSize.x / 32, out xStart, out xEnd); + computeShader.SetInts("_ThreadOffset", xStart, 0, 0); + + computeShader.SetTexture(CalculateGroundDirectIrradianceLUT, "TransmittanceLUT", TransmittanceLUT); + computeShader.SetTexture(CalculateGroundDirectIrradianceLUT, "GroundDirectIrradianceResult", target); + computeShader.Dispatch(CalculateGroundDirectIrradianceLUT, xEnd - xStart, lutConfig.irradianceSize.y / 32, 1); + } + + public static void UpdateGroundIrradiance( + RenderTexture target, + RenderTexture singleRayleigh, + RenderTexture singleMie, + RenderTexture multiScattering, + int scatteringOrder, + AtmLutGenerateConfig lutConfig, + float start = 0.0f, + float end = 1.0f + ) { + int xStart, xEnd; + NormalizeProgressPointer(start, end, lutConfig.irradianceSize.x / 32, out xStart, out xEnd); + computeShader.SetInts("_ThreadOffset", xStart, 0, 0); + + computeShader.SetInt("ScatteringOrder", scatteringOrder); + computeShader.SetTexture(CalculateGroundIndirectIrradianceLUT, "SingleRayleighScatteringLUT", singleRayleigh); + computeShader.SetTexture(CalculateGroundIndirectIrradianceLUT, "SingleMieScatteringLUT", singleMie); + computeShader.SetTexture(CalculateGroundIndirectIrradianceLUT, "MultipleScatteringLUT", multiScattering); + computeShader.SetTexture(CalculateGroundIndirectIrradianceLUT, "GroundIndirectIrradianceResult", target); + computeShader.Dispatch(CalculateGroundIndirectIrradianceLUT, xEnd - xStart, lutConfig.irradianceSize.y / 32, 1); + } + + public static void UpdateMultiScatteringDensity( + RenderTexture target, + RenderTexture TransmittanceLUT, + RenderTexture SingleScatteringLUTRayleigh, + RenderTexture SingleScatteringLUTMie, + RenderTexture MultiScatteringOfLastOrder, + RenderTexture GroundDirectIrradianceLUT, + int scatteringOrder, + AtmLutGenerateConfig lutConfig, + float start = 0.0f, + float end = 1.0f + ) { + int xStart, xEnd; + NormalizeProgressPointer(start, end, lutConfig.scatteringSize.x / 8, out xStart, out xEnd); + computeShader.SetInts("_ThreadOffset", xStart, 0, 0); + + computeShader.SetTexture(CalculateMultipleScatteringDensityLUT, "TransmittanceLUT", TransmittanceLUT); + computeShader.SetTexture(CalculateMultipleScatteringDensityLUT, "SingleRayleighScatteringLUT", SingleScatteringLUTRayleigh); + computeShader.SetTexture(CalculateMultipleScatteringDensityLUT, "SingleMieScatteringLUT", SingleScatteringLUTMie); + computeShader.SetTexture(CalculateMultipleScatteringDensityLUT, "IrradianceLUT", GroundDirectIrradianceLUT); + computeShader.SetTexture(CalculateMultipleScatteringDensityLUT, "MultipleScatteringLUT", MultiScatteringOfLastOrder); + computeShader.SetInt("ScatteringOrder", scatteringOrder); + computeShader.SetTexture(CalculateMultipleScatteringDensityLUT, "MultipleScatteringDensityResult", target); + computeShader.Dispatch(CalculateMultipleScatteringDensityLUT, xEnd - xStart, lutConfig.scatteringSize.y / 8, lutConfig.scatteringSize.z / 8); + } + + + public static void UpdateMultiScatteringCombineDensity( + RenderTexture target, + RenderTexture TransmittanceLUT, + RenderTexture multipleScatteringDensity, + AtmLutGenerateConfig lutConfig, + float start = 0.0f, + float end = 1.0f + ) { + int xStart, xEnd; + NormalizeProgressPointer(start, end, lutConfig.scatteringSize.x / 8, out xStart, out xEnd); + computeShader.SetInts("_ThreadOffset", xStart, 0, 0); + + computeShader.SetTexture(CalculateMultipleScatteringLUT, "TransmittanceLUT", TransmittanceLUT); + computeShader.SetTexture(CalculateMultipleScatteringLUT, "MultipleScatteringDensityLUT", multipleScatteringDensity); + computeShader.SetTexture(CalculateMultipleScatteringLUT, "MultipleScatteringResult", target); + computeShader.Dispatch(CalculateMultipleScatteringLUT, xEnd - xStart, lutConfig.scatteringSize.y / 8, lutConfig.scatteringSize.z / 8); + } + + public static void ClearFinalCombinedMultiScatter( + RenderTexture multiScatteringTarget, + AtmLutGenerateConfig lutConfig + ) { + computeShader.SetTexture(ClearCombineMultipleScatteringLUT, "ScatteringSumTarget", multiScatteringTarget); + computeShader.Dispatch(ClearCombineMultipleScatteringLUT, lutConfig.scatteringSize.x / 8, lutConfig.scatteringSize.y / 8, lutConfig.scatteringSize.z / 8); + } + + public static void UpdateFinalCombinedMultiScatter( + RenderTexture multiScatteringTarget, + RenderTexture multiScatteringOfSingleOrder, + AtmLutGenerateConfig lutConfig + ) { + computeShader.SetTexture(SumMultipleScatteringLUT, "ScatteringSumTarget", multiScatteringTarget); + computeShader.SetTexture(SumMultipleScatteringLUT, "ScatteringSumAdd", multiScatteringOfSingleOrder); + computeShader.Dispatch(SumMultipleScatteringLUT, lutConfig.scatteringSize.x / 8, lutConfig.scatteringSize.y / 8, lutConfig.scatteringSize.z / 8); + } + + public static void ClearFinalCombinedIrradiance( + RenderTexture target, + AtmLutGenerateConfig lutConfig + ) { + computeShader.SetTexture(ClearCombineGroundIrradianceLUT, "GroundIrradianceSumTarget", target); + computeShader.Dispatch(ClearCombineGroundIrradianceLUT, lutConfig.irradianceSize.x / 32, lutConfig.irradianceSize.y / 32, 1); + } + + public static void UpdateFinalCombinedIrradiance( + RenderTexture target, + RenderTexture irradianceOfSingleOrder, + AtmLutGenerateConfig lutConfig + ) { + computeShader.SetTexture(SumGroundIrradianceLUT, "GroundIrradianceSumTarget", target); + computeShader.SetTexture(SumGroundIrradianceLUT, "GroundIrradianceSumAdder", irradianceOfSingleOrder); + computeShader.Dispatch(SumGroundIrradianceLUT, lutConfig.irradianceSize.x / 32, lutConfig.irradianceSize.y / 32, 1); + } + + /// + /// Calculate camera frustrum aligned volume. + /// See frostbite slider for more. + /// + /// Target to store transmittance + /// Target to store scattering + /// Volume tex size, used to determine dispatch call params + /// Camera world pos + /// Sun direction(pointing towards sun) + /// four corners of camera frustrum(bl, br, tl, tr). We can't use projection matrix since we divide depth equal range, so we manually interpolate uvw using these corners and near/far plane + /// Near and far plane distance + public static void UpdateCameraVolume( + RenderTexture transmittanceTarget, + RenderTexture scatteringTarget, + Vector3Int volumeSize, + Vector3 cameraPos, + Vector3 sunDirection, + Vector3[] frustrumCorners, + Vector2 nearFarPlane + ) { + //Here we need calculated lerpable luts. This kinda break the code sepration. Any better idea? + AtmosphereScatteringLutManager.instance.UpdateComputeShaderValueForLerpedAp(computeShader, CalculateCameraScatteringVolume); + + computeShader.SetTexture(CalculateCameraScatteringVolume, "CameraVolumeTransmittance", transmittanceTarget); + computeShader.SetTexture(CalculateCameraScatteringVolume, "CameraVolumeScattering", scatteringTarget); + computeShader.SetVector("_CameraPos", cameraPos); + computeShader.SetVector("_SunDir", sunDirection); + + computeShader.SetVector("_CamBotLeft", frustrumCorners[0]); + computeShader.SetVector("_CamBotRight", frustrumCorners[1]); + computeShader.SetVector("_CamTopLeft", frustrumCorners[2]); + computeShader.SetVector("_CamTopRight", frustrumCorners[3]); + computeShader.SetVector("_NearFarPlane", nearFarPlane); + computeShader.Dispatch(CalculateCameraScatteringVolume, volumeSize.x / 8, volumeSize.y / 8, volumeSize.z / 8); + } + } + +} \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityBuilderBase.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/AtmLutHelper.cs.meta similarity index 83% rename from Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityBuilderBase.cs.meta rename to Assets/Plugins/AtmosphereScattering/Scripts/AtmLutHelper.cs.meta index 2ac41ce22..95db60560 100644 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityBuilderBase.cs.meta +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AtmLutHelper.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e339e26fd91eb8c40b1a28af9b70a1ce +guid: 31d43eddaa5ab52468dfdf0df4f69d6a MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereConfig.cs b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereConfig.cs new file mode 100644 index 000000000..9cb14057c --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereConfig.cs @@ -0,0 +1,111 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.AtmosphereScattering { + [CreateAssetMenu] + public class AtmosphereConfig : ScriptableObject { + + static readonly Vector3 OZoneConst = 6e-7f * new Vector3(3.426f, 8.298f, 0.356f); + static readonly Vector3 RayleighScatteringConst = 1e-6f * new Vector3(5.8f, 13.5f, 33.1f); + static readonly float MieScatteringConst = 2e-6f; + + private static class Keys { + public static int atmosphere_top_radius = Shader.PropertyToID("atmosphere_top_radius"); + public static int atmosphere_bot_radius = Shader.PropertyToID("atmosphere_bot_radius"); + public static int atmosphere_sun_angular_radius = Shader.PropertyToID("atmosphere_sun_angular_radius"); + public static int rayleigh_scattering = Shader.PropertyToID("rayleigh_scattering"); + public static int rayleigh_scale_height = Shader.PropertyToID("rayleigh_scale_height"); + public static int mie_scattering = Shader.PropertyToID("mie_scattering"); + public static int mie_extinction = Shader.PropertyToID("mie_extinction"); + public static int mie_scale_height = Shader.PropertyToID("mie_scale_height"); + public static int mie_phase_function_g = Shader.PropertyToID("mie_phase_function_g"); + public static int absorption_extinction = Shader.PropertyToID("absorption_extinction"); + public static int absorption_extinction_scale_height = Shader.PropertyToID("absorption_extinction_scale_height"); + public static int lightingScale = Shader.PropertyToID("_LightScale"); + public static int sunIrradianceOnAtm = Shader.PropertyToID("_SunIrradianceOnAtm"); + } + + public void Apply(Material mat) { + Shader.SetGlobalFloat(Keys.atmosphere_top_radius, atmosphere_top_radius); + Shader.SetGlobalFloat(Keys.atmosphere_bot_radius, atmosphere_bot_radius); + Shader.SetGlobalFloat(Keys.atmosphere_sun_angular_radius, atmosphere_sun_angular_radius); + Shader.SetGlobalVector(Keys.rayleigh_scattering, rayleigh_scattering_spectrum); + Shader.SetGlobalFloat(Keys.rayleigh_scale_height, rayleigh_scale_height); + Shader.SetGlobalFloat(Keys.mie_scattering, atmosphereDensity * mie_scattering * MieScatteringConst); + Shader.SetGlobalFloat(Keys.mie_extinction, mie_extinction_spectrum); + Shader.SetGlobalFloat(Keys.mie_scale_height, mie_scale_height); + Shader.SetGlobalFloat(Keys.mie_phase_function_g, mie_phase_function_g); + Shader.SetGlobalVector(Keys.absorption_extinction, ozone_extinction_spectrum); + Shader.SetGlobalFloat(Keys.absorption_extinction_scale_height, ozone_scale_height); + Shader.SetGlobalFloat(Keys.lightingScale, LightingScale); + Shader.SetGlobalVector(Keys.sunIrradianceOnAtm, sunIrradianceOnAtmosphere); + } + + public void Apply(ComputeShader shader) { + shader.SetFloat(Keys.atmosphere_top_radius, atmosphere_top_radius); + shader.SetFloat(Keys.atmosphere_bot_radius, atmosphere_bot_radius); + shader.SetFloat(Keys.atmosphere_sun_angular_radius, atmosphere_sun_angular_radius); + shader.SetVector(Keys.rayleigh_scattering, rayleigh_scattering_spectrum); + shader.SetFloat(Keys.rayleigh_scale_height, rayleigh_scale_height); + shader.SetFloat(Keys.mie_scattering, atmosphereDensity * mie_scattering * MieScatteringConst); + shader.SetFloat(Keys.mie_extinction, mie_extinction_spectrum); + shader.SetFloat(Keys.mie_scale_height, mie_scale_height); + shader.SetFloat(Keys.mie_phase_function_g, mie_phase_function_g); + shader.SetVector(Keys.absorption_extinction, ozone_extinction_spectrum); + shader.SetFloat(Keys.absorption_extinction_scale_height, ozone_scale_height); + shader.SetVector(Keys.sunIrradianceOnAtm, sunIrradianceOnAtmosphere); + } + + public float atmosphereDensity = 1.0f; + public Vector3 sunIrradianceOnAtmosphere = new Vector3(1.0f, 1.0f, 1.0f); + public float LightingScale = 2.0f * 3.1415926f; + public float atmosphere_top_radius = 6.36e6f + 6e4f; + public float atmosphere_bot_radius = 6.36e6f; + public float atmosphere_sun_angular_radius = 0.0087f; + public float rayleigh_scattering = 1.0f; + public float rayleigh_scale_height = 8000.0f; + public Vector3 rayleigh_scattering_spectrum { + get { + return atmosphereDensity * rayleigh_scattering * RayleighScatteringConst; + } + } + public Vector3 ozone_extinction_spectrum { + get { + return atmosphereDensity * OZoneConst * ozone_extinction; + } + } + public float mie_scattering = 1.0f; + public float mie_extinction { + get { + return mie_scattering * 1.1f; + } + } + public float mie_extinction_spectrum { + get { + return atmosphereDensity * mie_extinction * MieScatteringConst; + } + } + public float mie_scale_height = 1200.0f; + public float mie_phase_function_g = 0.8f; + public float ozone_extinction = 1.0f; + public float ozone_scale_height = 1000.0f; + + public void CopyDataFrom(AtmosphereConfig config) { + this.atmosphereDensity = config.atmosphereDensity; + this.LightingScale = config.LightingScale; + this.sunIrradianceOnAtmosphere = config.sunIrradianceOnAtmosphere; + this.atmosphere_top_radius = config.atmosphere_top_radius; + this.atmosphere_bot_radius = config.atmosphere_bot_radius; + this.atmosphere_sun_angular_radius = config.atmosphere_sun_angular_radius; + this.rayleigh_scattering = config.rayleigh_scattering; + this.rayleigh_scale_height = config.rayleigh_scale_height; + this.mie_scattering = config.mie_scattering; + this.mie_scale_height = config.mie_scale_height; + this.mie_phase_function_g = config.mie_phase_function_g; + this.ozone_extinction = config.ozone_extinction; + this.ozone_scale_height = config.ozone_scale_height; + + } +} +} diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereConfig.cs.meta similarity index 83% rename from Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs.meta rename to Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereConfig.cs.meta index 71d990a2e..135d88552 100644 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs.meta +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereConfig.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: beacbddfe55891249bea826bc322015f +guid: a909801085fa7db47939f4858f8f7a1f MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereScatteringLutManager.cs b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereScatteringLutManager.cs new file mode 100644 index 000000000..5a7230081 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereScatteringLutManager.cs @@ -0,0 +1,252 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using UnityEngine; + +namespace Yangrc.AtmosphereScattering { + [ExecuteInEditMode] + public class AtmosphereScatteringLutManager : MonoBehaviour , ProgressiveLutUpdater.ITimeLogger{ + public static AtmosphereScatteringLutManager instance { + get { + return _instance; + } + } + private static AtmosphereScatteringLutManager _instance; + public bool progressiveUpdate; + [SerializeField] + private ComputeShader computeShader; + [SerializeField] + private bool outputDebug = false; + public AtmLutGenerateConfig lutConfig; + public AtmosphereConfig atmosphereConfig; + [System.NonSerialized] + public Material skyboxMaterial; + + //We prepare 3 updater, the 0-index one is "currently updating", 1-index is "just updated", and 2-index is the oldest one. + //During rendering, we interpolate 1 and 2, and updating 0. + private ProgressiveLutUpdater[] pingPongUpdaters = new ProgressiveLutUpdater[3]; + + public ProgressiveLutUpdater newestLut { get { + return pingPongUpdaters[1]; + } } + public ProgressiveLutUpdater oldLut { + get { + return pingPongUpdaters[2]; + } + } + + //Shift all updater to one right. + private void RotatePingpongUpdater() { + var temp = pingPongUpdaters[pingPongUpdaters.Length-1]; + for (int i = pingPongUpdaters.Length - 1; i > 0; i--) { + pingPongUpdaters[i] = pingPongUpdaters[i - 1]; + } + pingPongUpdaters[0] = temp; + } + + private void Awake() { + if (_instance != null) { + throw new System.InvalidOperationException("AtmosphereScatteringLutManager already exists!"); + } + } + + private void OnEnable() { + if (computeShader == null) { + throw new System.InvalidOperationException("Compute shader not set!"); + } + _instance = this; + AtmLutHelper.Init(computeShader); + for (int i = 0; i < pingPongUpdaters.Length; i++) { + pingPongUpdaters[i] = new ProgressiveLutUpdater(null, lutConfig, this); + pingPongUpdaters[i].name = "Updater " + i; + } + + //Quickly complete two set luts. + for (int i = 1; i <= 2; i++) { + pingPongUpdaters[i].atmConfigToUse = atmosphereConfig; + var t = pingPongUpdaters[i].UpdateCoroutine(); + while (t.MoveNext()) ; + } + UpdateSkyboxMaterial(pingPongUpdaters[1], pingPongUpdaters[2]); + + KickOffUpdater(pingPongUpdaters[0]); + } + + private void KickOffUpdater(ProgressiveLutUpdater updater) { + updater.atmConfigToUse = atmosphereConfig; + StartCoroutine(updater.UpdateCoroutine()); + } + + private float lerpValue = 0.0f; + private void Update() { + if (!pingPongUpdaters[0].working && progressiveUpdate) { + //Use the finished luts. + UpdateSkyboxMaterial(pingPongUpdaters[0], pingPongUpdaters[1]); + + lerpValue = 0.0f; + + //Rotate to right. + RotatePingpongUpdater(); + + //Next updater. + KickOffUpdater(pingPongUpdaters[0]); + } + UpdateLerpValue(); + } + + private void UpdateLerpValue() { + //We now require 19 frames to update + + lerpValue += 1.0f / 19.0f; + if (skyboxMaterial != null) + Shader.SetGlobalFloat("_LerpValue", lerpValue); + } + + private void OnDisable() { + for (int i = 0; i < pingPongUpdaters.Length; i++) { + pingPongUpdaters[i].Cleanup(); + } + } + + public void UpdateComputeShaderValueForLerpedAp(ComputeShader shader, int kernelId) { + newestLut.atmConfigUsedToUpdate.Apply(shader); + shader.SetTexture(kernelId, "_SingleRayleigh_1", oldLut.singleRayleigh); + shader.SetTexture(kernelId, "_SingleMie_1", oldLut.singleMie); + shader.SetTexture(kernelId, "_SingleRayleigh_2", newestLut.singleRayleigh); + shader.SetTexture(kernelId, "_SingleMie_2", newestLut.singleMie); + shader.SetTexture(kernelId, "_MultipleScattering_1", oldLut.multiScatteringCombine); + shader.SetTexture(kernelId, "_MultipleScattering_2", newestLut.multiScatteringCombine); + shader.SetTexture(kernelId, "_Transmittance_1", oldLut.transmittance); + shader.SetTexture(kernelId, "_Transmittance_2", newestLut.transmittance); + shader.SetTexture(kernelId, "_GroundIrradiance_1", oldLut.groundIrradianceCombine); + shader.SetTexture(kernelId, "_GroundIrradiance_2", newestLut.groundIrradianceCombine); + shader.SetVector("_ScatteringSize", (Vector3)lutConfig.scatteringSize); + shader.SetVector("_GroundIrradianceSize", (Vector2)lutConfig.irradianceSize); + shader.SetVector("_TransmittanceSize", (Vector2)lutConfig.transmittanceSize); + } + + public void UpdateSkyboxMaterial(ProgressiveLutUpdater updater, ProgressiveLutUpdater oldUpdater) { + if (this.skyboxMaterial==null) + this.skyboxMaterial = new Material(Shader.Find("Skybox/AtmosphereScatteringPrecomputed")); + updater.atmConfigUsedToUpdate.Apply(skyboxMaterial); + Shader.SetGlobalTexture("_SingleRayleigh_1", oldUpdater.singleRayleigh); + Shader.SetGlobalTexture("_SingleMie_1", oldUpdater.singleMie); + Shader.SetGlobalTexture("_SingleRayleigh_2", updater.singleRayleigh); + Shader.SetGlobalTexture("_SingleMie_2", updater.singleMie); + Shader.SetGlobalTexture("_MultipleScattering_1", oldUpdater.multiScatteringCombine); + Shader.SetGlobalTexture("_MultipleScattering_2", updater.multiScatteringCombine); + Shader.SetGlobalTexture("_Transmittance_1", oldUpdater.transmittance); + Shader.SetGlobalTexture("_Transmittance_2", updater.transmittance); + Shader.SetGlobalTexture("_GroundIrradiance_1", oldUpdater.groundIrradianceCombine); + Shader.SetGlobalTexture("_GroundIrradiance_2", updater.groundIrradianceCombine); + Shader.SetGlobalVector("_ScatteringSize", (Vector3)lutConfig.scatteringSize); + Shader.SetGlobalVector("_GroundIrradianceSize", (Vector2)lutConfig.irradianceSize); + Shader.SetGlobalVector("_TransmittanceSize", (Vector2)lutConfig.transmittanceSize); + RenderSettings.skybox = this.skyboxMaterial; + } + + public void Log(string itemName) { + if (outputDebug) + Debug.Log(itemName); + } + + public Vector3 GetRadianceAt(float mu_s, Vector3 basePosition) { + var t = atmosphereConfig.sunIrradianceOnAtmosphere; + var r = basePosition + new Vector3(0.0f, atmosphereConfig.atmosphere_bot_radius, 0.0f); + var transmittance = TransmittanceCalculate.GetTransmittanceToSun(atmosphereConfig, r.magnitude, mu_s); + t.Scale(transmittance); + return t; + } + } + + public static class TransmittanceCalculate { + + static float ClampCosine(float mu) { + return Mathf.Clamp(mu, -1.0f, 1.0f); + } + + static float ClampDistance(float d) { + return Mathf.Max(d, 0.0f); + } + + static float ClampRadius(AtmosphereConfig atmosphere, float r) { + return Mathf.Clamp(r, atmosphere.atmosphere_bot_radius, atmosphere.atmosphere_top_radius); + } + + static float SafeSqrt(float a) { + return Mathf.Sqrt(Mathf.Max(a, 0.0f)); + } + + static float DistanceToTopAtmosphereBoundary(AtmosphereConfig atmosphere, + float r, float mu) { + float discriminant = r * r * (mu * mu - 1.0f) + + atmosphere.atmosphere_top_radius * atmosphere.atmosphere_top_radius; + return ClampDistance(-r * mu + SafeSqrt(discriminant)); + } + + static float GetScaleHeight(float altitude, float scale_height) { + return Mathf.Exp(-altitude / scale_height); + } + + static float ComputeOpticalLengthToTopAtmosphereBoundary( + AtmosphereConfig atmosphere, float r, float mu, float scale_height) { + // Number of intervals for the numerical integration. + const int SAMPLE_COUNT = 500; + // The integration step, i.e. the length of each integration interval. + float dx = + DistanceToTopAtmosphereBoundary(atmosphere, r, mu) / (float)SAMPLE_COUNT; + // Integration loop. + float result = 0.0f; + for (int i = 0; i <= SAMPLE_COUNT; ++i) { + float d_i = (float)i * dx; + // Distance between the current sample point and the planet center. + float r_i = Mathf.Sqrt(d_i * d_i + 2.0f * r * mu * d_i + r * r); + // Number density at the current sample point (divided by the number density + // at the bottom of the atmosphere, yielding a dimensionless number). + float y_i = GetScaleHeight(r_i - atmosphere.atmosphere_bot_radius, scale_height); + // Sample weight (from the trapezoidal rule). + float weight_i = i == 0 || i == SAMPLE_COUNT ? 0.5f : 1.0f; + result += y_i * weight_i * dx; + } + return result; + } + + public static Vector3 ComputeTransmittanceToTopAtmosphereBoundary( + AtmosphereConfig atmosphere, float r, float mu) { + Vector3 rayleigh = atmosphere.rayleigh_scattering_spectrum * + ComputeOpticalLengthToTopAtmosphereBoundary( + atmosphere, r, mu, atmosphere.rayleigh_scale_height); + Vector3 mie = Vector3.one * atmosphere.mie_extinction_spectrum * + ComputeOpticalLengthToTopAtmosphereBoundary( + atmosphere, r, mu, atmosphere.mie_scale_height); + Vector3 ozone = atmosphere.ozone_extinction_spectrum * + ComputeOpticalLengthToTopAtmosphereBoundary( + atmosphere, r, mu, atmosphere.ozone_scale_height); + var sum = rayleigh + mie + ozone; + return new Vector3( + Mathf.Exp(-sum.x), + Mathf.Exp(-sum.y), + Mathf.Exp(-sum.z) + ); + } + + public static Vector3 GetTransmittanceToSun( + AtmosphereConfig atmosphere, + float r, float mu_s) { + float sin_theta_h = atmosphere.atmosphere_bot_radius / r; + float cos_theta_h = -Mathf.Sqrt(Mathf.Max(1.0f - sin_theta_h * sin_theta_h, 0.0f)); + + var transmittanceToCenter = ComputeTransmittanceToTopAtmosphereBoundary( + atmosphere, r, mu_s); + + var lower_bound = -sin_theta_h * atmosphere.atmosphere_sun_angular_radius; + var upper_bound = sin_theta_h * atmosphere.atmosphere_sun_angular_radius; + + var fraction = (mu_s - cos_theta_h - lower_bound) / (upper_bound - lower_bound); + fraction = Mathf.Clamp01(fraction); + + return transmittanceToCenter * fraction; + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereScatteringLutManager.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereScatteringLutManager.cs.meta new file mode 100644 index 000000000..93816f7e0 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/AtmosphereScatteringLutManager.cs.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: e16dd2ddbdfa7ea4f87a3cfb032ffd0f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: + - computeShader: {fileID: 7200000, guid: 2d4396a54b390d742b84d4bb4a122e54, type: 3} + - atmosphereConfig: {fileID: 11400000, guid: 8e73e89daf00b8447b2410427953df25, type: 2} + - skyboxMaterial: {instanceID: 0} + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/CameraControl.cs b/Assets/Plugins/AtmosphereScattering/Scripts/CameraControl.cs new file mode 100644 index 000000000..12c64d96e --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/CameraControl.cs @@ -0,0 +1,46 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class CameraControl : MonoBehaviour { + public float distance = 10.0f; + public Vector3 center; + + private Vector2 lastFrameMouse; + + public float scale = 1.0f; + + public float distanceSpeed = .1f; + public float rotationSpeed = .1f; + + private void Update() { + var mouseDelta = (Vector2)Input.mousePosition - lastFrameMouse; + lastFrameMouse = Input.mousePosition; + + if (Input.GetMouseButton(2)) { + //Translate. + center += ((transform.right * mouseDelta.x) + (transform.up * mouseDelta.y)) * scale * distance; + } + + if (Input.GetMouseButton(1)) { + distance += mouseDelta.x * distanceSpeed * Mathf.Max(1.0f, 0.1f * distance); + } + + if (Input.GetMouseButton(0)) { + //Rotate. + var currentRotation = transform.rotation; + var currentYaw = currentRotation.eulerAngles.y; + var currentPitch = currentRotation.eulerAngles.x; + + currentPitch -= mouseDelta.y * rotationSpeed; + currentYaw += mouseDelta.x * rotationSpeed; + currentPitch = Mathf.Max(0, currentPitch); + + var newRotation = Quaternion.Euler(currentPitch, currentYaw, 0.0f); + + transform.rotation = newRotation; + } + + transform.position = transform.rotation * Vector3.forward * -distance + center; + } +} diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/CameraControl.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/CameraControl.cs.meta new file mode 100644 index 000000000..a936a7475 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/CameraControl.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 45d85419f2e23c540999c1a1fee6ed90 +timeCreated: 1547180827 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/CameraVolumeHelper.cs b/Assets/Plugins/AtmosphereScattering/Scripts/CameraVolumeHelper.cs new file mode 100644 index 000000000..eed286927 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/CameraVolumeHelper.cs @@ -0,0 +1,16 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class CameraVolumeHelper : MonoBehaviour { + + // Use this for initialization + void Start () { + + } + + // Update is called once per frame + void Update () { + + } +} diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkWwiseIdConverter.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/CameraVolumeHelper.cs.meta similarity index 83% rename from Assets/Wwise/API/Editor/WwiseMenu/Common/AkWwiseIdConverter.cs.meta rename to Assets/Plugins/AtmosphereScattering/Scripts/CameraVolumeHelper.cs.meta index a4ec2403e..f9ca7684f 100644 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkWwiseIdConverter.cs.meta +++ b/Assets/Plugins/AtmosphereScattering/Scripts/CameraVolumeHelper.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0af3cdd822fb2414fb284a2730bbdb29 +guid: 0e8391fcc2d8a5144ace172efd446a95 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/SunIntensityController.cs b/Assets/Plugins/AtmosphereScattering/Scripts/SunIntensityController.cs new file mode 100644 index 000000000..1c60dca0b --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/SunIntensityController.cs @@ -0,0 +1,36 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.AtmosphereScattering { + [RequireComponent(typeof(Light))] + public class SunIntensityController : MonoBehaviour { + + private new Light light; + + //This is the "base" position, used to sample transmittance to sun, and set a final intensity. + // + //In real-life, objects at different position are affected by different sun intensity. + //But in Unity all objects share the same sun. + //So we need to set a base position, and assume all objects are at this position when affected by sun. + public Vector3 basePosition = new Vector3(0.0f, 50.0f, 0.0f); + + private void Awake() { + light = GetComponent(); + } + + // Update is called once per frame + void Update() { + var t = AtmosphereScatteringLutManager.instance; + if (t != null) { + //Sun-zenith cos. + var mu_s = Vector3.Dot(Vector3.down, transform.forward); + var radianceAtZero = t.GetRadianceAt(mu_s, basePosition); + + light.intensity = radianceAtZero.magnitude / (2 * Mathf.PI); + var normalized = radianceAtZero.normalized; + light.color = new Color(normalized.x, normalized.y, normalized.z); + } + } + } +} diff --git a/Assets/Plugins/AtmosphereScattering/Scripts/SunIntensityController.cs.meta b/Assets/Plugins/AtmosphereScattering/Scripts/SunIntensityController.cs.meta new file mode 100644 index 000000000..850d4af68 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Scripts/SunIntensityController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 325c269146dc2ac49b190f730a961573 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wwise/API.meta b/Assets/Plugins/AtmosphereScattering/Shaders.meta similarity index 77% rename from Assets/Wwise/API.meta rename to Assets/Plugins/AtmosphereScattering/Shaders.meta index 2054fea34..2a7c1a5ba 100644 --- a/Assets/Wwise/API.meta +++ b/Assets/Plugins/AtmosphereScattering/Shaders.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e1311711456582f45a2141e31ec26132 +guid: 5252171c9ff51e140b7d257eb101b9e4 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspective.shader b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspective.shader new file mode 100644 index 000000000..3923d3f12 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspective.shader @@ -0,0 +1,100 @@ +Shader "Hidden/Yangrc/AerialPerspective" +{ + Properties + { + _MainTex ("Texture", 2D) = "white" {} + } + SubShader + { + // No culling or depth + Cull Off ZWrite Off ZTest Always + + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + + #include "UnityCG.cginc" + #include "AerialPerspectiveHelper.cginc" + #include "Lighting.cginc" + float4 _ProjectionExtents; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float2 uv : TEXCOORD0; + float4 vertex : SV_POSITION; + float4 scrPos: TEXCOORD1; + float2 vsray : TEXCOORD2; + }; + + v2f vert (appdata v) + { + v2f o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + o.scrPos = ComputeScreenPos(o.vertex); + o.vsray = (2.0 * v.uv - 1.0) * _ProjectionExtents.xy + _ProjectionExtents.zw; + return o; + } + + sampler2D _MainTex; + sampler2D _CameraDepthTexture; + float _LightScale; + + void CalculateRMuMusForDistancePoint(Length r, Number mu, Number mu_s, Number nu, Number d, OUT(Length) r_d, OUT(Number) mu_d, OUT(Number) mu_s_d); + void CalculateRMuMusFromPosViewdir(AtmosphereParameters atm, float3 pos, float3 view_ray, float3 sun_direction, OUT(float) mu, OUT(float) mu_s, OUT(float) nu); + float3 GetTransmittanceToTopAtmosphereBoundaryLerped(float r, float mu); + + half4 frag (v2f i) : SV_Target + { + float3 vspos = float3(i.vsray, 1.0); + float4 worldPos = mul(unity_CameraToWorld, float4(vspos, 1.0)); + worldPos /= worldPos.w; + + half4 original = tex2D(_MainTex, i.uv); + + AtmosphereParameters atm = GetAtmParameters(); + float3 view_ray = normalize(worldPos.xyz - _WorldSpaceCameraPos); + float raw_depth = SAMPLE_DEPTH_TEXTURE_PROJ(_CameraDepthTexture, i.scrPos); + float distance = LinearEyeDepth(raw_depth); + if (distance / _ProjectionParams.z > 0.999f) { + return original; + } + float depth = (distance - _ProjectionParams.x) / (_ProjectionParams.z - _ProjectionParams.x); + + float3 pixel_pos = worldPos + distance * view_ray; +#if 1 + float r, mu, mu_s, nu; + float r_d, mu_d, mu_s_d; //Current pixel on screen's info + CalculateRMuMusFromPosViewdir(atm, _WorldSpaceCameraPos, view_ray, _WorldSpaceLightPos0, r, mu, mu_s, nu); + float d1, d2; + bool ray_r_mu_intersects_ground = RayIntersectsGround(atm, r, mu, d1, d2); + CalculateRMuMusForDistancePoint(atm, r, mu, mu_s, nu, distance, r_d, mu_d, mu_s_d); + + //Transmittance to target point. + float3 transmittanceToTarget = GetTransmittanceLerped(r, mu, distance, ray_r_mu_intersects_ground); + + //Here the two ray (r, mu) and (r_d, mu_d) is pointing same direction. + //so ray_r_mu_intersects_ground should apply to both of them. + //If we do intersect calculation later, some precision problems might appear, causing glitches near horizontal view dir. + float3 scatteringBetween = + GetTotalScatteringLerped(r, mu, mu_s, nu, ray_r_mu_intersects_ground) + - GetTotalScatteringLerped(r_d, mu_d, mu_s_d, nu, ray_r_mu_intersects_ground) * transmittanceToTarget; +#else + float3 uvw = float3(i.uv, depth); + float3 transmittanceToTarget = GetTransmittanceWithCameraVolume(uvw); + float3 scatteringBetween = GetScatteringWithCameraVolume(uvw); +#endif + return half4(original * transmittanceToTarget + scatteringBetween, 1.0); + } + ENDCG + } + } +} diff --git a/Assets/Plugins/PDTAA/Shaders/IncNoise.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspective.shader.meta similarity index 58% rename from Assets/Plugins/PDTAA/Shaders/IncNoise.cginc.meta rename to Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspective.shader.meta index 24d4bff6b..0b842b030 100644 --- a/Assets/Plugins/PDTAA/Shaders/IncNoise.cginc.meta +++ b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspective.shader.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 228669e43365e55468de0ef0b707a4bd -timeCreated: 1437991512 -licenseType: Pro +guid: 312bffdb76c84374bb88d26526be3dae ShaderImporter: + externalObjects: {} defaultTextures: [] userData: assetBundleName: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc new file mode 100644 index 000000000..3b4c7135f --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc @@ -0,0 +1,148 @@ +#ifndef __AERIAL_PERSPECTIVE_HELPER__ +#define __AERIAL_PERSPECTIVE_HELPER__ + +#include "Common.cginc" +#include "TransmittanceHelper.cginc" +#include "GroundHelper.cginc" +#include "MultipleScatteringHelper.cginc" +#include "SingleScatteringHelper.cginc" + +#define LERP_TEXTURE(dim, name) \ +sampler ## dim ## D name ## _1; \ +sampler ## dim ## D name ## _2; + +LERP_TEXTURE(2, _Transmittance) +LERP_TEXTURE(2, _GroundIrradiance) +LERP_TEXTURE(3, _SingleRayleigh) +LERP_TEXTURE(3, _SingleMie) +LERP_TEXTURE(3, _MultipleScattering) + +float2 _TransmittanceSize; +float3 _ScatteringSize; +float2 _GroundIrradianceSize; +float3 _SunIrradianceOnAtm; +float _LerpValue; + +float3 GetTransmittanceLerped(float r, float mu, float d, bool intersect_ground) { + AtmosphereParameters atm = GetAtmParameters(); + float3 lerp1 = GetTransmittance( + atm, _Transmittance_1, _TransmittanceSize, r, mu, d, intersect_ground); + float3 lerp2 = GetTransmittance( + atm, _Transmittance_2, _TransmittanceSize, r, mu, d, intersect_ground); + + return lerp(lerp1, lerp2, _LerpValue); +} + +float3 GetTransmittanceToTopAtmosphereBoundaryLerped(float r, float mu) { + AtmosphereParameters atm = GetAtmParameters(); + float3 lerp1 = GetTransmittanceToTopAtmosphereBoundary( + atm, _Transmittance_1, _TransmittanceSize, r, mu); + float3 lerp2 = GetTransmittanceToTopAtmosphereBoundary( + atm, _Transmittance_2, _TransmittanceSize, r, mu); + + return lerp(lerp1, lerp2, _LerpValue); +} + +void CalculateRMuMusFromPosViewdir(AtmosphereParameters atm, float3 pos, float3 view_ray, float3 sun_direction, OUT(float) r, OUT(float) mu, OUT(float) mu_s, OUT(float) nu) { + float3 camera = pos + float3(0, atm.bottom_radius, 0); + r = max(atm.bottom_radius + 0.5f, length(camera)); + float rmu = dot(camera, view_ray); + mu = rmu / r; + mu_s = dot(camera, sun_direction) / r; + nu = dot(view_ray, sun_direction); +} + +void CalculateRMuMusForDistancePoint(AtmosphereParameters atm, Length r, Number mu, Number mu_s, float nu, Number d, OUT(Length) r_d, OUT(Number) mu_d, OUT(Number) mu_s_d) { + + r_d = ClampRadius(atm, sqrt(d * d + 2.0 * r * mu * d + r * r)); + r_d = max(atm.bottom_radius + 0.5f, r_d); + mu_d = ClampCosine((r * mu + d) / r_d); + mu_s_d = ClampCosine((r * mu_s + d * nu) / r_d); +} + +float3 InternalGetRayleighLerped(AtmosphereParameters atm, float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + + return SampleScatteringLerped(atm, + _SingleRayleigh_1, + _SingleRayleigh_2, + _LerpValue, + _ScatteringSize, + r, mu, mu_s, + ray_r_mu_intersects_ground) * + RayleighPhaseFunction(nu); +} + +float3 InternalGetMieLerped(AtmosphereParameters atm, float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + return SampleScatteringLerped(atm, + _SingleMie_1, + _SingleMie_2, + _LerpValue, + _ScatteringSize, + r, mu, mu_s, + ray_r_mu_intersects_ground) * + MiePhaseFunction(atm.mie_phase_function_g, nu); +} + +float3 InternalGetLerpedGroundIrradiance(AtmosphereParameters atm, float r, float mu, float mu_s) { + return lerp(GetIrradiance(atm, _GroundIrradiance_1, _GroundIrradianceSize, r, mu_s), GetIrradiance(atm, _GroundIrradiance_2, _GroundIrradianceSize, r, mu_s), _LerpValue); +} + +float3 InternalGetMultipleLerped(AtmosphereParameters atm, float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + return + SampleScatteringLerped(atm, + _MultipleScattering_1, + _MultipleScattering_2, + _LerpValue, + _ScatteringSize, + r, mu, mu_s, + ray_r_mu_intersects_ground); +} + +void ComputeSingleScattering( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu, Number mu_s, Number nu, + bool ray_r_mu_intersects_ground, + OUT(IrradianceSpectrum) rayleigh, OUT(IrradianceSpectrum) mie); + +float3 GetTotalScatteringLerped(float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + AtmosphereParameters atm = GetAtmParameters(); + return + (InternalGetRayleighLerped(atm, r, mu, mu_s, nu, ray_r_mu_intersects_ground) + + InternalGetMieLerped(atm, r, mu, mu_s, nu, ray_r_mu_intersects_ground) + + InternalGetMultipleLerped(atm, r, mu, mu_s, nu, ray_r_mu_intersects_ground)) * _SunIrradianceOnAtm; +} + +float3 GetTotalScatteringLerped(float r, float mu, float mu_s, float nu) { + AtmosphereParameters atm = GetAtmParameters(); + bool ray_r_mu_intersects_ground = RayIntersectsGround(atm, r, mu); + return GetTotalScatteringLerped(r, mu, mu_s, nu, ray_r_mu_intersects_ground); +} + +float3 EvaluateSunDiskRadianceOfUnitRadiance(AtmosphereParameters atm, float r, float mu, float nu) { + //Evaluate sun's solid angle by formula omega = 2 * PI * ( 1 - cos(sun_angular_radius)) (https://en.wikipedia.org/wiki/Solid_angle) + float cos_sun_angular_radius = cos(atm.sun_angular_radius); + float radianceTransmitted = max(0.0f, (nu - cos_sun_angular_radius) / (1.0f - cos_sun_angular_radius)); + float solidAngle = 2 * 3.1415926 * (1 - cos_sun_angular_radius); + return _SunIrradianceOnAtm * radianceTransmitted / solidAngle / 500.0f; //Avoiding it blind your eye. +} + + +/* +=============================== +Camera volume stuff. +=============================== +*/ +sampler3D _CameraVolumeTransmittance; +sampler3D _CameraVolumeScattering; + +float3 GetTransmittanceWithCameraVolume(float3 uvw) { + return tex3Dlod(_CameraVolumeTransmittance, float4(uvw, 0.0f)).rgb * _SunIrradianceOnAtm; +} + +float3 GetScatteringWithCameraVolume(float3 uvw) { + return tex3Dlod(_CameraVolumeScattering, float4(uvw, 0.0f)).rgb * _SunIrradianceOnAtm; +} + +#endif \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc.meta new file mode 100644 index 000000000..ff0b17ae3 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 689759fe522f7ce4eaa6fc304ca996c3 +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/AtmosphereScatteringComputeShader.compute b/Assets/Plugins/AtmosphereScattering/Shaders/AtmosphereScatteringComputeShader.compute new file mode 100644 index 000000000..352ef7830 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/AtmosphereScatteringComputeShader.compute @@ -0,0 +1,353 @@ + +/* +Helper functions. See https://ebruneton.github.io/precomputed_atmospheric_scattering/atmosphere/functions.glsl.html#transmittance_computation +*/ +//Convert (0.0, 1.0) to actual texel position. + +#include "./TransmittanceHelper.cginc" +#include "SingleScatteringHelper.cginc" +#include "MultipleScatteringHelper.cginc" +#include "GroundHelper.cginc" + +#pragma kernel CalculateTransmittanceLUT +#pragma kernel CalculateSingleScatteringLUT +#pragma kernel CalculateMultipleScatteringDensityLUT +#pragma kernel CalculateMultipleScatteringLUT +#pragma kernel CalculateGroundDirectIrradianceLUT +#pragma kernel CalculateGroundIndirectIrradianceLUT +#pragma kernel CombineGroundIrradianceLUT +#pragma kernel CombineMultipleScatteringLUT +#pragma kernel ClearCombineGroundIrradianceLUT +#pragma kernel ClearCombineMultipleScatteringLUT +#pragma kernel CalculateCameraScatteringVolume + +/* +Common parameters. +*/ +sampler2D TransmittanceLUT; +sampler3D SingleRayleighScatteringLUT; +sampler3D SingleMieScatteringLUT; +sampler3D MultipleScatteringDensityLUT; +sampler3D MultipleScatteringLUT; +sampler2D IrradianceLUT; +int2 TransmittanceSize; +int3 ScatteringSize; +int2 IrradianceSize; +int ScatteringOrder; + +//When only part of results need to be computed, we offset some results. +uint3 _ThreadOffset; + + +/* +================================== +||Transmittance LUT calculation.|| +================================== +*/ + +RWTexture2D TransmittanceLUTResult; + +DimensionlessSpectrum ComputeTransmittanceToTopAtmosphereBoundaryTexture( + IN(AtmosphereParameters) atmosphere, IN(vec2) uv_coord, IN(vec2) tex_size) { + Length r; + Number mu; + GetRMuFromTransmittanceTextureUv( + atmosphere, uv_coord, r, mu, tex_size.x, tex_size.y); + return ComputeTransmittanceToTopAtmosphereBoundary(atmosphere, r, mu); +} + +[numthreads(32, 32, 1)] +void CalculateTransmittanceLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) +{ + id += _ThreadOffset * uint3(32, 32, 1); + + uint w, h; + TransmittanceLUTResult.GetDimensions(w, h); + AtmosphereParameters atm = GetAtmParameters(); + + float2 uv = vec2((0.5f + id.x) / w, (0.5f + id.y) / h); + float r, mu; + + GetRMuFromTransmittanceTextureUv( + atm, uv, r, mu, w, h); + + float3 result = ComputeTransmittanceToTopAtmosphereBoundaryTexture( + atm, uv, vec2(w, h) + ); + + TransmittanceLUTResult[id.xy] = result; +} + +/* +================================== +|| SingleScattering || +================================== +*/ + +RWTexture3D SingleScatteringRayleighLUTResult; +RWTexture3D SingleScatteringMieLUTResult; + +[numthreads(8, 8, 8)] +void CalculateSingleScatteringLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) +{ + id += _ThreadOffset * uint3(8, 8, 8); + + uint w, h, d; + SingleScatteringRayleighLUTResult.GetDimensions(w, h, d); + AtmosphereParameters atm = GetAtmParameters(); + + float3 uvw = vec3((0.5f + id.x) / w, (0.5f + id.y) / h, (0.5f + id.z) / d); + + float3 rayleigh, mie; + ComputeSingleScatteringTexture( + atm, TransmittanceLUT, uint2(TransmittanceSize), uvw, uint3(ScatteringSize), rayleigh, mie + ); + + SingleScatteringMieLUTResult[id.xyz] = mie; + SingleScatteringRayleighLUTResult[id.xyz] = rayleigh; +} + +/* +========================================== +|| Multiple Scattering Density || +========================================== +*/ +RWTexture3D MultipleScatteringDensityResult; + +RadianceDensitySpectrum ComputeScatteringDensityTexture( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 scattering_size, + IN(IrradianceTexture) irradiance_texture, + uint2 irradiance_size, + IN(vec3) frag_coord, int scattering_order); + +[numthreads(8,8,8)] +void CalculateMultipleScatteringDensityLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + + id += _ThreadOffset * uint3(8, 8, 8); + + uint w, h, d; + MultipleScatteringDensityResult.GetDimensions(w, h, d); + AtmosphereParameters atm = GetAtmParameters(); + + float3 uvw = vec3((0.5f + id.x) / w, (0.5f + id.y) / h, (0.5f + id.z) / d); + + float3 density = ComputeScatteringDensityTexture( + atm, TransmittanceLUT, TransmittanceSize, + SingleRayleighScatteringLUT, SingleMieScatteringLUT, MultipleScatteringLUT, ScatteringSize, + IrradianceLUT, IrradianceSize, + uvw, ScatteringOrder + ); + + MultipleScatteringDensityResult[id.xyz] = density; +} + + +/* +========================================== +|| Multiple Scattering || +========================================== +*/ + +RWTexture3D MultipleScatteringResult; + +RadianceSpectrum ComputeMultipleScatteringTexture( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(ScatteringDensityTexture) scattering_density_texture, + uint3 scattering_size, + IN(vec3) frag_coord); + +[numthreads(8, 8, 8)] +void CalculateMultipleScatteringLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(8, 8, 8); + + uint w, h, d; + MultipleScatteringResult.GetDimensions(w, h, d); + AtmosphereParameters atm = GetAtmParameters(); + + float3 uvw = vec3((0.5f + id.x) / w, (0.5f + id.y) / h, (0.5f + id.z) / d); + + float3 scattering = ComputeMultipleScatteringTexture(atm, TransmittanceLUT, TransmittanceSize, MultipleScatteringDensityLUT, ScatteringSize, uvw); + + MultipleScatteringResult[id.xyz] = scattering; +} + +/* +========================================== +|| Ground Direct Irradiance || +========================================== +*/ + +RWTexture2D GroundDirectIrradianceResult; + +IrradianceSpectrum ComputeDirectIrradianceTexture( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(vec2) frag_coord, + uint2 irrdiance_size); + +[numthreads(32, 32, 1)] +void CalculateGroundDirectIrradianceLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(32, 32, 1); + + uint w, h; + GroundDirectIrradianceResult.GetDimensions(w, h); + AtmosphereParameters atm = GetAtmParameters(); + + float2 uvw = vec2((0.5f + id.x) / w, (0.5f + id.y) / h); + + float3 irradiance = ComputeDirectIrradianceTexture(atm, TransmittanceLUT, TransmittanceSize, uvw, IrradianceSize); + + GroundDirectIrradianceResult[id.xy] = irradiance; +} + + +/* +========================================== +|| Ground Indirect Irradiance || +========================================== +*/ + +RWTexture2D GroundIndirectIrradianceResult; + +IrradianceSpectrum ComputeIndirectIrradianceTexture( + IN(AtmosphereParameters) atmosphere, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 scattering_size, + IN(vec2) frag_coord, int scattering_order, uint2 irrdiance_size); + +[numthreads(32, 32, 1)] +void CalculateGroundIndirectIrradianceLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(32, 32, 1); + + uint w, h; + GroundIndirectIrradianceResult.GetDimensions(w, h); + AtmosphereParameters atm = GetAtmParameters(); + + float2 uvw = vec2((0.5f + id.x) / w, (0.5f + id.y) / h); + + float3 irradiance = ComputeIndirectIrradianceTexture(atm, + SingleRayleighScatteringLUT, SingleMieScatteringLUT, MultipleScatteringLUT, ScatteringSize, + uvw, ScatteringOrder, uint2(w,h)); + + GroundIndirectIrradianceResult[id.xy] = irradiance; +} + + +/* +========================================== +|| Ground Irradiance Combine || +========================================== +*/ + +RWTexture2D GroundIrradianceSumTarget; +RWTexture2D GroundIrradianceSumAdder; + +[numthreads(32, 32, 1)] +void CombineGroundIrradianceLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(32, 32, 1); + + GroundIrradianceSumTarget[id.xy] += GroundIrradianceSumAdder[id.xy]; +} + +[numthreads(32, 32, 1)] +void ClearCombineGroundIrradianceLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(32, 32, 1); + GroundIrradianceSumTarget[id.xy] = 0.0f; +} + +/* +========================================== +|| Scattering Combine || +========================================== +*/ + +RWTexture3D ScatteringSumTarget; +RWTexture3D ScatteringSumAdd; + +[numthreads(8, 8, 8)] +void CombineMultipleScatteringLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(8, 8, 8); + + ScatteringSumTarget[id.xyz] += ScatteringSumAdd[id.xyz]; +} +[numthreads(8, 8, 8)] +void ClearCombineMultipleScatteringLUT(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(8, 8, 8); + + ScatteringSumTarget[id.xyz] = 0.0f; +} + +/* +========================================== +|| Camera Volume Tex || +========================================== +*/ +#include "HLSLSupport.cginc" +#include "AerialPerspectiveHelper.cginc" +RWTexture3D CameraVolumeTransmittance; +RWTexture3D CameraVolumeScattering; +float4x4 Inverse_VP; +float3 _CameraPos; +float3 _SunDir; + +float2 _NearFarPlane; +float3 _CamBotLeft; +float3 _CamBotRight; +float3 _CamTopLeft; +float3 _CamTopRight; + +[numthreads(8, 8, 8)] +void CalculateCameraScatteringVolume(uint3 id : SV_DispatchThreadID, uint3 groupid : SV_GroupThreadID) { + id += _ThreadOffset * uint3(8, 8, 8); + + uint3 whd; + CameraVolumeScattering.GetDimensions(whd.x, whd.y, whd.z); + float3 texelSize = 1.0f / whd; + + //Get uvw from id. + float3 uvw = (id + 0.5f) * texelSize; + + float3 viewDir; + + //Get camera ray. + { + float3 t1 = lerp(_CamBotLeft, _CamBotRight, uvw.x); + float3 t2 = lerp(_CamTopLeft, _CamTopRight, uvw.x); + float3 ray_end = lerp(t1, t2, uvw.y); + viewDir = ray_end - _CameraPos; + } + + float distance = lerp(_NearFarPlane.x, _NearFarPlane.y, uvw.z); + viewDir = normalize(viewDir); + + AtmosphereParameters atm = GetAtmParameters(); + float3 earthToCamera = _CameraPos + float3(0.0f, atm.bottom_radius, 0.0f); + + float r, mu, mu_s, nu; + float r_d, mu_d, mu_s_d; + + CalculateRMuMusFromPosViewdir(atm, _CameraPos, viewDir, _SunDir, r, mu, mu_s, nu); + float d1, d2; + bool ray_r_mu_intersects_ground = RayIntersectsGround(atm, r, mu, d1, d2); + CalculateRMuMusForDistancePoint(atm, r, mu, mu_s, nu, distance, r_d, mu_d, mu_s_d); + + float3 transmittanceToTarget = GetTransmittanceLerped( + r, mu, distance, ray_r_mu_intersects_ground); + float3 scatteringBetween = + GetTotalScatteringLerped(r, mu, mu_s, nu, ray_r_mu_intersects_ground) + - GetTotalScatteringLerped(r_d, mu_d, mu_s_d, nu, ray_r_mu_intersects_ground) * transmittanceToTarget; + + CameraVolumeTransmittance[id] = transmittanceToTarget; + CameraVolumeScattering[id] = scatteringBetween; +} diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/AtmosphereScatteringComputeShader.compute.meta b/Assets/Plugins/AtmosphereScattering/Shaders/AtmosphereScatteringComputeShader.compute.meta new file mode 100644 index 000000000..99b755ef0 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/AtmosphereScatteringComputeShader.compute.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2d4396a54b390d742b84d4bb4a122e54 +ComputeShaderImporter: + externalObjects: {} + currentAPIMask: 4 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc b/Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc new file mode 100644 index 000000000..ebff8e30d --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc @@ -0,0 +1,276 @@ +#ifndef __COMMON_HELPER__ +#define __COMMON_HELPER__ + +#define Length float +#define Wavelength float +#define Angle float +#define SolidAngle float +#define Power float +#define LuminousPower float + +#define Number float +#define InverseLength float +#define Area float +#define Volume float +#define NumberDensity float +#define Irradiance float +#define Radiance float +#define SpectralPower float +#define SpectralIrradiance float +#define SpectralRadiance float +#define SpectralRadianceDensity float +#define ScatteringCoefficient float +#define InverseSolidAngle float +#define LuminousIntensity float +#define Luminance float +#define Illuminance float + +// A generic function from Wavelength to some other type. +#define AbstractSpectrum vec3 +// A function from Wavelength to Number. +#define DimensionlessSpectrum vec3 +// A function from Wavelength to SpectralPower. +#define PowerSpectrum vec3 +// A function from Wavelength to SpectralIrradiance. +#define IrradianceSpectrum vec3 +// A function from Wavelength to SpectralRadiance. +#define RadianceSpectrum vec3 +// A function from Wavelength to SpectralRadianceDensity. +#define RadianceDensitySpectrum vec3 +// A function from Wavelength to ScaterringCoefficient. +#define ScatteringSpectrum vec3 + +// A position in 3D (3 length values). +#define Position vec3 +// A unit direction vector in 3D (3 unitless values). +#define Direction vec3 +// A vector of 3 luminance values. +#define Luminance3 half3 +// A vector of 3 illuminance values. +#define Illuminance3 half3 + +#define TransmittanceTexture sampler2D +#define IrradianceTexture sampler2D +#define ScatteringTexture sampler3D +#define ScatteringDensityTexture sampler3D +#define ReducedScatteringTexture sampler3D +#define vec2 float2 +#define vec3 float3 +#define vec4 float4 +#define IN(x) x +#define OUT(x) out x +#define assert(x) ; + +static const Length m = 1.0f; +static const Wavelength nm = 1.0f; +static const Angle rad = 1.0f; +static const SolidAngle sr = 1.0; +static const Power watt = 1.0; +static const LuminousPower lm = 1.0; + +static const float PI = 3.14159265358979323846; + +static const Length km = 1000.0 * m; +static const Area m2 = m * m; +static const Volume m3 = m * m * m; +static const Angle pi = PI * rad; +static const Angle deg = pi / 180.0; +static const Irradiance watt_per_square_meter = watt / m2; +static const Radiance watt_per_square_meter_per_sr = watt / (m2 * sr); +static const SpectralIrradiance watt_per_square_meter_per_nm = watt / (m2 * nm); +static const SpectralRadiance watt_per_square_meter_per_sr_per_nm = +watt / (m2 * sr * nm); +static const SpectralRadianceDensity watt_per_cubic_meter_per_sr_per_nm = +watt / (m3 * sr * nm); +static const LuminousIntensity cd = lm / sr; +static const LuminousIntensity kcd = 1000.0 * cd; +static const Luminance cd_per_square_meter = cd / m2; +static const Luminance kcd_per_square_meter = kcd / m2; + +struct AtmosphereParameters { + Length top_radius; + Length bottom_radius; + Number sun_angular_radius; + DimensionlessSpectrum rayleigh_scattering; + IrradianceSpectrum ground_albedo; + Number rayleigh_scale_height; + Number mie_scattering; + Number mie_extinction; + Number mie_scale_height; + DimensionlessSpectrum absorption_extinction; + Number absorption_extinction_scale_height; + Number solar_irradiance; + Number mu_s_min; + Number mie_phase_function_g; +}; + +AtmosphereParameters GetAtmosphereStruct( + float atmosphere_top_radius, + float atmosphere_bot_radius, + float atmosphere_sun_angular_radius, + DimensionlessSpectrum rayleigh_scattering, + Number rayleigh_scale_height, + Number mie_scattering, + Number mie_extinction, + Number mie_scale_height, + Number mie_phase_function_g, + DimensionlessSpectrum absorption_extinction, + Number absorption_extinction_scale_height +) { + AtmosphereParameters result; + result.top_radius = atmosphere_top_radius; + result.bottom_radius = atmosphere_bot_radius; + result.sun_angular_radius = atmosphere_sun_angular_radius; + + + result.rayleigh_scattering = rayleigh_scattering; + result.rayleigh_scale_height = rayleigh_scale_height; + result.mie_scattering = mie_scattering; + result.mie_extinction = mie_extinction; + result.mie_scale_height = mie_scale_height; + result.mie_phase_function_g = mie_phase_function_g; + result.absorption_extinction = absorption_extinction; + result.absorption_extinction_scale_height = absorption_extinction_scale_height; + + result.solar_irradiance = 1.0f; + result.mu_s_min = -0.2f; + result.ground_albedo = float3(0.1, 0.1, 0.1); + return result; +} + + +Number ClampCosine(Number mu) { + return clamp(mu, Number(-1.0), Number(1.0)); +} + +Length ClampDistance(Length d) { + return max(d, 0.0); +} + +Length ClampRadius(IN(AtmosphereParameters) atmosphere, Length r) { + return clamp(r, atmosphere.bottom_radius, atmosphere.top_radius); +} + +Length SafeSqrt(Area a) { + return sqrt(max(a, 0.0)); +} + +Length DistanceToTopAtmosphereBoundary(IN(AtmosphereParameters) atmosphere, + Length r, Number mu) { + assert(r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + Area discriminant = r * r * (mu * mu - 1.0) + + atmosphere.top_radius * atmosphere.top_radius; + return ClampDistance(-r * mu + SafeSqrt(discriminant)); +} + +Length DistanceToBottomAtmosphereBoundary(IN(AtmosphereParameters) atmosphere, + Length r, Number mu) { + assert(r >= atmosphere.bottom_radius); + assert(mu >= -1.0 && mu <= 1.0); + Area discriminant = r * r * (mu * mu - 1.0) + + atmosphere.bottom_radius * atmosphere.bottom_radius; + return ClampDistance(-r * mu - SafeSqrt(discriminant)); +} + +bool RayIntersectsGround(IN(AtmosphereParameters) atmosphere, + Length r, Number mu, OUT(Length) d_1, OUT(Length) d_2) { + assert(r >= atmosphere.bottom_radius); + assert(mu >= -1.0 && mu <= 1.0); + d_1 = 0.0; + d_2 = 0.0; + float discriminant = 4 * r * r * (mu * mu - 1.0) + + 4 * atmosphere.bottom_radius * atmosphere.bottom_radius; + if (discriminant >= 0.0f) { + float sqDis = sqrt(discriminant); + d_1 = (-2.0f * r * mu - sqDis) / 2.0f; + d_2 = (-2.0f * r * mu + sqDis) / 2.0f; + } + return mu < 0.0 && discriminant >= 0.0; +} + +bool RayIntersectsGround(IN(AtmosphereParameters) atmosphere, + Length r, Number mu) { + assert(r >= atmosphere.bottom_radius); + assert(mu >= -1.0 && mu <= 1.0); + return mu < 0.0 && r * r * (mu * mu - 1.0) + + atmosphere.bottom_radius * atmosphere.bottom_radius >= 0.0; +} + +Number GetTextureCoordFromUnitRange(Number x, int texture_size) { + return 0.5 / Number(texture_size) + x * (1.0 - 1.0 / Number(texture_size)); +} + +Number GetUnitRangeFromTextureCoord(Number u, int texture_size) { + return (u - 0.5 / Number(texture_size)) / (1.0 - 1.0 / Number(texture_size)); +} + +Number GetScaleHeight(Length altitude, Length scale_height) { + return exp(-altitude / scale_height); +} + +vec2 GetScaleHeight(Length altitude, vec2 scale_height_rayleigh_mie) { + return exp(-vec2(altitude, altitude) / scale_height_rayleigh_mie); +} + +Length DistanceToNearestAtmosphereBoundary(IN(AtmosphereParameters) atmosphere, + Length r, Number mu, bool ray_r_mu_intersects_ground) { + if (ray_r_mu_intersects_ground) { + return DistanceToBottomAtmosphereBoundary(atmosphere, r, mu); + } + else { + return DistanceToTopAtmosphereBoundary(atmosphere, r, mu); + } +} + +Number GetNuFromMuMus(float mu, float mu_s) { + return /*cos(a-b), where cos(a) == mu, cos(b) == mu_s*/ mu * mu_s + (1 - mu * mu) * (1 - mu_s * mu_s); +} + +/* +Pass in variables. +*/ +float atmosphere_top_radius; +float atmosphere_bot_radius; +float atmosphere_sun_angular_radius; +float3 rayleigh_scattering; +float rayleigh_scale_height; +float mie_scattering; +float mie_extinction; +float mie_scale_height; +float mie_phase_function_g; +float3 absorption_extinction; +float absorption_extinction_scale_height; + +AtmosphereParameters GetAtmParameters() { + return GetAtmosphereStruct( + atmosphere_top_radius, + atmosphere_bot_radius, + atmosphere_sun_angular_radius, + rayleigh_scattering, + rayleigh_scale_height, + mie_scattering, + mie_extinction, + mie_scale_height, + mie_phase_function_g, + absorption_extinction, + absorption_extinction_scale_height + ); +} + +InverseSolidAngle RayleighPhaseFunction(Number nu) { + InverseSolidAngle k = 3.0 / (16.0 * PI * sr); + return k * (1.0 + nu * nu); + //return 0.8f * (1.4f + 0.5f * nu) / (4.0 * PI); +} + +InverseSolidAngle AdhocRayleighPhaseFunction(Number nu) { + return 0.8f * (1.4f + 0.5f * nu) / (4.0 * PI * sr); +} + +InverseSolidAngle MiePhaseFunction(Number g, Number nu) { + InverseSolidAngle k = 3.0 / (8.0 * PI * sr) * (1.0 - g * g) / (2.0 + g * g); + return k * (1.0 + nu * nu) / pow(abs(1.0 + g * g - 2.0 * g * nu), 1.5); +} + +#endif \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc.meta new file mode 100644 index 000000000..77e404105 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 498005b870bb3d74e8dafc015b3de52d +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc b/Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc new file mode 100644 index 000000000..1d10d57ec --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc @@ -0,0 +1,125 @@ +#ifndef __GROUND_HELPER__ +#define __GROUND_HELPER__ + +#include "Common.cginc" +#include "TransmittanceHelper.cginc" +#include "MultipleScatteringHelper.cginc" + +IrradianceSpectrum ComputeDirectIrradiance( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + Length r, Number mu_s) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu_s >= -1.0 && mu_s <= 1.0); + + Number alpha_s = atmosphere.sun_angular_radius / rad; + // Approximate average of the cosine factor mu_s over the visible fraction of + // the Sun disc. + Number average_cosine_factor = + mu_s < -alpha_s ? 0.0 : (mu_s > alpha_s ? mu_s : + (mu_s + alpha_s) * (mu_s + alpha_s) / (4.0 * alpha_s)); + + return atmosphere.solar_irradiance * + GetTransmittanceToTopAtmosphereBoundary( + atmosphere, transmittance_texture, transmittance_size, r, mu_s) * average_cosine_factor; +} + +IrradianceSpectrum ComputeIndirectIrradiance( + IN(AtmosphereParameters) atmosphere, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 scattering_size, + Length r, Number mu_s, int scattering_order) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu_s >= -1.0 && mu_s <= 1.0); + assert(scattering_order >= 1); + + const int SAMPLE_COUNT = 32; + const Angle dphi = pi / Number(SAMPLE_COUNT); + const Angle dtheta = pi / Number(SAMPLE_COUNT); + + IrradianceSpectrum result = + IrradianceSpectrum(0.0, 0.0, 0.0); + vec3 omega_s = vec3(sqrt(1.0 - mu_s * mu_s), 0.0, mu_s); + for (int j = 0; j < SAMPLE_COUNT / 2; ++j) { + Angle theta = (Number(j) + 0.5) * dtheta; + for (int i = 0; i < 2 * SAMPLE_COUNT; ++i) { + Angle phi = (Number(i) + 0.5) * dphi; + vec3 omega = + vec3(cos(phi) * sin(theta), sin(phi) * sin(theta), cos(theta)); + SolidAngle domega = (dtheta / rad) * (dphi / rad) * sin(theta) ; + + Number nu = dot(omega, omega_s); + result += GetScattering(atmosphere, single_rayleigh_scattering_texture, + single_mie_scattering_texture, multiple_scattering_texture, scattering_size, + r, omega.z, mu_s, nu, false /* ray_r_theta_intersects_ground */, + scattering_order) * + omega.z * domega; + } + } + return result; +} + +vec2 GetIrradianceTextureUvFromRMuS(IN(AtmosphereParameters) atmosphere, + Length r, Number mu_s, uint2 irradiance_size) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu_s >= -1.0 && mu_s <= 1.0); + Number x_r = (r - atmosphere.bottom_radius) / + (atmosphere.top_radius - atmosphere.bottom_radius); + Number x_mu_s = mu_s * 0.5 + 0.5; + return vec2(GetTextureCoordFromUnitRange(x_mu_s, irradiance_size.x), + GetTextureCoordFromUnitRange(x_r, irradiance_size.y)); +} + +void GetRMuSFromIrradianceTextureUv(IN(AtmosphereParameters) atmosphere, + IN(vec2) uv, OUT(Length) r, OUT(Number) mu_s, uint2 irradiance_size) { + assert(uv.x >= 0.0 && uv.x <= 1.0); + assert(uv.y >= 0.0 && uv.y <= 1.0); + Number x_mu_s = GetUnitRangeFromTextureCoord(uv.x, irradiance_size.x); + Number x_r = GetUnitRangeFromTextureCoord(uv.y, irradiance_size.y); + r = atmosphere.bottom_radius + + x_r * (atmosphere.top_radius - atmosphere.bottom_radius); + mu_s = ClampCosine(2.0 * x_mu_s - 1.0); +} + +IrradianceSpectrum GetIrradiance( + IN(AtmosphereParameters) atmosphere, + IN(IrradianceTexture) irradiance_texture, + uint2 irradiance_size, + Length r, Number mu_s) { + vec2 uv = GetIrradianceTextureUvFromRMuS(atmosphere, r, mu_s, irradiance_size); + return IrradianceSpectrum(tex2Dlod(irradiance_texture, float4(uv,0.0, 0.0)).rgb); +} + + +IrradianceSpectrum ComputeDirectIrradianceTexture( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(vec2) uv, + uint2 irrdiance_size) { + Length r; + Number mu_s; + GetRMuSFromIrradianceTextureUv( + atmosphere, uv, r, mu_s, irrdiance_size); + return ComputeDirectIrradiance(atmosphere, transmittance_texture, transmittance_size, r, mu_s); +} + +IrradianceSpectrum ComputeIndirectIrradianceTexture( + IN(AtmosphereParameters) atmosphere, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 scattering_size, + IN(vec2) uv, int scattering_order, uint2 irrdiance_size) { + Length r; + Number mu_s; + GetRMuSFromIrradianceTextureUv( + atmosphere, uv, r, mu_s, irrdiance_size); + return ComputeIndirectIrradiance(atmosphere, + single_rayleigh_scattering_texture, single_mie_scattering_texture, + multiple_scattering_texture, scattering_size, r, mu_s, scattering_order); +} +#endif \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc.meta new file mode 100644 index 000000000..1c358e2ab --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: edb2696599cfe204d9a12cfa587afc0f +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc b/Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc new file mode 100644 index 000000000..054731102 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc @@ -0,0 +1,209 @@ +#ifndef __MULTIPLE_SCATTERING_HELPER__ +#define __MULTIPLE_SCATTERING_HELPER__ + +#include "Common.cginc" +#include "TransmittanceHelper.cginc" +#include "SingleScatteringHelper.cginc" + +IrradianceSpectrum GetIrradiance( + IN(AtmosphereParameters) atmosphere, + IN(IrradianceTexture) irradiance_texture, uint2 irradiance_size, + Length r, Number mu_s); + +RadianceDensitySpectrum ComputeScatteringDensity( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 scattering_size, + IN(IrradianceTexture) irradiance_texture, + uint2 irradiance_size, + Length r, Number mu, Number mu_s, Number nu, int scattering_order) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + assert(mu_s >= -1.0 && mu_s <= 1.0); + assert(scattering_order >= 2); + + + // Compute unit direction vectors for the zenith, the view direction omega and + // and the sun direction omega_s, such that the cosine of the view-zenith + // angle is mu, the cosine of the sun-zenith angle is mu_s, and the cosine of + // the view-sun angle is nu. The goal is to simplify computations below. + vec3 zenith_direction = vec3(0.0, 0.0, 1.0); + vec3 omega = vec3(sqrt(1.0 - mu * mu), 0.0, mu); + Number sun_dir_x = omega.x == 0.0 ? 0.0 : (nu - mu * mu_s) / omega.x; + Number sun_dir_y = sqrt(max(1.0 - sun_dir_x * sun_dir_x - mu_s * mu_s, 0.0)); + vec3 omega_s = vec3(sun_dir_x, sun_dir_y, mu_s); + + const int SAMPLE_COUNT = 16; + const Angle dphi = pi / Number(SAMPLE_COUNT); + const Angle dtheta = pi / Number(SAMPLE_COUNT); + RadianceDensitySpectrum rayleigh_mie = + RadianceDensitySpectrum(0.0, 0.0, 0.0); + + // Nested loops for the integral over all the incident directions omega_i. + for (int l = 0; l < SAMPLE_COUNT; ++l) { + Angle theta = (Number(l) + 0.5) * dtheta; + Number cos_theta = cos(theta); + Number sin_theta = sin(theta); + bool ray_r_theta_intersects_ground = + RayIntersectsGround(atmosphere, r, cos_theta); + + // The distance and transmittance to the ground only depend on theta, so we + // can compute them in the outer loop for efficiency. + Length distance_to_ground = 0.0 * m; + DimensionlessSpectrum transmittance_to_ground = DimensionlessSpectrum(0.0, 0.0, 0.0); + DimensionlessSpectrum ground_albedo = DimensionlessSpectrum(0.0, 0.0, 0.0); + if (ray_r_theta_intersects_ground) { + distance_to_ground = + DistanceToBottomAtmosphereBoundary(atmosphere, r, cos_theta); + transmittance_to_ground = + GetTransmittance(atmosphere, transmittance_texture, transmittance_size, r, cos_theta, + distance_to_ground, true /* ray_intersects_ground */); + ground_albedo = atmosphere.ground_albedo; + } + + for (int m = 0; m < 2 * SAMPLE_COUNT; ++m) { + Angle phi = (Number(m) + 0.5) * dphi; + vec3 omega_i = + vec3(cos(phi) * sin_theta, sin(phi) * sin_theta, cos_theta); + SolidAngle domega_i = (dtheta / rad) * (dphi / rad) * sin(theta) * sr; + + // The radiance L_i arriving from direction omega_i after n-1 bounces is + // the sum of a term given by the precomputed scattering texture for the + // (n-1)-th order: + Number nu1 = dot(omega_s, omega_i); + RadianceSpectrum incident_radiance = GetScattering(atmosphere, + single_rayleigh_scattering_texture, single_mie_scattering_texture, + multiple_scattering_texture, scattering_size, r, omega_i.z, mu_s, nu1, + ray_r_theta_intersects_ground, scattering_order - 1); + + // and of the contribution from the light paths with n-1 bounces and whose + // last bounce is on the ground. This contribution is the product of the + // transmittance to the ground, the ground albedo, the ground BRDF, and + // the irradiance received on the ground after n-2 bounces. + vec3 ground_normal = + normalize(zenith_direction * r + omega_i * distance_to_ground); + IrradianceSpectrum ground_irradiance = GetIrradiance( + atmosphere, irradiance_texture, irradiance_size, atmosphere.bottom_radius, + dot(ground_normal, omega_s)); + incident_radiance += transmittance_to_ground * + ground_albedo * (1.0 / (PI * sr)) * ground_irradiance; + + // The radiance finally scattered from direction omega_i towards direction + // -omega is the product of the incident radiance, the scattering + // coefficient, and the phase function for directions omega and omega_i + // (all this summed over all particle types, i.e. Rayleigh and Mie). + Number nu2 = dot(omega, omega_i); + Number rayleigh_density = GetScaleHeight( + r - atmosphere.bottom_radius, atmosphere.rayleigh_scale_height); + Number mie_density = GetScaleHeight( + r - atmosphere.bottom_radius, atmosphere.mie_scale_height); + + rayleigh_mie += incident_radiance * ( + atmosphere.rayleigh_scattering * rayleigh_density * + RayleighPhaseFunction(nu2) + + atmosphere.mie_scattering * mie_density * + MiePhaseFunction(atmosphere.mie_phase_function_g, nu2)) * + domega_i; + } + } + return rayleigh_mie; +} + +RadianceSpectrum ComputeMultipleScattering( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(ScatteringDensityTexture) scattering_density_texture, + uint3 scattering_size, + Length r, Number mu, Number mu_s, Number nu, + bool ray_r_mu_intersects_ground) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + assert(mu_s >= -1.0 && mu_s <= 1.0); + + // Number of intervals for the numerical integration. + const int SAMPLE_COUNT = 50; + // The integration step, i.e. the length of each integration interval. + Length dx = + DistanceToNearestAtmosphereBoundary( + atmosphere, r, mu, ray_r_mu_intersects_ground) / + Number(SAMPLE_COUNT); + // Integration loop. + RadianceSpectrum rayleigh_mie_sum = + RadianceSpectrum(0.0, 0.0, 0.0); + for (int i = 0; i <= SAMPLE_COUNT; ++i) { + Length d_i = Number(i) * dx; + + // The r, mu and mu_s parameters at the current integration point (see the + // single scattering section for a detailed explanation). + Length r_i = + ClampRadius(atmosphere, sqrt(d_i * d_i + 2.0 * r * mu * d_i + r * r)); + Number mu_i = ClampCosine((r * mu + d_i) / r_i); + Number mu_s_i = ClampCosine((r * mu_s + d_i * nu) / r_i); + + // The Rayleigh and Mie multiple scattering at the current sample point. + RadianceSpectrum rayleigh_mie_i = + SampleScattering( + atmosphere, scattering_density_texture, scattering_size, r_i, mu_i, mu_s_i, + ray_r_mu_intersects_ground) * + GetTransmittance( + atmosphere, transmittance_texture, transmittance_size, r, mu, d_i, + ray_r_mu_intersects_ground) * + dx; + // Sample weight (from the trapezoidal rule). + Number weight_i = (i == 0 || i == SAMPLE_COUNT) ? 0.5 : 1.0; + rayleigh_mie_sum += rayleigh_mie_i * weight_i; + } + return rayleigh_mie_sum; +} + +RadianceDensitySpectrum ComputeScatteringDensityTexture( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 scattering_size, + IN(IrradianceTexture) irradiance_texture, + uint2 irradiance_size, + IN(vec3) frag_coord, int scattering_order) { + Length r; + Number mu; + Number mu_s; + Number nu; + + bool ray_r_mu_intersects_ground; + GetRMuMuSNuFromScatteringTextureUvwz(atmosphere, frag_coord, + r, mu, mu_s, ray_r_mu_intersects_ground, scattering_size); + nu = GetNuFromMuMus(mu, mu_s); + return ComputeScatteringDensity(atmosphere, transmittance_texture, transmittance_size, + single_rayleigh_scattering_texture, single_mie_scattering_texture, + multiple_scattering_texture, scattering_size, irradiance_texture, irradiance_size, r, mu, mu_s, nu, + scattering_order); +} + +RadianceSpectrum ComputeMultipleScatteringTexture( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(ScatteringDensityTexture) scattering_density_texture, + uint3 scattering_size, + IN(vec3) frag_coord) { + Length r; + Number mu; + Number mu_s; + Number nu; + bool ray_r_mu_intersects_ground; + GetRMuMuSNuFromScatteringTextureUvwz(atmosphere, frag_coord, + r, mu, mu_s, ray_r_mu_intersects_ground, scattering_size); + nu = GetNuFromMuMus(mu, mu_s); + return ComputeMultipleScattering(atmosphere, transmittance_texture, transmittance_size, + scattering_density_texture, scattering_size, r, mu, mu_s, nu, + ray_r_mu_intersects_ground); +} +#endif \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc.meta new file mode 100644 index 000000000..602d9b7e1 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 1d94410a36635724f887c5648062ed59 +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc b/Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc new file mode 100644 index 000000000..4c4dde2d2 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc @@ -0,0 +1,245 @@ +#ifndef __SINGLE_SCATTERING_HELPER__ +#define __SINGLE_SCATTERING_HELPER__ + +#include "Common.cginc" +#include "TransmittanceHelper.cginc" + +void ComputeSingleScatteringIntegrand( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu, Number mu_s, Number nu, Length d, + bool ray_r_mu_intersects_ground, + OUT(DimensionlessSpectrum) rayleigh, OUT(DimensionlessSpectrum) mie) { + + Length r_d = ClampRadius(atmosphere, sqrt(d * d + 2.0 * r * mu * d + r * r)); + Number mu_s_d = ClampCosine((r * mu_s + d * nu) / r_d); + DimensionlessSpectrum transmittance = + GetTransmittance( + atmosphere, transmittance_texture, texture_size, r, mu, d, + ray_r_mu_intersects_ground) * + GetTransmittanceToSun( + atmosphere, transmittance_texture, texture_size, r_d, mu_s_d); + rayleigh = transmittance * GetScaleHeight(r_d - atmosphere.bottom_radius, atmosphere.rayleigh_scale_height); + mie = transmittance * GetScaleHeight(r_d - atmosphere.bottom_radius, atmosphere.rayleigh_scale_height); +} + +void ComputeSingleScattering( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu, Number mu_s, Number nu, + bool ray_r_mu_intersects_ground, + OUT(IrradianceSpectrum) rayleigh, OUT(IrradianceSpectrum) mie) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + assert(mu_s >= -1.0 && mu_s <= 1.0); + + + // Number of intervals for the numerical integration. + const int SAMPLE_COUNT = 50; + // The integration step, i.e. the length of each integration interval. + Length dx = + DistanceToNearestAtmosphereBoundary(atmosphere, r, mu, + ray_r_mu_intersects_ground) / Number(SAMPLE_COUNT); + // Integration loop. + DimensionlessSpectrum rayleigh_sum = DimensionlessSpectrum(0.0, 0.0, 0.0); + DimensionlessSpectrum mie_sum = DimensionlessSpectrum(0.0, 0.0, 0.0); + for (int i = 0; i <= SAMPLE_COUNT; ++i) { + Length d_i = Number(i) * dx; + // The Rayleigh and Mie single scattering at the current sample point. + DimensionlessSpectrum rayleigh_i; + DimensionlessSpectrum mie_i; + ComputeSingleScatteringIntegrand(atmosphere, transmittance_texture, texture_size, + r, mu, mu_s, nu, d_i, ray_r_mu_intersects_ground, rayleigh_i, mie_i); + // Sample weight (from the trapezoidal rule). + Number weight_i = (i == 0 || i == SAMPLE_COUNT) ? 0.5 : 1.0; + rayleigh_sum += rayleigh_i * weight_i; + mie_sum += mie_i * weight_i; + } + //Phase function terms are not added yet. See GetScattering.(And also, we need to store rayleigh and mie seprately, since they use different phase functions.) + rayleigh = rayleigh_sum * dx * atmosphere.solar_irradiance * atmosphere.rayleigh_scattering; + mie = mie_sum * dx * atmosphere.solar_irradiance * atmosphere.mie_scattering; +} + +vec3 GetScatteringTextureUvwzFromRMuMuSNu(IN(AtmosphereParameters) atmosphere, + Length r, Number mu, Number mu_s, uint3 texture_size, + bool ray_r_mu_intersects_ground) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + assert(mu_s >= -1.0 && mu_s <= 1.0); + + // Distance to top atmosphere boundary for a horizontal ray at ground level. + Length H = sqrt(atmosphere.top_radius * atmosphere.top_radius - + atmosphere.bottom_radius * atmosphere.bottom_radius); + // Distance to the horizon. + Length rho = + SafeSqrt(r * r - atmosphere.bottom_radius * atmosphere.bottom_radius); + Number u_r = GetTextureCoordFromUnitRange(rho / H, texture_size.z); + + // Discriminant of the quadratic equation for the intersections of the ray + // (r,mu) with the ground (see RayIntersectsGround). + Length r_mu = r * mu; + Area discriminant = + r_mu * r_mu - r * r + atmosphere.bottom_radius * atmosphere.bottom_radius; + Number u_mu; + if (ray_r_mu_intersects_ground) { + // Distance to the ground for the ray (r,mu), and its minimum and maximum + // values over all mu - obtained for (r,-1) and (r,mu_horizon). + Length d = -r_mu - SafeSqrt(discriminant); + Length d_min = r - atmosphere.bottom_radius; + Length d_max = rho; + u_mu = 0.5 - 0.5 * GetTextureCoordFromUnitRange(d_max == d_min ? 0.0 : + (d - d_min) / (d_max - d_min), texture_size.y / 2); + } + else { + // Distance to the top atmosphere boundary for the ray (r,mu), and its + // minimum and maximum values over all mu - obtained for (r,1) and + // (r,mu_horizon). + Length d = -r_mu + SafeSqrt(discriminant + H * H); + Length d_min = atmosphere.top_radius - r; + Length d_max = rho + H; + u_mu = 0.5 + 0.5 * GetTextureCoordFromUnitRange( + (d - d_min) / (d_max - d_min), texture_size.y / 2); + } + + Length d = DistanceToTopAtmosphereBoundary( + atmosphere, atmosphere.bottom_radius, mu_s); + Length d_min = atmosphere.top_radius - atmosphere.bottom_radius; + Length d_max = H; + Number a = (d - d_min) / (d_max - d_min); + Number A = + -2.0 * atmosphere.mu_s_min * atmosphere.bottom_radius / (d_max - d_min); + Number u_mu_s = GetTextureCoordFromUnitRange( + max(1.0 - a / A, 0.0) / (1.0 + a), texture_size.x); + + return vec3(u_mu_s, u_mu, u_r); +} + +void GetRMuMuSNuFromScatteringTextureUvwz(IN(AtmosphereParameters) atmosphere, + IN(vec3) uvwz, OUT(Length) r, OUT(Number) mu, OUT(Number) mu_s, OUT(bool) ray_r_mu_intersects_ground, + uint3 scattering_size +) { + assert(uvwz.x >= 0.0 && uvwz.x <= 1.0); + assert(uvwz.y >= 0.0 && uvwz.y <= 1.0); + assert(uvwz.z >= 0.0 && uvwz.z <= 1.0); + + // Distance to top atmosphere boundary for a horizontal ray at ground level. + Length H = sqrt(atmosphere.top_radius * atmosphere.top_radius - + atmosphere.bottom_radius * atmosphere.bottom_radius); + // Distance to the horizon. + Length rho = + H * GetUnitRangeFromTextureCoord(uvwz.z, scattering_size.z); + r = sqrt(rho * rho + atmosphere.bottom_radius * atmosphere.bottom_radius); + + if (uvwz.y < 0.5) { + // Distance to the ground for the ray (r,mu), and its minimum and maximum + // values over all mu - obtained for (r,-1) and (r,mu_horizon) - from which + // we can recover mu: + Length d_min = r - atmosphere.bottom_radius; + Length d_max = rho; + Length d = d_min + (d_max - d_min) * GetUnitRangeFromTextureCoord( + 1.0 - 2.0 * uvwz.y, scattering_size.y / 2); + mu = d == 0.0 * m ? Number(-1.0) : + ClampCosine(-(rho * rho + d * d) / (2.0 * r * d)); + ray_r_mu_intersects_ground = true; + } + else { + // Distance to the top atmosphere boundary for the ray (r,mu), and its + // minimum and maximum values over all mu - obtained for (r,1) and + // (r,mu_horizon) - from which we can recover mu: + Length d_min = atmosphere.top_radius - r; + Length d_max = rho + H; + Length d = d_min + (d_max - d_min) * GetUnitRangeFromTextureCoord( + 2.0 * uvwz.y - 1.0, scattering_size.y / 2); + mu = d == 0.0 * m ? Number(1.0) : + ClampCosine((H * H - rho * rho - d * d) / (2.0 * r * d)); + ray_r_mu_intersects_ground = false; + } + + Number x_mu_s = + GetUnitRangeFromTextureCoord(uvwz.x, scattering_size.x); + Length d_min = atmosphere.top_radius - atmosphere.bottom_radius; + Length d_max = H; + Number A = + -2.0 * atmosphere.mu_s_min * atmosphere.bottom_radius / (d_max - d_min); + Number a = (A - x_mu_s * A) / (1.0 + x_mu_s * A); + Length d = d_min + min(a, A) * (d_max - d_min); + mu_s = d == 0.0 * m ? Number(1.0) : + ClampCosine((H * H - d * d) / (2.0 * atmosphere.bottom_radius * d)); +} + +void ComputeSingleScatteringTexture(IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 transmittance_size, + IN(vec3) gl_frag_coord, + uint3 scattering_size, + OUT(IrradianceSpectrum) rayleigh, + OUT(IrradianceSpectrum) mie) { + + Length r; + Number mu; + Number mu_s; + bool ray_r_mu_intersects_ground; + GetRMuMuSNuFromScatteringTextureUvwz(atmosphere, gl_frag_coord, + r, mu, mu_s, ray_r_mu_intersects_ground, scattering_size); + Number nu = GetNuFromMuMus(mu, mu_s); + ComputeSingleScattering(atmosphere, transmittance_texture, transmittance_size, + r, mu, mu_s, nu, ray_r_mu_intersects_ground, rayleigh, mie); +} + +RadianceSpectrum SampleScattering( + IN(AtmosphereParameters) atmosphere, + IN(ScatteringTexture) scattering_texture, + uint3 texture_size, + Length r, Number mu, Number mu_s, bool ray_r_mu_intersects_ground + +) { + vec3 uvwz = GetScatteringTextureUvwzFromRMuMuSNu( + atmosphere, r, mu, mu_s, texture_size, ray_r_mu_intersects_ground); + return tex3Dlod(scattering_texture, float4(uvwz, 0.0)).rgb; +} + +RadianceSpectrum SampleScatteringLerped( + IN(AtmosphereParameters) atmosphere, + IN(ScatteringTexture) scattering_texture, + IN(ScatteringTexture) scattering_texture_2, + float lerpValue, + uint3 texture_size, + Length r, Number mu, Number mu_s, bool ray_r_mu_intersects_ground + +) { + vec3 uvwz = GetScatteringTextureUvwzFromRMuMuSNu( + atmosphere, r, mu, mu_s, texture_size, ray_r_mu_intersects_ground); + return lerp(tex3Dlod(scattering_texture, float4(uvwz, 0.0)).rgb, tex3Dlod(scattering_texture_2, float4(uvwz, 0.0)).rgb, lerpValue); +} + +RadianceSpectrum GetScattering( + IN(AtmosphereParameters) atmosphere, + IN(ReducedScatteringTexture) single_rayleigh_scattering_texture, + IN(ReducedScatteringTexture) single_mie_scattering_texture, + IN(ScatteringTexture) multiple_scattering_texture, + uint3 texture_size, + Length r, Number mu, Number mu_s, Number nu, + bool ray_r_mu_intersects_ground, + int scattering_order + ) { + + if (scattering_order == 1) { + IrradianceSpectrum rayleigh = SampleScattering( + atmosphere, single_rayleigh_scattering_texture, texture_size, r, mu, mu_s, + ray_r_mu_intersects_ground); + IrradianceSpectrum mie = SampleScattering( + atmosphere, single_mie_scattering_texture, texture_size, r, mu, mu_s, + ray_r_mu_intersects_ground); + return rayleigh * RayleighPhaseFunction(nu) + + mie * MiePhaseFunction(atmosphere.mie_phase_function_g, nu); + } + else { + return SampleScattering( + atmosphere, multiple_scattering_texture, texture_size, r, mu, mu_s, + ray_r_mu_intersects_ground); + } +} + +#endif \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc.meta new file mode 100644 index 000000000..49fa16a8d --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 2ef315dd659e48f49ab150ef0aed889b +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/SkyboxRendering.shader b/Assets/Plugins/AtmosphereScattering/Shaders/SkyboxRendering.shader new file mode 100644 index 000000000..3078ec50b --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/SkyboxRendering.shader @@ -0,0 +1,108 @@ +// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' + +Shader "Skybox/AtmosphereScatteringPrecomputed" +{ + Properties + { + } + SubShader + { + // No culling or depth + Cull Off + ZWrite Off + Tags{ + "PreviewType" = "Skybox" + } + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + + #include "UnityCG.cginc" + #include "Lighting.cginc" + #include "MultipleScatteringHelper.cginc" + #include "AerialPerspectiveHelper.cginc" + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float2 uv : TEXCOORD0; + float4 vertex : SV_POSITION; + float4 worldPos : TEXCOORD1; + }; + + v2f vert (appdata v) + { + v2f o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + o.worldPos = mul(unity_ObjectToWorld, v.vertex); + return o; + } + + float _LightScale; + + RadianceSpectrum GetScattering( + IN(AtmosphereParameters) atmosphere, + IN(ScatteringTexture) scattering_texture, + uint3 texture_size, + Length r, Number mu, Number mu_s, bool ray_r_mu_intersects_ground + ); + + void ComputeSingleScattering( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu, Number mu_s, Number nu, + bool ray_r_mu_intersects_ground, + OUT(IrradianceSpectrum) rayleigh, OUT(IrradianceSpectrum) mie); + + half4 frag (v2f i) : SV_Target + { + i.worldPos /= i.worldPos.w; + float3 view_ray = normalize(i.worldPos.xyz - _WorldSpaceCameraPos); + float3 sun_direction = normalize(_WorldSpaceLightPos0.xyz); + AtmosphereParameters atm = GetAtmParameters(); + float3 camera = _WorldSpaceCameraPos + float3(0, atm.bottom_radius, 0); + float r = length(camera); + r = max(r, atm.bottom_radius + 1.0f); //r below bottom_radius causes glitch. + Length rmu = dot(camera, view_ray); + + Length distance_to_top_atmosphere_boundary = -rmu - + sqrt(rmu * rmu - r * r + atm.top_radius * atm.top_radius); + + if (distance_to_top_atmosphere_boundary > 0.0 ) { + camera = camera + view_ray * distance_to_top_atmosphere_boundary; + r = atm.top_radius; + rmu += distance_to_top_atmosphere_boundary; + } + else if (r > atm.top_radius) { + // If the view ray does not intersect the atmosphere, simply return 0. + return 0.0f; + } + + // Compute the r, mu, mu_s and nu parameters needed for the texture lookups. + Number mu = rmu / r; + Number mu_s = dot(camera, sun_direction) / r; + Number nu = dot(view_ray, sun_direction); + bool ray_r_mu_intersects_ground = RayIntersectsGround(atm, r, mu); + + float3 transmittance = GetTransmittanceToTopAtmosphereBoundaryLerped(r, mu) * (ray_r_mu_intersects_ground ? 0.0f : 1.0f); + + float3 direct_sun_strength = 0.0f; + if (!ray_r_mu_intersects_ground) + { + direct_sun_strength = EvaluateSunDiskRadianceOfUnitRadiance(atm, r, mu, nu) * transmittance; + } + return half4((direct_sun_strength + GetTotalScatteringLerped(r, mu, mu_s, nu, ray_r_mu_intersects_ground)), 0.0f); + } + ENDCG + } + } +} diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/SkyboxRendering.shader.meta b/Assets/Plugins/AtmosphereScattering/Shaders/SkyboxRendering.shader.meta new file mode 100644 index 000000000..417a8b063 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/SkyboxRendering.shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: e2088dd19a71d1244976cd0de1ff68a7 +timeCreated: 1531897513 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc b/Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc new file mode 100644 index 000000000..4625646ac --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc @@ -0,0 +1,144 @@ +#ifndef __TRANSMITTANCE_HELPER__ +#define __TRANSMITTANCE_HELPER__ + +#include "Common.cginc" + +vec2 GetTransmittanceTextureUvFromRMu(IN(AtmosphereParameters) atmosphere, + Length r, Number mu, uint2 texture_size) { + // Distance to top atmosphere boundary for a horizontal ray at ground level. + Length H = sqrt(atmosphere.top_radius * atmosphere.top_radius - + atmosphere.bottom_radius * atmosphere.bottom_radius); + // Distance to the horizon. + Length rho = + SafeSqrt(r * r - atmosphere.bottom_radius * atmosphere.bottom_radius); + // Distance to the top atmosphere boundary for the ray (r,mu), and its minimum + // and maximum values over all mu - obtained for (r,1) and (r,mu_horizon). + Length d = DistanceToTopAtmosphereBoundary(atmosphere, r, mu); + Length d_min = atmosphere.top_radius - r; + Length d_max = rho + H; + Number x_mu = (d - d_min) / (d_max - d_min); + Number x_r = rho / H; + return vec2(GetTextureCoordFromUnitRange(x_mu, texture_size.x), + GetTextureCoordFromUnitRange(x_r, texture_size.y)); +} + +void GetRMuFromTransmittanceTextureUv(IN(AtmosphereParameters) atmosphere, + IN(vec2) uv, OUT(Length) r, OUT(Number) mu, int TRANSMITTANCE_TEXTURE_WIDTH, int TRANSMITTANCE_TEXTURE_HEIGHT) { + assert(uv.x >= 0.0 && uv.x <= 1.0); + assert(uv.y >= 0.0 && uv.y <= 1.0); + Number x_mu = GetUnitRangeFromTextureCoord(uv.x, TRANSMITTANCE_TEXTURE_WIDTH); + Number x_r = GetUnitRangeFromTextureCoord(uv.y, TRANSMITTANCE_TEXTURE_HEIGHT); + // Distance to top atmosphere boundary for a horizontal ray at ground level. + Length H = sqrt(atmosphere.top_radius * atmosphere.top_radius - + atmosphere.bottom_radius * atmosphere.bottom_radius); + // Distance to the horizon, from which we can compute r: + Length rho = H * x_r; + r = sqrt(rho * rho + atmosphere.bottom_radius * atmosphere.bottom_radius); + // Distance to the top atmosphere boundary for the ray (r,mu), and its minimum + // and maximum values over all mu - obtained for (r,1) and (r,mu_horizon) - + // from which we can recover mu: + Length d_min = atmosphere.top_radius - r; + Length d_max = rho + H; + Length d = d_min + x_mu * (d_max - d_min); + mu = d == 0.0 ? Number(1.0) : (H * H - rho * rho - d * d) / (2.0 * r * d); + mu = ClampCosine(mu); +} + +DimensionlessSpectrum GetTransmittanceToTopAtmosphereBoundary( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + + vec2 uv = GetTransmittanceTextureUvFromRMu(atmosphere, r, mu, texture_size); + return DimensionlessSpectrum(tex2Dlod(transmittance_texture, float4(uv, 0, 0)).rgb); +} + +DimensionlessSpectrum GetTransmittanceToSun( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu_s) { + Number sin_theta_h = atmosphere.bottom_radius / r; + Number cos_theta_h = -sqrt(max(1.0 - sin_theta_h * sin_theta_h, 0.0)); + return GetTransmittanceToTopAtmosphereBoundary( + atmosphere, transmittance_texture, texture_size, r, mu_s) * + smoothstep(-sin_theta_h * atmosphere.sun_angular_radius / rad, + sin_theta_h * atmosphere.sun_angular_radius / rad, + mu_s - cos_theta_h); +} + +Length ComputeOpticalLengthToTopAtmosphereBoundary( + IN(AtmosphereParameters) atmosphere, Length r, Number mu, Length scale_height) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + // Number of intervals for the numerical integration. + const int SAMPLE_COUNT = 500; + // The integration step, i.e. the length of each integration interval. + Length dx = + DistanceToTopAtmosphereBoundary(atmosphere, r, mu) / Number(SAMPLE_COUNT); + // Integration loop. + Length result = 0.0; + for (int i = 0; i <= SAMPLE_COUNT; ++i) { + Length d_i = Number(i) * dx; + // Distance between the current sample point and the planet center. + Length r_i = sqrt(d_i * d_i + 2.0 * r * mu * d_i + r * r); + // Number density at the current sample point (divided by the number density + // at the bottom of the atmosphere, yielding a dimensionless number). + Number y_i = GetScaleHeight(r_i - atmosphere.bottom_radius, scale_height); + // Sample weight (from the trapezoidal rule). + Number weight_i = i == 0 || i == SAMPLE_COUNT ? 0.5 : 1.0; + result += y_i * weight_i * dx; + } + return result; +} + +DimensionlessSpectrum ComputeTransmittanceToTopAtmosphereBoundary( + IN(AtmosphereParameters) atmosphere, Length r, Number mu) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + return exp(-( + atmosphere.rayleigh_scattering * + ComputeOpticalLengthToTopAtmosphereBoundary( + atmosphere, r, mu, atmosphere.rayleigh_scale_height) + + atmosphere.mie_extinction * + ComputeOpticalLengthToTopAtmosphereBoundary( + atmosphere, r, mu, atmosphere.mie_scale_height) + + atmosphere.absorption_extinction * + ComputeOpticalLengthToTopAtmosphereBoundary( + atmosphere, r, mu, atmosphere.absorption_extinction_scale_height) + ) + ); +} + +DimensionlessSpectrum GetTransmittance( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu, Length d, bool ray_r_mu_intersects_ground) { + assert(r >= atmosphere.bottom_radius && r <= atmosphere.top_radius); + assert(mu >= -1.0 && mu <= 1.0); + assert(d >= 0.0 * m); + + Length r_d = ClampRadius(atmosphere, sqrt(d * d + 2.0 * r * mu * d + r * r)); + Number mu_d = ClampCosine((r * mu + d) / r_d); + + if (ray_r_mu_intersects_ground) { + return min( + GetTransmittanceToTopAtmosphereBoundary( + atmosphere, transmittance_texture, texture_size, r_d, -mu_d) / + GetTransmittanceToTopAtmosphereBoundary( + atmosphere, transmittance_texture, texture_size, r, -mu), + DimensionlessSpectrum(1.0, 1.0, 1.0)); + } + else { + return min( + GetTransmittanceToTopAtmosphereBoundary( + atmosphere, transmittance_texture, texture_size, r, mu) / + GetTransmittanceToTopAtmosphereBoundary( + atmosphere, transmittance_texture, texture_size, r_d, mu_d), + DimensionlessSpectrum(1.0, 1.0, 1.0)); + } +} +#endif \ No newline at end of file diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc.meta b/Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc.meta new file mode 100644 index 000000000..5d9418e02 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: c7015e6cfed6e2e46992e2af76282301 +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Shaders/VolumeTexturePreview.shader b/Assets/Plugins/AtmosphereScattering/Shaders/VolumeTexturePreview.shader new file mode 100644 index 000000000..5b9f8b665 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Shaders/VolumeTexturePreview.shader @@ -0,0 +1,58 @@ +Shader "Unlit/VolumeTexturePreview" +{ + Properties + { + _MainTex ("Texture", 3D) = "white" {} + } + SubShader + { + Tags { "RenderType"="Opaque" } + LOD 100 + + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + // make fog work + #pragma multi_compile_fog + + #include "UnityCG.cginc" + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float2 uv : TEXCOORD0; + UNITY_FOG_COORDS(1) + float4 vertex : SV_POSITION; + float4 worldPos : TEXCOORD1; + }; + + sampler3D _MainTex; + float4 _MainTex_ST; + + v2f vert (appdata v) + { + v2f o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = TRANSFORM_TEX(v.uv, _MainTex); + o.worldPos = mul(unity_ObjectToWorld, v.vertex); + UNITY_TRANSFER_FOG(o,o.vertex); + return o; + } + + fixed4 frag (v2f i) : SV_Target + { + // sample the texture + fixed4 col = tex3D(_MainTex, i.worldPos / i.worldPos.w); + return col; + } + ENDCG + } + } +} diff --git a/Assets/Plugins/PDTAA/Shaders/TemporalReprojection.shader.meta b/Assets/Plugins/AtmosphereScattering/Shaders/VolumeTexturePreview.shader.meta similarity index 58% rename from Assets/Plugins/PDTAA/Shaders/TemporalReprojection.shader.meta rename to Assets/Plugins/AtmosphereScattering/Shaders/VolumeTexturePreview.shader.meta index 64356f371..b92f7b6b9 100644 --- a/Assets/Plugins/PDTAA/Shaders/TemporalReprojection.shader.meta +++ b/Assets/Plugins/AtmosphereScattering/Shaders/VolumeTexturePreview.shader.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 7ca93c1a56ee0154b8c714591d6d211a -timeCreated: 1437991034 -licenseType: Pro +guid: e6e68121d3504774dbf546d1f331c83a ShaderImporter: + externalObjects: {} defaultTextures: [] userData: assetBundleName: diff --git a/Assets/Plugins/AtmosphereScattering/Transparent.meta b/Assets/Plugins/AtmosphereScattering/Transparent.meta new file mode 100644 index 000000000..d11a74147 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 37b0cb2f245dc7b4cb3dda322844678e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Transparent/CompareScene.unity b/Assets/Plugins/AtmosphereScattering/Transparent/CompareScene.unity new file mode 100644 index 000000000..d68b1a917 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent/CompareScene.unity @@ -0,0 +1,526 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.17984006, g: 0.22517684, b: 0.3066335, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 9 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &7102893 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 7102896} + - component: {fileID: 7102895} + - component: {fileID: 7102894} + - component: {fileID: 7102898} + - component: {fileID: 7102897} + - component: {fileID: 7102899} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &7102894 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 +--- !u!20 &7102895 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 10000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &7102896 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -172.5} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &7102897 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff26db721962cdf4a8edcdfa9a767d2a, type: 3} + m_Name: + m_EditorClassIdentifier: + profile: {fileID: 11400000, guid: 16ee1eaff8bdab6429f048d7a5b1d15f, type: 2} +--- !u!114 &7102898 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45d85419f2e23c540999c1a1fee6ed90, type: 3} + m_Name: + m_EditorClassIdentifier: + distance: 10 + center: {x: 0, y: 0, z: 0} + scale: 1 + distanceSpeed: 0.1 + rotationSpeed: 0.1 +--- !u!114 &7102899 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 7102893} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b535dacf702e20c4b9ef528e42081835, type: 3} + m_Name: + m_EditorClassIdentifier: + volumeTexSize: {x: 128, y: 128, z: 32} +--- !u!1 &74323546 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 74323548} + - component: {fileID: 74323547} + - component: {fileID: 74323549} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &74323547 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 74323546} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &74323548 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 74323546} + m_LocalRotation: {x: 0.43573615, y: -0, z: -0, w: 0.9000745} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 51.664, y: 0, z: 0} +--- !u!114 &74323549 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 74323546} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 325c269146dc2ac49b190f730a961573, type: 3} + m_Name: + m_EditorClassIdentifier: + basePosition: {x: 0, y: 50, z: 0} +--- !u!1 &297555710 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 297555712} + - component: {fileID: 297555711} + m_Layer: 0 + m_Name: LutManager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &297555711 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 297555710} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e16dd2ddbdfa7ea4f87a3cfb032ffd0f, type: 3} + m_Name: + m_EditorClassIdentifier: + computeShader: {fileID: 7200000, guid: 2d4396a54b390d742b84d4bb4a122e54, type: 3} + outputDebug: 0 + lutConfig: + transmittanceSize: {x: 256, y: 128} + scatteringSize: {x: 32, y: 128, z: 32} + irradianceSize: {x: 64, y: 32} + cameraVolumeSize: {x: 128, y: 128, z: 32} + atmosphereConfig: {fileID: 11400000, guid: 8e73e89daf00b8447b2410427953df25, type: 2} + skyboxMaterial: {fileID: 0} +--- !u!4 &297555712 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 297555710} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 2.736024, y: 2.8123064, z: -0.70711327} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &563571916 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 563571920} + - component: {fileID: 563571919} + - component: {fileID: 563571918} + - component: {fileID: 563571917} + m_Layer: 0 + m_Name: Opaque + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &563571917 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 563571916} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_Materials: + - {fileID: 2100000, guid: 222fb78855dcd5c42b991cd095da28fa, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &563571918 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 563571916} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &563571919 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 563571916} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &563571920 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 563571916} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 2484, y: 1, z: -4.01} + m_LocalScale: {x: 1655.8981, y: 82.79491, z: 1655.8981} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1764631964 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1764631968} + - component: {fileID: 1764631967} + - component: {fileID: 1764631966} + - component: {fileID: 1764631965} + m_Layer: 0 + m_Name: Transparent + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1764631965 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_Materials: + - {fileID: 2100000, guid: b928a4c54f20eaa458c853f105a16f9a, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1764631966 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1764631967 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1764631968 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1764631964} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -4.01} + m_LocalScale: {x: 1655.8981, y: 82.79491, z: 1655.8981} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta b/Assets/Plugins/AtmosphereScattering/Transparent/CompareScene.unity.meta similarity index 74% rename from Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta rename to Assets/Plugins/AtmosphereScattering/Transparent/CompareScene.unity.meta index 4bde6ad64..61e259a1a 100644 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta +++ b/Assets/Plugins/AtmosphereScattering/Transparent/CompareScene.unity.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 03e7708501515d84aab396db1cb4849f +guid: 694a3c0c25cb46646891cc9878b1ee07 DefaultImporter: externalObjects: {} userData: diff --git a/Assets/Plugins/AtmosphereScattering/Transparent/Opaque.mat b/Assets/Plugins/AtmosphereScattering/Transparent/Opaque.mat new file mode 100644 index 000000000..d576c0dde --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent/Opaque.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Opaque + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0, g: 0, b: 0, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Plugins/AtmosphereScattering/Transparent/Opaque.mat.meta b/Assets/Plugins/AtmosphereScattering/Transparent/Opaque.mat.meta new file mode 100644 index 000000000..86611eec7 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent/Opaque.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 222fb78855dcd5c42b991cd095da28fa +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Transparent/Transparent-Ap.mat b/Assets/Plugins/AtmosphereScattering/Transparent/Transparent-Ap.mat new file mode 100644 index 000000000..1c84e4bdf --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent/Transparent-Ap.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Transparent-Ap + m_Shader: {fileID: 4800000, guid: 7060206adfb8023499f89d502c3431fa, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0, g: 0, b: 0, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Plugins/AtmosphereScattering/Transparent/Transparent-Ap.mat.meta b/Assets/Plugins/AtmosphereScattering/Transparent/Transparent-Ap.mat.meta new file mode 100644 index 000000000..17f70019a --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent/Transparent-Ap.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b928a4c54f20eaa458c853f105a16f9a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/AtmosphereScattering/Transparent/TransparentExample.shader b/Assets/Plugins/AtmosphereScattering/Transparent/TransparentExample.shader new file mode 100644 index 000000000..ade6e8ce5 --- /dev/null +++ b/Assets/Plugins/AtmosphereScattering/Transparent/TransparentExample.shader @@ -0,0 +1,100 @@ +Shader "Ap/TransparentExample" { + Properties { + _Color ("Color", Color) = (1,1,1,1) + _MainTex ("Albedo (RGB)", 2D) = "white" {} + _Glossiness ("Smoothness", Range(0,1)) = 0.5 + _Metallic ("Metallic", Range(0,1)) = 0.0 + } + SubShader { + Tags { + "RenderType"="Transparent" + "Queue" = "Transparent" + } + LOD 200 + + CGPROGRAM + //We enable alpha to use transparent + //Use finalcolor modifier to add ap to final result. + //And we need custom vs to calculate ap info on every vertex. + #pragma surface surf Standard fullforwardshadows alpha finalcolor:aerialPerspective vertex:vert + + // Use shader model 3.0 target, to get nicer looking lighting + #pragma target 3.0 + + + //Declare these values to use later. + float3 _SunIrradianceOnAtm; + sampler3D _CameraVolumeTransmittance; + sampler3D _CameraVolumeScattering; + + float3 GetTransmittanceWithCameraVolume(float3 uvw) { + return tex3Dlod(_CameraVolumeTransmittance, float4(uvw, 0.0f)).rgb; + } + + float3 GetScatteringWithCameraVolume(float3 uvw) { + return tex3Dlod(_CameraVolumeScattering, float4(uvw, 0.0f)).rgb; + } + + struct Input { + float2 uv_MainTex; + + //Add these two to interpolate. Sample them from 3d volume in vertex shader. + float3 ap_transmittance; + float3 ap_scattering; + }; + + void vert(inout appdata_full v, out Input o) { + UNITY_INITIALIZE_OUTPUT(Input, o); + + //Get uv using clip pos. + float4 hpos = UnityObjectToClipPos(v.vertex); + float3 ap_volume_uvw = float3(hpos.xy / hpos.w, 0.0f); + ap_volume_uvw.xy = (ap_volume_uvw + 1.0f) / 2.0f; + + //Get w using view pos. + float3 view_pos = UnityObjectToViewPos(v.vertex); + view_pos.z *= -1; + ap_volume_uvw.z = (view_pos.z - _ProjectionParams.y) / (_ProjectionParams.z - _ProjectionParams.y); + + //Set them to output. + o.ap_transmittance = GetTransmittanceWithCameraVolume(ap_volume_uvw); + o.ap_scattering = GetScatteringWithCameraVolume(ap_volume_uvw); + } + + void aerialPerspective(Input IN, SurfaceOutputStandard o, inout fixed4 color) + { + //Edit final color using following formular. + color.xyz = color.xyz * IN.ap_transmittance + color.a * IN.ap_scattering * _SunIrradianceOnAtm; + + //I'm not pretty familiar with how Unity deal with Transparent and alpha, but it seems to be correct to mult scattering with color.a + } + + //======================================================================== + //Following are default standard shader setup. Nothing changed. + //======================================================================== + + sampler2D _MainTex; + half _Glossiness; + half _Metallic; + fixed4 _Color; + + // Add instancing support for this shader. You need to check 'Enable Instancing' on materials that use the shader. + // See https://docs.unity3d.com/Manual/GPUInstancing.html for more information about instancing. + // #pragma instancing_options assumeuniformscaling + UNITY_INSTANCING_BUFFER_START(Props) + // put more per-instance properties here + UNITY_INSTANCING_BUFFER_END(Props) + + void surf (Input IN, inout SurfaceOutputStandard o) { + // Albedo comes from a texture tinted by color + fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; + o.Albedo = c.rgb; + // Metallic and smoothness come from slider variables + o.Metallic = _Metallic; + o.Smoothness = _Glossiness; + o.Alpha = c.a; + } + ENDCG + } + FallBack "Diffuse" +} diff --git a/Assets/Plugins/PDTAA/Shaders/IncDepth.cginc.meta b/Assets/Plugins/AtmosphereScattering/Transparent/TransparentExample.shader.meta similarity index 58% rename from Assets/Plugins/PDTAA/Shaders/IncDepth.cginc.meta rename to Assets/Plugins/AtmosphereScattering/Transparent/TransparentExample.shader.meta index 5d4143ebb..f839a87af 100644 --- a/Assets/Plugins/PDTAA/Shaders/IncDepth.cginc.meta +++ b/Assets/Plugins/AtmosphereScattering/Transparent/TransparentExample.shader.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: e84bd3245769b9746ae57a016126a416 -timeCreated: 1486464894 -licenseType: Pro +guid: 7060206adfb8023499f89d502c3431fa ShaderImporter: + externalObjects: {} defaultTextures: [] userData: assetBundleName: diff --git a/Assets/Plugins/PDTAA/Scenes.meta b/Assets/Plugins/PDTAA/Scenes.meta deleted file mode 100644 index b0f0e39e8..000000000 --- a/Assets/Plugins/PDTAA/Scenes.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 84601beb499ecf74f8daebb154302aab -folderAsset: yes -timeCreated: 1457526840 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scenes/Example.unity b/Assets/Plugins/PDTAA/Scenes/Example.unity deleted file mode 100644 index c18f7deb2..000000000 --- a/Assets/Plugins/PDTAA/Scenes/Example.unity +++ /dev/null @@ -1,3329 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &4 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 12 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 12 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 0 - m_CompAOExponentDirect: 0 - m_ExtractAmbientOcclusion: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 1024 - m_ReflectionCompression: 2 - m_MixedBakeMode: 1 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 512 - m_PVRBounces: 2 - m_PVREnvironmentSampleCount: 512 - m_PVREnvironmentReferencePointCount: 2048 - m_PVRFilteringMode: 0 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVREnvironmentMIS: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_LightProbeSampleCountMultiplier: 4 - m_LightingDataAsset: {fileID: 0} - m_LightingSettings: {fileID: 4890085278179872738, guid: 1c55129e293c5ff4b9633c77e1ac6f25, - type: 2} ---- !u!196 &5 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - maxJobWorkers: 0 - preserveTilesOutsideBounds: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &176001278 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 176001282} - - component: {fileID: 176001281} - - component: {fileID: 176001280} - - component: {fileID: 176001279} - - component: {fileID: 176001283} - m_Layer: 0 - m_Name: Cube 17 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &176001279 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &176001280 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &176001281 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &176001282 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 17 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &176001283 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &204032602 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 204032603} - - component: {fileID: 204032606} - - component: {fileID: 204032605} - - component: {fileID: 204032604} - - component: {fileID: 204032607} - m_Layer: 0 - m_Name: Cube 22 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &204032603 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 22 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &204032604 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &204032605 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &204032606 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &204032607 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &252243712 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 252243713} - - component: {fileID: 252243716} - - component: {fileID: 252243715} - - component: {fileID: 252243714} - - component: {fileID: 252243717} - m_Layer: 0 - m_Name: Cube 5 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &252243713 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &252243714 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &252243715 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &252243716 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &252243717 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &291320570 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 291320571} - - component: {fileID: 291320574} - - component: {fileID: 291320573} - - component: {fileID: 291320572} - - component: {fileID: 291320575} - m_Layer: 0 - m_Name: Cube 11 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &291320571 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 11 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &291320572 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &291320573 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &291320574 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &291320575 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &418973666 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 418973667} - - component: {fileID: 418973670} - - component: {fileID: 418973669} - - component: {fileID: 418973668} - - component: {fileID: 418973671} - m_Layer: 0 - m_Name: Cube 19 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &418973667 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 0, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 19 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &418973668 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &418973669 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &418973670 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &418973671 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &460318359 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 460318360} - - component: {fileID: 460318363} - - component: {fileID: 460318362} - - component: {fileID: 460318361} - - component: {fileID: 460318364} - m_Layer: 0 - m_Name: Cube 20 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &460318360 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 0, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 20 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &460318361 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &460318362 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &460318363 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &460318364 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &643959265 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 643959266} - - component: {fileID: 643959269} - - component: {fileID: 643959268} - - component: {fileID: 643959267} - - component: {fileID: 643959270} - m_Layer: 0 - m_Name: Cube 18 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &643959266 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 18 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &643959267 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &643959268 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &643959269 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &643959270 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &652144616 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 652144617} - - component: {fileID: 652144620} - - component: {fileID: 652144619} - - component: {fileID: 652144618} - - component: {fileID: 652144621} - m_Layer: 0 - m_Name: Cube 7 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &652144617 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: -2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 7 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &652144618 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &652144619 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &652144620 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &652144621 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &816251741 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 816251742} - - component: {fileID: 816251745} - - component: {fileID: 816251744} - - component: {fileID: 816251743} - - component: {fileID: 816251746} - m_Layer: 0 - m_Name: Cube 23 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &816251742 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 23 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &816251743 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &816251744 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &816251745 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &816251746 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &832327120 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 832327121} - - component: {fileID: 832327124} - - component: {fileID: 832327123} - - component: {fileID: 832327122} - - component: {fileID: 832327125} - m_Layer: 0 - m_Name: Cube 12 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &832327121 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 12 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &832327122 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &832327123 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &832327124 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &832327125 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &972649934 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 972649935} - - component: {fileID: 972649938} - - component: {fileID: 972649937} - - component: {fileID: 972649936} - - component: {fileID: 972649939} - m_Layer: 0 - m_Name: Cube 4 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &972649935 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &972649936 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &972649937 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &972649938 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &972649939 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &974352190 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 974352195} - - component: {fileID: 974352194} - - component: {fileID: 974352193} - - component: {fileID: 974352192} - - component: {fileID: 974352191} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &974352191 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 65f5677aa325c184f801528d78a73827, type: 3} - m_Name: - m_EditorClassIdentifier: - ditherTex: {fileID: 0} - reprojectionShader: {fileID: 4800000, guid: 7ca93c1a56ee0154b8c714591d6d211a, type: 3} - colorspace: 0 - useHigherOrderFilteringMainColor: 0 - useHigherOrderFilteringHistory: 1 - historyRectification: 0 - useVarianceClipping: 1 - useAABBRounding: 1 - dilation: 2 - useMotionBlur: 1 - feedbackMin: 0.88 - feedbackMax: 0.97 - motionBlurStrength: 1 - motionBlurIgnoreFF: 0 ---- !u!114 &974352192 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b642ff60407fe724bafa6602199213c0, type: 3} - m_Name: - m_EditorClassIdentifier: - velocityShader: {fileID: 4800000, guid: 0d7f09e63dd99504ca6e04212a21ec72, type: 3} - neighborMaxGen: 0 - neighborMaxSupport: 1 - numResident: 0 - numRendered: 0 - numDrawCalls: 0 ---- !u!114 &974352193 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 899f97884c6d96b4ca20648ec109a37f, type: 3} - m_Name: - m_EditorClassIdentifier: - pattern: 12 - patternScale: 1 - activeSample: {x: 0, y: 0, z: 0, w: 0} - activeIndex: -2 ---- !u!20 &974352194 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} - m_projectionMatrixMode: 1 - m_GateFitMode: 2 - m_FOVAxisMode: 0 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &974352195 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_LocalRotation: {x: 0, y: 0, z: 0.11320323, w: 0.9935719} - m_LocalPosition: {x: 0, y: 0, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1008989354 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1008989355} - - component: {fileID: 1008989358} - - component: {fileID: 1008989357} - - component: {fileID: 1008989356} - - component: {fileID: 1008989359} - m_Layer: 0 - m_Name: Cube 10 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1008989355 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: -2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 10 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1008989356 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1008989357 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1008989358 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1008989359 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1048779046 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1048779047} - - component: {fileID: 1048779050} - - component: {fileID: 1048779049} - - component: {fileID: 1048779048} - - component: {fileID: 1048779051} - m_Layer: 0 - m_Name: Cube 1 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1048779047 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1048779048 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1048779049 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1048779050 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1048779051 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1081840984 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1081840985} - - component: {fileID: 1081840988} - - component: {fileID: 1081840987} - - component: {fileID: 1081840986} - - component: {fileID: 1081840989} - m_Layer: 0 - m_Name: Cube 14 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1081840985 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 14 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1081840986 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1081840987 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1081840988 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1081840989 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1142019120 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1142019121} - - component: {fileID: 1142019124} - - component: {fileID: 1142019123} - - component: {fileID: 1142019122} - - component: {fileID: 1142019125} - m_Layer: 0 - m_Name: Cube 15 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1142019121 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 0, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 15 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1142019122 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1142019123 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1142019124 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1142019125 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1160286796 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1160286797} - - component: {fileID: 1160286800} - - component: {fileID: 1160286799} - - component: {fileID: 1160286798} - - component: {fileID: 1160286801} - m_Layer: 0 - m_Name: Cube 3 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1160286797 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1160286798 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1160286799 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1160286800 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1160286801 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1213123303 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1213123304} - - component: {fileID: 1213123307} - - component: {fileID: 1213123306} - - component: {fileID: 1213123305} - - component: {fileID: 1213123308} - m_Layer: 0 - m_Name: Cube 9 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1213123304 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: -2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 9 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1213123305 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1213123306 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1213123307 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1213123308 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1457121321 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1457121322} - - component: {fileID: 1457121325} - - component: {fileID: 1457121324} - - component: {fileID: 1457121323} - - component: {fileID: 1457121326} - m_Layer: 0 - m_Name: Cube 26 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1457121322 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 26 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1457121323 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1457121324 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1457121325 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1457121326 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1474086403 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1474086404} - - component: {fileID: 1474086407} - - component: {fileID: 1474086406} - - component: {fileID: 1474086405} - - component: {fileID: 1474086408} - m_Layer: 0 - m_Name: Cube 21 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1474086404 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 21 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1474086405 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1474086406 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1474086407 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1474086408 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1481814646 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1481814647} - - component: {fileID: 1481814650} - - component: {fileID: 1481814649} - - component: {fileID: 1481814648} - - component: {fileID: 1481814651} - m_Layer: 0 - m_Name: Cube 0 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1481814647 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1481814648 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1481814649 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1481814650 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1481814651 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1774893413 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1774893414} - - component: {fileID: 1774893417} - - component: {fileID: 1774893416} - - component: {fileID: 1774893415} - - component: {fileID: 1774893418} - m_Layer: 0 - m_Name: Cube 13 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1774893414 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 13 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1774893415 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1774893416 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1774893417 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1774893418 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1790303634 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1790303635} - - component: {fileID: 1790303638} - - component: {fileID: 1790303637} - - component: {fileID: 1790303636} - - component: {fileID: 1790303639} - m_Layer: 0 - m_Name: Cube 24 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1790303635 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 24 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1790303636 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1790303637 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1790303638 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1790303639 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1953871924 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1953871925} - - component: {fileID: 1953871928} - - component: {fileID: 1953871927} - - component: {fileID: 1953871926} - - component: {fileID: 1953871929} - m_Layer: 0 - m_Name: Cube 6 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1953871925 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1953871926 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1953871927 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1953871928 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1953871929 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1962539666 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1962539667} - m_Layer: 0 - m_Name: Geometry - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1962539667 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1962539666} - m_LocalRotation: {x: -0.52323425, y: -0.5694426, z: 0.59020317, w: -0.23156308} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1481814647} - - {fileID: 1048779047} - - {fileID: 2118044276} - - {fileID: 1160286797} - - {fileID: 972649935} - - {fileID: 252243713} - - {fileID: 1953871925} - - {fileID: 652144617} - - {fileID: 2084969892} - - {fileID: 1213123304} - - {fileID: 1008989355} - - {fileID: 291320571} - - {fileID: 832327121} - - {fileID: 1774893414} - - {fileID: 1081840985} - - {fileID: 1142019121} - - {fileID: 1987364571} - - {fileID: 176001282} - - {fileID: 643959266} - - {fileID: 418973667} - - {fileID: 460318360} - - {fileID: 1474086404} - - {fileID: 204032603} - - {fileID: 816251742} - - {fileID: 1790303635} - - {fileID: 1997669227} - - {fileID: 1457121322} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1987364570 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1987364571} - - component: {fileID: 1987364574} - - component: {fileID: 1987364573} - - component: {fileID: 1987364572} - - component: {fileID: 1987364575} - m_Layer: 0 - m_Name: Cube 16 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1987364571 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 0, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 16 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1987364572 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1987364573 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1987364574 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1987364575 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1997669226 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1997669227} - - component: {fileID: 1997669230} - - component: {fileID: 1997669229} - - component: {fileID: 1997669228} - - component: {fileID: 1997669231} - m_Layer: 0 - m_Name: Cube 25 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1997669227 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 25 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1997669228 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1997669229 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1997669230 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1997669231 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &2025781233 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2025781235} - - component: {fileID: 2025781234} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &2025781234 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2025781233} - m_Enabled: 1 - serializedVersion: 10 - m_Type: 1 - m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_InnerSpotAngle: 21.80208 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_CullingMatrixOverride: - e00: 1 - e01: 0 - e02: 0 - e03: 0 - e10: 0 - e11: 1 - e12: 0 - e13: 0 - e20: 0 - e21: 0 - e22: 1 - e23: 0 - e30: 0 - e31: 0 - e32: 0 - e33: 1 - m_UseCullingMatrixOverride: 0 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingLayerMask: 1 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} - m_UseBoundingSphereOverride: 0 - m_UseViewFrustumForShadowCasterCull: 1 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &2025781235 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2025781233} - m_LocalRotation: {x: 0.40821794, y: -0.23456973, z: 0.109381676, w: 0.87542605} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2084969891 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2084969892} - - component: {fileID: 2084969895} - - component: {fileID: 2084969894} - - component: {fileID: 2084969893} - - component: {fileID: 2084969896} - m_Layer: 0 - m_Name: Cube 8 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2084969892 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: -2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 8 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2084969893 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &2084969894 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &2084969895 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &2084969896 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &2118044275 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2118044276} - - component: {fileID: 2118044279} - - component: {fileID: 2118044278} - - component: {fileID: 2118044277} - - component: {fileID: 2118044280} - m_Layer: 0 - m_Name: Cube 2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2118044276 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2118044277 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &2118044278 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &2118044279 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &2118044280 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/Assets/Plugins/PDTAA/Scenes/Example.unity.meta b/Assets/Plugins/PDTAA/Scenes/Example.unity.meta deleted file mode 100644 index b7d39ec2e..000000000 --- a/Assets/Plugins/PDTAA/Scenes/Example.unity.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7b926f3795cf3f3468014ed343f77d48 -timeCreated: 1457528618 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scenes/Example2.unity b/Assets/Plugins/PDTAA/Scenes/Example2.unity deleted file mode 100644 index dfc329748..000000000 --- a/Assets/Plugins/PDTAA/Scenes/Example2.unity +++ /dev/null @@ -1,2971 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &4 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 12 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 12 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 0 - m_CompAOExponentDirect: 0 - m_ExtractAmbientOcclusion: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 1024 - m_ReflectionCompression: 2 - m_MixedBakeMode: 1 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVREnvironmentSampleCount: 500 - m_PVREnvironmentReferencePointCount: 2048 - m_PVRFilteringMode: 0 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVREnvironmentMIS: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_LightProbeSampleCountMultiplier: 4 - m_LightingDataAsset: {fileID: 0} - m_LightingSettings: {fileID: 4890085278179872738, guid: 43d0b8710108a7342b2ba1d10fc8206f, - type: 2} ---- !u!196 &5 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - maxJobWorkers: 0 - preserveTilesOutsideBounds: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &176001278 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 176001282} - - component: {fileID: 176001281} - - component: {fileID: 176001279} - - component: {fileID: 176001283} - m_Layer: 0 - m_Name: Cube 17 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &176001279 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: e19bad4ca5d2e5f4ca08ac6e97e8d1f3, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &176001281 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &176001282 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 17 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &176001283 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 176001278} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &204032602 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 204032603} - - component: {fileID: 204032606} - - component: {fileID: 204032604} - - component: {fileID: 204032607} - m_Layer: 0 - m_Name: Cube 22 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &204032603 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 22 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &204032604 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 83de670964d44bc4fa0c414c665725d8, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &204032606 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &204032607 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 204032602} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &252243712 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 252243713} - - component: {fileID: 252243716} - - component: {fileID: 252243714} - - component: {fileID: 252243717} - m_Layer: 0 - m_Name: Cube 5 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &252243713 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &252243714 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &252243716 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &252243717 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 252243712} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &291320570 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 291320571} - - component: {fileID: 291320574} - - component: {fileID: 291320572} - - component: {fileID: 291320575} - m_Layer: 0 - m_Name: Cube 11 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &291320571 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 11 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &291320572 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &291320574 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &291320575 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 291320570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &418973666 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 418973667} - - component: {fileID: 418973670} - - component: {fileID: 418973668} - - component: {fileID: 418973671} - m_Layer: 0 - m_Name: Cube 19 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &418973667 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 0, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 19 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &418973668 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &418973670 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &418973671 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418973666} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &460318359 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 460318360} - - component: {fileID: 460318363} - - component: {fileID: 460318361} - - component: {fileID: 460318364} - m_Layer: 0 - m_Name: Cube 20 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &460318360 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 0, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 20 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &460318361 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 83de670964d44bc4fa0c414c665725d8, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &460318363 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &460318364 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 460318359} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &643959265 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 643959266} - - component: {fileID: 643959269} - - component: {fileID: 643959267} - - component: {fileID: 643959270} - m_Layer: 0 - m_Name: Cube 18 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &643959266 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 18 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &643959267 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 69fe83c2707225f4eb20aa6a0d91e7ba, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &643959269 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &643959270 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 643959265} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &652144616 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 652144617} - - component: {fileID: 652144620} - - component: {fileID: 652144618} - - component: {fileID: 652144621} - m_Layer: 0 - m_Name: Cube 7 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &652144617 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: -2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 7 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &652144618 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &652144620 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &652144621 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 652144616} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &816251741 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 816251742} - - component: {fileID: 816251745} - - component: {fileID: 816251743} - - component: {fileID: 816251746} - m_Layer: 0 - m_Name: Cube 23 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &816251742 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 23 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &816251743 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &816251745 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &816251746 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 816251741} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &832327120 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 832327121} - - component: {fileID: 832327124} - - component: {fileID: 832327122} - - component: {fileID: 832327125} - m_Layer: 0 - m_Name: Cube 12 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &832327121 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 12 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &832327122 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: aa482f47fb4e86a41b3320ad99207b9b, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &832327124 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &832327125 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 832327120} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &972649934 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 972649935} - - component: {fileID: 972649938} - - component: {fileID: 972649936} - - component: {fileID: 972649939} - m_Layer: 0 - m_Name: Cube 4 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &972649935 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &972649936 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: e19bad4ca5d2e5f4ca08ac6e97e8d1f3, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &972649938 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &972649939 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 972649934} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &974352190 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 974352195} - - component: {fileID: 974352194} - - component: {fileID: 974352193} - - component: {fileID: 974352192} - - component: {fileID: 974352191} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &974352191 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 65f5677aa325c184f801528d78a73827, type: 3} - m_Name: - m_EditorClassIdentifier: - ditherTex: {fileID: 2800000, guid: 859f329ee8606864ea19dbf373a5ec56, type: 3} - reprojectionShader: {fileID: 4800000, guid: 7ca93c1a56ee0154b8c714591d6d211a, type: 3} - colorspace: 0 - useHigherOrderFilteringMainColor: 0 - useHigherOrderFilteringHistory: 1 - historyRectification: 0 - useVarianceClipping: 1 - useAABBRounding: 1 - dilation: 2 - useMotionBlur: 1 - feedbackMin: 0.88 - feedbackMax: 0.97 - motionBlurStrength: 1 - motionBlurIgnoreFF: 0 ---- !u!114 &974352192 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b642ff60407fe724bafa6602199213c0, type: 3} - m_Name: - m_EditorClassIdentifier: - velocityShader: {fileID: 4800000, guid: 0d7f09e63dd99504ca6e04212a21ec72, type: 3} - neighborMaxGen: 0 - neighborMaxSupport: 1 - numResident: 0 - numRendered: 0 - numDrawCalls: 0 ---- !u!114 &974352193 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 899f97884c6d96b4ca20648ec109a37f, type: 3} - m_Name: - m_EditorClassIdentifier: - pattern: 13 - patternScale: 1 - activeSample: {x: 0, y: 0, z: 0, w: 0} - activeIndex: -2 ---- !u!20 &974352194 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} - m_projectionMatrixMode: 1 - m_GateFitMode: 2 - m_FOVAxisMode: 0 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 1 - far clip plane: 100 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &974352195 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 974352190} - m_LocalRotation: {x: 0, y: 0, z: 0.11320323, w: 0.9935719} - m_LocalPosition: {x: -2.84, y: 0, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1008989354 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1008989355} - - component: {fileID: 1008989358} - - component: {fileID: 1008989356} - - component: {fileID: 1008989359} - m_Layer: 0 - m_Name: Cube 10 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1008989355 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: -2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 10 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1008989356 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: aa482f47fb4e86a41b3320ad99207b9b, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1008989358 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1008989359 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1008989354} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1048779046 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1048779047} - - component: {fileID: 1048779050} - - component: {fileID: 1048779048} - - component: {fileID: 1048779051} - m_Layer: 0 - m_Name: Cube 1 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1048779047 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1048779048 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1048779050 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1048779051 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1048779046} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1081840984 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1081840985} - - component: {fileID: 1081840988} - - component: {fileID: 1081840986} - - component: {fileID: 1081840989} - m_Layer: 0 - m_Name: Cube 14 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1081840985 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 14 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1081840986 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 72003e21f911862498a5f68d130335ab, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1081840988 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1081840989 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1081840984} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1142019120 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1142019121} - - component: {fileID: 1142019124} - - component: {fileID: 1142019122} - - component: {fileID: 1142019125} - m_Layer: 0 - m_Name: Cube 15 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1142019121 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 0, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 15 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1142019122 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1142019124 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1142019125 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142019120} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1160286796 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1160286797} - - component: {fileID: 1160286800} - - component: {fileID: 1160286798} - - component: {fileID: 1160286801} - m_Layer: 0 - m_Name: Cube 3 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1160286797 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1160286798 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 69fe83c2707225f4eb20aa6a0d91e7ba, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1160286800 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1160286801 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1160286796} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1213123303 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1213123304} - - component: {fileID: 1213123307} - - component: {fileID: 1213123305} - - component: {fileID: 1213123308} - m_Layer: 0 - m_Name: Cube 9 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1213123304 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: -2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 9 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1213123305 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1213123307 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1213123308 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1213123303} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1457121321 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1457121322} - - component: {fileID: 1457121325} - - component: {fileID: 1457121323} - - component: {fileID: 1457121326} - m_Layer: 0 - m_Name: Cube 26 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1457121322 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 26 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1457121323 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1457121325 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1457121326 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457121321} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1474086403 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1474086404} - - component: {fileID: 1474086407} - - component: {fileID: 1474086405} - - component: {fileID: 1474086408} - m_Layer: 0 - m_Name: Cube 21 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1474086404 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 21 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1474086405 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1474086407 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1474086408 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474086403} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1481814646 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1481814647} - - component: {fileID: 1481814650} - - component: {fileID: 1481814648} - - component: {fileID: 1481814651} - m_Layer: 0 - m_Name: Cube 0 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1481814647 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1481814648 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 5cd5ecc4e3fccb243a6c4ee1d9538dce, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1481814650 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1481814651 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1481814646} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1774893413 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1774893414} - - component: {fileID: 1774893417} - - component: {fileID: 1774893415} - - component: {fileID: 1774893418} - m_Layer: 0 - m_Name: Cube 13 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1774893414 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 2, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 13 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1774893415 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1774893417 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1774893418 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774893413} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1790303634 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1790303635} - - component: {fileID: 1790303638} - - component: {fileID: 1790303636} - - component: {fileID: 1790303639} - m_Layer: 0 - m_Name: Cube 24 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1790303635 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 24 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1790303636 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1790303638 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1790303639 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790303634} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1953871924 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1953871925} - - component: {fileID: 1953871928} - - component: {fileID: 1953871926} - - component: {fileID: 1953871929} - m_Layer: 0 - m_Name: Cube 6 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1953871925 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1953871926 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 72003e21f911862498a5f68d130335ab, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1953871928 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1953871929 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953871924} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1962539666 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1962539667} - - component: {fileID: 1962539668} - m_Layer: 0 - m_Name: Geometry - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1962539667 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1962539666} - m_LocalRotation: {x: -0.52323425, y: -0.5694426, z: 0.59020317, w: -0.23156308} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1481814647} - - {fileID: 1048779047} - - {fileID: 2118044276} - - {fileID: 1160286797} - - {fileID: 972649935} - - {fileID: 252243713} - - {fileID: 1953871925} - - {fileID: 652144617} - - {fileID: 2084969892} - - {fileID: 1213123304} - - {fileID: 1008989355} - - {fileID: 291320571} - - {fileID: 832327121} - - {fileID: 1774893414} - - {fileID: 1081840985} - - {fileID: 1142019121} - - {fileID: 1987364571} - - {fileID: 176001282} - - {fileID: 643959266} - - {fileID: 418973667} - - {fileID: 460318360} - - {fileID: 1474086404} - - {fileID: 204032603} - - {fileID: 816251742} - - {fileID: 1790303635} - - {fileID: 1997669227} - - {fileID: 1457121322} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!95 &1962539668 -Animator: - serializedVersion: 3 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1962539666} - m_Enabled: 1 - m_Avatar: {fileID: 0} - m_Controller: {fileID: 9100000, guid: 43b65e5cb75e08b408f32617ba6c14aa, type: 2} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 0 - m_LinearVelocityBlending: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 - m_KeepAnimatorControllerStateOnDisable: 0 ---- !u!1 &1987364570 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1987364571} - - component: {fileID: 1987364574} - - component: {fileID: 1987364572} - - component: {fileID: 1987364575} - m_Layer: 0 - m_Name: Cube 16 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1987364571 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 0, z: -2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 16 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1987364572 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 83de670964d44bc4fa0c414c665725d8, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1987364574 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1987364575 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1987364570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1997669226 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1997669227} - - component: {fileID: 1997669230} - - component: {fileID: 1997669228} - - component: {fileID: 1997669231} - m_Layer: 0 - m_Name: Cube 25 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1997669227 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 25 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1997669228 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: f17af5788515e7b44b602cab440d5cca, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1997669230 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &1997669231 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1997669226} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &2025781233 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2025781235} - - component: {fileID: 2025781234} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &2025781234 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2025781233} - m_Enabled: 1 - serializedVersion: 10 - m_Type: 1 - m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_InnerSpotAngle: 21.80208 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.3 - m_NormalBias: 0.1 - m_NearPlane: 0.39999998 - m_CullingMatrixOverride: - e00: 1 - e01: 0 - e02: 0 - e03: 0 - e10: 0 - e11: 1 - e12: 0 - e13: 0 - e20: 0 - e21: 0 - e22: 1 - e23: 0 - e30: 0 - e31: 0 - e32: 0 - e33: 1 - m_UseCullingMatrixOverride: 0 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingLayerMask: 1 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} - m_UseBoundingSphereOverride: 0 - m_UseViewFrustumForShadowCasterCull: 1 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &2025781235 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2025781233} - m_LocalRotation: {x: 0.40821794, y: -0.23456973, z: 0.109381676, w: 0.87542605} - m_LocalPosition: {x: 0, y: 6.42, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2084969891 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2084969892} - - component: {fileID: 2084969895} - - component: {fileID: 2084969893} - - component: {fileID: 2084969896} - m_Layer: 0 - m_Name: Cube 8 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2084969892 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: -2, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 8 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2084969893 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &2084969895 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &2084969896 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2084969891} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &2118044275 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2118044276} - - component: {fileID: 2118044279} - - component: {fileID: 2118044277} - - component: {fileID: 2118044280} - m_Layer: 0 - m_Name: Cube 2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2118044276 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1962539667} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2118044277 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 0 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: f17af5788515e7b44b602cab440d5cca, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &2118044279 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!114 &2118044280 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2118044275} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1cc21c48ee370cb42a042622dd21640d, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/Assets/Plugins/PDTAA/Scenes/Example2Settings.lighting b/Assets/Plugins/PDTAA/Scenes/Example2Settings.lighting deleted file mode 100644 index 31b3f991a..000000000 --- a/Assets/Plugins/PDTAA/Scenes/Example2Settings.lighting +++ /dev/null @@ -1,63 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!850595691 &4890085278179872738 -LightingSettings: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Example2Settings - serializedVersion: 3 - m_GIWorkflowMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_RealtimeEnvironmentLighting: 1 - m_BounceScale: 1 - m_AlbedoBoost: 1 - m_IndirectOutputScale: 1 - m_UsingShadowmask: 0 - m_BakeBackend: 0 - m_LightmapMaxSize: 1024 - m_BakeResolution: 40 - m_Padding: 2 - m_TextureCompression: 1 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 0 - m_CompAOExponentDirect: 0 - m_ExtractAO: 0 - m_MixedBakeMode: 1 - m_LightmapsBakeMode: 1 - m_FilterMode: 1 - m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_RealtimeResolution: 2 - m_ForceWhiteAlbedo: 0 - m_ForceUpdates: 0 - m_FinalGather: 0 - m_FinalGatherRayCount: 1024 - m_FinalGatherFiltering: 1 - m_PVRCulling: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVREnvironmentSampleCount: 500 - m_PVREnvironmentReferencePointCount: 2048 - m_LightProbeSampleCountMultiplier: 4 - m_PVRBounces: 2 - m_PVRMinBounces: 2 - m_PVREnvironmentMIS: 0 - m_PVRFilteringMode: 0 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 diff --git a/Assets/Plugins/PDTAA/Scenes/ExampleSettings.lighting b/Assets/Plugins/PDTAA/Scenes/ExampleSettings.lighting deleted file mode 100644 index 687fa2029..000000000 --- a/Assets/Plugins/PDTAA/Scenes/ExampleSettings.lighting +++ /dev/null @@ -1,63 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!850595691 &4890085278179872738 -LightingSettings: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: ExampleSettings - serializedVersion: 3 - m_GIWorkflowMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_RealtimeEnvironmentLighting: 1 - m_BounceScale: 1 - m_AlbedoBoost: 1 - m_IndirectOutputScale: 1 - m_UsingShadowmask: 0 - m_BakeBackend: 0 - m_LightmapMaxSize: 1024 - m_BakeResolution: 40 - m_Padding: 2 - m_TextureCompression: 1 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 0 - m_CompAOExponentDirect: 0 - m_ExtractAO: 0 - m_MixedBakeMode: 1 - m_LightmapsBakeMode: 1 - m_FilterMode: 1 - m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_RealtimeResolution: 2 - m_ForceWhiteAlbedo: 0 - m_ForceUpdates: 0 - m_FinalGather: 0 - m_FinalGatherRayCount: 1024 - m_FinalGatherFiltering: 1 - m_PVRCulling: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 512 - m_PVREnvironmentSampleCount: 512 - m_PVREnvironmentReferencePointCount: 2048 - m_LightProbeSampleCountMultiplier: 4 - m_PVRBounces: 2 - m_PVRMinBounces: 2 - m_PVREnvironmentMIS: 0 - m_PVRFilteringMode: 0 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 diff --git a/Assets/Plugins/PDTAA/Scripts.meta b/Assets/Plugins/PDTAA/Scripts.meta deleted file mode 100644 index ae7948ef5..000000000 --- a/Assets/Plugins/PDTAA/Scripts.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d7fcd113946fe884682affa68d7a9a8a -folderAsset: yes -timeCreated: 1437990609 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/EffectBase.cs.meta b/Assets/Plugins/PDTAA/Scripts/EffectBase.cs.meta deleted file mode 100644 index f80f8be91..000000000 --- a/Assets/Plugins/PDTAA/Scripts/EffectBase.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 4e5bbb5f788c9d84d8173556caa0b920 -timeCreated: 1438002115 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/Extensions.cs.meta b/Assets/Plugins/PDTAA/Scripts/Extensions.cs.meta deleted file mode 100644 index 58b11699c..000000000 --- a/Assets/Plugins/PDTAA/Scripts/Extensions.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e8364b88f137b7844ab5b8ca8776f54f -timeCreated: 1437997052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/FrustumJitter.cs b/Assets/Plugins/PDTAA/Scripts/FrustumJitter.cs deleted file mode 100644 index 37f974d97..000000000 --- a/Assets/Plugins/PDTAA/Scripts/FrustumJitter.cs +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -#if UNITY_5_5_OR_NEWER -#define SUPPORT_STEREO -#endif - -using UnityEngine; - -[ExecuteInEditMode] -[RequireComponent(typeof(Camera))] -[AddComponentMenu("Playdead/FrustumJitter")] -public class FrustumJitter : MonoBehaviour -{ - #region Static point data - private static float[] points_Still = new float[] { - 0.5f, 0.5f, - }; - private static float[] points_Uniform2 = new float[] { - -0.25f, -0.25f,//ll - 0.25f, 0.25f,//ur - }; - private static float[] points_Uniform4 = new float[] { - -0.25f, -0.25f,//ll - 0.25f, -0.25f,//lr - 0.25f, 0.25f,//ur - -0.25f, 0.25f,//ul - }; - private static float[] points_Uniform4_Helix = new float[] { - -0.25f, -0.25f,//ll 3 1 - 0.25f, 0.25f,//ur \/| - 0.25f, -0.25f,//lr /\| - -0.25f, 0.25f,//ul 0 2 - }; - private static float[] points_Uniform4_DoubleHelix = new float[] { - -0.25f, -0.25f,//ll 3 1 - 0.25f, 0.25f,//ur \/| - 0.25f, -0.25f,//lr /\| - -0.25f, 0.25f,//ul 0 2 - -0.25f, -0.25f,//ll 6--7 - 0.25f, -0.25f,//lr \ - -0.25f, 0.25f,//ul \ - 0.25f, 0.25f,//ur 4--5 - }; - private static float[] points_SkewButterfly = new float[] { - -0.250f, -0.250f, - 0.250f, 0.250f, - 0.125f, -0.125f, - -0.125f, 0.125f, - }; - private static float[] points_Rotated4 = new float[] { - -0.125f, -0.375f,//ll - 0.375f, -0.125f,//lr - 0.125f, 0.375f,//ur - -0.375f, 0.125f,//ul - }; - private static float[] points_Rotated4_Helix = new float[] { - -0.125f, -0.375f,//ll 3 1 - 0.125f, 0.375f,//ur \/| - 0.375f, -0.125f,//lr /\| - -0.375f, 0.125f,//ul 0 2 - }; - private static float[] points_Rotated4_Helix2 = new float[] { - -0.125f, -0.375f,//ll 2--1 - 0.125f, 0.375f,//ur \/ - -0.375f, 0.125f,//ul /\ - 0.375f, -0.125f,//lr 0 3 - }; - private static float[] points_Poisson10 = new float[] { - -0.16795960f*0.25f, 0.65544910f*0.25f, - -0.69096030f*0.25f, 0.59015970f*0.25f, - 0.49843820f*0.25f, 0.83099720f*0.25f, - 0.17230150f*0.25f, -0.03882703f*0.25f, - -0.60772670f*0.25f, -0.06013587f*0.25f, - 0.65606390f*0.25f, 0.24007600f*0.25f, - 0.80348370f*0.25f, -0.48096900f*0.25f, - 0.33436540f*0.25f, -0.73007030f*0.25f, - -0.47839520f*0.25f, -0.56005300f*0.25f, - -0.12388120f*0.25f, -0.96633990f*0.25f, - }; - private static float[] points_Pentagram = new float[] { - 0.000000f*0.5f, 0.525731f*0.5f,// head - -0.309017f*0.5f, -0.425325f*0.5f,// lleg - 0.500000f*0.5f, 0.162460f*0.5f,// rarm - -0.500000f*0.5f, 0.162460f*0.5f,// larm - 0.309017f*0.5f, -0.425325f*0.5f,// rleg - }; - private static float[] points_Halton_2_3_x8 = new float[8 * 2]; - private static float[] points_Halton_2_3_x16 = new float[16 * 2]; - private static float[] points_Halton_2_3_x32 = new float[32 * 2]; - private static float[] points_Halton_2_3_x256 = new float[256 * 2]; - private static float[] points_MotionPerp2 = new float[] { - 0.00f, -0.25f, - 0.00f, 0.25f, - }; - #endregion - - #region Static point data, static initialization - private static void TransformPattern(float[] seq, float theta, float scale) - { - float cs = Mathf.Cos(theta); - float sn = Mathf.Sin(theta); - for (int i = 0, j = 1, n = seq.Length; i != n; i += 2, j += 2) - { - float x = scale * seq[i]; - float y = scale * seq[j]; - seq[i] = x * cs - y * sn; - seq[j] = x * sn + y * cs; - } - } - - // http://en.wikipedia.org/wiki/Halton_sequence - public static float HaltonSeq(int prime, int index = 1/* NOT! zero-based */) - { - float r = 0.0f; - float f = 1.0f; - int i = index; - while (i > 0) - { - f /= prime; - r += f * (i % prime); - i = (int)Mathf.Floor(i / (float)prime); - } - return r; - } - - private static void InitializeHalton_2_3(float[] seq) - { - for (int i = 0, n = seq.Length / 2; i != n; i++) - { - float u = HaltonSeq(2, i + 1) - 0.5f; - float v = HaltonSeq(3, i + 1) - 0.5f; - seq[2 * i + 0] = u; - seq[2 * i + 1] = v; - } - } - - static FrustumJitter() - { - // points_Pentagram - Vector2 vh = new Vector2(points_Pentagram[0] - points_Pentagram[2], points_Pentagram[1] - points_Pentagram[3]); - Vector2 vu = new Vector2(0.0f, 1.0f); - TransformPattern(points_Pentagram, Mathf.Deg2Rad * (0.5f * Vector2.Angle(vu, vh)), 1.0f); - - // points_Halton_2_3_xN - InitializeHalton_2_3(points_Halton_2_3_x8); - InitializeHalton_2_3(points_Halton_2_3_x16); - InitializeHalton_2_3(points_Halton_2_3_x32); - InitializeHalton_2_3(points_Halton_2_3_x256); - } - #endregion - - #region Static point data accessors - public enum Pattern - { - Still, - Uniform2, - Uniform4, - Uniform4_Helix, - Uniform4_DoubleHelix, - SkewButterfly, - Rotated4, - Rotated4_Helix, - Rotated4_Helix2, - Poisson10, - Pentagram, - Halton_2_3_X8, - Halton_2_3_X16, - Halton_2_3_X32, - Halton_2_3_X256, - MotionPerp2, - }; - - private static float[] AccessPointData(Pattern pattern) - { - switch (pattern) - { - case Pattern.Still: - return points_Still; - case Pattern.Uniform2: - return points_Uniform2; - case Pattern.Uniform4: - return points_Uniform4; - case Pattern.Uniform4_Helix: - return points_Uniform4_Helix; - case Pattern.Uniform4_DoubleHelix: - return points_Uniform4_DoubleHelix; - case Pattern.SkewButterfly: - return points_SkewButterfly; - case Pattern.Rotated4: - return points_Rotated4; - case Pattern.Rotated4_Helix: - return points_Rotated4_Helix; - case Pattern.Rotated4_Helix2: - return points_Rotated4_Helix2; - case Pattern.Poisson10: - return points_Poisson10; - case Pattern.Pentagram: - return points_Pentagram; - case Pattern.Halton_2_3_X8: - return points_Halton_2_3_x8; - case Pattern.Halton_2_3_X16: - return points_Halton_2_3_x16; - case Pattern.Halton_2_3_X32: - return points_Halton_2_3_x32; - case Pattern.Halton_2_3_X256: - return points_Halton_2_3_x256; - case Pattern.MotionPerp2: - return points_MotionPerp2; - default: - Debug.LogError("missing point distribution"); - return points_Halton_2_3_x16; - } - } - - public static int AccessLength(Pattern pattern) - { - return AccessPointData(pattern).Length / 2; - } - - public Vector2 Sample(Pattern pattern, int index) - { - float[] points = AccessPointData(pattern); - int n = points.Length / 2; - int i = index % n; - - float x = patternScale * points[2 * i + 0]; - float y = patternScale * points[2 * i + 1]; - - if (pattern != Pattern.MotionPerp2) - return new Vector2(x, y); - else - return new Vector2(x, y).Rotate(Vector2.right.SignedAngle(focalMotionDir)); - } - #endregion - - private Camera _camera; - - private Vector3 focalMotionPos = Vector3.zero; - private Vector3 focalMotionDir = Vector3.right; - - public Pattern pattern = Pattern.Halton_2_3_X16; - public float patternScale = 1.0f; - - public Vector4 activeSample = Vector4.zero;// xy = current sample, zw = previous sample - public int activeIndex = -2; - - void Reset() - { - _camera = GetComponent(); - } - - void Clear() - { - _camera.ResetProjectionMatrix(); - - activeSample = Vector4.zero; - activeIndex = -2; - } - - void Awake() - { - Reset(); - Clear(); - } - - void OnPreCull() - { - // update motion dir - { - Vector3 oldWorld = focalMotionPos; - Vector3 newWorld = _camera.transform.TransformVector(_camera.nearClipPlane * Vector3.forward); - - Vector3 oldPoint = (_camera.worldToCameraMatrix * oldWorld); - Vector3 newPoint = (_camera.worldToCameraMatrix * newWorld); - Vector3 newDelta = (newPoint - oldPoint).WithZ(0.0f); - - var mag = newDelta.magnitude; - if (mag != 0.0f) - { - var dir = newDelta / mag;// yes, apparently this is necessary instead of newDelta.normalized... because facepalm - if (dir.sqrMagnitude != 0.0f) - { - focalMotionPos = newWorld; - focalMotionDir = Vector3.Slerp(focalMotionDir, dir, 0.2f); - //Debug.Log("CHANGE focalMotionDir " + focalMotionDir.ToString("G4") + " delta was " + newDelta.ToString("G4") + " delta.mag " + newDelta.magnitude); - } - } - } - - // update jitter -#if SUPPORT_STEREO - if (_camera.stereoEnabled) - { - Clear(); - } - else -#endif - { - if (activeIndex == -2) - { - activeSample = Vector4.zero; - activeIndex += 1; - - _camera.projectionMatrix = _camera.GetProjectionMatrix(); - } - else - { - activeIndex += 1; - activeIndex %= AccessLength(pattern); - - Vector2 sample = Sample(pattern, activeIndex); - activeSample.z = activeSample.x; - activeSample.w = activeSample.y; - activeSample.x = sample.x; - activeSample.y = sample.y; - - _camera.projectionMatrix = _camera.GetProjectionMatrix(sample.x, sample.y); - } - } - } - - void OnDisable() - { - Clear(); - } -} diff --git a/Assets/Plugins/PDTAA/Scripts/FrustumJitter.cs.meta b/Assets/Plugins/PDTAA/Scripts/FrustumJitter.cs.meta deleted file mode 100644 index cddbfe14d..000000000 --- a/Assets/Plugins/PDTAA/Scripts/FrustumJitter.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 899f97884c6d96b4ca20648ec109a37f -timeCreated: 1437991076 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/TemporalReprojection.cs b/Assets/Plugins/PDTAA/Scripts/TemporalReprojection.cs deleted file mode 100644 index dec62e99f..000000000 --- a/Assets/Plugins/PDTAA/Scripts/TemporalReprojection.cs +++ /dev/null @@ -1,266 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -#if UNITY_5_5_OR_NEWER -#define SUPPORT_STEREO -#endif - -using UnityEngine; - -[ExecuteInEditMode] -[RequireComponent(typeof(Camera), typeof(FrustumJitter), typeof(VelocityBuffer))] -[AddComponentMenu("Playdead/TemporalReprojection")] -public class TemporalReprojection : EffectBase -{ - private static RenderBuffer[] mrt = new RenderBuffer[2]; - - private Camera _camera; - private FrustumJitter _frustumJitter; - private VelocityBuffer _velocityBuffer; - - #region dithering - public Texture ditherTex = null; - - private const int NUM_DITHEROFS = 1024; - const float DITHERSIZ = 256; - private static int frameofs = 0; - private static Vector4[] ditheroffsets = null; - public static Vector4 GetFrame_DitherOffset() - { - if ( ditheroffsets == null ) - init_ditheroffsets(); - - frameofs = (frameofs+1) % NUM_DITHEROFS; - return ditheroffsets[frameofs]; - } - private static void init_ditheroffsets() - { - if ( ditheroffsets != null ) - return; - - ditheroffsets = new Vector4[NUM_DITHEROFS]; - - for ( int i=0, n=ditheroffsets.Length; i(); - _frustumJitter = GetComponent(); - _velocityBuffer = GetComponent(); - } - - void Clear() - { - EnsureArray(ref reprojectionIndex, 2); - reprojectionIndex[0] = -1; - reprojectionIndex[1] = -1; - } - - void Awake() - { - Reset(); - Clear(); - } - - void Resolve(RenderTexture source, RenderTexture destination) - { - EnsureArray(ref reprojectionBuffer, 2, 2); - EnsureArray(ref reprojectionIndex, 2, initialValue: -1); - - EnsureMaterial(ref reprojectionMaterial, reprojectionShader); - if (reprojectionMaterial == null) - { - Graphics.Blit(source, destination); - return; - } - -#if SUPPORT_STEREO - int eyeIndex = (_camera.stereoActiveEye == Camera.MonoOrStereoscopicEye.Right) ? 1 : 0; -#else - int eyeIndex = 0; -#endif - int bufferW = source.width; - int bufferH = source.height; - - if (EnsureRenderTarget(ref reprojectionBuffer[eyeIndex, 0], bufferW, bufferH, RenderTextureFormat.ARGB32, FilterMode.Bilinear, antiAliasing: source.antiAliasing)) - Clear(); - if (EnsureRenderTarget(ref reprojectionBuffer[eyeIndex, 1], bufferW, bufferH, RenderTextureFormat.ARGB32, FilterMode.Bilinear, antiAliasing: source.antiAliasing)) - Clear(); - -#if SUPPORT_STEREO - bool stereoEnabled = _camera.stereoEnabled; -#else - bool stereoEnabled = false; -#endif -#if UNITY_EDITOR - bool allowMotionBlur = !stereoEnabled && Application.isPlaying; -#else - bool allowMotionBlur = !stereoEnabled; -#endif - - EnsureKeyword(reprojectionMaterial, "CAMERA_PERSPECTIVE", !_camera.orthographic); - EnsureKeyword(reprojectionMaterial, "CAMERA_ORTHOGRAPHIC", _camera.orthographic); - //EnsureKeyword(reprojectionMaterial, "UNJITTER_COLORSAMPLES", unjitterColorSamples); - //EnsureKeyword(reprojectionMaterial, "UNJITTER_NEIGHBORHOOD", unjitterNeighborhood); - //EnsureKeyword(reprojectionMaterial, "UNJITTER_REPROJECTION", unjitterReprojection); - EnsureKeyword(reprojectionMaterial, "USE_CHROMA_COLORSPACE", colorspace == ColorSpace.Chroma); - EnsureKeyword(reprojectionMaterial, "USE_CLIPPING", historyRectification == HistoryRectification.CenterClipping || historyRectification == HistoryRectification.Clipping ); - EnsureKeyword(reprojectionMaterial, "USE_CENTER_CLIPPING", historyRectification == HistoryRectification.CenterClipping ); - EnsureKeyword(reprojectionMaterial, "USE_VARIANCE_CLIPPING", useVarianceClipping ); - EnsureKeyword(reprojectionMaterial, "USE_AABB_ROUNDING", useAABBRounding ); - EnsureKeyword(reprojectionMaterial, "USE_DILATION_5X", dilation == Dilation.Dilate5X); - EnsureKeyword(reprojectionMaterial, "USE_DILATION_3X3", dilation == Dilation.Dilate3X3); - EnsureKeyword(reprojectionMaterial, "USE_MOTION_BLUR", useMotionBlur && allowMotionBlur); - EnsureKeyword(reprojectionMaterial, "USE_MOTION_BLUR_NEIGHBORMAX", _velocityBuffer.activeVelocityNeighborMax != null); - EnsureKeyword(reprojectionMaterial, "USE_HIGHER_ORDER_TEXTURE_FILTERING_COLOR", useHigherOrderFilteringMainColor); - EnsureKeyword(reprojectionMaterial, "USE_HIGHER_ORDER_TEXTURE_FILTERING_HISTORY", useHigherOrderFilteringHistory); - - if (reprojectionIndex[eyeIndex] == -1)// bootstrap - { - reprojectionIndex[eyeIndex] = 0; - reprojectionBuffer[eyeIndex, reprojectionIndex[eyeIndex]].DiscardContents(); - Graphics.Blit(source, reprojectionBuffer[eyeIndex, reprojectionIndex[eyeIndex]]); - } - - int indexRead = reprojectionIndex[eyeIndex]; - int indexWrite = (reprojectionIndex[eyeIndex] + 1) % 2; - - Vector4 jitterUV = _frustumJitter.activeSample; - jitterUV.x /= source.width; - jitterUV.y /= source.height; - jitterUV.z /= source.width; - jitterUV.w /= source.height; - - reprojectionMaterial.SetVector(JitterUVID(), jitterUV); - reprojectionMaterial.SetTexture(VelocityBufferID(), _velocityBuffer.activeVelocityBuffer); - reprojectionMaterial.SetTexture(VelocityNeighborMaxID(), _velocityBuffer.activeVelocityNeighborMax); - reprojectionMaterial.SetTexture(MainTexID(), source); - reprojectionMaterial.SetTexture(PrevTexID(), reprojectionBuffer[eyeIndex, indexRead]); - reprojectionMaterial.SetFloat(FeedbackMinID(), feedbackMin); - reprojectionMaterial.SetFloat(FeedbackMinMaxID(), feedbackMax - feedbackMin); - reprojectionMaterial.SetFloat(MotionScaleID(), motionBlurStrength * (motionBlurIgnoreFF ? Mathf.Min(1.0f, 1.0f / _velocityBuffer.timeScale) : 1.0f)); - - reprojectionMaterial.SetTexture(DitherTexID(), ditherTex); - Vector4 ofs = GetFrame_DitherOffset(); - reprojectionMaterial.SetVector( DitherOffsetLocalID(), GetFrame_DitherOffset() ); - - // reproject frame n-1 into output + history buffer - { - mrt[0] = reprojectionBuffer[eyeIndex, indexWrite].colorBuffer; - mrt[1] = destination.colorBuffer; - - Graphics.SetRenderTarget(mrt, source.depthBuffer); - reprojectionMaterial.SetPass(0); - reprojectionBuffer[eyeIndex, indexWrite].DiscardContents(); - - //DrawFullscreenQuad(); - DrawFullscreenTri(); - - reprojectionIndex[eyeIndex] = indexWrite; - } - } - - void OnRenderImage(RenderTexture source, RenderTexture destination) - { - if (destination != null && source.antiAliasing == destination.antiAliasing)// resolve without additional blit when not end of chain - { - Resolve(source, destination); - } - else - { - RenderTexture internalDestination = RenderTexture.GetTemporary(source.width, source.height, 0, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default, source.antiAliasing); - { - Resolve(source, internalDestination); - Graphics.Blit(internalDestination, destination); - } - RenderTexture.ReleaseTemporary(internalDestination); - } - } - - void OnApplicationQuit() - { - if (reprojectionBuffer != null) - { - ReleaseRenderTarget(ref reprojectionBuffer[0, 0]); - ReleaseRenderTarget(ref reprojectionBuffer[0, 1]); - ReleaseRenderTarget(ref reprojectionBuffer[1, 0]); - ReleaseRenderTarget(ref reprojectionBuffer[1, 1]); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/PDTAA/Scripts/TemporalReprojection.cs.meta b/Assets/Plugins/PDTAA/Scripts/TemporalReprojection.cs.meta deleted file mode 100644 index 6ca465bbc..000000000 --- a/Assets/Plugins/PDTAA/Scripts/TemporalReprojection.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 65f5677aa325c184f801528d78a73827 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: - - ditherTex: {fileID: 2800000, guid: 859f329ee8606864ea19dbf373a5ec56, type: 3} - - reprojectionShader: {fileID: 4800000, guid: 7ca93c1a56ee0154b8c714591d6d211a, - type: 3} - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/VelocityBuffer.cs b/Assets/Plugins/PDTAA/Scripts/VelocityBuffer.cs deleted file mode 100644 index aa72df77c..000000000 --- a/Assets/Plugins/PDTAA/Scripts/VelocityBuffer.cs +++ /dev/null @@ -1,282 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -#if UNITY_5_5_OR_NEWER -#define SUPPORT_STEREO -#endif - -using UnityEngine; - -[ExecuteInEditMode] -[RequireComponent(typeof(Camera), typeof(FrustumJitter))] -[AddComponentMenu("Playdead/VelocityBuffer")] -public class VelocityBuffer : EffectBase -{ -#if UNITY_PS4 - private const RenderTextureFormat velocityFormat = RenderTextureFormat.RGHalf; -#else - private const RenderTextureFormat velocityFormat = RenderTextureFormat.RGFloat; -#endif - - private Camera _camera; - private FrustumJitter _frustumJitter; - - public Shader velocityShader; - private Material velocityMaterial; - private RenderTexture[] velocityBuffer; - private RenderTexture[] velocityNeighborMax; - - private bool[] paramInitialized; - private Vector4[] paramProjectionExtents; - private Matrix4x4[] paramCurrV; - private Matrix4x4[] paramCurrVP; - private Matrix4x4[] paramPrevVP; - private Matrix4x4[] paramPrevVP_NoFlip; - - private int activeEyeIndex = -1; - public RenderTexture activeVelocityBuffer { get { return (activeEyeIndex != -1) ? velocityBuffer[activeEyeIndex] : null; } } - public RenderTexture activeVelocityNeighborMax { get { return (activeEyeIndex != -1) ? velocityNeighborMax[activeEyeIndex] : null; } } - - public enum NeighborMaxSupport - { - TileSize10, - TileSize20, - TileSize40, - }; - - public bool neighborMaxGen = false; - public NeighborMaxSupport neighborMaxSupport = NeighborMaxSupport.TileSize20; - - private float timeScaleNextFrame; - public float timeScale { get; private set; } - -#if UNITY_EDITOR - [Header("Stats")] - public int numResident = 0; - public int numRendered = 0; - public int numDrawCalls = 0; -#endif - - void Reset() - { - _camera = GetComponent(); - _frustumJitter = GetComponent(); - } - - void Clear() - { - EnsureArray(ref paramInitialized, 2); - paramInitialized[0] = false; - paramInitialized[1] = false; - } - - void Awake() - { - Reset(); - Clear(); - } - - void Start() - { - timeScaleNextFrame = Time.timeScale; - } - - void OnPreRender() - { - EnsureDepthTexture(_camera); - } - - void OnPostRender() - { - EnsureArray(ref velocityBuffer, 2); - EnsureArray(ref velocityNeighborMax, 2); - - EnsureArray(ref paramInitialized, 2, initialValue: false); - EnsureArray(ref paramProjectionExtents, 2); - EnsureArray(ref paramCurrV, 2); - EnsureArray(ref paramCurrVP, 2); - EnsureArray(ref paramPrevVP, 2); - EnsureArray(ref paramPrevVP_NoFlip, 2); - - EnsureMaterial(ref velocityMaterial, velocityShader); - if (velocityMaterial == null) - return; - - timeScale = timeScaleNextFrame; - timeScaleNextFrame = (Time.timeScale == 0.0f) ? timeScaleNextFrame : Time.timeScale; - -#if SUPPORT_STEREO - int eyeIndex = (_camera.stereoActiveEye == Camera.MonoOrStereoscopicEye.Right) ? 1 : 0; -#else - int eyeIndex = 0; -#endif - int bufferW = _camera.pixelWidth; - int bufferH = _camera.pixelHeight; - - if (EnsureRenderTarget(ref velocityBuffer[eyeIndex], bufferW, bufferH, velocityFormat, FilterMode.Point, depthBits: 16)) - Clear(); - - EnsureKeyword(velocityMaterial, "CAMERA_PERSPECTIVE", !_camera.orthographic); - EnsureKeyword(velocityMaterial, "CAMERA_ORTHOGRAPHIC", _camera.orthographic); - - EnsureKeyword(velocityMaterial, "TILESIZE_10", neighborMaxSupport == NeighborMaxSupport.TileSize10); - EnsureKeyword(velocityMaterial, "TILESIZE_20", neighborMaxSupport == NeighborMaxSupport.TileSize20); - EnsureKeyword(velocityMaterial, "TILESIZE_40", neighborMaxSupport == NeighborMaxSupport.TileSize40); - -#if SUPPORT_STEREO - if (_camera.stereoEnabled) - { - for (int i = 0; i != 2; i++) - { - Camera.StereoscopicEye eye = (Camera.StereoscopicEye)i; - - Matrix4x4 currV = _camera.GetStereoViewMatrix(eye); - Matrix4x4 currP = GL.GetGPUProjectionMatrix(_camera.GetStereoProjectionMatrix(eye), true); - Matrix4x4 currP_NoFlip = GL.GetGPUProjectionMatrix(_camera.GetStereoProjectionMatrix(eye), false); - Matrix4x4 prevV = paramInitialized[i] ? paramCurrV[i] : currV; - - paramInitialized[i] = true; - paramProjectionExtents[i] = _camera.GetProjectionExtents(eye); - paramCurrV[i] = currV; - paramCurrVP[i] = currP * currV; - paramPrevVP[i] = currP * prevV; - paramPrevVP_NoFlip[i] = currP_NoFlip * prevV; - } - } - else -#endif - { - Matrix4x4 currV = _camera.worldToCameraMatrix; - Matrix4x4 currP = GL.GetGPUProjectionMatrix(_camera.projectionMatrix, true); - Matrix4x4 currP_NoFlip = GL.GetGPUProjectionMatrix(_camera.projectionMatrix, false); - Matrix4x4 prevV = paramInitialized[0] ? paramCurrV[0] : currV; - - paramInitialized[0] = true; - paramProjectionExtents[0] = _frustumJitter.enabled ? _camera.GetProjectionExtents(_frustumJitter.activeSample.x, _frustumJitter.activeSample.y) : _camera.GetProjectionExtents(); - paramCurrV[0] = currV; - paramCurrVP[0] = currP * currV; - paramPrevVP[0] = currP * prevV; - paramPrevVP_NoFlip[0] = currP_NoFlip * prevV; - } - - RenderTexture activeRT = RenderTexture.active; - RenderTexture.active = velocityBuffer[eyeIndex]; - { - GL.Clear(true, true, Color.black); - - const int kPrepass = 0; - const int kVertices = 1; - const int kVerticesSkinned = 2; - const int kTileMax = 3; - const int kNeighborMax = 4; - - // 0: prepass -#if SUPPORT_STEREO - velocityMaterial.SetVectorArray("_ProjectionExtents", paramProjectionExtents); - velocityMaterial.SetMatrixArray("_CurrV", paramCurrV); - velocityMaterial.SetMatrixArray("_CurrVP", paramCurrVP); - velocityMaterial.SetMatrixArray("_PrevVP", paramPrevVP); - velocityMaterial.SetMatrixArray("_PrevVP_NoFlip", paramPrevVP_NoFlip); -#else - velocityMaterial.SetVector("_ProjectionExtents", paramProjectionExtents[0]); - velocityMaterial.SetMatrix("_CurrV", paramCurrV[0]); - velocityMaterial.SetMatrix("_CurrVP", paramCurrVP[0]); - velocityMaterial.SetMatrix("_PrevVP", paramPrevVP[0]); - velocityMaterial.SetMatrix("_PrevVP_NoFlip", paramPrevVP_NoFlip[0]); -#endif - velocityMaterial.SetPass(kPrepass); - DrawFullscreenQuad(); - - // 1 + 2: vertices + vertices skinned - var obs = VelocityBufferTag.activeObjects; -#if UNITY_EDITOR - numResident = obs.Count; - numRendered = 0; - numDrawCalls = 0; -#endif - for (int i = 0, n = obs.Count; i != n; i++) - { - var ob = obs[i]; - if (ob != null && ob.rendering && ob.mesh != null) - { - velocityMaterial.SetMatrix("_CurrM", ob.localToWorldCurr); - velocityMaterial.SetMatrix("_PrevM", ob.localToWorldPrev); - velocityMaterial.SetPass(ob.meshSmrActive ? kVerticesSkinned : kVertices); - - for (int j = 0; j != ob.mesh.subMeshCount; j++) - { - Graphics.DrawMeshNow(ob.mesh, Matrix4x4.identity, j); -#if UNITY_EDITOR - numDrawCalls++; -#endif - } -#if UNITY_EDITOR - numRendered++; -#endif - } - } - - // 3 + 4: tilemax + neighbormax - if (neighborMaxGen) - { - int tileSize = 1; - - switch (neighborMaxSupport) - { - case NeighborMaxSupport.TileSize10: tileSize = 10; break; - case NeighborMaxSupport.TileSize20: tileSize = 20; break; - case NeighborMaxSupport.TileSize40: tileSize = 40; break; - } - - int neighborMaxW = bufferW / tileSize; - int neighborMaxH = bufferH / tileSize; - - EnsureRenderTarget(ref velocityNeighborMax[eyeIndex], neighborMaxW, neighborMaxH, velocityFormat, FilterMode.Bilinear); - - // tilemax - RenderTexture tileMax = RenderTexture.GetTemporary(neighborMaxW, neighborMaxH, 0, velocityFormat); - RenderTexture.active = tileMax; - { - velocityMaterial.SetTexture("_VelocityTex", velocityBuffer[eyeIndex]); - velocityMaterial.SetVector("_VelocityTex_TexelSize", new Vector4(1.0f / bufferW, 1.0f / bufferH, 0.0f, 0.0f)); - velocityMaterial.SetPass(kTileMax); - DrawFullscreenQuad(); - } - - // neighbormax - RenderTexture.active = velocityNeighborMax[eyeIndex]; - { - velocityMaterial.SetTexture("_VelocityTex", tileMax); - velocityMaterial.SetVector("_VelocityTex_TexelSize", new Vector4(1.0f / neighborMaxW, 1.0f / neighborMaxH, 0.0f, 0.0f)); - velocityMaterial.SetPass(kNeighborMax); - DrawFullscreenQuad(); - } - - RenderTexture.ReleaseTemporary(tileMax); - } - else - { - ReleaseRenderTarget(ref velocityNeighborMax[0]); - ReleaseRenderTarget(ref velocityNeighborMax[1]); - } - } - RenderTexture.active = activeRT; - - activeEyeIndex = eyeIndex; - } - - void OnApplicationQuit() - { - if (velocityBuffer != null) - { - ReleaseRenderTarget(ref velocityBuffer[0]); - ReleaseRenderTarget(ref velocityBuffer[1]); - } - if (velocityNeighborMax != null) - { - ReleaseRenderTarget(ref velocityNeighborMax[0]); - ReleaseRenderTarget(ref velocityNeighborMax[1]); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/PDTAA/Scripts/VelocityBuffer.cs.meta b/Assets/Plugins/PDTAA/Scripts/VelocityBuffer.cs.meta deleted file mode 100644 index d5626bccc..000000000 --- a/Assets/Plugins/PDTAA/Scripts/VelocityBuffer.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b642ff60407fe724bafa6602199213c0 -timeCreated: 1438011374 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: - - velocityShader: {fileID: 4800000, guid: 0d7f09e63dd99504ca6e04212a21ec72, type: 3} - - velocityBuffer: {instanceID: 0} - - velocityNeighborMax: {instanceID: 0} - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/VelocityBufferTag.cs b/Assets/Plugins/PDTAA/Scripts/VelocityBufferTag.cs deleted file mode 100644 index 045052d4c..000000000 --- a/Assets/Plugins/PDTAA/Scripts/VelocityBufferTag.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -using System; -using System.Collections.Generic; -using UnityEngine; - -[AddComponentMenu("Playdead/VelocityBufferTag")] -public class VelocityBufferTag : MonoBehaviour -{ -#if UNITY_5_6_OR_NEWER - private static List temporaryVertexStorage = new List(512); -#endif - public static List activeObjects = new List(128); - - private Transform _transform; - - [NonSerialized, HideInInspector] public SkinnedMeshRenderer meshSmr; - [NonSerialized, HideInInspector] public bool meshSmrActive; - [NonSerialized, HideInInspector] public Mesh mesh; - [NonSerialized, HideInInspector] public Matrix4x4 localToWorldPrev; - [NonSerialized, HideInInspector] public Matrix4x4 localToWorldCurr; - - private const int framesNotRenderedSleepThreshold = 60; - private int framesNotRendered = framesNotRenderedSleepThreshold; - public bool rendering { get { return (framesNotRendered < framesNotRenderedSleepThreshold); } } - - void Reset() - { - _transform = this.transform; - - var smr = GetComponent(); - if (smr != null) - { - if (mesh == null || meshSmrActive == false) - { - mesh = new Mesh(); - mesh.hideFlags = HideFlags.HideAndDontSave; - } - - meshSmrActive = true; - meshSmr = smr; - } - else - { - var mf = GetComponent(); - if (mf != null) - mesh = mf.sharedMesh; - else - mesh = null; - - meshSmrActive = false; - meshSmr = null; - } - - // force restart - framesNotRendered = framesNotRenderedSleepThreshold; - } - - void Awake() - { - Reset(); - } - - void TagUpdate(bool restart) - { - if (meshSmrActive && meshSmr == null) - { - Reset(); - } - - if (meshSmrActive) - { - if (restart) - { - meshSmr.BakeMesh(mesh); -#if UNITY_5_6_OR_NEWER - mesh.GetVertices(temporaryVertexStorage); - mesh.SetNormals(temporaryVertexStorage); -#else - mesh.normals = mesh.vertices;// garbage ahoy -#endif - } - else - { -#if UNITY_5_6_OR_NEWER - mesh.GetVertices(temporaryVertexStorage); - meshSmr.BakeMesh(mesh); - mesh.SetNormals(temporaryVertexStorage); -#else - Vector3[] vs = mesh.vertices;// garbage ahoy - meshSmr.BakeMesh(mesh); - mesh.normals = vs; -#endif - } - } - - if (restart) - { - localToWorldCurr = _transform.localToWorldMatrix; - localToWorldPrev = localToWorldCurr; - } - else - { - localToWorldPrev = localToWorldCurr; - localToWorldCurr = _transform.localToWorldMatrix; - } - } - - void LateUpdate() - { - if (framesNotRendered < framesNotRenderedSleepThreshold) - { - framesNotRendered++; - TagUpdate(restart: false); - } - } - - void OnWillRenderObject() - { - if (Camera.current != Camera.main) - return;// ignore anything but main cam - - if (framesNotRendered >= framesNotRenderedSleepThreshold) - TagUpdate(restart: true); - - framesNotRendered = 0; - } - - void OnEnable() - { - activeObjects.Add(this); - } - - void OnDisable() - { - activeObjects.Remove(this); - - // force restart - framesNotRendered = framesNotRenderedSleepThreshold; - } -} diff --git a/Assets/Plugins/PDTAA/Scripts/VelocityBufferTag.cs.meta b/Assets/Plugins/PDTAA/Scripts/VelocityBufferTag.cs.meta deleted file mode 100644 index fa8634178..000000000 --- a/Assets/Plugins/PDTAA/Scripts/VelocityBufferTag.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1cc21c48ee370cb42a042622dd21640d -timeCreated: 1437991033 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Shaders.meta b/Assets/Plugins/PDTAA/Shaders.meta deleted file mode 100644 index 23c0f81be..000000000 --- a/Assets/Plugins/PDTAA/Shaders.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f0aa195420e263d4ba033b84c407fba5 -folderAsset: yes -timeCreated: 1437991376 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Shaders/IncColor.cginc b/Assets/Plugins/PDTAA/Shaders/IncColor.cginc deleted file mode 100644 index 604a229f7..000000000 --- a/Assets/Plugins/PDTAA/Shaders/IncColor.cginc +++ /dev/null @@ -1,142 +0,0 @@ -#ifndef __PD_COLOR_CGINC__ -#define __PD_COLOR_CGINC__ - -//note: Symmetric triangular distribution on [-1,1] with maximal density at 0 -//note: from https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/FinalPass.shader#L124 -float remap_noise_tri( float v ) -{ - v = v*2.0-1.0; - return sign(v) * (1.0 - sqrt(1.0 - abs(v))); -} -float4 remap_noise_tri( float4 v ) -{ - v = v*2.0-1.0; - return sign(v) * (1.0 - sqrt(1.0 - abs(v))); -} - -//from https://github.com/h3r2tic/rtoy-samples/blob/master/assets/shaders/inc/color.inc -// Rec. 709 -float3 RGB_YCbCr(float3 col) -{ - return float3( dot( col, float3(0.2126, 0.7152, 0.0722)), - dot( col, float3(-0.1146, -0.3854, 0.5)), - dot( col, float3(0.5, -0.4542, -0.0458)) ); -} -float3 YCbCr_RGB(float3 col) -{ - return float3( col.r + 1.5748 * col.b, - col.r - 0.1873 * col.g -0.4681 * col.b, - col.r + 1.8556 * col.g ); -} - -// https://software.intel.com/en-us/node/503873 -float3 RGB_YCoCg(float3 c) -{ - // Y = R/4 + G/2 + B/4 - // Co = R/2 - B/2 - // Cg = -R/4 + G/2 - B/4 - return float3( c.x/4.0 + c.y/2.0 + c.z/4.0, - c.x/2.0 - c.z/2.0, - -c.x/4.0 + c.y/2.0 - c.z/4.0 ); -} - -// https://software.intel.com/en-us/node/503873 -float3 YCoCg_RGB(float3 c) -{ - // R = Y + Co - Cg - // G = Y + Cg - // B = Y - Co - Cg - return saturate(float3( c.x + c.y - c.z, - c.x + c.z, - c.x - c.y - c.z )); -} - -// Samples a texture with Catmull-Rom filtering, using 9 texture fetches instead of 16. -// Source: https://gist.github.com/TheRealMJP/c83b8c0f46b63f3a88a5986f4fa982b1 -// See http://vec3.ca/bicubic-filtering-in-fewer-taps/ for more details -float4 sample_catmull_rom(in sampler2D linearSampler, in float2 uv, in float2 texSize) -{ - // We're going to sample a a 4x4 grid of texels surrounding the target UV coordinate. We'll do this by rounding - // down the sample location to get the exact center of our "starting" texel. The starting texel will be at - // location [1, 1] in the grid, where [0, 0] is the top left corner. - float2 samplePos = uv * texSize; - float2 texPos1 = floor(samplePos - 0.5f) + 0.5f; - - // Compute the fractional offset from our starting texel to our original sample location, which we'll - // feed into the Catmull-Rom spline function to get our filter weights. - float2 f = samplePos - texPos1; - - // Compute the Catmull-Rom weights using the fractional offset that we calculated earlier. - // These equations are pre-expanded based on our knowledge of where the texels will be located, - // which lets us avoid having to evaluate a piece-wise function. - float2 w0 = f * (-0.5f + f * (1.0f - 0.5f * f)); - float2 w1 = 1.0f + f * f * (-2.5f + 1.5f * f); - float2 w2 = f * (0.5f + f * (2.0f - 1.5f * f)); - float2 w3 = f * f * (-0.5f + 0.5f * f); - - // Work out weighting factors and sampling offsets that will let us use bilinear filtering to - // simultaneously evaluate the middle 2 samples from the 4x4 grid. - float2 w12 = w1 + w2; - float2 offset12 = w2 / w12; - - // Compute the final UV coordinates we'll use for sampling the texture - float2 texPos0 = texPos1 - 1; - float2 texPos3 = texPos1 + 2; - float2 texPos12 = texPos1 + offset12; - - texPos0 /= texSize; - texPos3 /= texSize; - texPos12 /= texSize; - - float4 result = 0.0f; - result += tex2D(linearSampler, float2(texPos0.x, texPos0.y)) * w0.x * w0.y; - result += tex2D(linearSampler, float2(texPos12.x, texPos0.y)) * w12.x * w0.y; - result += tex2D(linearSampler, float2(texPos3.x, texPos0.y)) * w3.x * w0.y; - - result += tex2D(linearSampler, float2(texPos0.x, texPos12.y)) * w0.x * w12.y; - result += tex2D(linearSampler, float2(texPos12.x, texPos12.y)) * w12.x * w12.y; - result += tex2D(linearSampler, float2(texPos3.x, texPos12.y)) * w3.x * w12.y; - - result += tex2D(linearSampler, float2(texPos0.x, texPos3.y)) * w0.x * w3.y; - result += tex2D(linearSampler, float2(texPos12.x, texPos3.y)) * w12.x * w3.y; - result += tex2D(linearSampler, float2(texPos3.x, texPos3.y)) * w3.x * w3.y; - - return max( 0.0, result ); -} - -//note: see http://vec3.ca/bicubic-filtering-in-fewer-taps/ for more details -//note: also http://mate.tue.nl/mate/pdfs/10318.pdf -float4 sample_cubic( in sampler2D linearSampler, float2 uv, float2 texSiz ) -{ - //return - float2 iTc = uv * texSiz; - float2 tc = floor(iTc - 0.5) + 0.5; - - float2 f = iTc - tc; - - const float2 f2 = float2( f * f ); - float2 w0 = f * ( f * ( 0.5 - 1.0/6.0 * f ) - 0.5 ) + (1.0/6.0); - float2 w1 = (0.5 * f - 1.0) * f2 + (2.0/3.0); - float2 w2 = f * ( f * (0.5 - 0.5 * f) + 0.5) + (1.0/6.0); - float2 w3 = (1.0/6.0) * f*f2; - - float2 s0 = w0 + w1; - float2 s1 = w2 + w3; - - float2 f0 = w1 / s0; - float2 f1 = w3 / s1; - - float2 t0 = tc - 1.0 + f0; - float2 t1 = tc + 1.0 + f1; - - const float2 rcpTexSiz = 1.0 / texSiz; - - return - (tex2D( linearSampler, float2( t0.x, t0.y )*rcpTexSiz) * s0.x - + tex2D( linearSampler, float2( t1.x, t0.y )*rcpTexSiz) * s1.x) * s0.y - + (tex2D( linearSampler, float2( t0.x, t1.y )*rcpTexSiz) * s0.x - + tex2D( linearSampler, float2( t1.x, t1.y )*rcpTexSiz) * s1.x ) * s1.y; -} - - -#endif // __PD_COLOR_CGINC__ diff --git a/Assets/Plugins/PDTAA/Shaders/IncDepth.cginc b/Assets/Plugins/PDTAA/Shaders/IncDepth.cginc deleted file mode 100644 index 4675411c6..000000000 --- a/Assets/Plugins/PDTAA/Shaders/IncDepth.cginc +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -#ifndef __DEPTH_CGINC__ -#define __DEPTH_CGINC__ - -#include "UnityCG.cginc" - -uniform sampler2D_float _CameraDepthTexture; -uniform float4 _CameraDepthTexture_TexelSize; - -#if UNITY_REVERSED_Z -#define ZCMP_GT(a, b) (a < b) -#else -#define ZCMP_GT(a, b) (a > b) -#endif - -float depth_resolve_linear(float z) -{ -#if CAMERA_ORTHOGRAPHIC - #if UNITY_REVERSED_Z - return (1.0 - z) * (_ProjectionParams.z - _ProjectionParams.y) + _ProjectionParams.y; - #else - return z * (_ProjectionParams.z - _ProjectionParams.y) + _ProjectionParams.y; - #endif -#else - return LinearEyeDepth(z); -#endif -} - -float depth_sample_linear(float2 uv) -{ - return depth_resolve_linear(tex2D(_CameraDepthTexture, uv).x); -} - -float3 find_closest_fragment_3x3(float2 uv) -{ - float2 dd = abs(_CameraDepthTexture_TexelSize.xy); - float2 du = float2(dd.x, 0.0); - float2 dv = float2(0.0, dd.y); - - float3 dtl = float3(-1, -1, tex2D(_CameraDepthTexture, uv - dv - du).x); - float3 dtc = float3( 0, -1, tex2D(_CameraDepthTexture, uv - dv).x); - float3 dtr = float3( 1, -1, tex2D(_CameraDepthTexture, uv - dv + du).x); - - float3 dml = float3(-1, 0, tex2D(_CameraDepthTexture, uv - du).x); - float3 dmc = float3( 0, 0, tex2D(_CameraDepthTexture, uv).x); - float3 dmr = float3( 1, 0, tex2D(_CameraDepthTexture, uv + du).x); - - float3 dbl = float3(-1, 1, tex2D(_CameraDepthTexture, uv + dv - du).x); - float3 dbc = float3( 0, 1, tex2D(_CameraDepthTexture, uv + dv).x); - float3 dbr = float3( 1, 1, tex2D(_CameraDepthTexture, uv + dv + du).x); - - float3 dmin = dtl; - if (ZCMP_GT(dmin.z, dtc.z)) dmin = dtc; - if (ZCMP_GT(dmin.z, dtr.z)) dmin = dtr; - - if (ZCMP_GT(dmin.z, dml.z)) dmin = dml; - if (ZCMP_GT(dmin.z, dmc.z)) dmin = dmc; - if (ZCMP_GT(dmin.z, dmr.z)) dmin = dmr; - - if (ZCMP_GT(dmin.z, dbl.z)) dmin = dbl; - if (ZCMP_GT(dmin.z, dbc.z)) dmin = dbc; - if (ZCMP_GT(dmin.z, dbr.z)) dmin = dbr; - - return float3(uv + dd.xy * dmin.xy, dmin.z); -} - -/* UNUSED: tested slower than branching -float2 find_closest_fragment_3x3_packed(in float2 uv) -{ - float2 dd = abs(_CameraDepthTexture_TexelSize.xy); - float2 du = float2(dd.x, 0.0); - float2 dv = float2(0.0, dd.y); - - const float s = 100000.0; - float dtl = trunc(s * tex2D(_CameraDepthTexture, uv - dv - du).x) + 0.1010;// -+-+ - float dtc = trunc(s * tex2D(_CameraDepthTexture, uv - dv).x) + 0.0010; - float dtr = trunc(s * tex2D(_CameraDepthTexture, uv - dv + du).x) + 0.0110; - float dml = trunc(s * tex2D(_CameraDepthTexture, uv - du).x) + 0.1000; - float dmc = trunc(s * tex2D(_CameraDepthTexture, uv).x) + 0.0000; - float dmr = trunc(s * tex2D(_CameraDepthTexture, uv + du).x) + 0.0100; - float dbl = trunc(s * tex2D(_CameraDepthTexture, uv + dv - du).x) + 0.1001; - float dbc = trunc(s * tex2D(_CameraDepthTexture, uv + dv).x) + 0.0001; - float dbr = trunc(s * tex2D(_CameraDepthTexture, uv + dv + du).x) + 0.0101; - float enc = frac(min(dtl, min(dtc, min(dtr, min(dml, min(dmc, min(dmr, min(dbl, min(dbc, dbr))))))))); - - float ru = 0.0; - float rv = 0.0; - - enc *= 10.0; - ru -= trunc(enc); - enc = frac(enc); - - enc *= 10.0; - ru += trunc(enc); - enc = frac(enc); - - enc *= 10.0; - rv -= trunc(enc); - enc = frac(enc); - - enc *= 10.0; - rv += trunc(enc); - enc = frac(enc); - - return uv + dd * float2(ru, rv); -}*/ - -float3 find_closest_fragment_5tap(float2 uv) -{ - float2 dd = abs(_CameraDepthTexture_TexelSize.xy); - float2 du = float2(dd.x, 0.0); - float2 dv = float2(0.0, dd.y); - - float2 tl = -dv - du; - float2 tr = -dv + du; - float2 bl = dv - du; - float2 br = dv + du; - - float dtl = tex2D(_CameraDepthTexture, uv + tl).x; - float dtr = tex2D(_CameraDepthTexture, uv + tr).x; - float dmc = tex2D(_CameraDepthTexture, uv).x; - float dbl = tex2D(_CameraDepthTexture, uv + bl).x; - float dbr = tex2D(_CameraDepthTexture, uv + br).x; - - float dmin = dmc; - float2 dif = 0.0; - - if (ZCMP_GT(dmin, dtl)) { dmin = dtl; dif = tl; } - if (ZCMP_GT(dmin, dtr)) { dmin = dtr; dif = tr; } - if (ZCMP_GT(dmin, dbl)) { dmin = dbl; dif = bl; } - if (ZCMP_GT(dmin, dbr)) { dmin = dbr; dif = br; } - - return float3(uv + dif, dmin); -} - -#endif//__DEPTH_CGINC__ \ No newline at end of file diff --git a/Assets/Plugins/PDTAA/Shaders/IncNoise.cginc b/Assets/Plugins/PDTAA/Shaders/IncNoise.cginc deleted file mode 100644 index 337f39b09..000000000 --- a/Assets/Plugins/PDTAA/Shaders/IncNoise.cginc +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -#ifndef __NOISE_CGINC__ -#define __NOISE_CGINC__ - -//==== -//note: normalized random, float=[0;1[ -float PDnrand( float2 n ) { - return frac( sin(dot(n.xy, float2(12.9898f, 78.233f)))* 43758.5453f ); -} -float2 PDnrand2( float2 n ) { - return frac( sin(dot(n.xy, float2(12.9898f, 78.233f)))* float2(43758.5453f, 28001.8384f) ); -} -float3 PDnrand3( float2 n ) { - return frac( sin(dot(n.xy, float2(12.9898f, 78.233f)))* float3(43758.5453f, 28001.8384f, 50849.4141f ) ); -} -float4 PDnrand4( float2 n ) { - return frac( sin(dot(n.xy, float2(12.9898f, 78.233f)))* float4(43758.5453f, 28001.8384f, 50849.4141f, 12996.89f) ); -} - -//==== -//note: signed random, float=[-1;1[ -float PDsrand( float2 n ) { - return PDnrand( n ) * 2 - 1; -} -float2 PDsrand2( float2 n ) { - return PDnrand2( n ) * 2 - 1; -} -float3 PDsrand3( float2 n ) { - return PDnrand3( n ) * 2 - 1; -} -float4 PDsrand4( float2 n ) { - return PDnrand4( n ) * 2 - 1; -} - -#endif//__NOISE_CGINC__ \ No newline at end of file diff --git a/Assets/Plugins/PDTAA/Shaders/TemporalReprojection.shader b/Assets/Plugins/PDTAA/Shaders/TemporalReprojection.shader deleted file mode 100644 index da6ba7a27..000000000 --- a/Assets/Plugins/PDTAA/Shaders/TemporalReprojection.shader +++ /dev/null @@ -1,431 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -Shader "Playdead/Post/TemporalReprojection" -{ - Properties - { - _MainTex ("Base (RGB)", 2D) = "white" {} - } - - CGINCLUDE - //--- program begin - - #pragma only_renderers ps4 xboxone d3d11 d3d9 xbox360 opengl glcore gles3 metal vulkan - #pragma target 3.0 - - #pragma multi_compile CAMERA_PERSPECTIVE CAMERA_ORTHOGRAPHIC - //#pragma multi_compile __ UNJITTER_COLORSAMPLES - //#pragma multi_compile __ UNJITTER_NEIGHBORHOOD - //#pragma multi_compile __ UNJITTER_REPROJECTION - #pragma multi_compile __ USE_AABB_ROUNDING - #pragma multi_compile __ USE_CHROMA_COLORSPACE - #pragma multi_compile __ USE_CLIPPING - #pragma multi_compile __ USE_VARIANCE_CLIPPING - #pragma multi_compile __ USE_CENTER_CLIPPING - #pragma multi_compile __ USE_DILATION_5X - #pragma multi_compile __ USE_DILATION_3X3 - #pragma multi_compile __ USE_HIGHER_ORDER_TEXTURE_FILTERING_COLOR - #pragma multi_compile __ USE_HIGHER_ORDER_TEXTURE_FILTERING_HISTORY - #pragma multi_compile __ USE_MOTION_BLUR - #pragma multi_compile __ USE_MOTION_BLUR_NEIGHBORMAX - - #define UNJITTER_COLORSAMPLES 1 - #define UNJITTER_NEIGHBORHOOD 0 - #define UNJITTER_REPROJECTION 0 - - //TODO: presets - /* - #if USE_HIGH_PERFORMANCE - // best perf: 5 tap nearest, RGB, minmaxrounded, clamping, green_is_luminance, low-motionblur-samples - #define USE_DILATION_5X 1 - #define USE_CENTER_CLIPPING 1 - #define APPROXIMATE_LUMINANCE_AS_GREEN 1 - #endif - - #if USE_HIGH_QUALITY - // best qual: 9 tap nearest, YCbCg, minmax, full clip, full lum, high-motionblur-samples - #define USE_DILATION_3X3 1 - #define USE_CLIPPING 1 - #define USE_CHROMA_COLORSPACE 1 - #define USE_HIGHER_ORDER_TEXTURE_FILTERING_COLOR 1 - #define USE_HIGHER_ORDER_TEXTURE_FILTERING_HISTORY 1 - #endif - */ - - #include "UnityCG.cginc" - #include "IncDepth.cginc" - #include "IncNoise.cginc" - #include "IncColor.cginc" - -#if SHADER_API_MOBILE - static const float FLT_EPS = 0.0001f; -#else - static const float FLT_EPS = 0.00000001f; -#endif - - uniform float4 _JitterUV;// frustum jitter uv deltas, where xy = current frame, zw = previous - - uniform sampler2D _MainTex; - uniform float4 _MainTex_TexelSize; - - uniform sampler2D_half _VelocityBuffer; - uniform sampler2D _VelocityNeighborMax; - uniform float4 _VelocityNeighborMax_TexelSize; - - uniform sampler2D _PrevTex; - uniform float4 _PrevTex_TexelSize; - - uniform sampler2D _DitherTex; - uniform float4 _DitherTex_TexelSize; - uniform float4 _DitherOffset_local; - - uniform float _FeedbackMin; - uniform float _FeedbackMinMax; - uniform float _MotionScale; - - struct v2f - { - float4 cs_pos : SV_POSITION; - float2 ss_txc : TEXCOORD0; - nointerpolation float4 mad : TEXCOORD1; - }; - - v2f vert(appdata_img IN) - { - v2f OUT; - - #if UNITY_VERSION < 540 - OUT.cs_pos = UnityObjectToClipPos(IN.vertex); - #else - OUT.cs_pos = UnityObjectToClipPos(IN.vertex); - #endif - #if UNITY_SINGLE_PASS_STEREO - OUT.ss_txc = UnityStereoTransformScreenSpaceTex(IN.texcoord.xy); - #else - OUT.ss_txc = IN.texcoord.xy; - #endif - - OUT.mad.xy = _PrevTex_TexelSize.zw * _DitherTex_TexelSize.xy; - OUT.mad.zw = _DitherOffset_local.xy * _DitherTex_TexelSize.xy; - - return OUT; - } - - float4 to_working_colorspace( float4 c ) - { - #if USE_CHROMA_COLORSPACE - return float4( RGB_YCbCr(c.rgb), c.a ); - //return float4( RGB_YCoCg(c.rgb), c.a ); - #else - return c; - #endif - } - float4 from_working_colorspace( float4 c ) - { - #if USE_CHROMA_COLORSPACE - return float4( YCbCr_RGB(c.rgb), c.a ); - //return float4( YCoCg_RGB(c.rgb), c.a ); - #else - return c; - #endif - } - - float4 clip_aabb(float3 aabb_min, float3 aabb_max, float4 p, float4 q) - { - #if USE_CENTER_CLIPPING - // note: only clips towards aabb center (but fast!) - float3 p_clip = 0.5 * (aabb_max + aabb_min); - float3 e_clip = 0.5 * (aabb_max - aabb_min) + FLT_EPS; - - float4 v_clip = q - float4(p_clip, p.w); - float3 v_unit = v_clip.xyz / e_clip; - float3 a_unit = abs(v_unit); - float ma_unit = max(a_unit.x, max(a_unit.y, a_unit.z)); - - if (ma_unit > 1.0) - return float4(p_clip, p.w) + v_clip / ma_unit; - else - return q;// point inside aabb - #else - float4 r = q - p; - float3 rmax = aabb_max - p.xyz; - float3 rmin = aabb_min - p.xyz; - - const float eps = FLT_EPS; - if (r.x > rmax.x + eps) r *= (rmax.x / r.x); - if (r.y > rmax.y + eps) r *= (rmax.y / r.y); - if (r.z > rmax.z + eps) r *= (rmax.z / r.z); - - if (r.x < rmin.x - eps) r *= (rmin.x / r.x); - if (r.y < rmin.y - eps) r *= (rmin.y / r.y); - if (r.z < rmin.z - eps) r *= (rmin.z / r.z); - - return p + r; - #endif - } - - //TODO: option to toggle symmetric sampling - static const int NUM_TAPS = 3;// on either side! - static const float RCP_NUM_TAPS_F = 1.0f / float(NUM_TAPS); - static const float RCP_NUM_TOTAL_TAPS_F = 1.0f / float(2*NUM_TAPS+1); - half4 sample_color_motion( float2 uv, float2 ss_vel, float srand ) - { - const float2 v = 0.5 * ss_vel; - float2 vtap = v * RCP_NUM_TAPS_F; - float2 pos0 = uv + vtap * srand; - half4 accu = 0.0h; - - [unroll] - for (int i = -NUM_TAPS; i <= NUM_TAPS; i++) - { - accu += to_working_colorspace( tex2D(_MainTex, pos0 + i * vtap) ); - } - - return accu * RCP_NUM_TOTAL_TAPS_F; - } - - float lengthsq( float2 v ) - { - return dot(v,v); - } - - float4 temporal_reprojection(float2 ss_txc, float2 ss_vel, float vs_dist) - { - // read texels - #if UNJITTER_COLORSAMPLES - float2 cuv = ss_txc - _JitterUV.xy; - #else - float2 cuv = ss_txc; - #endif - - // read texels - #if USE_HIGHER_ORDER_TEXTURE_FILTERING_COLOR - half4 texel0 = sample_cubic(_MainTex, cuv, _MainTex_TexelSize.zw); //softer - #else - half4 texel0 = tex2D(_MainTex, cuv); //note: sharper, faster - #endif - texel0 = to_working_colorspace( texel0 ); - - #if USE_HIGHER_ORDER_TEXTURE_FILTERING_HISTORY - half4 texel1 = sample_catmull_rom(_PrevTex, ss_txc - ss_vel, _PrevTex_TexelSize.zw); - #else - half4 texel1 = tex2D(_PrevTex, ss_txc - ss_vel); - #endif - texel1 = to_working_colorspace( texel1 ); - - // calc min-max of current neighbourhood - #if UNJITTER_NEIGHBORHOOD - float2 uv = ss_txc - _JitterUV.xy; - #else - float2 uv = ss_txc; - #endif - - float2 du = float2(_MainTex_TexelSize.x, 0.0); - float2 dv = float2(0.0, _MainTex_TexelSize.y); - float4 ctl = to_working_colorspace( tex2D(_MainTex, uv - dv - du) ); - float4 ctc = to_working_colorspace( tex2D(_MainTex, uv - dv) ); - float4 ctr = to_working_colorspace( tex2D(_MainTex, uv - dv + du) ); - float4 cml = to_working_colorspace( tex2D(_MainTex, uv - du) ); - float4 cmc = to_working_colorspace( tex2D(_MainTex, uv) ); - float4 cmr = to_working_colorspace( tex2D(_MainTex, uv + du) ); - float4 cbl = to_working_colorspace( tex2D(_MainTex, uv + dv - du) ); - float4 cbc = to_working_colorspace( tex2D(_MainTex, uv + dv) ); - float4 cbr = to_working_colorspace( tex2D(_MainTex, uv + dv + du) ); - - float4 cmin5 = min(ctc, min(cml, min(cmc, min(cmr, cbc)))); - float4 cmax5 = max(ctc, max(cml, max(cmc, max(cmr, cbc)))); - float4 csum5 = ctc + cml + cmc + cmr + cbc; - - float4 cmin = min(cmin5, min(ctl, min(ctr, min(cbl, cbr)))); - float4 cmax = max(cmax5, max(ctl, max(ctr, max(cbl, cbr)))); - - #if USE_CHROMA_COLORSPACE || USE_CLIPPING - float4 cavg = (csum5 + ctl + ctr + cbl + cbr) / 9.0; - #endif - - #if USE_AABB_ROUNDING - cmin = 0.5 * (cmin + cmin5); - cmax = 0.5 * (cmax + cmax5); - #if USE_CLIPPING - cavg = 0.5 * (cavg + 0.2 * csum5); - #endif - #endif - - #if USE_VARIANCE_CLIPPING - //note: salvi variance-clipping - { - const float3 w = float3(1.0/16.0, 2.0/16.0, 4.0/16.0); - - float4 colorAvg = w.z*cmc; - float4 colorVar = w.z*cmc*cmc; - colorAvg += w.x * ctl; colorVar += w.x * ctl * ctl; - colorAvg += w.y * ctc; colorVar += w.y * ctc * ctc; - colorAvg += w.x * ctr; colorVar += w.x * ctr * ctr; - colorAvg += w.y * cml; colorVar += w.y * cml * cml; - //colorAvg += w.z * cmc; colorVar += w.z * cmc * cmc; - colorAvg += w.y * cmr; colorVar += w.y * cmr * cmr; - colorAvg += w.x * cbl; colorVar += w.x * cbl * cbl; - colorAvg += w.y * cbc; colorVar += w.y * cbc * cbc; - colorAvg += w.x * cbr; colorVar += w.x * cbr * cbr; - - float4 dev = sqrt(max(FLT_EPS, colorVar - colorAvg*colorAvg)); - const float gColorBoxSigma = 1.0; //TODO: expose [0.75;1.25] - cmin = max(cmin, colorAvg - gColorBoxSigma * dev ); - cmax = min(cmax, colorAvg + gColorBoxSigma * dev ); - #if USE_CLIPPING - cavg = colorAvg; - #endif - } - #endif //USE_VARIANCE_CLIPPING - - //note: shrink chroma min-max - #if USE_CHROMA_COLORSPACE - float2 chroma_extent = 0.25 * 0.5 * (cmax.xx - cmin.xx); - float2 chroma_center = texel0.yz; - float2 ccmin = chroma_center - chroma_extent; - float2 ccmax = chroma_center + chroma_extent; - if ( lengthsq(ccmax-ccmin) > lengthsq(cmax.yz-cmin.yz) ) - { - cmin.yz = ccmin; - cmax.yz = ccmax; - #if USE_CLIPPING - cavg.yz = chroma_center; - #endif - } - #endif //USE_CHROMA_COLORSPACE - - // clamp to neighbourhood of current sample - #if USE_CLIPPING - texel1 = clip_aabb(cmin.xyz, cmax.xyz, clamp(cavg, cmin, cmax), texel1); - #else - texel1 = clamp(texel1, cmin, cmax); - #endif - - - // feedback weight from unbiased luminance diff (t.lottes) - #if USE_CHROMA_COLORSPACE - float lum0 = texel0.r; - float lum1 = texel1.r; - #else - #if APPROXIMATE_LUMINANCE_AS_GREEN - float lum0 = texel0.g; - float lum1 = texel1.g; - #else - float lum0 = Luminance(texel0.rgb); - float lum1 = Luminance(texel1.rgb); - #endif - #endif - float unbiased_diff = abs(lum0 - lum1) / max(lum0, max(lum1, 0.2)); - float unbiased_weight = 1.0 - unbiased_diff; - float unbiased_weight_sqr = unbiased_weight * unbiased_weight; - float k_feedback = _FeedbackMin + unbiased_weight_sqr * _FeedbackMinMax; - - // output - return lerp(texel0, texel1, k_feedback); - } - - struct f2rt - { - fixed4 buffer : SV_Target0; - fixed4 screen : SV_Target1; - }; - - f2rt frag(v2f IN) - { - f2rt OUT; - - #if UNJITTER_REPROJECTION - float2 uv = IN.ss_txc - _JitterUV.xy; - #else - float2 uv = IN.ss_txc; - #endif - - //note: RPDF blue-noise - half4 rnd = tex2Dlod( _DitherTex, float4( IN.ss_txc * IN.mad.xy + IN.mad.zw, 0, 0) ); - - #if USE_DILATION_5X - //--- 5 tap nearest (decent) - float3 c_frag = find_closest_fragment_5tap(uv); - float2 ss_vel = tex2D(_VelocityBuffer, c_frag.xy).xy; - float vs_dist = depth_resolve_linear(c_frag.z); - #elif USE_DILATION_3X3 - //--- 3x3 nearest (good) - float3 c_frag = find_closest_fragment_3x3(uv); - float2 ss_vel = tex2D(_VelocityBuffer, c_frag.xy).xy; - float vs_dist = depth_resolve_linear(c_frag.z); - #else - float2 ss_vel = tex2D(_VelocityBuffer, uv).xy; - float vs_dist = depth_sample_linear(uv); - #endif - - // temporal resolve - float4 color_temporal = temporal_reprojection(IN.ss_txc, ss_vel, vs_dist); - - // prepare outputs - float4 to_buffer = color_temporal; - - #if USE_MOTION_BLUR - #if USE_MOTION_BLUR_NEIGHBORMAX - //ss_vel = _MotionScale * tex2D(_VelocityNeighborMax, IN.ss_txc).xy; - ss_vel = _MotionScale * sample_cubic(_VelocityNeighborMax, IN.ss_txc, _VelocityNeighborMax_TexelSize.zw).xy; - #else - ss_vel = _MotionScale * ss_vel; - #endif - - float vel_mag = length(ss_vel * _MainTex_TexelSize.zw); - const float vel_trust_full = 2.0; - const float vel_trust_none = 15.0; - const float vel_trust_span = vel_trust_none - vel_trust_full; - float trust = 1.0 - clamp(vel_mag - vel_trust_full, 0.0, vel_trust_span) / vel_trust_span; - - #if UNJITTER_COLORSAMPLES - half4 color_motion = sample_color_motion( IN.ss_txc - _JitterUV.xy, ss_vel, rnd.xy-0.5h); - #else - half4 color_motion = sample_color_motion( IN.ss_txc, ss_vel, rnd.xy-0.5h); - #endif - - float4 to_screen = lerp(color_motion, color_temporal, trust); - #else - float4 to_screen = color_temporal; - #endif - - to_buffer = from_working_colorspace( to_buffer ); - to_screen = from_working_colorspace( to_screen ); - - //note: velocity debug - //to_screen.g += 100.0 * length(ss_vel); - //to_screen = float4(100.0 * abs(ss_vel), 0.0, 0.0); - - // dither color-output - float4 noise4_tri = remap_noise_tri( rnd ) / 255.0; - OUT.buffer = saturate(to_buffer + noise4_tri); - OUT.screen = saturate(to_screen + noise4_tri); - - return OUT; - } - - //--- program end - ENDCG - - SubShader - { - ZTest Always - Cull Off - ZWrite Off - Fog { Mode off } - - Pass - { - CGPROGRAM - - #pragma vertex vert - #pragma fragment frag - - ENDCG - } - } - - Fallback off -} diff --git a/Assets/Plugins/PDTAA/Shaders/VelocityBuffer.shader b/Assets/Plugins/PDTAA/Shaders/VelocityBuffer.shader deleted file mode 100644 index 4071eb781..000000000 --- a/Assets/Plugins/PDTAA/Shaders/VelocityBuffer.shader +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) <2015> -// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE.TXT) -// AUTHOR: Lasse Jon Fuglsang Pedersen - -Shader "Playdead/Post/VelocityBuffer" -{ - CGINCLUDE - //--- program begin - - #pragma only_renderers ps4 xboxone d3d11 d3d9 xbox360 opengl glcore gles3 metal vulkan - #pragma target 3.0 - - #pragma multi_compile CAMERA_PERSPECTIVE CAMERA_ORTHOGRAPHIC - #pragma multi_compile __ TILESIZE_10 TILESIZE_20 TILESIZE_40 - - #include "UnityCG.cginc" - #include "IncDepth.cginc" - -#if UNITY_VERSION < 540 - uniform float4x4 _CameraToWorld;// UNITY_SHADER_NO_UPGRADE -#endif - -#if UNITY_VERSION < 550 - #define STEREO_ARRAY - #define STEREO_INDEX(x) x -#else - #define STEREO_ARRAY [2] - #define STEREO_INDEX(x) x[unity_StereoEyeIndex] -#endif - - uniform sampler2D_half _VelocityTex; - uniform float4 _VelocityTex_TexelSize; - - uniform float4 _ProjectionExtents STEREO_ARRAY;// xy = frustum extents at distance 1, zw = jitter at distance 1 - - uniform float4x4 _CurrV STEREO_ARRAY; - uniform float4x4 _CurrVP STEREO_ARRAY; - uniform float4x4 _CurrM; - - uniform float4x4 _PrevVP STEREO_ARRAY; - uniform float4x4 _PrevVP_NoFlip STEREO_ARRAY; - uniform float4x4 _PrevM; - - struct blit_v2f - { - float4 cs_pos : SV_POSITION; - float2 ss_txc : TEXCOORD0; - float2 vs_ray : TEXCOORD1; - }; - - blit_v2f blit_vert(appdata_img IN) - { - blit_v2f OUT; - - #if UNITY_VERSION < 540 - OUT.cs_pos = mul(UNITY_MATRIX_MVP, IN.vertex); - #else - OUT.cs_pos = UnityObjectToClipPos(IN.vertex); - #endif - - #if UNITY_SINGLE_PASS_STEREO - OUT.ss_txc = UnityStereoTransformScreenSpaceTex(IN.texcoord.xy); - #else - OUT.ss_txc = IN.texcoord.xy; - #endif - OUT.vs_ray = (2.0 * IN.texcoord.xy - 1.0) * STEREO_INDEX(_ProjectionExtents).xy + STEREO_INDEX(_ProjectionExtents).zw; - - return OUT; - } - - float4 blit_frag_prepass(blit_v2f IN) : SV_Target - { - // reconstruct world position - float vs_dist = depth_sample_linear(IN.ss_txc); - #if CAMERA_PERSPECTIVE - float3 vs_pos = float3(IN.vs_ray, 1.0) * vs_dist; - #elif CAMERA_ORTHOGRAPHIC - float3 vs_pos = float3(IN.vs_ray, vs_dist); - #else - #error "missing keyword CAMERA_..." - #endif - - #if UNITY_VERSION < 540 - float4 ws_pos = mul(_CameraToWorld, float4(vs_pos, 1.0));// UNITY_SHADER_NO_UPGRADE - #else - float4 ws_pos = mul(unity_CameraToWorld, float4(vs_pos, 1.0)); - #endif - - //// NOTE: world space debug at 3D crane - //return 0.1 * float4(ws_pos.xy - float2(595.0, -215.0), 0.0, 0.0); - - // reproject into previous frame - float4 rp_cs_pos = mul(STEREO_INDEX(_PrevVP_NoFlip), ws_pos); - float2 rp_ss_ndc = rp_cs_pos.xy / rp_cs_pos.w; - float2 rp_ss_txc = 0.5 * rp_ss_ndc + 0.5; - - // estimate velocity - #if UNITY_SINGLE_PASS_STEREO - float2 ss_vel = IN.ss_txc - UnityStereoTransformScreenSpaceTex(rp_ss_txc); - #else - float2 ss_vel = IN.ss_txc - rp_ss_txc; - #endif - - // output - return float4(ss_vel, 0.0, 0.0); - } - - float4 blit_frag_tilemax(blit_v2f IN) : SV_Target - { - #if TILESIZE_10 - const int support = 10; - #elif TILESIZE_20 - const int support = 20; - #elif TILESIZE_40 - const int support = 40; - #else - const int support = 1; - #endif - - const float2 step = _VelocityTex_TexelSize.xy; - const float2 base = IN.ss_txc + (0.5 - 0.5 * support) * step; - const float2 du = float2(_VelocityTex_TexelSize.x, 0.0); - const float2 dv = float2(0.0, _VelocityTex_TexelSize.y); - - float2 mv = 0.0; - float rmv = 0.0; - - [unroll(10)] - for (int i = 0; i != support; i++) - { - [unroll(10)] - for (int j = 0; j != support; j++) - { - float2 v = tex2D(_VelocityTex, base + i * dv + j * du).xy; - float rv = dot(v, v); - if (rv > rmv) - { - mv = v; - rmv = rv; - } - } - } - - return float4(mv, 0.0, 0.0); - } - - float4 blit_frag_neighbormax(blit_v2f IN) : SV_Target - { - const float2 du = float2(_VelocityTex_TexelSize.x, 0.0); - const float2 dv = float2(0.0, _VelocityTex_TexelSize.y); - - float2 mv = 0.0; - float dmv = 0.0; - - [unroll] - for (int i = -1; i <= 1; i++) - { - [unroll] - for (int j = -1; j <= 1; j++) - { - float2 v = tex2D(_VelocityTex, IN.ss_txc + i * dv + j * du).xy; - float dv = dot(v, v); - if (dv > dmv) - { - mv = v; - dmv = dv; - } - } - } - - return float4(mv, 0.0, 0.0); - } - - struct v2f - { - float4 cs_pos : SV_POSITION; - float4 ss_pos : TEXCOORD0; - float3 cs_xy_curr : TEXCOORD1; - float3 cs_xy_prev : TEXCOORD2; - }; - - v2f process_vertex(float4 ws_pos_curr, float4 ws_pos_prev) - { - v2f OUT; - - const float occlusion_bias = 0.03; - - OUT.cs_pos = mul(mul(STEREO_INDEX(_CurrVP), _CurrM), ws_pos_curr); - OUT.ss_pos = ComputeScreenPos(OUT.cs_pos); - OUT.ss_pos.z = -mul(mul(STEREO_INDEX(_CurrV), _CurrM), ws_pos_curr).z - occlusion_bias;// COMPUTE_EYEDEPTH - OUT.cs_xy_curr = OUT.cs_pos.xyw; - OUT.cs_xy_prev = mul(mul(STEREO_INDEX(_PrevVP), _PrevM), ws_pos_prev).xyw; - - #if UNITY_UV_STARTS_AT_TOP - OUT.cs_xy_curr.y = -OUT.cs_xy_curr.y; - OUT.cs_xy_prev.y = -OUT.cs_xy_prev.y; - #endif - - return OUT; - } - - v2f vert(appdata_base IN) - { - return process_vertex(IN.vertex, IN.vertex); - } - - v2f vert_skinned(appdata_base IN) - { - return process_vertex(IN.vertex, float4(IN.normal, 1.0));// previous frame positions stored in normal data - } - - float4 frag(v2f IN) : SV_Target - { - float2 ss_txc = IN.ss_pos.xy / IN.ss_pos.w; - float scene_d = depth_sample_linear(ss_txc); - - // discard if occluded - clip(scene_d - IN.ss_pos.z); - - // compute velocity in ndc - float2 ndc_curr = IN.cs_xy_curr.xy / IN.cs_xy_curr.z; - float2 ndc_prev = IN.cs_xy_prev.xy / IN.cs_xy_prev.z; - - // compute screen space velocity [0,1;0,1] - #if UNITY_SINGLE_PASS_STEREO - return float4(0.5 * (ndc_curr - ndc_prev) * unity_StereoScaleOffset[unity_StereoEyeIndex].xy, 0.0, 0.0); - #else - return float4(0.5 * (ndc_curr - ndc_prev), 0.0, 0.0); - #endif - } - - //--- program end - ENDCG - - SubShader - { - // 0: prepass - Pass - { - ZTest Always Cull Off ZWrite Off - Fog { Mode Off } - - CGPROGRAM - - #pragma vertex blit_vert - #pragma fragment blit_frag_prepass - - ENDCG - } - - // 1: vertices - Pass - { - ZTest LEqual Cull Back ZWrite On - Fog { Mode Off } - - CGPROGRAM - - #pragma vertex vert - #pragma fragment frag - - ENDCG - } - - // 2: vertices skinned - Pass - { - ZTest LEqual Cull Back ZWrite On - Fog { Mode Off } - - CGPROGRAM - - #pragma vertex vert_skinned - #pragma fragment frag - - ENDCG - } - - // 3: tilemax - Pass - { - ZTest Always Cull Off ZWrite Off - Fog { Mode Off } - - CGPROGRAM - - #pragma vertex blit_vert - #pragma fragment blit_frag_tilemax - - ENDCG - } - - // 4: neighbormax - Pass - { - ZTest Always Cull Off ZWrite Off - Fog { Mode Off } - - CGPROGRAM - - #pragma vertex blit_vert - #pragma fragment blit_frag_neighbormax - - ENDCG - } - } - - Fallback Off -} \ No newline at end of file diff --git a/Assets/Plugins/PDTAA/Shaders/VelocityBuffer.shader.meta b/Assets/Plugins/PDTAA/Shaders/VelocityBuffer.shader.meta deleted file mode 100644 index 01096a638..000000000 --- a/Assets/Plugins/PDTAA/Shaders/VelocityBuffer.shader.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0d7f09e63dd99504ca6e04212a21ec72 -timeCreated: 1437991034 -licenseType: Pro -ShaderImporter: - defaultTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Textures/bluenoise_frd_256x256_uni.bmp b/Assets/Plugins/PDTAA/Textures/bluenoise_frd_256x256_uni.bmp deleted file mode 100644 index 94bd4e3e6..000000000 --- a/Assets/Plugins/PDTAA/Textures/bluenoise_frd_256x256_uni.bmp +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd1299b38c70aa0156d058575322c769f2e8c564fb17e80c6b8f61c312124e14 -size 262198 diff --git a/Assets/Plugins/VolumeCloud.meta b/Assets/Plugins/VolumeCloud.meta new file mode 100644 index 000000000..9e9e09198 --- /dev/null +++ b/Assets/Plugins/VolumeCloud.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f7a5905754299444c8c54e4e59668749 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wwise/API/Editor.meta b/Assets/Plugins/VolumeCloud/Editor.meta similarity index 62% rename from Assets/Wwise/API/Editor.meta rename to Assets/Plugins/VolumeCloud/Editor.meta index d9d5fffb1..46913273e 100644 --- a/Assets/Wwise/API/Editor.meta +++ b/Assets/Plugins/VolumeCloud/Editor.meta @@ -1,6 +1,8 @@ fileFormatVersion: 2 -guid: 6ba0f1d2bd55e0f449f84e7e8ec3d73a +guid: a5355ed4c7ace6e4194bb0c52fd10fc3 folderAsset: yes +timeCreated: 1521966588 +licenseType: Free DefaultImporter: externalObjects: {} userData: diff --git a/Assets/Plugins/VolumeCloud/Editor/Config.asset b/Assets/Plugins/VolumeCloud/Editor/Config.asset new file mode 100644 index 000000000..aae7dfb82 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Editor/Config.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88a78d9cc6f38c024b26166c8b4f881c95629890e93a2d96309e9990c7bf3871 +size 955 diff --git a/Assets/Wwise/ScriptableObjects/AkWwiseInitializationSettings.asset.meta b/Assets/Plugins/VolumeCloud/Editor/Config.asset.meta similarity index 64% rename from Assets/Wwise/ScriptableObjects/AkWwiseInitializationSettings.asset.meta rename to Assets/Plugins/VolumeCloud/Editor/Config.asset.meta index 0bbbfa3f9..d75398280 100644 --- a/Assets/Wwise/ScriptableObjects/AkWwiseInitializationSettings.asset.meta +++ b/Assets/Plugins/VolumeCloud/Editor/Config.asset.meta @@ -1,5 +1,7 @@ fileFormatVersion: 2 -guid: ca1886ece3dfc5e49902e78defccd355 +guid: ff23f3c539d9073408464e0039314ed5 +timeCreated: 1521972532 +licenseType: Free NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/Plugins/VolumeCloud/Editor/VolumeCloudWindowEditor.cs b/Assets/Plugins/VolumeCloud/Editor/VolumeCloudWindowEditor.cs new file mode 100644 index 000000000..cb441030f --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Editor/VolumeCloudWindowEditor.cs @@ -0,0 +1,141 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; +using System; + +namespace Yangrc.VolumeCloud { + public class VolumeCloudWindowEditor : EditorWindow { + private VolumeCloudWindowConfigurations config { + get { + if (_config == null) { + _config = AssetDatabase.LoadAssetAtPath("Assets/VolumeCloud/Editor/Config.asset"); + if (_config == null) { + var newConfig = ScriptableObject.CreateInstance(); + AssetDatabase.CreateAsset(newConfig, "Assets/VolumeCloud/Editor/Config.asset"); + // AssetDatabase.IsValidFolder( + this._config = newConfig; + } + } + return _config; + } + } + private VolumeCloudWindowConfigurations _config; + private SerializedObject configSO { + get { + return _configSO ?? (_configSO = new SerializedObject(config)); + } + } + private SerializedObject _configSO; + + + private Texture2D testTexPreview; + private Texture2D firstTexPreview; + private Texture2D secondTexPreview; + + private Vector2 scrollPos; + + // Add menu named "My Window" to the Window menu + [MenuItem("Window/VolumeCloud")] + static void Init() { + // Get existing open window or if none, make a new one: + VolumeCloudWindowEditor window = (VolumeCloudWindowEditor)EditorWindow.GetWindow(typeof(VolumeCloudWindowEditor)); + window.Show(); + } + + private void OnGUI() { + + EditorGUI.BeginChangeCheck(); + scrollPos = EditorGUILayout.BeginScrollView(scrollPos, GUILayout.Width(position.width), GUILayout.Height(position.height)); + //Test only. + EditorGUILayout.BeginHorizontal();//Second 3d tex. + { + EditorGUILayout.BeginVertical(); + { //Config area. + EditorGUILayout.PropertyField(configSO.FindProperty("testGenerator"), true); + if (GUILayout.Button("Save tex")) { + var texture = Utils.GetTex(config.testGenerator, 128, TextureFormat.RGB24); + AssetDatabase.CreateAsset(texture, "Assets/VolumeCloud/" + "TestTex" + ".asset"); + AssetDatabase.SaveAssets(); + } + } + EditorGUILayout.EndVertical(); + if (configSO.FindProperty("testGenerator").isExpanded) { + EditorGUILayout.BeginVertical(GUILayout.Width(256.0f)); //Preview Area + { + if (GUILayout.Button("Preview")) { + testTexPreview = Utils.GetPreviewTex(config.testGenerator, 128, TextureFormat.RGFloat); + } + if (GUILayout.Button("Save preview")) { + AssetDatabase.CreateAsset(testTexPreview, "Assets/VolumeCloud/" + "curlNoise" + ".asset"); + AssetDatabase.SaveAssets(); + } + if (testTexPreview != null) { + GUI.DrawTexture(EditorGUILayout.GetControlRect(false, GUILayout.Width(256.0f), GUILayout.Height(256.0f)), testTexPreview); + } + } + EditorGUILayout.EndVertical(); + } + } + EditorGUILayout.EndHorizontal(); + + EditorGUILayout.BeginHorizontal();// First 3d texture. + { + EditorGUILayout.BeginVertical(); + { //Config area. + EditorGUILayout.PropertyField(configSO.FindProperty("first3DTexGenerator"), true); + if (configSO.FindProperty("first3DTexGenerator").isExpanded) { + EditorGUILayout.PropertyField(configSO.FindProperty("first3DTexSaveName")); + if (GUILayout.Button("Save tex")) { + var texture = Utils.GetTex(config.first3DTexGenerator, config.first3DTexGenerator.texResolution); + AssetDatabase.CreateAsset(texture, "Assets/VolumeCloud/" + config.first3DTexSaveName + ".asset"); + AssetDatabase.SaveAssets(); + } + } + } + EditorGUILayout.EndVertical(); + EditorGUILayout.BeginVertical(GUILayout.Width(256.0f)); ; + { + if (GUILayout.Button("Preview")) + firstTexPreview = Utils.GetPreviewTex(config.first3DTexGenerator, config.first3DTexGenerator.texResolution); + if (firstTexPreview != null) + GUI.DrawTexture(EditorGUILayout.GetControlRect(false, GUILayout.Width(256.0f), GUILayout.Height(256.0f)), firstTexPreview); + } + EditorGUILayout.EndVertical(); + } + EditorGUILayout.EndHorizontal(); + + EditorGUILayout.BeginHorizontal();//Second 3d tex. + { + EditorGUILayout.BeginVertical(); + { //Config area. + EditorGUILayout.PropertyField(configSO.FindProperty("second3DTexGenerator"), true); + if (configSO.FindProperty("second3DTexGenerator").isExpanded) { + EditorGUILayout.PropertyField(configSO.FindProperty("second3DTexSaveName")); + if (GUILayout.Button("Save tex")) { + var texture = Utils.GetTex(config.second3DTexGenerator, config.second3DTexGenerator.texResolution, TextureFormat.RGB24); + AssetDatabase.CreateAsset(texture, "Assets/VolumeCloud/" + config.second3DTexSaveName + ".asset"); + AssetDatabase.SaveAssets(); + } + } + } + EditorGUILayout.EndVertical(); + EditorGUILayout.BeginVertical(GUILayout.Width(256.0f)); //Preview Area + { + if (GUILayout.Button("Preview")) { + secondTexPreview = Utils.GetPreviewTex(config.second3DTexGenerator, config.second3DTexGenerator.texResolution); + } + if (secondTexPreview != null) { + GUI.DrawTexture(EditorGUILayout.GetControlRect(false, GUILayout.Width(256.0f), GUILayout.Height(256.0f)), secondTexPreview); + } + } + EditorGUILayout.EndVertical(); + } + EditorGUILayout.EndHorizontal(); + EditorGUILayout.EndScrollView(); + if (EditorGUI.EndChangeCheck()) { + configSO.ApplyModifiedProperties(); + } + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Editor/VolumeCloudWindowEditor.cs.meta b/Assets/Plugins/VolumeCloud/Editor/VolumeCloudWindowEditor.cs.meta new file mode 100644 index 000000000..7f820225a --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Editor/VolumeCloudWindowEditor.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 7adc29af50ded2b4a90b86b7df94be23 +timeCreated: 1521969753 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example.meta b/Assets/Plugins/VolumeCloud/Example.meta new file mode 100644 index 000000000..e6e028e89 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 2cc7484e5816b124a98120309af6a4e7 +folderAsset: yes +timeCreated: 1530938310 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot1.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot1.meta new file mode 100644 index 000000000..60dd61c8e --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot1.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4aad6993da61d5549913dd868a11e328 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1.unity b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1.unity new file mode 100644 index 000000000..0cd11e8d3 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1.unity @@ -0,0 +1,594 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 1432092516} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 49040651} + m_IndirectSpecularColor: {r: 0.019927999, g: 0.037775546, b: 0.06939693, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &49040650 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 49040652} + - component: {fileID: 49040651} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &49040651 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 0.95686275, g: 0.6813293, b: 0.3865726, a: 1} + m_Intensity: 2.02 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &49040652 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_LocalRotation: {x: -0.9797308, y: -0.13232979, z: 0.05140217, w: -0.1413304} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 523.11, y: -716.206, z: -14.820984} +--- !u!1 &636899334 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 636899336} + - component: {fileID: 636899335} + - component: {fileID: 636899337} + m_Layer: 8 + m_Name: AtmManager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &636899335 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 636899334} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e16dd2ddbdfa7ea4f87a3cfb032ffd0f, type: 3} + m_Name: + m_EditorClassIdentifier: + progressiveUpdate: 0 + computeShader: {fileID: 7200000, guid: 2d4396a54b390d742b84d4bb4a122e54, type: 3} + outputDebug: 0 + lutConfig: + transmittanceSize: {x: 512, y: 512} + scatteringSize: {x: 32, y: 32, z: 128} + irradianceSize: {x: 32, y: 32} + cameraVolumeSize: {x: 128, y: 128, z: 32} + atmosphereConfig: {fileID: 11400000, guid: 8e73e89daf00b8447b2410427953df25, type: 2} +--- !u!4 &636899336 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 636899334} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &636899337 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 636899334} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3} + m_Name: + m_EditorClassIdentifier: + sharedProfile: {fileID: 11400000, guid: fb5c6f5333d1578418cdc5074b1c900e, type: 2} + isGlobal: 1 + blendDistance: 0 + weight: 1 + priority: 0 +--- !u!21 &1432092516 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Skybox/AtmosphereScatteringPrecomputed + m_Shader: {fileID: 4800000, guid: e2088dd19a71d1244976cd0de1ff68a7, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: [] + m_Colors: [] +--- !u!1 &1662884154 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1662884158} + - component: {fileID: 1662884157} + - component: {fileID: 1662884156} + - component: {fileID: 1662884155} + m_Layer: 0 + m_Name: Sphere + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!135 &1662884155 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1662884154} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.5 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &1662884156 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1662884154} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &1662884157 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1662884154} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1662884158 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1662884154} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -11124, y: -397, z: 5874} + m_LocalScale: {x: 7556.414, y: 7556.414, z: 7556.414} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1748146228 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1748146232} + - component: {fileID: 1748146231} + - component: {fileID: 1748146229} + - component: {fileID: 1748146234} + - component: {fileID: 1748146230} + - component: {fileID: 1748146236} + - component: {fileID: 1748146235} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1748146229 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 +--- !u!114 &1748146230 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 948f4100a11a5c24981795d21301da5c, type: 3} + m_Name: + m_EditorClassIdentifier: + volumeTrigger: {fileID: 1748146232} + volumeLayer: + serializedVersion: 2 + m_Bits: 256 + stopNaNPropagation: 1 + finalBlitToCameraTarget: 0 + antialiasingMode: 3 + temporalAntialiasing: + jitterSpread: 0.75 + sharpness: 0.25 + stationaryBlending: 0.95 + motionBlending: 0.85 + subpixelMorphologicalAntialiasing: + quality: 2 + fastApproximateAntialiasing: + fastMode: 0 + keepAlpha: 0 + fog: + enabled: 1 + excludeSkybox: 1 + debugLayer: + lightMeter: + width: 512 + height: 256 + showCurves: 1 + histogram: + width: 512 + height: 256 + channel: 3 + waveform: + exposure: 0.12 + height: 256 + vectorscope: + size: 256 + exposure: 0.12 + overlaySettings: + linearDepth: 0 + motionColorIntensity: 4 + motionGridSize: 64 + colorBlindnessType: 0 + colorBlindnessStrength: 1 + m_Resources: {fileID: 11400000, guid: d82512f9c8e5d4a4d938b575d47f88d4, type: 2} + m_ShowToolkit: 0 + m_ShowCustomSorter: 0 + breakBeforeColorGrading: 0 + m_BeforeTransparentBundles: [] + m_BeforeStackBundles: [] + m_AfterStackBundles: [] +--- !u!20 &1748146231 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 100 + far clip plane: 10000 + field of view: 75 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1748146232 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_LocalRotation: {x: 0.14780942, y: 0, z: 0, w: 0.9890159} + m_LocalPosition: {x: -10082, y: 4927.1, z: -2027} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 17, y: 0, z: 0} +--- !u!114 &1748146234 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9f1db61281524fb40bc9a1f6acce6baf, type: 3} + m_Name: + m_EditorClassIdentifier: + configuration: {fileID: 11400000, guid: a15886e93ac3e7847861da392782f13d, type: 2} + downSample: 0 + quality: 2 + allowCloudFrontObject: 1 + useApSystem: 0 + useHierarchicalHeightMap: 1 + cloudShader: {fileID: 4800000, guid: 84e97169589c5e94e8521fe4deb2e3f8, type: 3} + heightPreprocessShader: {fileID: 7200000, guid: 40276bd53f35a694e8d4e025ca310775, + type: 3} + cloudHeightProcessShader: {fileID: 4800000, guid: b80bf04ca56d3d642a6b925cff3f5ddf, + type: 3} +--- !u!114 &1748146235 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0a9c4d2e823dfc247b2f6850f76ca2b6, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1748146236 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b535dacf702e20c4b9ef528e42081835, type: 3} + m_Name: + m_EditorClassIdentifier: + volumeTexSize: {x: 128, y: 128, z: 32} diff --git a/Assets/Resources/Sprites/desktop.ini.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1.unity.meta similarity index 58% rename from Assets/Resources/Sprites/desktop.ini.meta rename to Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1.unity.meta index 8cf68cb31..2a00a5ee3 100644 --- a/Assets/Resources/Sprites/desktop.ini.meta +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1.unity.meta @@ -1,5 +1,7 @@ fileFormatVersion: 2 -guid: f3d704c6fc646ad48a89a5db504dbd37 +guid: e4a8c6ec9e196d241854a4ff221a28fd +timeCreated: 1521964013 +licenseType: Free DefaultImporter: externalObjects: {} userData: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles.meta new file mode 100644 index 000000000..671b08b6f --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fc2731fc466427a429629ea6bd19ebd5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles/AtmManager Profile.asset b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles/AtmManager Profile.asset new file mode 100644 index 000000000..bcd6d0589 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles/AtmManager Profile.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e36ca5c919b382bc3322f3ca57b64a793c0a79be732a6b028ea5346170a181d +size 21225 diff --git a/Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles/AtmManager Profile.asset.meta similarity index 79% rename from Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset.meta rename to Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles/AtmManager Profile.asset.meta index ca4b625a4..5af588894 100644 --- a/Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset.meta +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot1/Screenshot1_Profiles/AtmManager Profile.asset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b342bf0806dd2d140b9555fad4385c0f +guid: fb5c6f5333d1578418cdc5074b1c900e NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot2.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot2.meta new file mode 100644 index 000000000..d0c10d0e6 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot2.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d8eb8b025c1be6d409d9e1745b9214dc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot2/Config.asset b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Config.asset new file mode 100644 index 000000000..80b46e2af --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Config.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d958fdae3931ce00f074450d7a86e73a394b22dcc1b267aec565b51dd49ebfdd +size 1401 diff --git a/Assets/Wwise/ScriptableObjects/Mac.asset.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Config.asset.meta similarity index 64% rename from Assets/Wwise/ScriptableObjects/Mac.asset.meta rename to Assets/Plugins/VolumeCloud/Example/Screenshot2/Config.asset.meta index 61de54554..6aeb36ae0 100644 --- a/Assets/Wwise/ScriptableObjects/Mac.asset.meta +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Config.asset.meta @@ -1,5 +1,7 @@ fileFormatVersion: 2 -guid: d3145d0fdeb93df40b15edabf13afdaf +guid: e9b06b77cd78e5e4b95a6ca30e5f61e7 +timeCreated: 1524043690 +licenseType: Free NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot2/Screenshot2.unity b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Screenshot2.unity new file mode 100644 index 000000000..a5914c05d --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Screenshot2.unity @@ -0,0 +1,329 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 49040651} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 9 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &49040650 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 49040652} + - component: {fileID: 49040651} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &49040651 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 1, g: 0.96572006, b: 0.9044118, a: 1} + m_Intensity: 1.2 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &49040652 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_LocalRotation: {x: -0.52715605, y: 0.67356503, z: -0.4896874, w: -0.16918293} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 56.934002, y: 148.093, z: -93.717} +--- !u!1 &466916245 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 466916246} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &466916246 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 466916245} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -317.8709, y: 20000, z: -159.77051} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1748146228 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1748146232} + - component: {fileID: 1748146231} + - component: {fileID: 1748146229} + - component: {fileID: 1748146234} + - component: {fileID: 1748146233} + - component: {fileID: 1748146235} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1748146229 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 +--- !u!20 &1748146231 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 2000 + field of view: 75 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1748146232 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_LocalRotation: {x: -0.46222746, y: -0, z: -0, w: 0.8867614} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: -55.062004, y: 0, z: 0} +--- !u!114 &1748146233 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff26db721962cdf4a8edcdfa9a767d2a, type: 3} + m_Name: + m_EditorClassIdentifier: + profile: {fileID: 11400000, guid: cdea7d3b49937774abb1b5ac066885fd, type: 2} +--- !u!114 &1748146234 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9f1db61281524fb40bc9a1f6acce6baf, type: 3} + m_Name: + m_EditorClassIdentifier: + configuration: {fileID: 11400000, guid: e9b06b77cd78e5e4b95a6ca30e5f61e7, type: 2} + downSample: 1 + quality: 0 + allowCloudFrontObject: 0 + useApSystem: 0 + useHierarchicalHeightMap: 1 + cloudShader: {fileID: 4800000, guid: 84e97169589c5e94e8521fe4deb2e3f8, type: 3} + heightPreprocessShader: {fileID: 7200000, guid: 40276bd53f35a694e8d4e025ca310775, + type: 3} + cloudHeightProcessShader: {fileID: 4800000, guid: b80bf04ca56d3d642a6b925cff3f5ddf, + type: 3} +--- !u!114 &1748146235 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0a9c4d2e823dfc247b2f6850f76ca2b6, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot2/Screenshot2.unity.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Screenshot2.unity.meta new file mode 100644 index 000000000..389ea8c3d --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot2/Screenshot2.unity.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 205c2599ca8ee4044b11f8dc389561bb +timeCreated: 1521964013 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot3.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot3.meta new file mode 100644 index 000000000..3b3994d29 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot3.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bdd062e9efb56944aafb26f002f99adc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot3/Config.asset b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Config.asset new file mode 100644 index 000000000..dd07ed44d --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Config.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bf46a329c3a9af14ea5a19e71ff97718afa618cff0dab2e9e2c82e52d6e06d4 +size 1401 diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot3/Config.asset.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Config.asset.meta new file mode 100644 index 000000000..c4ccd24a9 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Config.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 5482a95b5c1b69341ba5938fccd5a25d +timeCreated: 1524043690 +licenseType: Free +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot3/Screenshot3.unity b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Screenshot3.unity new file mode 100644 index 000000000..186710a28 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Screenshot3.unity @@ -0,0 +1,303 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 49040651} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 9 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &49040650 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 49040652} + - component: {fileID: 49040651} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &49040651 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 1, g: 0.96572006, b: 0.9044118, a: 1} + m_Intensity: 1.2 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &49040652 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_LocalRotation: {x: -0.1651658, y: -0.7798415, z: 0.17655866, w: -0.5774034} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 512.218, y: -792.172, z: -176.519} +--- !u!1 &1748146228 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1748146232} + - component: {fileID: 1748146231} + - component: {fileID: 1748146229} + - component: {fileID: 1748146234} + - component: {fileID: 1748146233} + - component: {fileID: 1748146235} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1748146229 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 +--- !u!20 &1748146231 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 2000 + field of view: 75 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1748146232 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_LocalRotation: {x: 0.22376823, y: 0.09239381, z: 0.021313809, w: -0.970019} + m_LocalPosition: {x: 1417, y: 0, z: -426} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: -25.980001, y: -370.882, z: 0} +--- !u!114 &1748146233 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff26db721962cdf4a8edcdfa9a767d2a, type: 3} + m_Name: + m_EditorClassIdentifier: + profile: {fileID: 11400000, guid: cdea7d3b49937774abb1b5ac066885fd, type: 2} +--- !u!114 &1748146234 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9f1db61281524fb40bc9a1f6acce6baf, type: 3} + m_Name: + m_EditorClassIdentifier: + cloudShader: {fileID: 4800000, guid: 84e97169589c5e94e8521fe4deb2e3f8, type: 3} + configuration: {fileID: 11400000, guid: 5482a95b5c1b69341ba5938fccd5a25d, type: 2} + downSample: 1 + quality: 0 + allowCloudFrontObject: 1 + useApSystem: 0 + heightPreprocessShader: {fileID: 7200000, guid: 40276bd53f35a694e8d4e025ca310775, + type: 3} + cloudHeightProcessShader: {fileID: 4800000, guid: b80bf04ca56d3d642a6b925cff3f5ddf, + type: 3} + useHierarchicalHeightMap: 1 + hiHeightLevelRange: {x: 0, y: 9} + heightLutTextureSize: {x: 512, y: 512} +--- !u!114 &1748146235 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0a9c4d2e823dfc247b2f6850f76ca2b6, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot3/Screenshot3.unity.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Screenshot3.unity.meta new file mode 100644 index 000000000..ec03b8fe9 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot3/Screenshot3.unity.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1096e391cf3fec74483d0a8036513046 +timeCreated: 1521964013 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot4.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot4.meta new file mode 100644 index 000000000..182053bcf --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot4.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 014e650c7b694d6429dd42607d6e8fab +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot4/Screenshot4.unity b/Assets/Plugins/VolumeCloud/Example/Screenshot4/Screenshot4.unity new file mode 100644 index 000000000..ad910b5ac --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot4/Screenshot4.unity @@ -0,0 +1,383 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 1953658193} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 49040651} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 9 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &49040650 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 49040652} + - component: {fileID: 49040651} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &49040651 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 0.9558824, g: 0.6199663, b: 0.26005626, a: 1} + m_Intensity: 1.91 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &49040652 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 49040650} + m_LocalRotation: {x: -0.99103653, y: -0.12916742, z: 0.03387993, w: -0.0038055014} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 539.066, y: -716.206, z: -14.820984} +--- !u!1 &636899334 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 636899336} + - component: {fileID: 636899335} + m_Layer: 0 + m_Name: AtmManager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &636899335 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 636899334} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e16dd2ddbdfa7ea4f87a3cfb032ffd0f, type: 3} + m_Name: + m_EditorClassIdentifier: + progressiveUpdate: 0 + computeShader: {fileID: 7200000, guid: 2d4396a54b390d742b84d4bb4a122e54, type: 3} + outputDebug: 0 + lutConfig: + transmittanceSize: {x: 512, y: 512} + scatteringSize: {x: 32, y: 32, z: 128} + irradianceSize: {x: 32, y: 32} + cameraVolumeSize: {x: 128, y: 128, z: 32} + atmosphereConfig: {fileID: 11400000, guid: 8e73e89daf00b8447b2410427953df25, type: 2} +--- !u!4 &636899336 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 636899334} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1748146228 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1748146232} + - component: {fileID: 1748146231} + - component: {fileID: 1748146229} + - component: {fileID: 1748146234} + - component: {fileID: 1748146236} + - component: {fileID: 1748146233} + - component: {fileID: 1748146235} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1748146229 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 +--- !u!20 &1748146231 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 2000 + field of view: 75 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1748146232 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_LocalRotation: {x: 0.2475641, y: -0, z: -0, w: 0.9688715} + m_LocalPosition: {x: 0, y: 20000, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 28.667002, y: 0, z: 0} +--- !u!114 &1748146233 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff26db721962cdf4a8edcdfa9a767d2a, type: 3} + m_Name: + m_EditorClassIdentifier: + profile: {fileID: 11400000, guid: cdea7d3b49937774abb1b5ac066885fd, type: 2} +--- !u!114 &1748146234 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9f1db61281524fb40bc9a1f6acce6baf, type: 3} + m_Name: + m_EditorClassIdentifier: + configuration: {fileID: 11400000, guid: a15886e93ac3e7847861da392782f13d, type: 2} + downSample: 1 + quality: 0 + allowCloudFrontObject: 0 + useApSystem: 0 + useHierarchicalHeightMap: 1 + cloudShader: {fileID: 4800000, guid: 84e97169589c5e94e8521fe4deb2e3f8, type: 3} + heightPreprocessShader: {fileID: 7200000, guid: 40276bd53f35a694e8d4e025ca310775, + type: 3} + cloudHeightProcessShader: {fileID: 4800000, guid: b80bf04ca56d3d642a6b925cff3f5ddf, + type: 3} +--- !u!114 &1748146235 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0a9c4d2e823dfc247b2f6850f76ca2b6, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1748146236 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1748146228} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b535dacf702e20c4b9ef528e42081835, type: 3} + m_Name: + m_EditorClassIdentifier: + volumeTexSize: {x: 128, y: 128, z: 32} +--- !u!21 &1953658193 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Skybox/AtmosphereScatteringPrecomputed + m_Shader: {fileID: 4800000, guid: e2088dd19a71d1244976cd0de1ff68a7, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: [] + m_Colors: [] diff --git a/Assets/Plugins/VolumeCloud/Example/Screenshot4/Screenshot4.unity.meta b/Assets/Plugins/VolumeCloud/Example/Screenshot4/Screenshot4.unity.meta new file mode 100644 index 000000000..eb0d3e22a --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Example/Screenshot4/Screenshot4.unity.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 3c9b872431f71ab41b8b345a38554f92 +timeCreated: 1521964013 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts.meta b/Assets/Plugins/VolumeCloud/Scripts.meta new file mode 100644 index 000000000..1b4825471 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: d6ade06d74955e2478975558493d6d54 +folderAsset: yes +timeCreated: 1522836299 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/MouseMovement.cs b/Assets/Plugins/VolumeCloud/Scripts/MouseMovement.cs new file mode 100644 index 000000000..0732edea0 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/MouseMovement.cs @@ -0,0 +1,16 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud.Sample { + public class MouseMovement: MonoBehaviour { + private void Update() { + float yaw = Input.GetAxis("Mouse X"); + float pitch = -Input.GetAxis("Mouse Y"); + var currAngle = transform.rotation.eulerAngles; + currAngle.x += pitch; + currAngle.y += yaw; + transform.rotation = Quaternion.Euler(currAngle); + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/MouseMovement.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/MouseMovement.cs.meta new file mode 100644 index 000000000..dbd8e0572 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/MouseMovement.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 0a9c4d2e823dfc247b2f6850f76ca2b6 +timeCreated: 1530937970 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator.meta new file mode 100644 index 000000000..a0cba0ded --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 44271309eab254245a7f8e6479ee5fad +folderAsset: yes +timeCreated: 1523161001 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/BaseNoiseGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/BaseNoiseGenerator.cs new file mode 100644 index 000000000..325ecee14 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/BaseNoiseGenerator.cs @@ -0,0 +1,10 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + public abstract class BaseNoiseGenerator : INoiseGenerator { + public int period = 16; + public abstract float Noise(Vector3 pos); + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/BaseNoiseGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/BaseNoiseGenerator.cs.meta new file mode 100644 index 000000000..c84c130c0 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/BaseNoiseGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 374ff9f8fc4c1114b897fc5a6213d9ff +timeCreated: 1522028198 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CurlNoiseGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CurlNoiseGenerator.cs new file mode 100644 index 000000000..1bf271d31 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CurlNoiseGenerator.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + [System.Serializable] + public class CurlNoiseGenerator : ITextureGenerator { + public Texture2D perlinNoise; + public float brightness = 10.0f; + public float scale = 10.0f; + public PerlinNoiseGenerator perlin; + private float noise(float x, float y) { + return perlin.Noise(new Vector3(x, y)); + } + public Color Sample(float x, float y) { + float eps = 1.0f / 128.0f; + float n1, n2, a, b; + + n1 = noise(x, y + eps); + n2 = noise(x, y - eps); + a = (n1 - n2) / (2); + n1 = noise(x + eps, y); + n2 = noise(x - eps, y); + b = (n1 - n2) / (2); + + Vector2 curl = new Vector2(a, -b); + return new Color(curl.x, curl.y, 0); + } + + public Color Sample(Vector3 pos) { + return Sample(pos.x, pos.y); + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CurlNoiseGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CurlNoiseGenerator.cs.meta new file mode 100644 index 000000000..76e389241 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CurlNoiseGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: f5c2ff57fc70e4346aa2667d13cce209 +timeCreated: 1522740335 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CustomTexGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CustomTexGenerator.cs new file mode 100644 index 000000000..738494fb6 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CustomTexGenerator.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + [System.Serializable] + public class CustomTexGenerator : INoiseGenerator { + public float channel1WorleyPercent = 0.5f; + public int channel1WorleyPeriod = 4; + public int channel1PerlinPeriod = 4; + public int worleyOcataves = 4; + public int perlinOctaves = 4; + + public float Noise(Vector3 pos) { + return channel1WorleyPercent * WorleyNoiseGenerator.OctaveNoise(pos, channel1WorleyPeriod, worleyOcataves) + + (1 - channel1WorleyPercent) * PerlinNoiseGenerator.OctaveNoise(pos, channel1PerlinPeriod, perlinOctaves); + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CustomTexGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CustomTexGenerator.cs.meta new file mode 100644 index 000000000..1330833b0 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/CustomTexGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: ca47c3192075ced48b6f40850f6268ea +timeCreated: 1522037646 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/First3DTexGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/First3DTexGenerator.cs new file mode 100644 index 000000000..895d954eb --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/First3DTexGenerator.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + [System.Serializable] + public class First3DTexGenerator : ITextureGenerator { + public int texResolution = 32; + public int perlinOctaves = 4; + public int channel1PerlinPeriod = 16; + public int channel2WorleyPeriod = 16; + public int channel3WorleyPeriod = 32; + public int channel4WorleyPeriod = 64; + + public Color Sample(Vector3 pos) { + Color res = new Color(); + res.r = PerlinNoiseGenerator.OctaveNoise(pos, channel1PerlinPeriod, perlinOctaves); + res.g = WorleyNoiseGenerator.OctaveNoise(pos, channel2WorleyPeriod, 3); + res.b = WorleyNoiseGenerator.OctaveNoise(pos, channel3WorleyPeriod, 3); + res.a = WorleyNoiseGenerator.OctaveNoise(pos, channel4WorleyPeriod, 3); + return res; + } + } + + [System.Serializable] + public class Second3DTexGenerator : ITextureGenerator { + public int texResolution = 32; + public int channel1WorleyFreq = 16; + public int channel2WorleyFreq = 32; + public int channel3WorleyFreq = 64; + public Color Noise(Vector3 pos) { + Color res = new Color(); + res.r = WorleyNoiseGenerator.OctaveNoise(pos, channel1WorleyFreq, 3); + res.g = WorleyNoiseGenerator.OctaveNoise(pos, channel2WorleyFreq, 3); + res.b = WorleyNoiseGenerator.OctaveNoise(pos, channel3WorleyFreq, 3); + res.a = 1.0f; + return res; + } + + public Color Sample(Vector3 pos) { + return Noise(pos); + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/First3DTexGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/First3DTexGenerator.cs.meta new file mode 100644 index 000000000..d3b6f4518 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/First3DTexGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: ddef2f45efe7ed54c98ca379a97cc280 +timeCreated: 1522028698 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/IBaseNoiseGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/IBaseNoiseGenerator.cs new file mode 100644 index 000000000..9345bba75 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/IBaseNoiseGenerator.cs @@ -0,0 +1,23 @@ +using System; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + public class NoiseTextureAdapter : ITextureGenerator { + private INoiseGenerator noiseGen; + public NoiseTextureAdapter(INoiseGenerator noiseGen) { + this.noiseGen = noiseGen; + } + + public Color Sample(Vector3 pos) { + return noiseGen.Noise(pos) * Color.white; + } + } + + public interface ITextureGenerator { + Color Sample(Vector3 pos); + } + + public interface INoiseGenerator { + float Noise(Vector3 pos); + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/IBaseNoiseGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/IBaseNoiseGenerator.cs.meta new file mode 100644 index 000000000..58d431743 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/IBaseNoiseGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 36639cbbe3e718444b2f731daafe2ec5 +timeCreated: 1522029916 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/PerlinNoiseGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/PerlinNoiseGenerator.cs new file mode 100644 index 000000000..73b286a82 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/PerlinNoiseGenerator.cs @@ -0,0 +1,97 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +/* + * code from https://github.com/keijiro/PerlinNoise + * changed to make the noise tilable. + */ + +namespace Yangrc.VolumeCloud { + [System.Serializable] + public class PerlinNoiseGenerator : BaseNoiseGenerator { + public int octaves = 4; + public override float Noise(Vector3 pos) { + return OctaveNoise(pos, period, octaves); + } + + static float Fade(float t) { + return t * t * t * (t * (t * 6 - 15) + 10); + } + + static float Lerp(float t, float a, float b) { + return a + t * (b - a); + } + + static float Grad(int hash, float x, float y, float z) { + var h = hash & 15; + var u = h < 8 ? x : y; + var v = h < 4 ? y : (h == 12 || h == 14 ? x : z); + return ((h & 1) == 0 ? u : -u) + ((h & 2) == 0 ? v : -v); + } + + static int[] perm = { + 151,160,137,91,90,15, + 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23, + 190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33, + 88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166, + 77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244, + 102,143,54, 65,25,63,161, 1,216,80,73,209,76,132,187,208, 89,18,169,200,196, + 135,130,116,188,159,86,164,100,109,198,173,186, 3,64,52,217,226,250,124,123, + 5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42, + 223,183,170,213,119,248,152, 2,44,154,163, 70,221,153,101,155,167, 43,172,9, + 129,22,39,253, 19,98,108,110,79,113,224,232,178,185, 112,104,218,246,97,228, + 251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107, + 49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254, + 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180, + 151 + }; + private static int wrap(int n, int period) { + n++; + return period > 0 ? n % period : n; + } + + public static float Noise(Vector3 pos, int period) { + pos *= period; + var x = pos.x; + var y = pos.y; + var z = pos.z; + var X = Mathf.FloorToInt(x) & 0xff; + var Y = Mathf.FloorToInt(y) & 0xff; + var Z = Mathf.FloorToInt(z) & 0xff; + x -= Mathf.Floor(x); + y -= Mathf.Floor(y); + z -= Mathf.Floor(z); + var u = Fade(x); + var v = Fade(y); + var w = Fade(z); + var A = (perm[wrap(X, period)] + Y) & 0xff; + var B = (perm[wrap(X + 1, period)] + Y) & 0xff; + var AA = (perm[wrap(A, period)] + Z) & 0xff; + var BA = (perm[wrap(B, period)] + Z) & 0xff; + var AB = (perm[wrap(A + 1, period)] + Z) & 0xff; + var BB = (perm[wrap(B + 1, period)] + Z) & 0xff; + var result = Lerp(w, Lerp(v, Lerp(u, Grad(perm[AA], x, y, z), Grad(perm[BA], x - 1, y, z)), + Lerp(u, Grad(perm[AB], x, y - 1, z), Grad(perm[BB], x - 1, y - 1, z))), + Lerp(v, Lerp(u, Grad(perm[AA + 1], x, y, z - 1), Grad(perm[BA + 1], x - 1, y, z - 1)), + Lerp(u, Grad(perm[AB + 1], x, y - 1, z - 1), Grad(perm[BB + 1], x - 1, y - 1, z - 1)))); + return (result + 1.0f) / 2.0f; + } + + public static float OctaveNoise(Vector3 pos, int period, int octaves, float persistence = 0.5f) { + float total = 0.0f; + float result = 0.0f; + float amp = .5f; + float freq = 1.0f; + for (int i = 0; i < octaves; i++) { + total += amp; + result += (Noise(pos, Mathf.RoundToInt(freq * period)) * 2.0f - 1.0f) * amp; + amp *= persistence; + freq *= 2.0f; + } + if (octaves == 0) + return 0.0f; + return (result / total + 1.0f) / 2.0f; + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/PerlinNoiseGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/PerlinNoiseGenerator.cs.meta new file mode 100644 index 000000000..df0002b1c --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/PerlinNoiseGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 73833a3529798be4ba6baa1db73dc2aa +timeCreated: 1521990941 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/Utils.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/Utils.cs new file mode 100644 index 000000000..0b943911a --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/Utils.cs @@ -0,0 +1,39 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + public class Utils { + public static Texture3D GetTex(ITextureGenerator texGen, int textureResolution, TextureFormat format = TextureFormat.RGBA32) { + Texture3D result = new Texture3D(textureResolution, textureResolution, textureResolution, format, true); + Color[] colors = new Color[textureResolution * textureResolution * textureResolution]; + for (int x = 0; x < textureResolution; x++) { + for (int y = 0; y < textureResolution; y++) { + for (int z = 0; z < textureResolution; z++) { + colors[x * textureResolution * textureResolution + y * textureResolution + z] + = texGen.Sample(new Vector3(x, y, z) / textureResolution); + } + } + } + result.SetPixels(colors); + result.wrapMode = TextureWrapMode.Repeat; + result.Apply(); + return result; + } + + public static Texture2D GetPreviewTex(ITextureGenerator texGen, int textureResolution, TextureFormat format = TextureFormat.RGBA32) { + Texture2D result = new Texture2D(textureResolution, textureResolution, format, true); + Color[] colors = new Color[textureResolution * textureResolution]; + for (int x = 0; x < textureResolution; x++) { + for (int y = 0; y < textureResolution; y++) { + colors[x * textureResolution + y] + = texGen.Sample(new Vector3(x, y, 0) / textureResolution); + } + } + result.SetPixels(colors); + result.wrapMode = TextureWrapMode.Repeat; + result.Apply(); + return result; + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/Utils.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/Utils.cs.meta new file mode 100644 index 000000000..775418727 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/Utils.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 7830b1199edb76145b042d63acddae71 +timeCreated: 1522029782 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/WorleyNoiseGenerator.cs b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/WorleyNoiseGenerator.cs new file mode 100644 index 000000000..4f7ced282 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/WorleyNoiseGenerator.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + [System.Serializable] + public class WorleyNoiseGenerator : BaseNoiseGenerator { + public float brightness = 1.0f; + public float contrast = 1.0f; + public int octaves = 4; + + public override float Noise(Vector3 pos) { + return Mathf.Clamp01(((OctaveNoise(pos, period, octaves)) + (brightness - 1.0f)) * contrast); + } + + private static int wrap(int n, int period) { + return n >= 0 ? n % period : period + n; + } + + public static float Noise(Vector3 pos, int period) { + pos *= period; + var x = Mathf.FloorToInt(pos.x); + var y = Mathf.FloorToInt(pos.y); + var z = Mathf.FloorToInt(pos.z); + Vector3Int boxPos = new Vector3Int(x, y, z); + float minDistance = float.MaxValue; + + for (int xoffset = -1; xoffset <= 1; xoffset++) { + for (int yoffset = -1; yoffset <= 1; yoffset++) { + for (int zoffset = -1; zoffset <= 1; zoffset++) { + var newboxPos = boxPos + new Vector3Int(xoffset, yoffset, zoffset); + var hashValue = (wrap(newboxPos.x, period) + wrap(newboxPos.y, period) * 131 + wrap(newboxPos.z, period) * 17161) % int.MaxValue; + UnityEngine.Random.InitState(hashValue); + var featurePoint = new Vector3(UnityEngine.Random.value + newboxPos.x, UnityEngine.Random.value + newboxPos.y, UnityEngine.Random.value + newboxPos.z); + minDistance = Mathf.Min(minDistance, Vector3.Distance(pos, featurePoint)); + } + } + } + return 1.0f - minDistance; + } + + public static float OctaveNoise(Vector3 pos, int period, int octaves, float persistence = 0.5f) { + float result = 0.0f; + float amp = .5f; + float freq = 1.0f; + float totalAmp = 0.0f; + for (int i = 0; i < octaves; i++) { + totalAmp += amp; + result += Noise(pos, Mathf.RoundToInt(freq * period)) * amp; + amp *= persistence; + freq /= persistence; + } + if (octaves == 0) + return 0.0f; + return result / totalAmp; + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/WorleyNoiseGenerator.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/WorleyNoiseGenerator.cs.meta new file mode 100644 index 000000000..1531b4cd7 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/NoiseGenerator/WorleyNoiseGenerator.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 185d43ae86d668448bb0a6d33b1dce7e +timeCreated: 1521970890 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/Playdead.meta b/Assets/Plugins/VolumeCloud/Scripts/Playdead.meta new file mode 100644 index 000000000..f454b7165 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/Playdead.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7f65bd86e2f467d479541420d7d522c6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/EffectBase.cs b/Assets/Plugins/VolumeCloud/Scripts/Playdead/EffectBase.cs similarity index 80% rename from Assets/Plugins/PDTAA/Scripts/EffectBase.cs rename to Assets/Plugins/VolumeCloud/Scripts/Playdead/EffectBase.cs index 0f1810fff..bfe7032ba 100644 --- a/Assets/Plugins/PDTAA/Scripts/EffectBase.cs +++ b/Assets/Plugins/VolumeCloud/Scripts/Playdead/EffectBase.cs @@ -61,18 +61,22 @@ public abstract class EffectBase : MonoBehaviour } } - public bool EnsureRenderTarget(ref RenderTexture rt, int width, int height, RenderTextureFormat format, FilterMode filterMode, int depthBits = 0, int antiAliasing = 1) + public bool EnsureRenderTarget(ref RenderTexture rt, int width, int height, RenderTextureFormat format, FilterMode filterMode, TextureWrapMode wrapMode = TextureWrapMode.Clamp, bool randomWrite = false, bool useMipmap = false, int depthBits = 0, int antiAliasing = 1) { - if (rt != null && (rt.width != width || rt.height != height || rt.format != format || rt.filterMode != filterMode || rt.antiAliasing != antiAliasing)) + if (rt != null && (rt.width != width || rt.height != height || rt.format != format || rt.filterMode != filterMode || rt.enableRandomWrite != randomWrite || rt.wrapMode != wrapMode || rt.antiAliasing != antiAliasing || rt.useMipMap != useMipmap)) { - RenderTexture.ReleaseTemporary(rt); + rt.Release(); rt = null; } if (rt == null) { - rt = RenderTexture.GetTemporary(width, height, depthBits, format, RenderTextureReadWrite.Default, antiAliasing); + rt = new RenderTexture(width, height, depthBits, format, RenderTextureReadWrite.Default); + rt.antiAliasing = antiAliasing; + rt.useMipMap = useMipmap; rt.filterMode = filterMode; - rt.wrapMode = TextureWrapMode.Clamp; + rt.enableRandomWrite = randomWrite; + rt.wrapMode = wrapMode; + rt.Create(); return true;// new target } return false;// same target @@ -108,23 +112,4 @@ public abstract class EffectBase : MonoBehaviour GL.End(); GL.PopMatrix(); } - - public void DrawFullscreenTri() - { - GL.PushMatrix(); - GL.LoadOrtho(); - GL.Begin(GL.TRIANGLES); - { - GL.MultiTexCoord2(0, 0.0f, 0.0f); - GL.Vertex3(0.0f, 0.0f, 0.0f); - - GL.MultiTexCoord2(0, 2.0f, 0.0f); - GL.Vertex3(2.0f, 0.0f, 0.0f); - - GL.MultiTexCoord2(0, 0.0f, 2.0f); - GL.Vertex3(0.0f, 2.0f, 0.0f); - } - GL.End(); - GL.PopMatrix(); - } } \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/Playdead/EffectBase.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/Playdead/EffectBase.cs.meta new file mode 100644 index 000000000..fd00e9c97 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/Playdead/EffectBase.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 25ff30f599e672448a5fd63cd72b740c +timeCreated: 1522586438 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/PDTAA/Scripts/Extensions.cs b/Assets/Plugins/VolumeCloud/Scripts/Playdead/Extensions.cs similarity index 100% rename from Assets/Plugins/PDTAA/Scripts/Extensions.cs rename to Assets/Plugins/VolumeCloud/Scripts/Playdead/Extensions.cs diff --git a/Assets/Plugins/VolumeCloud/Scripts/Playdead/Extensions.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/Playdead/Extensions.cs.meta new file mode 100644 index 000000000..912a2aa72 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/Playdead/Extensions.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: a04505329bedf944d9a0203d67fd6cb4 +timeCreated: 1522586797 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/Playdead/LICENSE.txt b/Assets/Plugins/VolumeCloud/Scripts/Playdead/LICENSE.txt new file mode 100644 index 000000000..6e628b1ec --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/Playdead/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) [2015] [Playdead] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/Assets/Wwise/API/CHANGELOG.md.meta b/Assets/Plugins/VolumeCloud/Scripts/Playdead/LICENSE.txt.meta similarity index 75% rename from Assets/Wwise/API/CHANGELOG.md.meta rename to Assets/Plugins/VolumeCloud/Scripts/Playdead/LICENSE.txt.meta index 0c3c1eee0..760516d3e 100644 --- a/Assets/Wwise/API/CHANGELOG.md.meta +++ b/Assets/Plugins/VolumeCloud/Scripts/Playdead/LICENSE.txt.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a1499d10b26af294ca2ae55c92769346 +guid: 45afbde13518d91449c0aae2364f37a9 TextScriptImporter: externalObjects: {} userData: diff --git a/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudConfiguration.cs b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudConfiguration.cs new file mode 100644 index 000000000..2c29e2a1d --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudConfiguration.cs @@ -0,0 +1,146 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + [CreateAssetMenu] + public class VolumeCloudConfiguration : ScriptableObject { + + [Header("Weather map")] + [Tooltip("R for coverage, G for density, B for cloud type")] + public Texture2D weatherTex; + public float weatherTexSize = 40000; + + [Header("Shape")] + public Vector2 cloudHeightRange = new Vector2(1500.0f, 9000.0f); + public Texture3D baseTexture; + [Range(0, 5)] + public float baseTile = 2.0f; + public Texture2D heightDensityMap; + public float overallSize = 50000; + public float topOffset = 0.0f; + + [Header("Shape - Detail")] + public Texture3D detailTexture; + [Range(0, 80)] + public float detailTile = 36.0f; + [Range(.01f, .5f)] + public float detailStrength = 0.2f; + + [Header("Shape - Curl")] + public Texture2D curlNoise; + [Range(0.001f, 1.0f)] + public float curlTile = 0.01f; + public float curlStrength = 5.0f; + + [Header("Shape - Modifiers")] + [Range(0, 1)] + public float overallDensity = 1.0f; + [Range(0, 1)] + public float cloudTypeModifier = 1.0f; + [Range(0, 1)] + public float cloudCoverageModifier = 1.0f; + + [Header("Shape - Wind")] + public Vector2 windDirection; + public float windSpeed; + + [Header("Lighting")] + public Color ambientColor = new Color(214, 37, 154); + public const float COEFFICIENT_SCALE = 1e-2f; + [Range(0.1f, 2.0f)] + public float scatteringCoefficient = .5f; + [Range(0.1f, 2.0f)] + public float extinctionCoefficient = .52f; + + [Header("Lighting - Multi Scattering Approximation")] + [Range(0.01f, 1)] + [Tooltip("Value used in multi-scattering approximation, higher causes more light be scattered. Must be lower than multiScatteringExtinction.")] + public float multiScatteringScattering = .5f; + [Range(0.01f, 1)] + [Tooltip("Value used in multi-scattering approximation, higher causes more light be extincted. Must be higher than multiScatteringScattering.")] + public float multiScatteringExtinction = .5f; + [Range(0.01f, 1)] + [Tooltip("Value used in multi-scattering approximation, phase function is p(g * pow(multiScatteringEC, octave), theta)")] + public float multiScatteringEC = .5f; + + [Header("Lighting - Silver")] + public float silverSpread = 0.1f; + + [Header("Lighting - Atmosphere")] + public float atmosphereSaturateDistance = 100000.0f; + + private class PropertyHash { + public static int cloudStartHeight = Shader.PropertyToID("_CloudStartHeight"); + public static int cloudEndHeight = Shader.PropertyToID("_CloudEndHeight"); + + public static int baseTex = Shader.PropertyToID("_BaseTex"); + public static int baseTile = Shader.PropertyToID("_BaseTile"); + + public static int detailTex = Shader.PropertyToID("_DetailTex"); + public static int detailTile = Shader.PropertyToID("_DetailTile"); + public static int detailStrength = Shader.PropertyToID("_DetailStrength"); + + public static int curlNoise = Shader.PropertyToID("_CurlNoise"); + public static int curlTile = Shader.PropertyToID("_CurlTile"); + public static int curlStrength = Shader.PropertyToID("_CurlStrength"); + + public static int heightDensity = Shader.PropertyToID("_HeightDensity"); + + public static int topOffset = Shader.PropertyToID("_CloudTopOffset"); + public static int cloudSize = Shader.PropertyToID("_CloudSize"); + + public static int cloudOverallDensity = Shader.PropertyToID("_CloudOverallDensity"); + public static int cloudTypeModifier = Shader.PropertyToID("_CloudTypeModifier"); + public static int cloudCoverageModifier = Shader.PropertyToID("_CloudCoverageModifier"); + + public static int windDirection = Shader.PropertyToID("_WindDirection"); + public static int weatherTex = Shader.PropertyToID("_WeatherTex"); + public static int weatherTexSize = Shader.PropertyToID("_WeatherTexSize"); + public static int scatteringCoefficient = Shader.PropertyToID("_ScatteringCoefficient"); + public static int extinctionCoefficient = Shader.PropertyToID("_ExtinctionCoefficient"); + public static int multiScatteringA = Shader.PropertyToID("_MultiScatteringA"); + public static int multiScatteringB = Shader.PropertyToID("_MultiScatteringB"); + public static int multiScatteringC = Shader.PropertyToID("_MultiScatteringC"); + public static int silverSpread = Shader.PropertyToID("_SilverSpread"); + + public static int atmosphereColorSaturateDistance = Shader.PropertyToID("_AtmosphereColorSaturateDistance"); + public static int ambientColor = Shader.PropertyToID("_AmbientColor"); + } + + public void ApplyToMaterial(Material mat) { + mat.SetFloat(PropertyHash.cloudStartHeight, cloudHeightRange.x); + mat.SetFloat(PropertyHash.cloudEndHeight, cloudHeightRange.y); + + mat.SetTexture(PropertyHash.baseTex, baseTexture); + mat.SetTexture(PropertyHash.detailTex, detailTexture); + mat.SetTexture(PropertyHash.curlNoise, curlNoise); + + mat.SetFloat(PropertyHash.baseTile, baseTile); + mat.SetTexture(PropertyHash.heightDensity, heightDensityMap); + mat.SetFloat(PropertyHash.detailTile, detailTile); + + mat.SetFloat(PropertyHash.detailStrength, detailStrength); + mat.SetFloat(PropertyHash.curlTile, curlTile); + mat.SetFloat(PropertyHash.curlStrength, curlStrength); + mat.SetFloat(PropertyHash.topOffset, topOffset); + mat.SetFloat(PropertyHash.cloudSize, overallSize); + mat.SetFloat(PropertyHash.cloudOverallDensity, overallDensity); + mat.SetFloat(PropertyHash.cloudTypeModifier, cloudTypeModifier); + mat.SetFloat(PropertyHash.cloudCoverageModifier, cloudCoverageModifier); + + mat.SetVector(PropertyHash.windDirection, new Vector4(windDirection.x, windDirection.y, windSpeed, -windSpeed)); + mat.SetTexture(PropertyHash.weatherTex, weatherTex); + mat.SetFloat(PropertyHash.weatherTexSize, weatherTexSize); + mat.SetFloat(PropertyHash.scatteringCoefficient, scatteringCoefficient * COEFFICIENT_SCALE); + mat.SetFloat(PropertyHash.extinctionCoefficient, extinctionCoefficient * COEFFICIENT_SCALE); + mat.SetFloat(PropertyHash.multiScatteringA, multiScatteringScattering ); + mat.SetFloat(PropertyHash.multiScatteringB, multiScatteringExtinction ); + mat.SetFloat(PropertyHash.multiScatteringC, multiScatteringEC ); + mat.SetFloat(PropertyHash.silverSpread, silverSpread); + + mat.SetFloat(PropertyHash.atmosphereColorSaturateDistance, atmosphereSaturateDistance); + mat.SetColor(PropertyHash.ambientColor, ambientColor); + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudConfiguration.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudConfiguration.cs.meta new file mode 100644 index 000000000..fe9df2cce --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudConfiguration.cs.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: edad34612c85d2e4da1745df6c135220 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: + - baseTexture: {fileID: 11700000, guid: 3ed67598438ec1e4dba28385e35a557b, type: 2} + - heightDensityMap: {fileID: 2800000, guid: a27c79a96e56b794a9bcb99b3b2df92b, type: 3} + - detailTexture: {fileID: 11700000, guid: c978a1d1fdb99d54eb7910eb562fcbd7, type: 2} + - curlNoise: {fileID: 2800000, guid: 864afbdb4b1b36c42be5cac8f2556237, type: 2} + - weatherTex: {fileID: 2800000, guid: c73be893af46a1e4db152d42aacae768, type: 3} + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudRenderer.cs b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudRenderer.cs new file mode 100644 index 000000000..06c0d8a19 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudRenderer.cs @@ -0,0 +1,241 @@ +using System; +using System.Linq; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.Rendering; + +namespace Yangrc.VolumeCloud { + + /// + /// Generate halton sequence. + /// code from unity post-processing stack. + /// + public class HaltonSequence { + public int radix = 3; + private int storedIndex = 0; + public float Get() { + float result = 0f; + float fraction = 1f / (float)radix; + int index = storedIndex; + while (index > 0) { + result += (float)(index % radix) * fraction; + + index /= radix; + fraction /= (float)radix; + } + storedIndex++; + return result; + } + } + + public enum Quality { + Low, + Normal, //Low sample count + High, //High sample count and high shadow sample count. + } + + /// + /// Cloud renderer post processing. + /// + [ImageEffectAllowedInSceneView] + [ExecuteInEditMode,RequireComponent(typeof(Camera))] + [ImageEffectOpaque] + public class VolumeCloudRenderer : EffectBase { + [Header("Config")] + public VolumeCloudConfiguration configuration; + [Header("Render Settings")] + [Range(0, 2)] + public int downSample = 1; + public Quality quality; + public bool allowCloudFrontObject; + [SerializeField] + [Tooltip("Enable ap calculation using ap system. Do not enable if ap system is not present")] + private bool useApSystem; + + private Material mat; + private Material heightDownsampleMat; + private RenderTexture[] fullBuffer; + private int fullBufferIndex; + private RenderTexture undersampleBuffer; + private Matrix4x4 prevV; + private Camera mcam; + private HaltonSequence sequence = new HaltonSequence() { radix = 3 }; + // The index of 4x4 pixels. + private int frameIndex = 0; + private float bayerOffsetIndex = 0; + private bool firstFrame = true; + + [Header("Hi-Height")] + [SerializeField] + private bool useHierarchicalHeightMap; + private Vector2Int hiHeightLevelRange = new Vector2Int(0, 9); + private Vector2Int heightLutTextureSize = new Vector2Int(512, 512); + private RenderTexture heightLutTexture; + private RenderTexture hiHeightTexture; + private RenderTexture[] hiHeightTempTextures; + + [Header("Shader references(DONT EDIT)")] + [SerializeField] + private Shader cloudShader; + [SerializeField] + private ComputeShader heightPreprocessShader; + [SerializeField] + private Shader cloudHeightProcessShader; + + void EnsureMaterial(bool force = false) { + if (mat == null || force) { + mat = new Material(cloudShader); + } + if (heightDownsampleMat == null || force){ + heightDownsampleMat = new Material(cloudHeightProcessShader); + } + } + + private void OnDestroy() { + if (this.fullBuffer != null) { + for (int i = 0; i < fullBuffer.Length; i++) { + fullBuffer[i].Release(); + fullBuffer[i] = null; + } + } + if (this.undersampleBuffer != null) { + this.undersampleBuffer.Release(); + this.undersampleBuffer = null; + } + if (hiHeightTexture != null) { + hiHeightTexture.Release(); + hiHeightTexture = null; + } + if (heightLutTexture != null) { + heightLutTexture.Release(); + heightLutTexture = null; + } + } + + private void Start() { + this.EnsureMaterial(true); + } + + private void GenerateHierarchicalHeightMap() { + RenderTexture defaultTarget = RenderTexture.active; + + if (this.configuration.weatherTex.width != 512 || this.configuration.weatherTex.height != 512) { + throw new UnityException("Hierarchical height map mode only supports weather tex of size 512*512!"); + } + + if (EnsureRenderTarget(ref heightLutTexture, heightLutTextureSize.x, heightLutTextureSize.y, RenderTextureFormat.RFloat, FilterMode.Point, randomWrite: true)) { + var kernal = heightPreprocessShader.FindKernel("CSMain"); + heightPreprocessShader.SetTexture(kernal, "heightDensityMap", configuration.heightDensityMap); + heightPreprocessShader.SetTexture(kernal, "heightLutResult", this.heightLutTexture); + heightPreprocessShader.Dispatch(kernal, heightLutTextureSize.x / 32, heightLutTextureSize.y / 32, 1); + } + + EnsureRenderTarget(ref hiHeightTexture, 512, 512, RenderTextureFormat.RFloat, configuration.weatherTex.filterMode, wrapMode: configuration.weatherTex.wrapMode, randomWrite: true, useMipmap:true); + + EnsureArray(ref hiHeightTempTextures, 10); + for (int i = 0; i <= 9; i++) { + EnsureRenderTarget(ref hiHeightTempTextures[i], 512 >> i, 512 >> i, RenderTextureFormat.RFloat, FilterMode.Point); + } + + //RenderTexture previousLevel = null;//Previous level hi-height map. + //EnsureRenderTarget(ref previousLevel, 512, 512, RenderTextureFormat.RFloat, FilterMode.Point, randomWrite: true); //The first level is same size as weather tex. + this.heightDownsampleMat.SetTexture("_WeatherTex", this.configuration.weatherTex); + this.heightDownsampleMat.SetTexture("_HeightLut", this.heightLutTexture); + Graphics.Blit(null, hiHeightTempTextures[0], this.heightDownsampleMat, 0); //The first pass convert weather tex into height map. + Graphics.CopyTexture(hiHeightTempTextures[0], 0, 0, hiHeightTexture, 0, 0); //Copy first level into target texture. + + for (int i = 1; i <= Mathf.Min(9, hiHeightLevelRange.y); i++) { + Graphics.Blit(hiHeightTempTextures[i - 1], hiHeightTempTextures[i], this.heightDownsampleMat, 1); + Graphics.CopyTexture(hiHeightTempTextures[i], 0, 0, hiHeightTexture, 0, i); + } + RenderTexture.active = defaultTarget; + } + + [ImageEffectOpaque] + private void OnRenderImage(RenderTexture source, RenderTexture destination) { + if (this.configuration == null || cloudShader == null) { + Graphics.Blit(source, destination); + return; + } + + mcam = GetComponent(); + var width = mcam.pixelWidth >> downSample; + var height = mcam.pixelHeight >> downSample; + + this.EnsureMaterial(); + this.configuration.ApplyToMaterial(this.mat); + + EnsureArray(ref fullBuffer, 2); + firstFrame |= EnsureRenderTarget(ref fullBuffer[0], width, height, RenderTextureFormat.ARGBFloat, FilterMode.Bilinear); + firstFrame |= EnsureRenderTarget(ref fullBuffer[1], width, height, RenderTextureFormat.ARGBFloat, FilterMode.Bilinear); + firstFrame |= EnsureRenderTarget(ref undersampleBuffer, width , height, RenderTextureFormat.ARGBFloat, FilterMode.Bilinear); + + frameIndex = (frameIndex + 1)% 16; + fullBufferIndex = (fullBufferIndex + 1) % 2; + + if (useHierarchicalHeightMap) { + GenerateHierarchicalHeightMap(); + mat.EnableKeyword("USE_HI_HEIGHT"); + mat.SetTexture("_HiHeightMap", this.hiHeightTexture); + mat.SetInt("_HeightMapSize", this.hiHeightTexture.width); + mat.SetInt("_HiHeightMinLevel", this.hiHeightLevelRange.x); + mat.SetInt("_HiHeightMaxLevel", this.hiHeightLevelRange.y); + } else { + mat.DisableKeyword("USE_HI_HEIGHT"); + } + + /* Some code is from playdead TAA. */ + + //1. Pass1, Render a undersampled buffer. The buffer is dithered using bayer matrix(every 3x3 pixel) and halton sequence. + //If it's first frame, force a high quality sample to make the initial history buffer good enough. + if (firstFrame || quality == Quality.High) { + mat.EnableKeyword("HIGH_QUALITY"); + mat.DisableKeyword("MEDIUM_QUALITY"); + mat.DisableKeyword("LOW_QUALITY"); + } else if (quality == Quality.Normal) { + mat.DisableKeyword("HIGH_QUALITY"); + mat.EnableKeyword("MEDIUM_QUALITY"); + mat.DisableKeyword("LOW_QUALITY"); + } else if (quality == Quality.Low) { + mat.DisableKeyword("HIGH_QUALITY"); + mat.DisableKeyword("MEDIUM_QUALITY"); + mat.EnableKeyword("LOW_QUALITY"); + } + if (useApSystem) { + mat.EnableKeyword("USE_YANGRC_AP"); + } else { + mat.DisableKeyword("USE_YANGRC_AP"); + } + if (allowCloudFrontObject) { + mat.EnableKeyword("ALLOW_CLOUD_FRONT_OBJECT"); + } else { + mat.DisableKeyword("ALLOW_CLOUD_FRONT_OBJECT"); + } + + mat.SetVector("_ProjectionExtents", mcam.GetProjectionExtents()); + mat.SetFloat("_RaymarchOffset", sequence.Get()); + mat.SetVector("_TexelSize", undersampleBuffer.texelSize); + + Graphics.Blit(null, undersampleBuffer, mat, 0); + + //2. Pass 2, blend undersampled image with history buffer to new buffer. + mat.SetTexture("_UndersampleCloudTex", undersampleBuffer); + mat.SetMatrix("_PrevVP", GL.GetGPUProjectionMatrix(mcam.projectionMatrix,false) * prevV); + mat.SetVector("_ProjectionExtents", mcam.GetProjectionExtents()); + + if (firstFrame) { //Wait, is this the first frame? If it is, the history buffer is empty yet. It will cause glitch if we use it directly. Fill it using the undersample buffer. + Graphics.Blit(undersampleBuffer, fullBuffer[fullBufferIndex]); + } + Graphics.Blit(fullBuffer[fullBufferIndex], fullBuffer[fullBufferIndex ^ 1], mat, 1); + + //3. Pass3, Calculate lighting, blend final cloud image with final image. + mat.SetTexture("_CloudTex", fullBuffer[fullBufferIndex ^ 1]); + Graphics.Blit(source, destination, mat, 2); + + //4. Cleanup + prevV = mcam.worldToCameraMatrix; + firstFrame = false; + } + } +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudRenderer.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudRenderer.cs.meta new file mode 100644 index 000000000..ca3150315 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudRenderer.cs.meta @@ -0,0 +1,19 @@ +fileFormatVersion: 2 +guid: 9f1db61281524fb40bc9a1f6acce6baf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: + - cloudShader: {fileID: 4800000, guid: 84e97169589c5e94e8521fe4deb2e3f8, type: 3} + - configuration: {fileID: 11400000, guid: a15886e93ac3e7847861da392782f13d, type: 2} + - heightPreprocessShader: {fileID: 7200000, guid: 40276bd53f35a694e8d4e025ca310775, + type: 3} + - cloudHeightProcessShader: {fileID: 4800000, guid: b80bf04ca56d3d642a6b925cff3f5ddf, + type: 3} + - heightLutTexture: {instanceID: 0} + - hiHeightTexture: {instanceID: 0} + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudWindowConfigurations.cs b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudWindowConfigurations.cs new file mode 100644 index 000000000..8de0de5d2 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudWindowConfigurations.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Yangrc.VolumeCloud { + + public class VolumeCloudWindowConfigurations : ScriptableObject { + public CurlNoiseGenerator testGenerator; + + public First3DTexGenerator first3DTexGenerator; + public string first3DTexSaveName = "First3DTex"; + public Second3DTexGenerator second3DTexGenerator; + public string second3DTexSaveName = "Second3DTex"; + } +} diff --git a/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudWindowConfigurations.cs.meta b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudWindowConfigurations.cs.meta new file mode 100644 index 000000000..68be95b7e --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Scripts/VolumeCloudWindowConfigurations.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 165f864f325ab6a48beaeff3cfed3c43 +timeCreated: 1521969835 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders.meta b/Assets/Plugins/VolumeCloud/Shaders.meta new file mode 100644 index 000000000..bac1fdcf2 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: aa6dcb5583411a749b2e70488bd2e1d4 +folderAsset: yes +timeCreated: 1523160836 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/AerialPerspectiveHelper.cginc b/Assets/Plugins/VolumeCloud/Shaders/AerialPerspectiveHelper.cginc new file mode 100644 index 000000000..265d6180f --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/AerialPerspectiveHelper.cginc @@ -0,0 +1,147 @@ +#ifndef __AERIAL_PERSPECTIVE_HELPER__ +#define __AERIAL_PERSPECTIVE_HELPER__ + +#include "Assets/Plugins/AtmosphereScattering/Shaders/Common.cginc" +#include "Assets/Plugins/AtmosphereScattering/Shaders/TransmittanceHelper.cginc" +#include "Assets/Plugins/AtmosphereScattering/Shaders/GroundHelper.cginc" +#include "Assets/Plugins/AtmosphereScattering/Shaders/MultipleScatteringHelper.cginc" +#include "Assets/Plugins/AtmosphereScattering/Shaders/SingleScatteringHelper.cginc" + +#define LERP_TEXTURE(dim, name) \ +sampler ## dim ## D name ## _1; \ +sampler ## dim ## D name ## _2; + +LERP_TEXTURE(2, _Transmittance) +LERP_TEXTURE(2, _GroundIrradiance) +LERP_TEXTURE(3, _SingleRayleigh) +LERP_TEXTURE(3, _SingleMie) +LERP_TEXTURE(3, _MultipleScattering) + +float2 _TransmittanceSize; +float3 _ScatteringSize; +float2 _GroundIrradianceSize; + +float _LerpValue; + +float3 GetTransmittanceLerped(float r, float mu, float d, bool intersect_ground) { + AtmosphereParameters atm = GetAtmParameters(); + float3 lerp1 = GetTransmittance( + atm, _Transmittance_1, _TransmittanceSize, r, mu, d, intersect_ground); + float3 lerp2 = GetTransmittance( + atm, _Transmittance_2, _TransmittanceSize, r, mu, d, intersect_ground); + + return lerp(lerp1, lerp2, _LerpValue); +} + +float3 GetTransmittanceToTopAtmosphereBoundaryLerped(float r, float mu) { + AtmosphereParameters atm = GetAtmParameters(); + float3 lerp1 = GetTransmittanceToTopAtmosphereBoundary( + atm, _Transmittance_1, _TransmittanceSize, r, mu); + float3 lerp2 = GetTransmittanceToTopAtmosphereBoundary( + atm, _Transmittance_2, _TransmittanceSize, r, mu); + + return lerp(lerp1, lerp2, _LerpValue); +} + +void CalculateRMuMusFromPosViewdir(AtmosphereParameters atm, float3 pos, float3 view_ray, float3 sun_direction, OUT(float) r, OUT(float) mu, OUT(float) mu_s, OUT(float) nu) { + float3 camera = pos + float3(0, atm.bottom_radius, 0); + r = max(atm.bottom_radius + 0.5f, length(camera)); + float rmu = dot(camera, view_ray); + mu = rmu / r; + mu_s = dot(camera, sun_direction) / r; + nu = dot(view_ray, sun_direction); +} + +void CalculateRMuMusForDistancePoint(AtmosphereParameters atm, Length r, Number mu, Number mu_s, float nu, Number d, OUT(Length) r_d, OUT(Number) mu_d, OUT(Number) mu_s_d) { + + r_d = ClampRadius(atm, sqrt(d * d + 2.0 * r * mu * d + r * r)); + r_d = max(atm.bottom_radius + 0.5f, r_d); + mu_d = ClampCosine((r * mu + d) / r_d); + mu_s_d = ClampCosine((r * mu_s + d * nu) / r_d); +} + +float3 InternalGetRayleighLerped(AtmosphereParameters atm, float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + + return SampleScatteringLerped(atm, + _SingleRayleigh_1, + _SingleRayleigh_2, + _LerpValue, + _ScatteringSize, + r, mu, mu_s, + ray_r_mu_intersects_ground) * + RayleighPhaseFunction(nu); +} + +float3 InternalGetMieLerped(AtmosphereParameters atm, float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + return SampleScatteringLerped(atm, + _SingleMie_1, + _SingleMie_2, + _LerpValue, + _ScatteringSize, + r, mu, mu_s, + ray_r_mu_intersects_ground) * + MiePhaseFunction(atm.mie_phase_function_g, nu); +} + +float3 InternalGetLerpedGroundIrradiance(AtmosphereParameters atm, float r, float mu, float mu_s) { + return lerp(GetIrradiance(atm, _GroundIrradiance_1, _GroundIrradianceSize, r, mu_s), GetIrradiance(atm, _GroundIrradiance_2, _GroundIrradianceSize, r, mu_s), _LerpValue); +} + +float3 InternalGetMultipleLerped(AtmosphereParameters atm, float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + return + SampleScatteringLerped(atm, + _MultipleScattering_1, + _MultipleScattering_2, + _LerpValue, + _ScatteringSize, + r, mu, mu_s, + ray_r_mu_intersects_ground); +} + +void ComputeSingleScattering( + IN(AtmosphereParameters) atmosphere, + IN(TransmittanceTexture) transmittance_texture, + uint2 texture_size, + Length r, Number mu, Number mu_s, Number nu, + bool ray_r_mu_intersects_ground, + OUT(IrradianceSpectrum) rayleigh, OUT(IrradianceSpectrum) mie); + +float3 GetTotalScatteringLerped(float r, float mu, float mu_s, float nu, bool ray_r_mu_intersects_ground) { + AtmosphereParameters atm = GetAtmParameters(); + return + InternalGetRayleighLerped(atm, r, mu, mu_s, nu, ray_r_mu_intersects_ground) + + InternalGetMieLerped(atm, r, mu, mu_s, nu, ray_r_mu_intersects_ground) + + InternalGetMultipleLerped(atm, r, mu, mu_s, nu, ray_r_mu_intersects_ground); +} + +float3 GetTotalScatteringLerped(float r, float mu, float mu_s, float nu) { + AtmosphereParameters atm = GetAtmParameters(); + bool ray_r_mu_intersects_ground = RayIntersectsGround(atm, r, mu); + return GetTotalScatteringLerped(r, mu, mu_s, nu, ray_r_mu_intersects_ground); +} + +float3 EvaluateSunDiskRadianceOfUnitRadiance(AtmosphereParameters atm, float r, float mu, float nu) { + //Evaluate sun's solid angle by formula omega = 2 * PI * ( 1 - cos(sun_angular_radius)) (https://en.wikipedia.org/wiki/Solid_angle) + float cos_sun_angular_radius = cos(atm.sun_angular_radius); + float radianceTransmitted = max(0.0f, (nu - cos_sun_angular_radius) / (1.0f - cos_sun_angular_radius)); + return radianceTransmitted; +} + + +/* +=============================== +Camera volume stuff. +=============================== +*/ +sampler3D _CameraVolumeTransmittance; +sampler3D _CameraVolumeScattering; + +float3 GetTransmittanceWithCameraVolume(float3 uvw) { + return tex3Dlod(_CameraVolumeTransmittance, float4(uvw, 0.0f)).rgb; +} + +float3 GetScatteringWithCameraVolume(float3 uvw) { + return tex3Dlod(_CameraVolumeScattering, float4(uvw, 0.0f)).rgb; +} + +#endif \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Shaders/AerialPerspectiveHelper.cginc.meta b/Assets/Plugins/VolumeCloud/Shaders/AerialPerspectiveHelper.cginc.meta new file mode 100644 index 000000000..202d8c62b --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/AerialPerspectiveHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 86cacca165dab84489f106276557c5c3 +timeCreated: 1531897786 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/BilateralBlur.shader b/Assets/Plugins/VolumeCloud/Shaders/BilateralBlur.shader new file mode 100644 index 000000000..c8ae9009f --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/BilateralBlur.shader @@ -0,0 +1,526 @@ +// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' + +// Copyright(c) 2016, Michal Skalsky +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, +// are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors +// may be used to endorse or promote products derived from this software without +// specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.IN NO EVENT +// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +// TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + +Shader "Hidden/BilateralBlur" +{ + Properties + { + _MainTex("Texture", any) = "" {} + } + SubShader + { + // No culling or depth + Cull Off ZWrite Off ZTest Always + + CGINCLUDE + + //-------------------------------------------------------------------------------------------- + // Downsample, bilateral blur and upsample config + //-------------------------------------------------------------------------------------------- + // method used to downsample depth buffer: 0 = min; 1 = max; 2 = min/max in chessboard pattern + #define DOWNSAMPLE_DEPTH_MODE 2 + #define UPSAMPLE_DEPTH_THRESHOLD 1.5f + #define BLUR_DEPTH_FACTOR 0.5 + #define GAUSS_BLUR_DEVIATION 1.5 + #define FULL_RES_BLUR_KERNEL_SIZE 7 + #define HALF_RES_BLUR_KERNEL_SIZE 5 + #define QUARTER_RES_BLUR_KERNEL_SIZE 6 + //-------------------------------------------------------------------------------------------- + + #define PI 3.1415927f + +#include "UnityCG.cginc" + + UNITY_DECLARE_TEX2D(_CameraDepthTexture); + UNITY_DECLARE_TEX2D(_HalfResDepthBuffer); + UNITY_DECLARE_TEX2D(_QuarterResDepthBuffer); + UNITY_DECLARE_TEX2D(_HalfResColor); + UNITY_DECLARE_TEX2D(_QuarterResColor); + UNITY_DECLARE_TEX2D(_MainTex); + + float4 _CameraDepthTexture_TexelSize; + float4 _HalfResDepthBuffer_TexelSize; + float4 _QuarterResDepthBuffer_TexelSize; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float2 uv : TEXCOORD0; + float4 vertex : SV_POSITION; + }; + + struct v2fDownsample + { +#if SHADER_TARGET > 40 + float2 uv : TEXCOORD0; +#else + float2 uv00 : TEXCOORD0; + float2 uv01 : TEXCOORD1; + float2 uv10 : TEXCOORD2; + float2 uv11 : TEXCOORD3; +#endif + float4 vertex : SV_POSITION; + }; + + struct v2fUpsample + { + float2 uv : TEXCOORD0; + float2 uv00 : TEXCOORD1; + float2 uv01 : TEXCOORD2; + float2 uv10 : TEXCOORD3; + float2 uv11 : TEXCOORD4; + float4 vertex : SV_POSITION; + }; + + v2f vert(appdata v) + { + v2f o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + return o; + } + + //----------------------------------------------------------------------------------------- + // vertDownsampleDepth + //----------------------------------------------------------------------------------------- + v2fDownsample vertDownsampleDepth(appdata v, float2 texelSize) + { + v2fDownsample o; + o.vertex = UnityObjectToClipPos(v.vertex); +#if SHADER_TARGET > 40 + o.uv = v.uv; +#else + o.uv00 = v.uv - 0.5 * texelSize.xy; + o.uv10 = o.uv00 + float2(texelSize.x, 0); + o.uv01 = o.uv00 + float2(0, texelSize.y); + o.uv11 = o.uv00 + texelSize.xy; +#endif + return o; + } + + //----------------------------------------------------------------------------------------- + // vertUpsample + //----------------------------------------------------------------------------------------- + v2fUpsample vertUpsample(appdata v, float2 texelSize) + { + v2fUpsample o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + + o.uv00 = v.uv - 0.5 * texelSize.xy; + o.uv10 = o.uv00 + float2(texelSize.x, 0); + o.uv01 = o.uv00 + float2(0, texelSize.y); + o.uv11 = o.uv00 + texelSize.xy; + return o; + } + + //----------------------------------------------------------------------------------------- + // BilateralUpsample + //----------------------------------------------------------------------------------------- + float4 BilateralUpsample(v2fUpsample input, Texture2D hiDepth, Texture2D loDepth, Texture2D loColor, SamplerState linearSampler, SamplerState pointSampler) + { + const float threshold = UPSAMPLE_DEPTH_THRESHOLD; + float4 highResDepth = LinearEyeDepth(hiDepth.Sample(pointSampler, input.uv)).xxxx; + float4 lowResDepth; + + lowResDepth[0] = LinearEyeDepth(loDepth.Sample(pointSampler, input.uv00)); + lowResDepth[1] = LinearEyeDepth(loDepth.Sample(pointSampler, input.uv10)); + lowResDepth[2] = LinearEyeDepth(loDepth.Sample(pointSampler, input.uv01)); + lowResDepth[3] = LinearEyeDepth(loDepth.Sample(pointSampler, input.uv11)); + + float4 depthDiff = abs(lowResDepth - highResDepth); + + float accumDiff = dot(depthDiff, float4(1, 1, 1, 1)); + + [branch] + if (accumDiff < threshold) // small error, not an edge -> use bilinear filter + { + return loColor.Sample(linearSampler, input.uv); + } + + // find nearest sample + float minDepthDiff = depthDiff[0]; + float2 nearestUv = input.uv00; + + if (depthDiff[1] < minDepthDiff) + { + nearestUv = input.uv10; + minDepthDiff = depthDiff[1]; + } + + if (depthDiff[2] < minDepthDiff) + { + nearestUv = input.uv01; + minDepthDiff = depthDiff[2]; + } + + if (depthDiff[3] < minDepthDiff) + { + nearestUv = input.uv11; + minDepthDiff = depthDiff[3]; + } + + return loColor.Sample(pointSampler, nearestUv); + } + + //----------------------------------------------------------------------------------------- + // DownsampleDepth + //----------------------------------------------------------------------------------------- + float DownsampleDepth(v2fDownsample input, Texture2D depthTexture, SamplerState depthSampler) + { +#if SHADER_TARGET > 40 + float4 depth = depthTexture.Gather(depthSampler, input.uv); +#else + float4 depth; + depth.x = depthTexture.Sample(depthSampler, input.uv00).x; + depth.y = depthTexture.Sample(depthSampler, input.uv01).x; + depth.z = depthTexture.Sample(depthSampler, input.uv10).x; + depth.w = depthTexture.Sample(depthSampler, input.uv11).x; + +#endif + +#if DOWNSAMPLE_DEPTH_MODE == 0 // min depth + return min(min(depth.x, depth.y), min(depth.z, depth.w)); +#elif DOWNSAMPLE_DEPTH_MODE == 1 // max depth + return max(max(depth.x, depth.y), max(depth.z, depth.w)); +#elif DOWNSAMPLE_DEPTH_MODE == 2 // min/max depth in chessboard pattern + + float minDepth = min(min(depth.x, depth.y), min(depth.z, depth.w)); + float maxDepth = max(max(depth.x, depth.y), max(depth.z, depth.w)); + + // chessboard pattern + int2 position = input.vertex.xy % 2; + int index = position.x + position.y; + return index == 1 ? minDepth : maxDepth; +#endif + } + + //----------------------------------------------------------------------------------------- + // GaussianWeight + //----------------------------------------------------------------------------------------- + float GaussianWeight(float offset, float deviation) + { + float weight = 1.0f / sqrt(2.0f * PI * deviation * deviation); + weight *= exp(-(offset * offset) / (2.0f * deviation * deviation)); + return weight; + } + + //----------------------------------------------------------------------------------------- + // BilateralBlur + //----------------------------------------------------------------------------------------- + float4 BilateralBlur(v2f input, int2 direction, Texture2D depth, SamplerState depthSampler, const int kernelRadius, float2 pixelSize) + { + //const float deviation = kernelRadius / 2.5; + const float deviation = kernelRadius / GAUSS_BLUR_DEVIATION; // make it really strong + + float2 uv = input.uv; + float4 centerColor = _MainTex.Sample(sampler_MainTex, uv); + float3 color = centerColor.xyz; + //return float4(color, 1); + float centerDepth = (LinearEyeDepth(depth.Sample(depthSampler, uv))); + + float weightSum = 0; + + // gaussian weight is computed from constants only -> will be computed in compile time + float weight = GaussianWeight(0, deviation); + color *= weight; + weightSum += weight; + + [unroll] for (int i = -kernelRadius; i < 0; i += 1) + { + float2 offset = (direction * i); + float3 sampleColor = _MainTex.Sample(sampler_MainTex, input.uv, offset); + float sampleDepth = (LinearEyeDepth(depth.Sample(depthSampler, input.uv, offset))); + + float depthDiff = abs(centerDepth - sampleDepth); + float dFactor = depthDiff * BLUR_DEPTH_FACTOR; + float w = exp(-(dFactor * dFactor)); + + // gaussian weight is computed from constants only -> will be computed in compile time + weight = GaussianWeight(i, deviation) * w; + + color += weight * sampleColor; + weightSum += weight; + } + + [unroll] for (i = 1; i <= kernelRadius; i += 1) + { + float2 offset = (direction * i); + float3 sampleColor = _MainTex.Sample(sampler_MainTex, input.uv, offset); + float sampleDepth = (LinearEyeDepth(depth.Sample(depthSampler, input.uv, offset))); + + float depthDiff = abs(centerDepth - sampleDepth); + float dFactor = depthDiff * BLUR_DEPTH_FACTOR; + float w = exp(-(dFactor * dFactor)); + + // gaussian weight is computed from constants only -> will be computed in compile time + weight = GaussianWeight(i, deviation) * w; + + color += weight * sampleColor; + weightSum += weight; + } + + color /= weightSum; + return float4(color, centerColor.w); + } + + ENDCG + + // pass 0 - horizontal blur (hires) + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment horizontalFrag + #pragma target 4.0 + + fixed4 horizontalFrag(v2f input) : SV_Target + { + return BilateralBlur(input, int2(1, 0), _CameraDepthTexture, sampler_CameraDepthTexture, FULL_RES_BLUR_KERNEL_SIZE, _CameraDepthTexture_TexelSize.xy); + } + + ENDCG + } + + // pass 1 - vertical blur (hires) + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment verticalFrag + #pragma target 4.0 + + fixed4 verticalFrag(v2f input) : SV_Target + { + return BilateralBlur(input, int2(0, 1), _CameraDepthTexture, sampler_CameraDepthTexture, FULL_RES_BLUR_KERNEL_SIZE, _CameraDepthTexture_TexelSize.xy); + } + + ENDCG + } + + // pass 2 - horizontal blur (lores) + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment horizontalFrag + #pragma target 4.0 + + fixed4 horizontalFrag(v2f input) : SV_Target + { + return BilateralBlur(input, int2(1, 0), _HalfResDepthBuffer, sampler_HalfResDepthBuffer, HALF_RES_BLUR_KERNEL_SIZE, _HalfResDepthBuffer_TexelSize.xy); + } + + ENDCG + } + + // pass 3 - vertical blur (lores) + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment verticalFrag + #pragma target 4.0 + + fixed4 verticalFrag(v2f input) : SV_Target + { + return BilateralBlur(input, int2(0, 1), _HalfResDepthBuffer, sampler_HalfResDepthBuffer, HALF_RES_BLUR_KERNEL_SIZE, _HalfResDepthBuffer_TexelSize.xy); + } + + ENDCG + } + + // pass 4 - downsample depth to half + Pass + { + CGPROGRAM + #pragma vertex vertHalfDepth + #pragma fragment frag + #pragma target gl4.1 + + v2fDownsample vertHalfDepth(appdata v) + { + return vertDownsampleDepth(v, _CameraDepthTexture_TexelSize); + } + + float frag(v2fDownsample input) : SV_Target + { + return DownsampleDepth(input, _CameraDepthTexture, sampler_CameraDepthTexture); + } + + ENDCG + } + + // pass 5 - bilateral upsample + Pass + { + Blend One Zero + + CGPROGRAM + #pragma vertex vertUpsampleToFull + #pragma fragment frag + #pragma target 4.0 + + v2fUpsample vertUpsampleToFull(appdata v) + { + return vertUpsample(v, _HalfResDepthBuffer_TexelSize); + } + float4 frag(v2fUpsample input) : SV_Target + { + return BilateralUpsample(input, _CameraDepthTexture, _HalfResDepthBuffer, _HalfResColor, sampler_HalfResColor, sampler_HalfResDepthBuffer); + } + + ENDCG + } + + // pass 6 - downsample depth to quarter + Pass + { + CGPROGRAM + #pragma vertex vertQuarterDepth + #pragma fragment frag + #pragma target gl4.1 + + v2fDownsample vertQuarterDepth(appdata v) + { + return vertDownsampleDepth(v, _HalfResDepthBuffer_TexelSize); + } + + float frag(v2fDownsample input) : SV_Target + { + return DownsampleDepth(input, _HalfResDepthBuffer, sampler_HalfResDepthBuffer); + } + + ENDCG + } + + // pass 7 - bilateral upsample quarter to full + Pass + { + Blend One Zero + + CGPROGRAM + #pragma vertex vertUpsampleToFull + #pragma fragment frag + #pragma target 4.0 + + v2fUpsample vertUpsampleToFull(appdata v) + { + return vertUpsample(v, _QuarterResDepthBuffer_TexelSize); + } + float4 frag(v2fUpsample input) : SV_Target + { + return BilateralUpsample(input, _CameraDepthTexture, _QuarterResDepthBuffer, _QuarterResColor, sampler_QuarterResColor, sampler_QuarterResDepthBuffer); + } + + ENDCG + } + + // pass 8 - horizontal blur (quarter res) + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment horizontalFrag + #pragma target 4.0 + + fixed4 horizontalFrag(v2f input) : SV_Target + { + return BilateralBlur(input, int2(1, 0), _QuarterResDepthBuffer, sampler_QuarterResDepthBuffer, QUARTER_RES_BLUR_KERNEL_SIZE, _QuarterResDepthBuffer_TexelSize.xy); + } + + ENDCG + } + + // pass 9 - vertical blur (quarter res) + Pass + { + CGPROGRAM + #pragma vertex vert + #pragma fragment verticalFrag + #pragma target 4.0 + + fixed4 verticalFrag(v2f input) : SV_Target + { + return BilateralBlur(input, int2(0, 1), _QuarterResDepthBuffer, sampler_QuarterResDepthBuffer, QUARTER_RES_BLUR_KERNEL_SIZE, _QuarterResDepthBuffer_TexelSize.xy); + } + + ENDCG + } + + // pass 10 - downsample depth to half (fallback for DX10) + Pass + { + CGPROGRAM + #pragma vertex vertHalfDepth + #pragma fragment frag + #pragma target 4.0 + + v2fDownsample vertHalfDepth(appdata v) + { + return vertDownsampleDepth(v, _CameraDepthTexture_TexelSize); + } + + float frag(v2fDownsample input) : SV_Target + { + return DownsampleDepth(input, _CameraDepthTexture, sampler_CameraDepthTexture); + } + + ENDCG + } + + // pass 11 - downsample depth to quarter (fallback for DX10) + Pass + { + CGPROGRAM + #pragma vertex vertQuarterDepth + #pragma fragment frag + #pragma target 4.0 + + v2fDownsample vertQuarterDepth(appdata v) + { + return vertDownsampleDepth(v, _HalfResDepthBuffer_TexelSize); + } + + float frag(v2fDownsample input) : SV_Target + { + return DownsampleDepth(input, _HalfResDepthBuffer, sampler_HalfResDepthBuffer); + } + + ENDCG + } + } +} diff --git a/Assets/Plugins/VolumeCloud/Shaders/BilateralBlur.shader.meta b/Assets/Plugins/VolumeCloud/Shaders/BilateralBlur.shader.meta new file mode 100644 index 000000000..0ef47a134 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/BilateralBlur.shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 3a318313363986c4fa6458d8183df3f6 +timeCreated: 1522493409 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudHeightPreprocess.compute b/Assets/Plugins/VolumeCloud/Shaders/CloudHeightPreprocess.compute new file mode 100644 index 000000000..81a64a2ae --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudHeightPreprocess.compute @@ -0,0 +1,30 @@ +// Each #kernel tells which function to compile; you can have many kernels +#pragma kernel CSMain + +/* +======================================== +Calculate height lookup table through height-density map. +======================================== +*/ +sampler2D heightDensityMap; +RWTexture2D heightLutResult; +#include "CloudShaderHelper.cginc" +[numthreads(32, 32, 1)] +void CSMain (uint3 id : SV_DispatchThreadID) +{ + uint w, h; + heightLutResult.GetDimensions(w, h); + + float coverage, cloudType; + coverage = (0.5f + id.x) / w; + cloudType = (0.5f + id.y) / h; + float heightPercent = 1.0f; + for (; heightPercent > 0.0f; heightPercent -= 1.0f / SAMPLE_COUNT) { + float density = tex2Dlod(heightDensityMap, float4(cloudType, heightPercent, 0.0, 0.0)).r; + density = ApplyCoverageToDensity(density, coverage); + if (density > 0.0f) { + break; + } + } + heightLutResult[id.xy] = heightPercent; +} diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudHeightPreprocess.compute.meta b/Assets/Plugins/VolumeCloud/Shaders/CloudHeightPreprocess.compute.meta new file mode 100644 index 000000000..fd810295a --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudHeightPreprocess.compute.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 40276bd53f35a694e8d4e025ca310775 +ComputeShaderImporter: + externalObjects: {} + currentAPIMask: 4 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudHierarchicalRaymarch.cginc b/Assets/Plugins/VolumeCloud/Shaders/CloudHierarchicalRaymarch.cginc new file mode 100644 index 000000000..bf2b7bff7 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudHierarchicalRaymarch.cginc @@ -0,0 +1,116 @@ +#include "CloudShaderHelper.cginc" + +sampler2D _HiHeightMap; //Includes hierarchical height map. Every mip level stores max height of sub pixels. +uint _HeightMapSize; + +uint _HiHeightMaxLevel; +uint _HiHeightMinLevel; + +int2 GetCellIndex(float2 pos, uint level) { + float2 uv = pos / _WeatherTexSize; + uint currentLevelSize = _HeightMapSize >> level; + return (int2)floor(uv * (float)currentLevelSize); +} + +float IntersectWithHeightPlane(float3 origin, float3 v, float height) { + //As suggested by https://docs.unity3d.com/Manual/SL-DataTypesAndPrecision.html and IEEE754 + //On most pc gpus, divide by zero gives a INF result. + return (height - origin.y) / v.y; +} + +float IntersectWithCellBoundary(float3 origin, float3 v, uint zlevel, int2 cellIndex) { + //Origin is assumed to be inside cell of cellIndex + + uint currentLevelSize = _HeightMapSize >> zlevel; + float cellSpacing = _WeatherTexSize / currentLevelSize; + + //x-axis plane. + float2 xAxisPlanes = (cellIndex.x + float2(1.0, 0.0)) * cellSpacing; //Same as float2((cellIndex.x + 0.5) * cellSpacing), (cellIndex.x - 0.5) * cellSpacing)) + float2 xAxisIntersectT = (xAxisPlanes - origin.x) / v.x; + + //z-axis planes. + float2 zAxisPlanes = (cellIndex.y + float2(0.0, 1.0)) * cellSpacing; + float2 zAxisIntersectT = (zAxisPlanes - origin.z) / v.z; + + //TODO: Above calculations could be combined into one float4, will that help? + + return min(max(xAxisIntersectT.x, xAxisIntersectT.y), max(zAxisIntersectT.x, zAxisIntersectT.y)); +} + +float HierarchicalRaymarch(float3 startPos, float3 dir, float maxSampleDistance, float raymarchOffset, out float intensity, out float depth, out int iteration_count) { + float sampleStart, sampleEnd; + if (!resolve_ray_start_end(startPos, dir, sampleStart, sampleEnd)) { + intensity = 0.0; + depth = 1e6; + return 0; + } + float3 sampleStartPos = startPos + dir * sampleStart; + if (sampleStartPos.y < -200) { //Below horizon. + intensity = 0.0; + depth = 1e6; + return 0.0; + } + + float sample_step = min((sampleEnd - sampleStart) / SAMPLE_COUNT, 1000); + float3 v = sample_step * dir; + float stepSize = length(v); + float maxStepCount = min(maxSampleDistance, sampleEnd) / stepSize; + + uint currentZLevel = 2; + float currentStep = sampleStart / stepSize + raymarchOffset; + + RaymarchStatus result; + InitRaymarchStatus(result); + + iteration_count = 0; + + [loop] + while(currentStep < maxStepCount && iteration_count++ < SAMPLE_COUNT) { + float3 raypos = startPos + currentStep * v; + float2 uv = (raypos.xz / _WeatherTexSize) + 0.5; + float height = tex2Dlod(_HiHeightMap, float4(uv, 0.0, currentZLevel)) * (_CloudEndHeight - _CloudStartHeight )+ _CloudStartHeight; + int2 oldCellIndex = GetCellIndex(raypos.xz, currentZLevel); + + float rayhitStepSize; + bool intersected = false; + if (raypos.y < height) { + rayhitStepSize = 0.0f; + intersected = true; + } else { + rayhitStepSize = IntersectWithHeightPlane(raypos, v, height); + if (rayhitStepSize > 0.0f) { + //tmpRay is the intersection point of the height plane and ray. + float3 tmpRay = raypos + v * rayhitStepSize; + int2 newCellIndex = GetCellIndex(tmpRay.xz, currentZLevel); + intersected = newCellIndex.x == oldCellIndex.x && newCellIndex.y == oldCellIndex.y; + } else { + intersected = false; + } + } + + if (intersected) { //Current raypos is inside cloud of current level. + //Move raypos to just beyond rayhitStepSize + currentStep += ceil(rayhitStepSize); + if (currentZLevel == _HiHeightMinLevel) { //We can do raymarch now. + IntegrateRaymarch(startPos, raypos, dir, stepSize, result); + if (result.intTransmittance < 0.005f) { //Save gpu, save the world. + break; + } + currentStep += 1.0f; + } else { + currentZLevel -= 1; + } + } else { //Reached bound of current cell. + rayhitStepSize = IntersectWithCellBoundary(raypos, v, currentZLevel, oldCellIndex); + currentStep += ceil(rayhitStepSize + 0.0001 /*Make sure we move into another cell*/); + currentZLevel = min(currentZLevel + 1, _HiHeightMaxLevel); + } + } + + depth = result.depth / result.depthweightsum; + if (depth == 0.0f) { + depth = sampleEnd; + } + intensity = result.intensity; + return (1.0f - result.intTransmittance); +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudHierarchicalRaymarch.cginc.meta b/Assets/Plugins/VolumeCloud/Shaders/CloudHierarchicalRaymarch.cginc.meta new file mode 100644 index 000000000..68844ba76 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudHierarchicalRaymarch.cginc.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8740176f52adad549ab584e6fc48ac24 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudNormalRaymarch.cginc b/Assets/Plugins/VolumeCloud/Shaders/CloudNormalRaymarch.cginc new file mode 100644 index 000000000..0862a59f2 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudNormalRaymarch.cginc @@ -0,0 +1,29 @@ +#pragma once +#include "./CloudShaderHelper.cginc" + +float GetDensity(float3 startPos, float3 dir, float maxSampleDistance, float raymarchOffset, out float3 intensity,out float depth) { + float raymarchDistance = 0; + + RaymarchStatus result; + InitRaymarchStatus(result); + + [loop] + for (int j = 0; j < SAMPLE_COUNT; j++) { + float prevRayDist = raymarchDistance; + raymarchDistance = pow((j+raymarchOffset)/SAMPLE_COUNT,2) * maxSampleDistance; + float step = raymarchDistance - prevRayDist; + float3 rayPos = startPos + dir * raymarchDistance; + IntegrateRaymarch(startPos, rayPos, dir, step, result); + if (result.intTransmittance < 0.01f) { + result.intTransmittance = 0; + break; + } + } + + depth = result.depth / result.depthweightsum / _ProjectionParams.z; + if (depth == 0.0f) { + depth = maxSampleDistance; + } + intensity = result.intensity; + return (1.0f - result.intTransmittance); +} diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudNormalRaymarch.cginc.meta b/Assets/Plugins/VolumeCloud/Shaders/CloudNormalRaymarch.cginc.meta new file mode 100644 index 000000000..52498d04e --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudNormalRaymarch.cginc.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 31ddb89f7354b2e4384d433c9dc67aac +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudShader.shader b/Assets/Plugins/VolumeCloud/Shaders/CloudShader.shader new file mode 100644 index 000000000..da55b5ba1 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudShader.shader @@ -0,0 +1,359 @@ +// Upgrade NOTE: commented out 'float4x4 _CameraToWorld', a built-in variable +// Upgrade NOTE: replaced '_CameraToWorld' with 'unity_CameraToWorld' + +Shader "Yangrc/CloudShader" +{ + Properties + { + _MainTex("MainTex",2D) = "white"{} + _HeightDensity("HeightDensity", 2D) = "white"{} + _BaseTex("BaseTex", 3D) = "white" {} + _BaseTile("BaseTile", float) = 3.0 + _DetailTex("Detail", 3D) = "white" {} + _DetailTile("DetailTile", float) = 10.0 + _DetailStrength("DetailStrength", float) = 0.2 + _CurlNoise("CurlNoise", 2D) = "white"{} + _CurlTile("CurlTile", float) = .2 + _CurlStrength("CurlStrength", float) = 1 + _CloudTopOffset("TopOffset",float) = 100 + _CloudSize("CloudSize", float) = 50000 + + _CloudStartHeight("CloudStartHeight", float) = 2000 + _CloudEndHeight("CloudEndHeight", float) = 8000 + + _CloudOverallDensity("CloudOverallDensity",float) = .1 + _CloudCoverageModifier("CloudCoverageModifier", float) = 1.0 + _CloudTypeModifier("CloudTypeModifier", float) = 1.0 + + _WeatherTex("WeatherTex", 2D) = "white" {} + _WeatherTexSize("WeatherTexSize", float) = 50000 + _WindDirection("WindDirection",Vector) = (1,1,0,0) + _SilverIntensity("SilverIntensity",float) = .8 + _ScatteringCoefficient("ScatteringCoefficient",float) = .04 + _ExtinctionCoefficient("ExtinctionCoefficient",float) = .04 + _MultiScatteringA("MultiScatteringA",float) = 0.5 + _MultiScatteringB("MultiScatteringB",float) = 0.5 + _MultiScatteringC("MultiScatteringC",float) = 0.5 + _SilverSpread("SilverSpread",float) = .75 + _RaymarchOffset("RaymarchOffset", float) = 0.0 + _AmbientColor("AmbientColor", Color) = (1,1,1,1) + _AtmosphereColor("AtmosphereColor" , Color) = (1,1,1,1) + _AtmosphereColorSaturateDistance("AtmosphereColorSaturateDistance", float) = 80000 + } + + SubShader + { + + CGINCLUDE + float GetRaymarchEndFromSceneDepth(float sceneDepth) { + float raymarchEnd = 0.0f; + #if ALLOW_CLOUD_FRONT_OBJECT + raymarchEnd = sceneDepth * _ProjectionParams.z; //raymarch to scene depth. + #else + raymarchEnd = 1e8; //Always raymarch. + //Note: In horizon:zero dawn, they clip some part using lod(use max operator) z-buffer. + //I don't implement here cause that's exactly what hi-z buffer does, and any production rendering pipeline should share a hi-z buffer by their own. + #endif + return raymarchEnd; + } + ENDCG + + Cull Off ZWrite Off ZTest Always + //Pass1, Render a undersampled buffer. The buffer is dithered using bayer matrix(every 3x3 pixel) and halton sequence. + //Why does it need a bayer matrix as offset? See technical overview on github page. + Pass + { + CGPROGRAM + #pragma target 5.0 + #pragma multi_compile _ ALLOW_CLOUD_FRONT_OBJECT //When enabled, raymarch is marched until scene depth. This will bring some artifacts when objects move in front of cloud. + //Or disable, cloud is always behind object, and raymarch is ended if any z is detected. + #pragma multi_compile LOW_QUALITY MEDIUM_QUALITY HIGH_QUALITY //High quality uses more samples. + #pragma multi_compile _ USE_HI_HEIGHT + #pragma vertex vert + #pragma fragment frag + + +#if defined(HIGH_QUALITY) + #define SAMPLE_COUNT 128 +#endif +#if defined(MEDIUM_QUALITY) + #define SAMPLE_COUNT 64 +#endif +#if defined(LOW_QUALITY) + #define SAMPLE_COUNT 32 +#endif + +#if USE_HI_HEIGHT + #include "./CloudHierarchicalRaymarch.cginc" +#else + #include "./CloudNormalRaymarch.cginc" +#endif + #include "UnityCG.cginc" + #include "Assets/Shaders/PackFloat.cginc" + sampler2D _CameraDepthTexture; + float _RaymarchOffset; //raymarch offset by halton sequence, [0,1] + float4 _ProjectionExtents; + float2 _TexelSize; //Texelsize used to decide offset by bayer matrix. + sampler2D _DitheringTex; + float4 _DitheringCoords; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct Interpolator { + float4 vertex : SV_POSITION; + float4 screenPos : TEXCOORD0; + float2 vsray : TEXCOORD1; + }; + + Interpolator vert (appdata v) + { + Interpolator o; + o.vertex = UnityObjectToClipPos(v.vertex); + v.vertex.z = 0.5; + o.screenPos = ComputeScreenPos(o.vertex); + o.vsray = (2.0 * v.uv - 1.0) * _ProjectionExtents.xy + _ProjectionExtents.zw; + return o; + } + + float4 frag (Interpolator i) : SV_Target + { + float3 vspos = float3(i.vsray, 1.0); + float4 worldPos = mul(unity_CameraToWorld,float4(vspos,1.0)); + worldPos /= worldPos.w; + + float sceneDepth = Linear01Depth(tex2Dproj(_CameraDepthTexture, UNITY_PROJ_COORD(i.screenPos)).r); + float raymarchEnd = GetRaymarchEndFromSceneDepth(sceneDepth); + float3 viewDir = normalize(worldPos.xyz - _WorldSpaceCameraPos); + + float2 screenPos = i.screenPos.xy / i.screenPos.w; + + //float blue = tex2D(_DitheringTex, screenPos * _DitheringCoords.xy + _DitheringCoords.zw).r; + float dither = tex2D(_DitheringTex, screenPos * _DitheringCoords.xy).r; + float offset = -fmod(_RaymarchOffset + dither, 1.0f); //final offset combined. The value will be multiplied by sample step in GetDensity. + + float3 intensity; + float distance; + //TODO: sceneDepth here is distance in camera z-axis, but the parameter should be radial distance. +#if USE_HI_HEIGHT + int iteration_count; + float density = HierarchicalRaymarch(worldPos, viewDir, raymarchEnd, offset, /*out*/intensity, /*out*/distance, /*out*/iteration_count); +#else + float density = GetDensity(worldPos, viewDir, raymarchEnd, offset, /*out*/intensity, /*out*/distance); +#endif + return float4(intensity, pack(distance, density)); + } + + ENDCG + } + + //Pass 2, blend undersampled image with history buffer to new buffer. + Pass{ + CGPROGRAM + #pragma target 5.0 + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile _ ALLOW_CLOUD_FRONT_OBJECT + #pragma multi_compile LOW_QUALITY MEDIUM_QUALITY HIGH_QUALITY + + #include "./CloudShaderHelper.cginc" + #include "UnityCG.cginc" + #include "Assets/Shaders/PackFloat.cginc" + + sampler2D _MainTex; //history buffer. + float4 _MainTex_TexelSize; + sampler2D _UndersampleCloudTex; //current undersampled tex. + float4 _UndersampleCloudTex_TexelSize; + + float4x4 _PrevVP; //View projection matrix of last frame. Used to temporal reprojection. + + //These values are needed for doing extra raymarch when out of bound. + sampler2D _CameraDepthTexture; + float4 _ProjectionExtents; + float2 _TexelSize; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float4 vertex : SV_POSITION; + float2 uv : TEXCOORD0; + float2 vsray : TEXCOORD1; + float4 screenPos : TEXCOORD2; + }; + + v2f vert(appdata v) + { + v2f o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + o.vsray = (2.0 * v.uv - 1.0) * _ProjectionExtents.xy + _ProjectionExtents.zw; + o.screenPos = ComputeScreenPos(o.vertex); + return o; + } + + //Get uv of wspos in history buffer. + float2 PrevUV(float4 wspos, out half outOfBound) { + float4 prevUV = mul(_PrevVP, wspos); + prevUV.xy = 0.5 * (prevUV.xy / prevUV.w) + 0.5; + half oobmax = max(0.0 - prevUV.x, 0.0 - prevUV.y); + half oobmin = max(prevUV.x - 1.0, prevUV.y - 1.0); + outOfBound = step(0, max(oobmin, oobmax)); + return prevUV; + } + + //Code from https://zhuanlan.zhihu.com/p/64993622. Do AABB clip in TAA(clip to center). + float4 ClipAABB(float4 aabbMin, float4 aabbMax, float4 prevSample) + { + // note: only clips towards aabb center (but fast!) + float4 p_clip = 0.5 * (aabbMax + aabbMin); + float4 e_clip = 0.5 * (aabbMax - aabbMin); + + float4 v_clip = prevSample - p_clip; + float4 v_unit = v_clip / e_clip; + float4 a_unit = abs(v_unit); + float ma_unit = max(max(a_unit.x, max(a_unit.y, a_unit.z)), a_unit.w); + + if (ma_unit > 1.0) + return p_clip + v_clip / ma_unit; + else + return prevSample;// point inside aabb + } + + float4 frag(v2f i) : SV_Target + { + float3 vspos = float3(i.vsray, 1.0); + // float4 worldPos = mul(unity_CameraToWorld, float4(vspos, 1.0f)); + // worldPos /= worldPos.w; + float4 raymarchResult = tex2D(_UndersampleCloudTex, i.uv); + float distance; + float density; + float density2; + unpack(raymarchResult.a, distance, density); + distance *= _ProjectionParams.z; + //float intensity = raymarchResult.x; + + { //Do temporal reprojection and clip things. + half outOfBound; + float2 prevUV = PrevUV(mul(unity_CameraToWorld, float4(normalize(vspos) * distance, 1.0)), outOfBound); //find uv in history buffer. + + float4 prevSample = tex2D(_MainTex, prevUV); + float2 xoffset = float2(_UndersampleCloudTex_TexelSize.x, 0.0f); + float2 yoffset = float2(0.0f, _UndersampleCloudTex_TexelSize.y); + + float4 m1 = 0.0f, m2 = 0.0f; + //The loop below calculates mean and variance used to calculate AABB. + [unroll] + for (int x = -1; x <= 1; x ++) { + [unroll] + for (int y = -1; y <= 1; y ++ ) { + float4 val; + if (x == 0 && y == 0) { + val = float4(raymarchResult.rgb, distance); + } + else { + val = tex2Dlod(_UndersampleCloudTex, float4(i.uv + xoffset * x + yoffset * y, 0.0, 0.0)); + float distance2; + unpack(val.a, distance2, density2); + val = float4(val.rgb, distance2); + } + m1 += val; + m2 += val * val; + } + } + //Code from https://zhuanlan.zhihu.com/p/64993622. + float gamma = 1.5f; + float4 mu = m1 / 9; + float4 sigma = sqrt(abs(m2 / 9 - mu * mu)); + float4 minc = mu - gamma * sigma; + float4 maxc = mu + gamma * sigma; + prevSample = ClipAABB(minc, maxc, prevSample); + + //Blend + raymarchResult = lerp(float4(prevSample.rgb, density), float4(raymarchResult.rgb, density2), max(0.1f, outOfBound)); + } + return raymarchResult; + } + ENDCG + } + + //Pass3, Calculate lighting, blend final cloud image with final image. + Pass{ + Cull Off ZWrite Off ZTest Always + CGPROGRAM + #pragma target 5.0 + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile _ ALLOW_CLOUD_FRONT_OBJECT + #pragma multi_compile _ USE_YANGRC_AP + + #include "UnityCG.cginc" + #include "Lighting.cginc" + #include "Assets/Shaders/PackFloat.cginc" + #include "Assets/Shaders/Volumetric.cginc" + + sampler2D _MainTex; //Final image without cloud. + sampler2D _CloudTex; //The full resolution cloud tex we generated. + sampler2D _CameraDepthTexture; + float4 _ProjectionExtents; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float2 uv : TEXCOORD0; + float4 screenPos : TEXCOORD1; + float4 vertex : SV_POSITION; + float2 vsray : TEXCOORD2; + }; + + v2f vert(appdata v) + { + v2f o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + o.screenPos = ComputeScreenPos(o.vertex); + o.vsray = (2.0 * v.uv - 1.0) * _ProjectionExtents.xy + _ProjectionExtents.zw; + return o; + } + half3 _AmbientColor; +#ifdef USE_YANGRC_AP //Use value from AP system. + #include "Assets/Plugins/AtmosphereScattering/Shaders/AerialPerspectiveHelper.cginc" +#else + float _AtmosphereColorSaturateDistance; +#endif + + + half4 frag(v2f i) : SV_Target + { + float3 vspos = float3(i.vsray, 1.0); + float4 worldPos = mul(unity_CameraToWorld,float4(vspos,1.0)); + + half4 mcol = tex2D(_MainTex,i.uv); + float4 currSample = tex2D(_CloudTex, i.uv); + // float distance; + // float density; + // unpack(currSample.a, distance, density); + // float packed = pack(1,1); + // unpack(packed, distance, density); + + float4 result; + result = currSample; + + return half4(mcol.rgb * (1 - result.a) + result.rgb * result.a, 1); + } + ENDCG + } + } +} diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudShader.shader.meta b/Assets/Plugins/VolumeCloud/Shaders/CloudShader.shader.meta new file mode 100644 index 000000000..1150bce62 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudShader.shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 84e97169589c5e94e8521fe4deb2e3f8 +timeCreated: 1521964058 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudShaderHelper.cginc b/Assets/Plugins/VolumeCloud/Shaders/CloudShaderHelper.cginc new file mode 100644 index 000000000..20b4030f4 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudShaderHelper.cginc @@ -0,0 +1,311 @@ +#include "UnityCG.cginc" + +#define EARTH_RADIUS 6371000.0 +#define EARTH_CENTER float3(0, -EARTH_RADIUS, 0) + +#ifndef SAMPLE_COUNT +#define SAMPLE_COUNT 64 +#endif + +#define TRANSMITTANCE_SAMPLE_STEP 512.0f + +static const float bayerOffsets[3][3] = { + {0, 7, 3}, + {6, 5, 2}, + {4, 1, 8} +}; + +//Base shape +float _CloudStartHeight; +float _CloudEndHeight; +sampler3D _BaseTex; +float _BaseTile; +sampler2D _HeightDensity; +//Detal shape +sampler3D _DetailTex; +float _DetailTile; +float _DetailStrength; +//Curl distortion +sampler2D _CurlNoise; +float _CurlTile; +float _CurlStrength; +//Top offset +float _CloudTopOffset; + +//Overall cloud size. +float _CloudSize; +//Overall Density +float _CloudOverallDensity; +float _CloudCoverageModifier; +float _CloudTypeModifier; + +half4 _WindDirection; +sampler2D _WeatherTex; +float _WeatherTexSize; + +//Lighting +float _ScatteringCoefficient; +float _ExtinctionCoefficient; +float _SilverIntensity; +float _SilverSpread; + +float SampleDensity(float3 worldPos, int lod, bool cheap, out float wetness); + +float Remap(float original_value, float original_min, float original_max, float new_min, float new_max) +{ + return new_min + (((original_value - original_min) / (original_max - original_min)) * (new_max - new_min)); +} + +float RemapClamped(float original_value, float original_min, float original_max, float new_min, float new_max) +{ + return new_min + (saturate((original_value - original_min) / (original_max - original_min)) * (new_max - new_min)); +} + +float HeightPercent(float3 worldPos) { + float sqrMag = worldPos.x * worldPos.x + worldPos.z * worldPos.z; + + float heightOffset = EARTH_RADIUS - sqrt(max(0.0, EARTH_RADIUS * EARTH_RADIUS - sqrMag)); + + return saturate((worldPos.y + heightOffset - _CloudStartHeight) / (_CloudEndHeight-_CloudStartHeight)); +} + +static float4 cloudGradients[3] = { + float4(0, 0.07, 0.08, 0.15), + float4(0, 0.2, 0.42, 0.6), + float4(0, 0.08, 0.75, 1) +}; + +float SampleHeight(float heightPercent,float cloudType) { + float4 gradient; + float cloudTypeVal; + if (cloudType < 0.5) { + gradient = lerp(cloudGradients[0], cloudGradients[1], cloudType*2.0); + } + else { + gradient = lerp(cloudGradients[1], cloudGradients[2], (cloudType - 0.5)*2.0); + } + + return RemapClamped(heightPercent, gradient.x, gradient.y, 0.0, 1.0) + * RemapClamped(heightPercent, gradient.z, gradient.w, 1.0, 0.0); +} + +float3 ApplyWind(float3 worldPos) { + float heightPercent = HeightPercent(worldPos); + + // skew in wind direction + worldPos.xz -= (heightPercent) * _WindDirection.xy * _CloudTopOffset; + + //animate clouds in wind direction and add a small upward bias to the wind direction + worldPos.xz -= (_WindDirection.xy + float3(0.0, 0.1, 0.0)) * _Time.y * _WindDirection.z; + worldPos.y -= _WindDirection.z * 0.4 * _Time.y; + return worldPos; +} + +float HenryGreenstein(float g, float cosTheta) { + + float k = 3.0 / (8.0 * 3.1415926f) * (1.0 - g * g) / (2.0 + g * g); + return k * (1.0 + cosTheta * cosTheta) / pow(abs(1.0 + g * g - 2.0 * g * cosTheta), 1.5); +} + +float ApplyCoverageToDensity(float sampleResult, float coverage){ + sampleResult = RemapClamped(sampleResult, 1.0 - coverage, 1.0, 0.0, 1.0); + sampleResult *= coverage; + return sampleResult; +} + +#include "Assets/Shaders/Volumetric.cginc" + +float SampleDensity(float3 worldPos,int lod, bool cheap, out float wetness) { + wetness = 0; + return d(worldPos)*_CloudOverallDensity*10; + // //Store the pos without wind applied. + // float3 unwindWorldPos = worldPos; + // + // //Sample the weather map. + // half4 coverageSampleUV = half4((unwindWorldPos.xz / _WeatherTexSize), 0, 2.5); + // coverageSampleUV.xy = (coverageSampleUV.xy + 0.5); + // float3 weatherData = tex2Dlod(_WeatherTex, coverageSampleUV); + // weatherData *= float3(_CloudCoverageModifier, 1.0, _CloudTypeModifier); + // float cloudCoverage = RemapClamped(weatherData.r, 0.0 ,1.0, 0.3, 1.0); + // float cloudType = weatherData.b; + // wetness = weatherData.g; + // + // //Calculate the normalized height between[0,1] + // float heightPercent = HeightPercent(worldPos); + // if (heightPercent <= 0.0f || heightPercent >= 1.0f) + // return 0.0; + // + // //Sample base noise. + // fixed4 tempResult; + // worldPos = ApplyWind(worldPos); + // tempResult = tex3Dlod(_BaseTex, half4(worldPos / _CloudSize * _BaseTile, lod)).rgba; + // float low_freq_fBm = (tempResult.g * .625) + (tempResult.b * 0.25) + (tempResult.a * 0.125); + // float sampleResult = RemapClamped(tempResult.r, 0.0, .1, .0, 1.0); //perlin-worley + // sampleResult = RemapClamped(low_freq_fBm, -0.5 * sampleResult, 1.0, 0.0, 1.0); + // + // //Sample Height-Density map. + // float2 densityAndErodeness = tex2Dlod(_HeightDensity, float4(cloudType, heightPercent, 0.0, 0.0)).rg; + // + // sampleResult *= densityAndErodeness.x; + // //Clip the result using coverage map. + // sampleResult = ApplyCoverageToDensity(sampleResult, cloudCoverage); + // + // if (!cheap) { + // float2 curl_noise = tex2Dlod(_CurlNoise, float4(unwindWorldPos.xz / _CloudSize * _CurlTile, 0.0, 1.0)).rg; + // worldPos.xz += curl_noise.rg * (1.0 - heightPercent) * _CloudSize * _CurlStrength; + // + // float3 tempResult2; + // tempResult2 = tex3Dlod(_DetailTex, half4(worldPos / _CloudSize * _DetailTile, lod)).rgb; + // float detailsampleResult = (tempResult2.r * 0.625) + (tempResult2.g * 0.25) + (tempResult2.b * 0.125); + // //Detail sample result here is worley-perlin fbm. + // + // //On cloud marked with low erodness, we see cauliflower style, so when doing erodness, we use 1.0f - detail. + // //On cloud marked with high erodness, we see thin line style, so when doing erodness we use detail. + // float detail_modifier = lerp(1.0f - detailsampleResult, detailsampleResult, densityAndErodeness.y); + // sampleResult = RemapClamped(sampleResult, min(0.8, detail_modifier * _DetailStrength), 1.0, 0.0, 1.0); + // } + // + // //sampleResult = pow(sampleResult, 1.2); + // return max(0, sampleResult) * _CloudOverallDensity; +} + +float _MultiScatteringA; +float _MultiScatteringB; +float _MultiScatteringC; + +//We raymarch to sun using length of pattern 1,2,4,8, corresponding to step value. +//First sample(length 1) should sample at length 0.5, meaning an average inside length 1. +//Second sample should sample at 1.5, meaning an average inside [1, 2], +//Third should sample at 3.0, which is [2, 4] +//Forth at 6.0, meaning [4, 8] +static const float shadowSampleDistance[5] = { + 0.5, 1.5, 3.0, 6.0, 12.0 +}; + +static const float shadowSampleContribution[5] = { + 1.0f, 1.0f, 2.0f, 4.0f, 8.0f +}; + +float SampleOpticsDistanceToSun(float3 worldPos) { + int mipmapOffset = 0.5; + float opticsDistance = 0.0f; + [unroll] + for (int i = 0; i < 5; i++) { + half3 direction = _WorldSpaceLightPos0; + float3 samplePoint = worldPos + direction * shadowSampleDistance[i] * TRANSMITTANCE_SAMPLE_STEP; + float wetness; + float sampleResult = SampleDensity(samplePoint, mipmapOffset, true, wetness); + opticsDistance += shadowSampleContribution[i] * TRANSMITTANCE_SAMPLE_STEP * sampleResult; + mipmapOffset += 0.5; + } + return opticsDistance; +} + +float SampleEnergy(float3 worldPos, float3 viewDir) { + float opticsDistance = SampleOpticsDistanceToSun(worldPos); + float result = 0.0f; + float cosTheta = dot(viewDir, _WorldSpaceLightPos0); + [unroll] + for (int octaveIndex = 0; octaveIndex < 2; octaveIndex++) { //Multi scattering approximation from Frostbite. + float transmittance = exp(-_ExtinctionCoefficient * pow(_MultiScatteringB, octaveIndex) * opticsDistance); + float ecMult = pow(_MultiScatteringC, octaveIndex); + float phase = lerp(HenryGreenstein(.1f * ecMult, cosTheta), HenryGreenstein((0.99 - _SilverSpread) * ecMult, cosTheta), 0.5f); + result += phase * transmittance * _ScatteringCoefficient * pow(_MultiScatteringA, octaveIndex); + } + return result; +} + +//Code from https://area.autodesk.com/blogs/game-dev-blog/volumetric-clouds/. +bool ray_trace_sphere(float3 center, float3 rd, float3 offset, float radius, out float t1, out float t2) { + float3 p = center - offset; + float b = dot(p, rd); + float c = dot(p, p) - (radius * radius); + + float f = b * b - c; + if (f >= 0.0) { + float dem = sqrt(f); + t1 = -b - dem; + t2 = -b + dem; + return true; + } + return false; +} + +bool resolve_ray_start_end(float3 ws_origin, float3 ws_ray, out float start, out float end) { + //case includes on ground, inside atm, above atm. + float ot1, ot2, it1, it2; + bool outIntersected = ray_trace_sphere(ws_origin, ws_ray, EARTH_CENTER, EARTH_RADIUS + _CloudEndHeight, ot1, ot2); + if (!outIntersected || ot2 < 0.0f) + return false; //you see nothing. + + bool inIntersected = ray_trace_sphere(ws_origin, ws_ray, EARTH_CENTER, EARTH_RADIUS + _CloudStartHeight, it1, it2); + + if (inIntersected) { + if (it1 * it2 < 0) { + //we're on ground. + start = max(it2, 0); + end = ot2; + } + else { + //we're inside atm, or above atm. + if (ot1 * ot2 < 0) { //Inside atm. + if (it1 > 0.0) { + //Look down. + end = it1; + } + else { + //Look up. + end = ot2; + } + start = 0.0f; + } else { //Outside atm + if (ot1 < 0.0) { + return false; + } + else { + start = ot1; + end = it1; + } + } + } + } + else { + end = ot2; + start = max(ot1, 0); + } + return true; +} + +struct RaymarchStatus { + float3 intensity; + float depth; + float depthweightsum; + float intTransmittance; +}; + +void InitRaymarchStatus(inout RaymarchStatus result){ + result.intTransmittance = 1.0f; + result.intensity = 0.0f; + result.depthweightsum = 0.00001f; + result.depth = 0.0f; +} + +void IntegrateRaymarch(float3 startPos, float3 rayPos, float3 viewdir, float stepsize, inout RaymarchStatus result){ + float4 c = VolumeSampleColor(rayPos); + float density = c.a;//SampleDensity(rayPos, 0, false, wetness); + if (density <= 0.0f) + return; + float extinction = _ExtinctionCoefficient * density; + + float clampedExtinction = max(extinction, 1e-7); + float transmittance = exp(-extinction * stepsize); + + float3 luminance = c.rgb;//SampleEnergy(rayPos, viewdir); + float3 integScatt = (luminance - luminance * transmittance) / clampedExtinction; + float depthWeight = result.intTransmittance * (1-transmittance); //Is it a better idead to use (1-transmittance) * intTransmittance as depth weight? + + result.intensity += result.intTransmittance * integScatt; + result.depth += depthWeight * length(rayPos - startPos); + result.depthweightsum += depthWeight; + result.intTransmittance *= transmittance; +} \ No newline at end of file diff --git a/Assets/Plugins/VolumeCloud/Shaders/CloudShaderHelper.cginc.meta b/Assets/Plugins/VolumeCloud/Shaders/CloudShaderHelper.cginc.meta new file mode 100644 index 000000000..6a94c4278 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/CloudShaderHelper.cginc.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: c7e80b274d611c144b9c2cebb238550b +timeCreated: 1521965851 +licenseType: Free +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Shaders/HeightMapDownsample.shader b/Assets/Plugins/VolumeCloud/Shaders/HeightMapDownsample.shader new file mode 100644 index 000000000..6d8c3ebdf --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/HeightMapDownsample.shader @@ -0,0 +1,98 @@ +// Upgrade NOTE: commented out 'float4x4 _CameraToWorld', a built-in variable +// Upgrade NOTE: replaced '_CameraToWorld' with 'unity_CameraToWorld' + +Shader "Yangrc/HeightMapDownsample" +{ + Properties + { + _MainTex("Main Tex", 2D) = "white" + } + + SubShader + { + + CGINCLUDE + + ENDCG + + Cull Off ZWrite Off ZTest Always + Pass //Pass 1, extract finiest height map from weather tex, using height lut. + { + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + + sampler2D _WeatherTex; + sampler2D _HeightLut; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct Interpolator { + float4 vertex : SV_POSITION; + float2 uv : TEXCOORD0; + }; + + Interpolator vert (appdata v) + { + Interpolator o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + return o; + } + + float frag (Interpolator i) : SV_Target + { + float3 weatherData = tex2D(_WeatherTex, i.uv); + float height = tex2D(_HeightLut, float2(weatherData.xz)); /*Index using coverage(x) and heightpercent(z)*/ + return height; + } + + ENDCG + } + + Pass //Pass 2, downsample height map using max operator. + { + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + + sampler2D _MainTex; + float3 _MainTex_TexelSize; + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct Interpolator { + float4 vertex : SV_POSITION; + float2 uv : TEXCOORD0; + }; + + Interpolator vert (appdata v) + { + Interpolator o; + o.vertex = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + return o; + } + + float frag (Interpolator i) : SV_Target + { + float2 offset = _MainTex_TexelSize.xy / 2.0f; + float s1 = tex2D(_MainTex, i.uv - offset); + float s2 = tex2D(_MainTex, i.uv + offset); + offset.y *= -1.0f; + float s3 = tex2D(_MainTex, i.uv - offset); + float s4 = tex2D(_MainTex, i.uv + offset); + return max(s1, max(s2, max(s3, s4))); + } + ENDCG + } + } +} diff --git a/Assets/Plugins/VolumeCloud/Shaders/HeightMapDownsample.shader.meta b/Assets/Plugins/VolumeCloud/Shaders/HeightMapDownsample.shader.meta new file mode 100644 index 000000000..e29518fad --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Shaders/HeightMapDownsample.shader.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b80bf04ca56d3d642a6b925cff3f5ddf +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures.meta b/Assets/Plugins/VolumeCloud/Textures.meta new file mode 100644 index 000000000..8da368229 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: dbe1d8dcf77687d47b6bd59312dd5268 +folderAsset: yes +timeCreated: 1522836345 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/BaseNoise.asset b/Assets/Plugins/VolumeCloud/Textures/BaseNoise.asset new file mode 100644 index 000000000..a021898b6 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/BaseNoise.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7beb67bfada576d75227531669a8bd6a2c3e4613ff4aa23ff46a7a8f2ad5b4ae +size 19174643 diff --git a/Assets/Plugins/PDTAA/Scenes/ExampleSettings.lighting.meta b/Assets/Plugins/VolumeCloud/Textures/BaseNoise.asset.meta similarity index 52% rename from Assets/Plugins/PDTAA/Scenes/ExampleSettings.lighting.meta rename to Assets/Plugins/VolumeCloud/Textures/BaseNoise.asset.meta index 5ec1263ab..87bf8c8df 100644 --- a/Assets/Plugins/PDTAA/Scenes/ExampleSettings.lighting.meta +++ b/Assets/Plugins/VolumeCloud/Textures/BaseNoise.asset.meta @@ -1,8 +1,10 @@ fileFormatVersion: 2 -guid: 1c55129e293c5ff4b9633c77e1ac6f25 +guid: 3ed67598438ec1e4dba28385e35a557b +timeCreated: 1535769919 +licenseType: Free NativeFormatImporter: externalObjects: {} - mainObjectFileID: 4890085278179872738 + mainObjectFileID: 11700000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/Cloudy.psd b/Assets/Plugins/VolumeCloud/Textures/Cloudy.psd new file mode 100644 index 000000000..c88845609 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/Cloudy.psd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9123af52bd92d933d290f7acc31e8b1c6173dac923232205c472ada52d38ed0 +size 869334 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/acoustictexture_nor.png.meta b/Assets/Plugins/VolumeCloud/Textures/Cloudy.psd.meta similarity index 66% rename from Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/acoustictexture_nor.png.meta rename to Assets/Plugins/VolumeCloud/Textures/Cloudy.psd.meta index 4fc452444..a62962ad5 100644 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/acoustictexture_nor.png.meta +++ b/Assets/Plugins/VolumeCloud/Textures/Cloudy.psd.meta @@ -1,13 +1,13 @@ fileFormatVersion: 2 -guid: 7109567940b96454c88d1d0bb68d2959 +guid: c73be893af46a1e4db152d42aacae768 TextureImporter: - internalIDToNameTable: [] + fileIDToRecycleName: {} externalObjects: {} - serializedVersion: 11 + serializedVersion: 4 mipmaps: mipMapMode: 0 enableMipMap: 1 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 @@ -21,9 +21,6 @@ TextureImporter: heightScale: 0.25 normalMapFilter: 0 isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 @@ -32,12 +29,12 @@ TextureImporter: maxTextureSize: 2048 textureSettings: serializedVersion: 2 - filterMode: -1 + filterMode: 1 aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 + mipBias: -1 + wrapU: 0 + wrapV: 0 + wrapW: 0 nPOTScale: 1 lightmap: 0 compressionQuality: 50 @@ -54,17 +51,31 @@ TextureImporter: spriteTessellationDetail: -1 textureType: 0 textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Android maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 @@ -74,23 +85,12 @@ TextureImporter: allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/CurlNoise.asset b/Assets/Plugins/VolumeCloud/Textures/CurlNoise.asset new file mode 100644 index 000000000..057e8544e --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/CurlNoise.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03bea44207ce6c07c3e4f50529134b0e30ccb44388e6124197d86ddb4b3b3cbe +size 350314 diff --git a/Assets/Plugins/PDTAA/Scenes/Example2Settings.lighting.meta b/Assets/Plugins/VolumeCloud/Textures/CurlNoise.asset.meta similarity index 52% rename from Assets/Plugins/PDTAA/Scenes/Example2Settings.lighting.meta rename to Assets/Plugins/VolumeCloud/Textures/CurlNoise.asset.meta index 5ac52b2b7..62f2551cf 100644 --- a/Assets/Plugins/PDTAA/Scenes/Example2Settings.lighting.meta +++ b/Assets/Plugins/VolumeCloud/Textures/CurlNoise.asset.meta @@ -1,8 +1,10 @@ fileFormatVersion: 2 -guid: 43d0b8710108a7342b2ba1d10fc8206f +guid: 864afbdb4b1b36c42be5cac8f2556237 +timeCreated: 1522742502 +licenseType: Free NativeFormatImporter: externalObjects: {} - mainObjectFileID: 4890085278179872738 + mainObjectFileID: 2800000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/DetailNoise.asset b/Assets/Plugins/VolumeCloud/Textures/DetailNoise.asset new file mode 100644 index 000000000..a1582c364 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/DetailNoise.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:413ccfebbf04dc2a3f8c9dc3243a4ca6de11d12e90c5e62d80d874de04d5e00e +size 225374 diff --git a/Assets/Plugins/VolumeCloud/Textures/DetailNoise.asset.meta b/Assets/Plugins/VolumeCloud/Textures/DetailNoise.asset.meta new file mode 100644 index 000000000..fd2030180 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/DetailNoise.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: c978a1d1fdb99d54eb7910eb562fcbd7 +timeCreated: 1535770018 +licenseType: Free +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11700000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/HeightDensityMap.png b/Assets/Plugins/VolumeCloud/Textures/HeightDensityMap.png new file mode 100644 index 000000000..fb8b3f0e2 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/HeightDensityMap.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb4d1d66f94771bdf6cb0b5daa34fb168205d3724ee73bd8315d7d3dcaca3cf2 +size 11705 diff --git a/Assets/Plugins/PDTAA/Textures/bluenoise_frd_256x256_uni.bmp.meta b/Assets/Plugins/VolumeCloud/Textures/HeightDensityMap.png.meta similarity index 70% rename from Assets/Plugins/PDTAA/Textures/bluenoise_frd_256x256_uni.bmp.meta rename to Assets/Plugins/VolumeCloud/Textures/HeightDensityMap.png.meta index 253097695..2d95e4899 100644 --- a/Assets/Plugins/PDTAA/Textures/bluenoise_frd_256x256_uni.bmp.meta +++ b/Assets/Plugins/VolumeCloud/Textures/HeightDensityMap.png.meta @@ -1,9 +1,9 @@ fileFormatVersion: 2 -guid: 859f329ee8606864ea19dbf373a5ec56 +guid: a27c79a96e56b794a9bcb99b3b2df92b TextureImporter: - internalIDToNameTable: [] + fileIDToRecycleName: {} externalObjects: {} - serializedVersion: 10 + serializedVersion: 4 mipmaps: mipMapMode: 0 enableMipMap: 0 @@ -21,8 +21,6 @@ TextureImporter: heightScale: 0.25 normalMapFilter: 0 isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 @@ -31,12 +29,12 @@ TextureImporter: maxTextureSize: 2048 textureSettings: serializedVersion: 2 - filterMode: 0 + filterMode: -1 aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 + mipBias: -1 + wrapU: 1 + wrapV: 1 + wrapW: 1 nPOTScale: 1 lightmap: 0 compressionQuality: 50 @@ -53,51 +51,36 @@ TextureImporter: spriteTessellationDetail: -1 textureType: 0 textureShape: 1 - singleChannelComponent: 0 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform + - buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 - textureCompression: 0 + textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone + - buildTarget: Standalone maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 - textureCompression: 0 + textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/Screenshot1.psd b/Assets/Plugins/VolumeCloud/Textures/Screenshot1.psd new file mode 100644 index 000000000..23f2b0fd7 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/Screenshot1.psd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d931eb1bb68bc8fffaf7dee472e6376a2ca23fd577304d6fd4e7310eab69610 +size 6486050 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/blank.png.meta b/Assets/Plugins/VolumeCloud/Textures/Screenshot1.psd.meta similarity index 70% rename from Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/blank.png.meta rename to Assets/Plugins/VolumeCloud/Textures/Screenshot1.psd.meta index 96ebd6de4..688066ecf 100644 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/blank.png.meta +++ b/Assets/Plugins/VolumeCloud/Textures/Screenshot1.psd.meta @@ -1,13 +1,13 @@ fileFormatVersion: 2 -guid: a11996947b309154dafbacfbd1c8c4c4 +guid: 4f3f3112dcf000b47ac790c3b15cf3ec TextureImporter: - internalIDToNameTable: [] + fileIDToRecycleName: {} externalObjects: {} - serializedVersion: 11 + serializedVersion: 4 mipmaps: mipMapMode: 0 enableMipMap: 1 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 @@ -21,9 +21,6 @@ TextureImporter: heightScale: 0.25 normalMapFilter: 0 isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 @@ -34,7 +31,7 @@ TextureImporter: serializedVersion: 2 filterMode: -1 aniso: -1 - mipBias: -100 + mipBias: -1 wrapU: -1 wrapV: -1 wrapW: -1 @@ -54,18 +51,22 @@ TextureImporter: spriteTessellationDetail: -1 textureType: 0 textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 + - buildTarget: DefaultTexturePlatform + maxTextureSize: 512 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Standalone + maxTextureSize: 512 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 @@ -74,23 +75,12 @@ TextureImporter: allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/SingleHugeCloud.psd b/Assets/Plugins/VolumeCloud/Textures/SingleHugeCloud.psd new file mode 100644 index 000000000..30c1a255a --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/SingleHugeCloud.psd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d06055b3dcdca6dc788448ccfb90cb8012a6f85d7bfd52ace20d74365b182f91 +size 1229905 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/auxbus_nor.png.meta b/Assets/Plugins/VolumeCloud/Textures/SingleHugeCloud.psd.meta similarity index 72% rename from Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/auxbus_nor.png.meta rename to Assets/Plugins/VolumeCloud/Textures/SingleHugeCloud.psd.meta index ea8c98065..722277e8e 100644 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/auxbus_nor.png.meta +++ b/Assets/Plugins/VolumeCloud/Textures/SingleHugeCloud.psd.meta @@ -1,9 +1,9 @@ fileFormatVersion: 2 -guid: b76691fa81022ab4fbc7addfb569cc51 +guid: d9c1df7019059ba408ab9e1ce569088c TextureImporter: - internalIDToNameTable: [] + fileIDToRecycleName: {} externalObjects: {} - serializedVersion: 11 + serializedVersion: 4 mipmaps: mipMapMode: 0 enableMipMap: 1 @@ -21,9 +21,6 @@ TextureImporter: heightScale: 0.25 normalMapFilter: 0 isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 @@ -34,7 +31,7 @@ TextureImporter: serializedVersion: 2 filterMode: -1 aniso: -1 - mipBias: -100 + mipBias: -1 wrapU: -1 wrapV: -1 wrapW: -1 @@ -54,17 +51,11 @@ TextureImporter: spriteTessellationDetail: -1 textureType: 0 textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform + - buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 @@ -74,23 +65,12 @@ TextureImporter: allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/VolumeCloud/Textures/Test.psd b/Assets/Plugins/VolumeCloud/Textures/Test.psd new file mode 100644 index 000000000..35205809a --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/Test.psd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:376d362311adab9e23a3e8a59b4eb3fe413702ca1eccab7988b21226900a6020 +size 1704946 diff --git a/Assets/Plugins/VolumeCloud/Textures/Test.psd.meta b/Assets/Plugins/VolumeCloud/Textures/Test.psd.meta new file mode 100644 index 000000000..f95476992 --- /dev/null +++ b/Assets/Plugins/VolumeCloud/Textures/Test.psd.meta @@ -0,0 +1,96 @@ +fileFormatVersion: 2 +guid: 419de397c006f894d8e0d1b6777bc0ad +TextureImporter: + fileIDToRecycleName: {} + externalObjects: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: -1 + mipBias: -1 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/UI/Dropdown Menu.prefab b/Assets/Prefabs/UI/Dropdown Menu.prefab new file mode 100644 index 000000000..cd57cefa0 --- /dev/null +++ b/Assets/Prefabs/UI/Dropdown Menu.prefab @@ -0,0 +1,283 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &9194050151506885539 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9194050151506885538} + - component: {fileID: 9194050151506885551} + - component: {fileID: 9194050151506885536} + - component: {fileID: 9194050151506885537} + m_Layer: 5 + m_Name: Fill + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &9194050151506885538 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151506885539} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 9194050153027168359} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &9194050151506885551 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151506885539} + m_CullTransparentMesh: 0 +--- !u!114 &9194050151506885536 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151506885539} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0.041666675, b: 0.1, a: 0.79607844} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: d43f9691259ed984fa09c853c5cda7f0, type: 3} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &9194050151506885537 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151506885539} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 1 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!1 &9194050151789067660 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9194050151789067659} + - component: {fileID: 9194050151789067657} + - component: {fileID: 9194050151789067658} + - component: {fileID: 9194050151789067656} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &9194050151789067659 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151789067660} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 9194050153027168359} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &9194050151789067657 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151789067660} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 3 + m_Right: 3 + m_Top: 3 + m_Bottom: 3 + m_ChildAlignment: 0 + m_Spacing: 1 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!114 &9194050151789067658 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151789067660} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 1 +--- !u!222 &9194050151789067656 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050151789067660} + m_CullTransparentMesh: 0 +--- !u!1 &9194050153027168376 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9194050153027168359} + - component: {fileID: 9194050153027168356} + - component: {fileID: 9194050153027168357} + - component: {fileID: 9194050153027168358} + m_Layer: 5 + m_Name: Dropdown Menu + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &9194050153027168359 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050153027168376} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 9194050151506885538} + - {fileID: 9194050151789067659} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 70, y: 84} + m_SizeDelta: {x: 250, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &9194050153027168356 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050153027168376} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 2 +--- !u!114 &9194050153027168357 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050153027168376} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 2 + m_Right: 2 + m_Top: 2 + m_Bottom: 2 + m_ChildAlignment: 0 + m_Spacing: 0 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!114 &9194050153027168358 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9194050153027168376} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 848ae49aff071f5458dcc0322b8b84eb, type: 3} + m_Name: + m_EditorClassIdentifier: + Canvas: {fileID: 0} + CancelClickCatcher: {fileID: 0} + OptionPrefab: {fileID: 5002943309344603758, guid: b1fe91487e8589444bd3512bc6696b3b, + type: 3} + ContentRoot: {fileID: 9194050151789067659} + OptionHeight: 34 + PaddingHeight: 16 diff --git a/Assets/Plugins/PDTAA/Scenes/Example2.unity.meta b/Assets/Prefabs/UI/Dropdown Menu.prefab.meta similarity index 63% rename from Assets/Plugins/PDTAA/Scenes/Example2.unity.meta rename to Assets/Prefabs/UI/Dropdown Menu.prefab.meta index 117594fb0..a0101dbed 100644 --- a/Assets/Plugins/PDTAA/Scenes/Example2.unity.meta +++ b/Assets/Prefabs/UI/Dropdown Menu.prefab.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: 01b560b381e0b844ab415868c2aab36b -DefaultImporter: +guid: 5c3a7b786419db74a8c1d17039fd4f67 +PrefabImporter: externalObjects: {} userData: assetBundleName: diff --git a/Assets/Resources/Atmosphere Settings.asset b/Assets/Resources/Atmosphere Settings.asset new file mode 100644 index 000000000..0c1666d82 --- /dev/null +++ b/Assets/Resources/Atmosphere Settings.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bf219df0dc34bce2b328d76e131f8d65ffe3dbf358a06f2fae7939c626e66b9 +size 778 diff --git a/Assets/Wwise/ScriptableObjects/Event/44FA1280-D160-4DB5-B7EB-AA6E4CFBB17A.asset.meta b/Assets/Resources/Atmosphere Settings.asset.meta similarity index 79% rename from Assets/Wwise/ScriptableObjects/Event/44FA1280-D160-4DB5-B7EB-AA6E4CFBB17A.asset.meta rename to Assets/Resources/Atmosphere Settings.asset.meta index cfaf86ef8..a300d1102 100644 --- a/Assets/Wwise/ScriptableObjects/Event/44FA1280-D160-4DB5-B7EB-AA6E4CFBB17A.asset.meta +++ b/Assets/Resources/Atmosphere Settings.asset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: afe2baef276b4b34f98f465e29ce4bfe +guid: 8e73e89daf00b8447b2410427953df25 NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/Resources/Settings.asset b/Assets/Resources/Settings.asset index b5346ded7..1e6958f07 100644 --- a/Assets/Resources/Settings.asset +++ b/Assets/Resources/Settings.asset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f939d183994e9d1cd26ec5d4f3277bc12ef39ddfdc40c5aaed7df392166124bd -size 12900 +oid sha256:9f46568f78c684ef5d8b2a3c6be45862c03a8e097544f3e38658e8245efe2fd7 +size 13038 diff --git a/Assets/Resources/Sprites/desktop.ini b/Assets/Resources/Sprites/desktop.ini deleted file mode 100644 index b0149ef79..000000000 --- a/Assets/Resources/Sprites/desktop.ini +++ /dev/null @@ -1,2 +0,0 @@ -[LocalizedFileNames] -starfield.jpg=@starfield.jpg,0 diff --git a/Assets/Resources/Sun Albedo/sunsurface2map.png.meta b/Assets/Resources/Sun Albedo/sunsurface2map.png.meta index 8428aab46..827c7c839 100644 --- a/Assets/Resources/Sun Albedo/sunsurface2map.png.meta +++ b/Assets/Resources/Sun Albedo/sunsurface2map.png.meta @@ -58,6 +58,8 @@ TextureImporter: textureType: 0 textureShape: 2 singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 maxTextureSizeSet: 0 compressionQualitySet: 0 textureFormatSet: 0 @@ -66,7 +68,7 @@ TextureImporter: platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 + maxTextureSize: 128 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 2 @@ -78,7 +80,7 @@ TextureImporter: forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone - maxTextureSize: 2048 + maxTextureSize: 128 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 2 diff --git a/Assets/Resources/Volume Settings.asset b/Assets/Resources/Volume Settings.asset new file mode 100644 index 000000000..c5f1e298b --- /dev/null +++ b/Assets/Resources/Volume Settings.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86d2f44465ff60eb54eee59b36809adfed2552a1426d8dc25c4176f11a8de9f9 +size 1418 diff --git a/Assets/Resources/Volume Settings.asset.meta b/Assets/Resources/Volume Settings.asset.meta new file mode 100644 index 000000000..e8387e451 --- /dev/null +++ b/Assets/Resources/Volume Settings.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: a15886e93ac3e7847861da392782f13d +timeCreated: 1524043690 +licenseType: Free +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/ARPG_Profiles/Postprocessing Profile Main Menu.asset b/Assets/Scenes/ARPG_Profiles/Postprocessing Profile Main Menu.asset index c95632c85..dcdaeec69 100644 --- a/Assets/Scenes/ARPG_Profiles/Postprocessing Profile Main Menu.asset +++ b/Assets/Scenes/ARPG_Profiles/Postprocessing Profile Main Menu.asset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:65f80041e37e9f01ccd65777d321a3ed7ffbf687702d22218ac461044f40b213 -size 27004 +oid sha256:0e87f915dddc2367988feae020f46888855c64281cecfc34f670ac8d78fc5fce +size 27014 diff --git a/Assets/Scenes/Main Menu.unity b/Assets/Scenes/Main Menu.unity index fa69bfbd0..e4ea660a1 100644 --- a/Assets/Scenes/Main Menu.unity +++ b/Assets/Scenes/Main Menu.unity @@ -26,7 +26,7 @@ RenderSettings: m_AmbientIntensity: 1 m_AmbientMode: 0 m_SubtractiveShadowColor: {r: 0.2830189, g: 0.2830189, b: 0.2830189, a: 1} - m_SkyboxMaterial: {fileID: 0} + m_SkyboxMaterial: {fileID: 1992980593} m_HaloStrength: 0.5 m_FlareStrength: 1 m_FlareFadeSpeed: 3 @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_IndirectSpecularColor: {r: 1.162106, g: 1.162106, b: 1.162106, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -378,7 +378,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_NoiseProfile: {fileID: 11400000, guid: 20a705aea2d80e0478fb89b6f43d8530, type: 2} m_PivotOffset: {x: 0, y: 0, z: 0} - m_AmplitudeGain: 2 + m_AmplitudeGain: 0.5 m_FrequencyGain: 0.25 mNoiseOffsets: {x: 0, y: 0, z: 0} --- !u!114 &412917868 @@ -395,18 +395,18 @@ MonoBehaviour: m_EditorClassIdentifier: m_TrackedObjectOffset: {x: 0, y: 0, z: 0} m_LookaheadTime: 0 - m_LookaheadSmoothing: 0 + m_LookaheadSmoothing: 5.9 m_LookaheadIgnoreY: 0 m_HorizontalDamping: 0.5 m_VerticalDamping: 0.5 - m_ScreenX: 0.75 - m_ScreenY: 0.33 + m_ScreenX: 0.6 + m_ScreenY: 0.44 m_DeadZoneWidth: 0 m_DeadZoneHeight: 0 m_SoftZoneWidth: 0.8 m_SoftZoneHeight: 0.8 - m_BiasX: 0 - m_BiasY: 0 + m_BiasX: -0.00000007450581 + m_BiasY: -0.00000007450581 m_CenterOnActivate: 1 --- !u!114 &412917869 MonoBehaviour: @@ -440,16 +440,16 @@ MonoBehaviour: m_YDamping: 0 m_ZDamping: 0 m_TargetMovementOnly: 0 - m_ScreenX: 0.25 - m_ScreenY: 0.57 - m_CameraDistance: 146.53 + m_ScreenX: 0.4 + m_ScreenY: 0.85 + m_CameraDistance: 225 m_DeadZoneWidth: 0 m_DeadZoneHeight: 0 m_DeadZoneDepth: 0 m_UnlimitedSoftZone: 0 m_SoftZoneWidth: 0.8 m_SoftZoneHeight: 0.8 - m_BiasX: -0.000000074505806 + m_BiasX: -0.0000000372529 m_BiasY: -0.00000007450581 m_CenterOnActivate: 1 m_GroupFramingMode: 2 @@ -781,10 +781,10 @@ MonoBehaviour: m_LookAt: {fileID: 1362573163} m_Follow: {fileID: 971662241} m_Lens: - FieldOfView: 60 + FieldOfView: 35 OrthographicSize: 5 - NearClipPlane: 0.3 - FarClipPlane: 1000 + NearClipPlane: 1 + FarClipPlane: 2048 Dutch: 0 LensShift: {x: 0, y: 0} m_Transitions: @@ -802,8 +802,8 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 741153267} - m_LocalRotation: {x: 0.3274431, y: 0.17597422, z: -0.06220931, w: 0.9262527} - m_LocalPosition: {x: -144.10849, y: -28.695732, z: -126.68623} + m_LocalRotation: {x: 0.312603, y: 0.53486377, z: -0.22206932, w: 0.75291795} + m_LocalPosition: {x: -283.46375, y: 64.4197, z: -64.52852} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 412917866} @@ -859,12 +859,12 @@ MonoBehaviour: ParticleMaterial: {fileID: 2100000, guid: fc00c35c3c370774c88d55240b6538ce, type: 2} Span: 256 Speed: -0.25 - MinimumSize: 0.0025 - MaximumSize: 0.005 + MinimumSize: 0 + MaximumSize: 1 Spacing: 2 Ceiling: 0 - Floor: -50 - HeightExponent: 1000 + Floor: 200 + HeightExponent: 100000 NebulaSurfaceHeight: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} NebulaPatchHeight: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} NebulaPatch: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} @@ -1215,6 +1215,7 @@ GameObject: - component: {fileID: 965376325} - component: {fileID: 965376322} - component: {fileID: 965376328} + - component: {fileID: 965376329} m_Layer: 0 m_Name: Main Camera m_TagString: MainCamera @@ -1265,7 +1266,7 @@ Camera: m_GameObject: {fileID: 965376321} m_Enabled: 1 serializedVersion: 2 - m_ClearFlags: 1 + m_ClearFlags: 2 m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} m_projectionMatrixMode: 1 m_GateFitMode: 2 @@ -1279,9 +1280,9 @@ Camera: y: 0 width: 1 height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 + near clip plane: 1 + far clip plane: 2048 + field of view: 35 orthographic: 0 orthographic size: 5 m_Depth: -1 @@ -1306,8 +1307,8 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 965376321} - m_LocalRotation: {x: 0.3274431, y: 0.17597422, z: -0.06220931, w: 0.9262527} - m_LocalPosition: {x: -144.10849, y: -28.695732, z: -126.68623} + m_LocalRotation: {x: 0.312603, y: 0.53486377, z: -0.22206932, w: 0.75291795} + m_LocalPosition: {x: -283.46375, y: 64.4197, z: -64.52852} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} @@ -1430,6 +1431,29 @@ MonoBehaviour: NebulaPatchHeight: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} NebulaPatch: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} NebulaTint: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} +--- !u!114 &965376329 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 965376321} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9f1db61281524fb40bc9a1f6acce6baf, type: 3} + m_Name: + m_EditorClassIdentifier: + configuration: {fileID: 11400000, guid: a15886e93ac3e7847861da392782f13d, type: 2} + downSample: 0 + quality: 0 + allowCloudFrontObject: 1 + useApSystem: 0 + useHierarchicalHeightMap: 0 + cloudShader: {fileID: 4800000, guid: 84e97169589c5e94e8521fe4deb2e3f8, type: 3} + heightPreprocessShader: {fileID: 7200000, guid: 40276bd53f35a694e8d4e025ca310775, + type: 3} + cloudHeightProcessShader: {fileID: 4800000, guid: b80bf04ca56d3d642a6b925cff3f5ddf, + type: 3} --- !u!4 &971662241 stripped Transform: m_CorrespondingSourceObject: {fileID: 7852221720971737233, guid: 046dde0f4600bce41ad33c476f99b309, @@ -1738,7 +1762,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1362573162} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -130, z: 0} + m_LocalPosition: {x: 0, y: -206, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} @@ -1968,6 +1992,99 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1662321234} m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &1663455619 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1663455621} + - component: {fileID: 1663455620} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &1663455620 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1663455619} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 8 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 0 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &1663455621 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1663455619} + m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 12 + m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0} --- !u!1 &1734434093 GameObject: m_ObjectHideFlags: 0 @@ -2156,6 +2273,28 @@ Camera: m_OcclusionCulling: 0 m_StereoConvergence: 10 m_StereoSeparation: 0.022 +--- !u!21 &1992980593 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Skybox/AtmosphereScatteringPrecomputed + m_Shader: {fileID: 4800000, guid: e2088dd19a71d1244976cd0de1ff68a7, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: [] + m_Colors: [] + m_BuildTextureStacks: [] --- !u!1 &2103364769 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/CultCache/Editor/Inspectors/AetheriaInspectors.cs b/Assets/Scripts/CultCache/Editor/Inspectors/AetheriaInspectors.cs index 6867c1849..d60574934 100644 --- a/Assets/Scripts/CultCache/Editor/Inspectors/AetheriaInspectors.cs +++ b/Assets/Scripts/CultCache/Editor/Inspectors/AetheriaInspectors.cs @@ -231,102 +231,4 @@ public class ShapeSchematicInspector : BaseInspector -{ - public override uint Inspect(string label, uint value, object parent, DatabaseInspector inspectorWindow, InspectableSoundBankAttribute attribute) - { - using (new HorizontalScope()) - { - GUILayout.Label(label, GUILayout.Width(width)); - - IEnumerable soundBanks = ActionGameManager.SoundBanksInfo.SoundBanks; - - if (parent is EquippableItemData item) - { - if (item.Behaviors.Any(b => b is WeaponData)) - soundBanks = soundBanks.Where(s => s.GetEvent(WeaponAudioEvent.Fire) != null); - - if (item.Behaviors.Any(b => b is ChargedWeaponData)) - soundBanks = soundBanks.Where(s => s.GetEvent(ChargedWeaponAudioEvent.Start) != null); - - if (item.Behaviors.Any(b => b is ReactorData || b is ThrusterData || b is AetherDriveData)) - soundBanks = soundBanks.Where(s => - s.GetEvent(LoopingAudioEvent.Play) != null && - s.GetEvent(LoopingAudioEvent.Stop) != null && - s.GetParameter(SpecialAudioParameter.Intensity) != null); - } - else if (parent is Faction) - { - soundBanks = soundBanks.Where(s => s.ObjectPath.Contains("Music") && - s.GetEvent(LoopingAudioEvent.Play) != null && - s.GetEvent(LoopingAudioEvent.Stop) != null); - } - else - { - using (new HorizontalScope(GUI.skin.box)) - { - GUILayout.Label("Unsupported Parent Type!"); - return value; - } - } - - var soundBanksArray = soundBanks.ToArray(); - - if (soundBanksArray.Length==0) - { - using (new HorizontalScope(GUI.skin.box)) - { - GUILayout.Label("Sound bank not found!"); - return value; - } - } - - var selected = Array.FindIndex(soundBanksArray, o=>o.Id==value); - if (selected == -1) selected = 0; - else selected++; - - var selection = Popup(selected, soundBanksArray.Select(p => p.ShortName).Prepend("None").ToArray()); - value = selection != 0 ? soundBanksArray[selection - 1].Id : 0; - return value; - } - } -} - -public class WwiseParameterBindingInspector : BaseInspector -{ - public override uint Inspect(string label, uint value, object parent, DatabaseInspector inspectorWindow, InspectableAudioParameterAttribute attribute) - { - using (new HorizontalScope()) - { - GUILayout.Label(label, GUILayout.Width(width)); - - var item = parent as EquippableItemData; - if (item == null) - { - using (new HorizontalScope(GUI.skin.box)) - { - GUILayout.Label("Unsupported Parent Type!"); - return value; - } - } - - var soundbank = ActionGameManager.SoundBanksInfo.SoundBanks.FirstOrDefault(s => s.Id == item.SoundBank); - if (soundbank == null) - { - using (new HorizontalScope(GUI.skin.box)) - { - GUILayout.Label("Sound bank not found!"); - return value; - } - } - - var selected = Array.FindIndex(soundbank.GameParameters, o=>o.Id==value); - if (selected == -1) selected = 0; - - value = soundbank.GameParameters[Popup(selected, soundbank.GameParameters.Select(p => p.Name).ToArray())].Id; - return value; - } - } } \ No newline at end of file diff --git a/Assets/Scripts/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs index 7d1cee9ab..ef1b604f3 100644 --- a/Assets/Scripts/Gameplay/ActionGameManager.cs +++ b/Assets/Scripts/Gameplay/ActionGameManager.cs @@ -37,45 +37,6 @@ public class ActionGameManager : MonoBehaviour get => _gameDataDirectory ??= new DirectoryInfo(Application.dataPath).Parent.CreateSubdirectory("GameData"); } - private static WwiseMetaSoundBanksInfo _soundBanksInfo; - public static WwiseMetaSoundBanksInfo SoundBanksInfo => _soundBanksInfo ??= - JsonConvert.DeserializeObject(File.ReadAllText(Path.Combine(GameDataDirectory.FullName, "SoundbanksInfo.json"))) - .SoundBanksInfo; - - private static HashSet _loadedSoundBanks = new HashSet(); - public static void LoadSoundbank(uint soundBank) - { - if (!_loadedSoundBanks.Contains(soundBank)) - { - AkSoundEngine.LoadBank(SoundBanksInfo.GetSoundBank(soundBank).ShortName, out _); - _loadedSoundBanks.Add(soundBank); - } - } - - private static GameObject CurrentMusicGameObject; - private static uint CurrentMusicSoundbank; - public static void PlayMusic(uint soundBank, GameObject obj) - { - if (soundBank == CurrentMusicSoundbank) return; - if (CurrentMusicSoundbank != 0) - AkSoundEngine.PostEvent(SoundBanksInfo.GetSoundBank(CurrentMusicSoundbank) - .GetEvent(LoopingAudioEvent.Stop).Id, CurrentMusicGameObject); - LoadSoundbank(soundBank); - CurrentMusicGameObject = obj; - CurrentMusicSoundbank = soundBank; - AkSoundEngine.PostEvent(SoundBanksInfo.GetSoundBank(CurrentMusicSoundbank) - .GetEvent(LoopingAudioEvent.Play).Id, CurrentMusicGameObject); - } - - public static void StopMusic() - { - if (CurrentMusicSoundbank != 0) - AkSoundEngine.PostEvent(SoundBanksInfo.GetSoundBank(CurrentMusicSoundbank) - .GetEvent(LoopingAudioEvent.Stop).Id, CurrentMusicGameObject); - CurrentMusicGameObject = null; - CurrentMusicSoundbank = 0; - } - private static CultCache _cultCache; public static CultCache CultCache @@ -281,13 +242,6 @@ public class ActionGameManager : MonoBehaviour private void OnDisable() { Input.Dispose(); - var ambience = SoundBanksInfo.GetSoundBank(Settings.AmbienceSoundBank); - foreach (var stopEvent in ambience.IncludedEvents.Where(e => e.Name.EndsWith("_stop"))) - { - AkSoundEngine.PostEvent(stopEvent.Id, gameObject); - } - StopMusic(); - AkSoundEngine.UnregisterGameObj(gameObject); ConsoleController.ClearCommands(); EntityInstance.ClearWeaponManagers(); } @@ -296,15 +250,7 @@ public class ActionGameManager : MonoBehaviour { Instance = this; EntityInstance.EffectManagerParent = EffectManagerParent; - AkSoundEngine.RegisterGameObj(gameObject); ConsoleController.MessageReceiver = this; - - var ambience = SoundBanksInfo.GetSoundBank(Settings.AmbienceSoundBank); - LoadSoundbank(ambience.Id); - foreach (var playEvent in ambience.IncludedEvents.Where(e => e.Name.EndsWith("_play"))) - { - AkSoundEngine.PostEvent(playEvent.Id, gameObject); - } ItemManager = new ItemManager(CultCache, Settings.GameplaySettings, Debug.Log); ZoneRenderer.ItemManager = ItemManager; @@ -345,7 +291,7 @@ public class ActionGameManager : MonoBehaviour if (MainMenu.gameObject.activeSelf) return; if (CurrentEntity == null) { - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail Dialog.Clear(); Dialog.Title.text = "Can't undock. You dont have a ship!"; Dialog.Show(); @@ -387,7 +333,7 @@ public class ActionGameManager : MonoBehaviour Input.Player.ToggleHeatsinks.performed += context => { CurrentEntity.HeatsinksEnabled = !CurrentEntity.HeatsinksEnabled; - AkSoundEngine.PostEvent(CurrentEntity.HeatsinksEnabled ? "UI_Success" : "UI_Fail", gameObject); + // TODO: SFX: Success/Fail }; Input.Player.ToggleShield.performed += context => @@ -395,7 +341,7 @@ public class ActionGameManager : MonoBehaviour if (CurrentEntity.Shield != null) { CurrentEntity.Shield.Item.Enabled.Value = !CurrentEntity.Shield.Item.Enabled.Value; - AkSoundEngine.PostEvent(CurrentEntity.Shield.Item.Enabled.Value ? "UI_Success" : "UI_Fail", gameObject); + // TODO: SFX: Success/Fail } }; @@ -856,7 +802,8 @@ public class ActionGameManager : MonoBehaviour { UnbindEntity(); DoDock(entity, bay); - AkSoundEngine.PostEvent("Dock", gameObject); + // TODO: SFX: Docking + //AkSoundEngine.PostEvent("Dock", gameObject); return; } } @@ -895,7 +842,7 @@ public class ActionGameManager : MonoBehaviour Dialog.Title.text = "Can't undock. Missing cockpit component!"; Dialog.Show(); Dialog.MoveToCursor(); - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail } else if (CurrentEntity.GetBehavior() == null && CurrentEntity.GetBehavior() == null) { @@ -903,7 +850,7 @@ public class ActionGameManager : MonoBehaviour Dialog.Title.text = "Can't undock. Missing thruster component!"; Dialog.Show(); Dialog.MoveToCursor(); - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail } else if (CurrentEntity.GetBehavior() == null) { @@ -911,19 +858,19 @@ public class ActionGameManager : MonoBehaviour Dialog.Title.text = "Can't undock. Missing reactor component!"; Dialog.Show(); Dialog.MoveToCursor(); - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail } else if (CurrentEntity.Parent.TryUndock(ship)) { BindToEntity(ship); - AkSoundEngine.PostEvent("Undock", gameObject); + // TODO: SFX: Undock } else { Dialog.Title.text = "Can't undock. Must empty docking bay!"; Dialog.Show(); Dialog.MoveToCursor(); - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail } } } @@ -1190,22 +1137,7 @@ public class ActionGameManager : MonoBehaviour public void PlayMusic(MusicType type) { - var soundbank = type switch - { - MusicType.Overworld => Zone.GalaxyZone.Owner?.OverworldMusic ?? 0, - MusicType.Combat => Zone.GalaxyZone.Owner?.CombatMusic ?? 0, - MusicType.Boss => Zone.GalaxyZone.Owner?.BossMusic ?? 0, - _ => throw new ArgumentOutOfRangeException(nameof(type), type, null) - }; - if (soundbank == 0) - soundbank = type switch - { - MusicType.Overworld => SoundBanksInfo.GetSoundBank(Settings.DefaultOverworldSoundbank).Id, - MusicType.Combat => SoundBanksInfo.GetSoundBank(Settings.DefaultCombatSoundbank).Id, - MusicType.Boss => SoundBanksInfo.GetSoundBank(Settings.DefaultBossSoundbank).Id, - _ => throw new ArgumentOutOfRangeException(nameof(type), type, null) - }; - PlayMusic(soundbank, gameObject); + // TODO: SFX: Music } void Update() diff --git a/Assets/Scripts/Gameplay/EntityInstance.cs b/Assets/Scripts/Gameplay/EntityInstance.cs index d20d64d53..fee962bce 100644 --- a/Assets/Scripts/Gameplay/EntityInstance.cs +++ b/Assets/Scripts/Gameplay/EntityInstance.cs @@ -46,7 +46,7 @@ public class EntityInstance : MonoBehaviour private Sensor _sensor; private Transform _influenceInstance; - private List<(GameObject source, EquippedItem item)> _audioSources = new List<(GameObject source, EquippedItem item)>(); + //private List<(GameObject source, EquippedItem item)> _audioSources = new List<(GameObject source, EquippedItem item)>(); // private (Reactor reactor, GameObject sfxSource) _reactor; // private Dictionary _radiatorSfx = new Dictionary(); @@ -242,17 +242,6 @@ public class EntityInstance : MonoBehaviour if (hardpointTransform != null) { var hardpointGameObject = hardpointTransform.gameObject; - _audioSources.Add((hardpointGameObject, item)); - AkSoundEngine.RegisterGameObj(hardpointGameObject); - ActionGameManager.LoadSoundbank(item.Data.SoundBank); - _subscriptions.Add(item.AudioEvents.Subscribe(e=>AkSoundEngine.PostEvent(e, hardpointGameObject))); - _subscriptions.Add(item.AudioParameters.Subscribe(p=>AkSoundEngine.SetRTPCValue(p.id, p.v, hardpointGameObject))); - var soundBank = ActionGameManager.SoundBanksInfo.GetSoundBank(item.Data.SoundBank); - item.SoundBank = soundBank; - if (soundBank.GetEvent(LoopingAudioEvent.Play) != null && soundBank.GetEvent(ChargedWeaponAudioEvent.Start) == null) - { - AkSoundEngine.PostEvent(soundBank.GetEvent(LoopingAudioEvent.Play).Id, hardpointGameObject); - } } } } @@ -469,10 +458,6 @@ public class EntityInstance : MonoBehaviour public virtual void Update() { - foreach (var (source, item) in _audioSources) - { - AkSoundEngine.SetObjectPosition(source, source.transform); - } if (_currentPing.transform) { _currentPing.transform.localScale = _sensor.PingRadius * Vector3.one; @@ -536,15 +521,6 @@ public class EntityInstance : MonoBehaviour { if (_influenceInstance) Destroy(_influenceInstance.gameObject); Destroy(LocalSpace.gameObject); - foreach (var (source, item) in _audioSources) - { - var soundBank = ActionGameManager.SoundBanksInfo.GetSoundBank(item.Data.SoundBank); - if (soundBank.GetEvent(LoopingAudioEvent.Stop) != null) - { - AkSoundEngine.PostEvent(soundBank.GetEvent(LoopingAudioEvent.Stop).Id, source); - } - AkSoundEngine.UnregisterGameObj(source); - } foreach(var x in _subscriptions) x.Dispose(); } diff --git a/Assets/Scripts/ServerShared/CultCache/Serialization/JsonKnownTypes/JsonKnownTypesConverter.cs b/Assets/Scripts/ServerShared/CultCache/Serialization/JsonKnownTypes/JsonKnownTypesConverter.cs index 70d332040..343cd73a6 100644 --- a/Assets/Scripts/ServerShared/CultCache/Serialization/JsonKnownTypes/JsonKnownTypesConverter.cs +++ b/Assets/Scripts/ServerShared/CultCache/Serialization/JsonKnownTypes/JsonKnownTypesConverter.cs @@ -50,7 +50,7 @@ namespace JsonKnownTypes } else { - throw new NotImplementedException(); + throw new ArgumentException($"Json Known Types: Type Unknown {objectType.FullName}!"); } } } diff --git a/Assets/Scripts/ServerShared/Environment.cs b/Assets/Scripts/ServerShared/Environment.cs index 96a1a8df2..174388e22 100644 --- a/Assets/Scripts/ServerShared/Environment.cs +++ b/Assets/Scripts/ServerShared/Environment.cs @@ -24,6 +24,10 @@ public class NebulaSettings [JsonProperty("fogOffset"), Key(4)] public float FloorOffset; [JsonProperty("fogBlend"), Key(5)] public float FloorBlend; [JsonProperty("cloudBlend"), Key(6)] public float PatchBlend; + [JsonProperty("luminance"), Key(7)] public float Luminance; + [JsonProperty("tintExponent"), Key(8)] public float TintExponent; + [JsonProperty("tintLodExponent"), Key(9)] public float TintLodExponent; + [JsonProperty("safetyDistance"), Key(10)] public float SafetyDistance; } [Serializable, MessagePackObject, JsonObject(MemberSerialization.OptIn)] diff --git a/Assets/Scripts/ServerShared/ItemManager.cs b/Assets/Scripts/ServerShared/ItemManager.cs index 371a86f02..c845d238b 100644 --- a/Assets/Scripts/ServerShared/ItemManager.cs +++ b/Assets/Scripts/ServerShared/ItemManager.cs @@ -223,7 +223,7 @@ public class ItemManager { if (item == null) { - _logger("Attempted to create crafted item instance using missing or incorrect item data!"); + throw new NullReferenceException("Attempted to create crafted item instance using missing or incorrect item data!"); return null; } diff --git a/Assets/Scripts/UI/Menu/InventoryMenu.cs b/Assets/Scripts/UI/Menu/InventoryMenu.cs index 669f1190f..3d7f60bdd 100644 --- a/Assets/Scripts/UI/Menu/InventoryMenu.cs +++ b/Assets/Scripts/UI/Menu/InventoryMenu.cs @@ -48,7 +48,6 @@ public class InventoryMenu : MonoBehaviour private void OnEnable() { - AkSoundEngine.RegisterGameObj(gameObject); // Background.gameObject.SetActive(true); // Background.OnEnter.Subscribe(enter => @@ -70,7 +69,6 @@ public class InventoryMenu : MonoBehaviour private void OnDisable() { - AkSoundEngine.UnregisterGameObj(gameObject); // Background.gameObject.SetActive(false); } @@ -92,12 +90,13 @@ public class InventoryMenu : MonoBehaviour if (otherPanel.CanDropItem(item)) { otherPanel.DropItem(item); - AkSoundEngine.PostEvent("Equip", gameObject); + // TODO: SFX: Equip cargoEvent.CargoBay.Remove(item); panel.RefreshCells(); otherPanel.RefreshCells(); } - else AkSoundEngine.PostEvent("UI_Fail", gameObject); + // else + // TODO: SFX: Fail } else { @@ -124,7 +123,7 @@ public class InventoryMenu : MonoBehaviour var v2 = _selectedItemData.Shape.Rotate(v, _selectedItem.Rotation) + _selectedPosition; _selectedPanel.CellInstances[v2].Icon.color = _selectedPanel.GetColor(v2, true); } - AkSoundEngine.PostEvent("UI_Success", gameObject); + // TODO: SFX: Success } } } @@ -143,13 +142,15 @@ public class InventoryMenu : MonoBehaviour if (entityEvent.Entity.TryUnequip(item) != null) { otherPanel.DropItem(item.EquippableItem); - AkSoundEngine.PostEvent("Unequip", gameObject); + // TODO: SFX: Unequip panel.RefreshCells(); otherPanel.RefreshCells(); } - else AkSoundEngine.PostEvent("UI_Fail", gameObject); + // else + // TODO: SFX: Fail } - else AkSoundEngine.PostEvent("UI_Fail", gameObject); + // else + // TODO: SFX: Fail } } else @@ -176,7 +177,7 @@ public class InventoryMenu : MonoBehaviour var v2 = _selectedItemData.Shape.Rotate(v, _selectedItem.Rotation) + _selectedPosition; _selectedPanel.CellInstances[v2].Icon.color = _selectedPanel.GetColor(v2, true); } - AkSoundEngine.PostEvent("UI_Success", gameObject); + // TODO: SFX: Success } } } diff --git a/Assets/Scripts/UI/Menu/InventoryPanel.cs b/Assets/Scripts/UI/Menu/InventoryPanel.cs index 2482fff24..7c25219d2 100644 --- a/Assets/Scripts/UI/Menu/InventoryPanel.cs +++ b/Assets/Scripts/UI/Menu/InventoryPanel.cs @@ -379,7 +379,8 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler RefreshCells(); _originalRotation = item.EquippableItem.Rotation; GameManager.BeginDrag(new EquippedItemDragObject(item, entity, item.Position - v)); - AkSoundEngine.PostEvent("Pickup", gameObject); + //AkSoundEngine.PostEvent("Pickup", gameObject); + // TODO: SFX: Pickup Item } }); cell.DragTrigger.OnDragAsObservable() @@ -425,15 +426,17 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler { if(equippedItemDragObject.OriginEntity.TryUnequip(equippedItemDragObject.EquippedItem) == null) { - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail Dialog.Clear(); Dialog.Title.text = "Unable to move item!"; Dialog.AddProperty("Verify that cargo bays are empty before un-equipping them."); Dialog.Show(); Dialog.MoveToCursor(); } - else - AkSoundEngine.PostEvent("Unequip", gameObject); + // else + // AkSoundEngine.PostEvent("Unequip", gameObject); + // TODO: SFX: Unequip } else if (GameManager.DragObject is ItemInstanceDragObject itemInstanceDragObject) itemInstanceDragObject.OriginInventory.Remove(itemInstanceDragObject.Item); @@ -441,7 +444,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler FakeOccupancy = null; entity.TryEquip(equippableItem, placementPosition); RefreshCells(); - AkSoundEngine.PostEvent("Equip", gameObject); + // TODO: SFX: Equip return false; }); } @@ -601,7 +604,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler RefreshCells(); _originalRotation = item.Rotation; GameManager.BeginDrag(new ItemInstanceDragObject(item, cargo, cargo.Cargo[item] - v)); - AkSoundEngine.PostEvent("Pickup", gameObject); + // TODO: SFX: Pickup } }); cell.DragTrigger.OnDragAsObservable() @@ -644,21 +647,21 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler { if(equippedItemDragObject.OriginEntity.TryUnequip(equippedItemDragObject.EquippedItem) == null) { - AkSoundEngine.PostEvent("UI_Fail", gameObject); + // TODO: SFX: Fail Dialog.Clear(); Dialog.Title.text = "Unable to move item!"; Dialog.AddProperty("Verify that cargo bays are empty before un-equipping them."); Dialog.Show(); Dialog.MoveToCursor(); } - else - AkSoundEngine.PostEvent("Unequip", gameObject); + //else + // TODO: SFX: Unequip } else if (GameManager.DragObject is ItemInstanceDragObject itemInstanceDragObject) itemInstanceDragObject.OriginInventory.Remove(itemInstanceDragObject.Item); cargo.TryStore(item, placementPosition); FakeOccupancy = null; - AkSoundEngine.PostEvent("Drop", gameObject); + // TODO: SFX: Drop return true; }); } diff --git a/Assets/Scripts/Zone Display/VolumeSampling.cs b/Assets/Scripts/Zone Display/VolumeSampling.cs index ad9eca5c6..7317a6333 100644 --- a/Assets/Scripts/Zone Display/VolumeSampling.cs +++ b/Assets/Scripts/Zone Display/VolumeSampling.cs @@ -13,11 +13,11 @@ using static Unity.Mathematics.noise; /// /// Drives the volume render. /// -//[ExecuteInEditMode] -[RequireComponent( typeof( Camera ) ), ImageEffectAllowedInSceneView] +[ExecuteInEditMode] +[RequireComponent( typeof( Camera ) )] public class VolumeSampling : MonoBehaviour { - [FormerlySerializedAs("_volMaterial")] public Material VolMaterial; + public Material VolMaterial; public Transform GridTransform; public GameSettings Settings; //public int DownsampleBlurMask = 2; @@ -44,31 +44,35 @@ public class VolumeSampling : MonoBehaviour _disabledBlurMask = Color.black.ToTexture(); } - [ImageEffectOpaque] - void OnRenderImage(RenderTexture source, RenderTexture destination) + private void OnPreRender() { - // check for no shader / shader compile error - if( VolMaterial == null ) - { - Graphics.Blit(source, destination); - return; - } - // Shader needs this matrix to generate world space rays - VolMaterial.SetMatrix("_CamProj", (_camera.projectionMatrix * _camera.worldToCameraMatrix).inverse); - VolMaterial.SetMatrix("_CamInvProj", (_camera.projectionMatrix * _camera.worldToCameraMatrix).inverse); + Shader.SetGlobalMatrix("_CamProj", (Camera.current.projectionMatrix * Camera.current.worldToCameraMatrix).inverse); + Shader.SetGlobalMatrix("_CamInvProj", (Camera.current.projectionMatrix * Camera.current.worldToCameraMatrix).inverse); + } + + //[ImageEffectOpaque] + void Update() + { + // // check for no shader / shader compile error + // if( VolMaterial == null ) + // { + // Graphics.Blit(source, destination); + // return; + // } + // // Shader needs to know the position and scale of cameras used to render input textures if(GridTransform != null) - VolMaterial.SetVector("_GridTransform", new Vector4(GridTransform.position.x,GridTransform.position.z,GridTransform.localScale.x)); - - _mrt[0] = destination.colorBuffer; - _mrt[1] = _blurMask.colorBuffer; - - // Blit with a MRT. - Graphics.SetRenderTarget(_mrt, source.depthBuffer); - - Graphics.Blit( source, VolMaterial, 0 ); + Shader.SetGlobalVector("_GridTransform", new Vector4(GridTransform.position.x,GridTransform.position.z,GridTransform.localScale.x)); + // + // _mrt[0] = destination.colorBuffer; + // _mrt[1] = _blurMask.colorBuffer; + // + // // Blit with a MRT. + // Graphics.SetRenderTarget(_mrt, source.depthBuffer); + // + // Graphics.Blit( source, VolMaterial, 0 ); //Graphics.Blit(rt1, destination); @@ -89,16 +93,20 @@ public class VolumeSampling : MonoBehaviour Shader.SetGlobalFloat("_NebulaFloorOffset", Settings.DefaultEnvironment.Nebula.FloorOffset); Shader.SetGlobalFloat("_NebulaFloorBlend", Settings.DefaultEnvironment.Nebula.FloorBlend); Shader.SetGlobalFloat("_NebulaPatchBlend", Settings.DefaultEnvironment.Nebula.PatchBlend); - // Shader.SetGlobalFloat("_TintExponent", Settings.DefaultEnvironment.); + Shader.SetGlobalFloat("_NebulaLuminance", Settings.DefaultEnvironment.Nebula.Luminance); + Shader.SetGlobalFloat("_TintExponent", Settings.DefaultEnvironment.Nebula.TintExponent); + Shader.SetGlobalFloat("_TintLodExponent", Settings.DefaultEnvironment.Nebula.TintLodExponent); + Shader.SetGlobalFloat("_SafetyDistance", Settings.DefaultEnvironment.Nebula.SafetyDistance); + Shader.SetGlobalFloat("_NoiseScale", Settings.DefaultEnvironment.Noise.Scale); Shader.SetGlobalFloat("_NoiseExponent", Settings.DefaultEnvironment.Noise.Exponent); Shader.SetGlobalFloat("_NoiseAmplitude", Settings.DefaultEnvironment.Noise.Amplitude); Shader.SetGlobalFloat("_NoiseSpeed", Settings.DefaultEnvironment.Noise.Speed); + Shader.SetGlobalFloat("_FlowScale", Settings.DefaultEnvironment.Flow.Scale); Shader.SetGlobalFloat("_FlowAmplitude", Settings.DefaultEnvironment.Flow.Amplitude); _flowScroll += Settings.DefaultEnvironment.Flow.ScrollSpeed * Time.deltaTime; Shader.SetGlobalFloat("_FlowScroll", _flowScroll); Shader.SetGlobalFloat("_FlowSpeed", Settings.DefaultEnvironment.Flow.Speed); - // Shader.SetGlobalFloat("_SafetyDistance", Settings.DefaultEnvironment.); } } diff --git a/Assets/Shaders/Compute/Stardust/Stardust.compute b/Assets/Shaders/Compute/Stardust/Stardust.compute index 45e3ffe25..8396df488 100644 --- a/Assets/Shaders/Compute/Stardust/Stardust.compute +++ b/Assets/Shaders/Compute/Stardust/Stardust.compute @@ -121,21 +121,21 @@ void UpdateParticles(uint3 id : SV_DispatchThreadID, int3 groupID : SV_GroupThre uint xp = x + xt + offset; uint yp = y + yt + offset; - const float l = frac(time+RandomFirst(xp, yp)); + const float lifetime = frac(time+RandomFirst(xp, yp)); particles[id.x].position = float3( x * spacing + xt * spacing + perlinNoise1D(RandomValue()*1024)*spacing, 0, y * spacing + yt * spacing + perlinNoise1D(RandomValue()*1024)*spacing); - float n; const float2 puv = float2(.5,.5) - (particles[id.x].position.xz - _GridTransform.xy) / _GridTransform.z; - const float gravDepth = Heightmap.SampleLevel(samplerHeightmap, puv, 0.0f).r; + const float gravDepth = Heightmap.SampleLevel(samplerHeightmap, puv, 0.0f).r + _NebulaFloorOffset; const float headroom = ceilingHeight + gravDepth; - particles[id.x].position.y = -gravDepth + floorHeight + -floorHeight * 4 * + particles[id.x].position.y = -gravDepth + floorHeight + headroom * pow(RandomValue(), max(1, heightExponent/(headroom*headroom))) + perlinNoise1D(RandomValue()*1024)*spacing/2; - const float3 f = flow(particles[id.x].position, n); - particles[id.x].position += f * (l * n); - const float density = d(particles[id.x].position); - particles[id.x].size = lerp(minimumSize, maximumSize, RandomValue() * n * density) * parabola(l, 2); - particles[id.x].color = HueTexture.SampleLevel(samplerHueTexture, float2(RandomValue(), 0.0f), 0.0f).rgb; + float noise; + const float3 flowDir = flow(particles[id.x].position, noise); + particles[id.x].position += flowDir * (lifetime * noise); + const float density = pow(d(particles[id.x].position) + .01, .25); + particles[id.x].size = lerp(minimumSize, maximumSize, saturate(RandomValue() * density)) * parabola(lifetime, 2); + particles[id.x].color = HueTexture.SampleLevel(samplerHueTexture, float2(RandomValue(), 0.0f), 0.0f).rgb * density; } \ No newline at end of file diff --git a/Assets/Shaders/Compute/Stardust/Stardust.cs b/Assets/Shaders/Compute/Stardust/Stardust.cs index e5d9ac1f8..991bc7ce2 100644 --- a/Assets/Shaders/Compute/Stardust/Stardust.cs +++ b/Assets/Shaders/Compute/Stardust/Stardust.cs @@ -122,7 +122,7 @@ public class Stardust : MonoBehaviour ParticleCalculation.SetTexture(_updateParticlesKernel, "_NebulaTint", NebulaTint); ParticleCalculation.SetFloat("_NebulaFillDensity", Settings.DefaultEnvironment.Nebula.FillDensity); - ParticleCalculation.SetFloat("_SafetyDistance", Settings.DefaultEnvironment.Nebula.FillDistance); + ParticleCalculation.SetFloat("_SafetyDistance", Settings.DefaultEnvironment.Nebula.SafetyDistance); ParticleCalculation.SetFloat("_NebulaFloorDensity", Settings.DefaultEnvironment.Nebula.FloorDensity); ParticleCalculation.SetFloat("_NebulaPatchDensity", Settings.DefaultEnvironment.Nebula.PatchDensity); ParticleCalculation.SetFloat("_NebulaFloorOffset", Settings.DefaultEnvironment.Nebula.FloorOffset); diff --git a/Assets/Shaders/Compute/Stardust/Stardust.mat b/Assets/Shaders/Compute/Stardust/Stardust.mat index 2b43011b3..e474dc2db 100644 --- a/Assets/Shaders/Compute/Stardust/Stardust.mat +++ b/Assets/Shaders/Compute/Stardust/Stardust.mat @@ -60,8 +60,10 @@ Material: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 + - _DistanceIntensityExponent: 1 + - _DistanceSizeExponent: 0.1 - _DstBlend: 0 - - _EmissionGain: 0.103 + - _EmissionGain: 0.156 - _GlossMapScale: 1 - _Glossiness: 0.5 - _GlossyReflections: 1 diff --git a/Assets/Shaders/Compute/Stardust/Stardust.shader b/Assets/Shaders/Compute/Stardust/Stardust.shader index 9b105e8c3..9435f5acf 100644 --- a/Assets/Shaders/Compute/Stardust/Stardust.shader +++ b/Assets/Shaders/Compute/Stardust/Stardust.shader @@ -2,6 +2,8 @@ { Properties { [HDR] _TintColor("Tint Color", Color) = (0.5,0.5,0.5,0.5) + _DistanceSizeExponent("Distance Size Exponent", Float) = 1 + _DistanceIntensityExponent("Distance Intensity Exponent", Float) = 1 _EmissionGain("Emission Gain", Range(0, 1)) = 0.3 _Power("Power", Float) = 2 } @@ -31,6 +33,8 @@ float4 _TintColor; float _EmissionGain; float _Power; + float _DistanceSizeExponent; + float _DistanceIntensityExponent; struct v2f { @@ -54,14 +58,14 @@ float4 cameraSpacePosition = mul(UNITY_MATRIX_V, float4(worldPosition, 1.0f)); //cameraSpacePosition.w /= dist; - float3 quadPoint = float3(quadPoints[id].xy, 0.0f) * particles[inst].size * dist; + float3 quadPoint = float3(quadPoints[id].xy, 0.0f) * particles[inst].size * pow(dist, _DistanceSizeExponent) / pow(100, _DistanceSizeExponent); o.pos = mul(UNITY_MATRIX_P, cameraSpacePosition + float4(quadPoint, 0.0f)); //Shift coordinates for uvs o.uv = quadPoints[id] + 0.5f; //transfer color of particle and global tint to vertex - o.color = float4(particles[inst].color, 1) * _TintColor * 10000 / (dist * dist); + o.color = float4(particles[inst].color, 1) * _TintColor * pow(100, _DistanceIntensityExponent) / pow(dist, _DistanceIntensityExponent); o.screenPos = ComputeScreenPos(o.pos); return o; @@ -108,6 +112,8 @@ float4 _TintColor; float _EmissionGain; float _Power; + float _DistanceSizeExponent; + float _DistanceIntensityExponent; struct v2f { @@ -131,14 +137,14 @@ float4 cameraSpacePosition = mul(UNITY_MATRIX_V, float4(worldPosition, 1.0f)); //cameraSpacePosition.w /= dist; - float3 quadPoint = float3(quadPoints[id].xy, 0.0f) * particles[inst].size * dist; + float3 quadPoint = float3(quadPoints[id].xy, 0.0f) * particles[inst].size * pow(dist, _DistanceSizeExponent) / pow(100, _DistanceSizeExponent); o.pos = mul(UNITY_MATRIX_P, cameraSpacePosition + float4(quadPoint, 0.0f)); //Shift coordinates for uvs o.uv = quadPoints[id] + 0.5f; //transfer color of particle and global tint to vertex - o.color = float4(particles[inst].color * _TintColor.rgb, 10000 / (dist * dist)); + o.color = float4(particles[inst].color * _TintColor.rgb, pow(100, _DistanceIntensityExponent) / pow(dist, _DistanceIntensityExponent)); o.screenPos = ComputeScreenPos(o.pos); return o; diff --git a/Assets/Shaders/PackFloat.cginc b/Assets/Shaders/PackFloat.cginc new file mode 100644 index 000000000..e73fbc662 --- /dev/null +++ b/Assets/Shaders/PackFloat.cginc @@ -0,0 +1,15 @@ +float pack(float a, float b) +{ + uint aScaled = f32tof16(a); + uint bScaled = f32tof16(b); + uint abPacked = (aScaled << 16) | (bScaled & 0xFFFF); + return asfloat(abPacked); +} + +void unpack(float x, out float a, out float b) +{ + float inputFloat = x; + uint uintInput = asuint(inputFloat); + a = f16tof32(uintInput >> 16); + b = f16tof32(uintInput & 0xFFFF); +} \ No newline at end of file diff --git a/Assets/Plugins/PDTAA/Shaders/IncColor.cginc.meta b/Assets/Shaders/PackFloat.cginc.meta similarity index 71% rename from Assets/Plugins/PDTAA/Shaders/IncColor.cginc.meta rename to Assets/Shaders/PackFloat.cginc.meta index cac114ade..557672438 100644 --- a/Assets/Plugins/PDTAA/Shaders/IncColor.cginc.meta +++ b/Assets/Shaders/PackFloat.cginc.meta @@ -1,9 +1,10 @@ fileFormatVersion: 2 -guid: d12c7ae3d4350ec42adcdd8443cad1d8 +guid: d342b97c1770f0c478b32ff26bdba736 ShaderImporter: externalObjects: {} defaultTextures: [] nonModifiableTextures: [] + preprocessorOverride: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Shaders/Raymarching/VolumeRender.shader b/Assets/Shaders/Raymarching/VolumeRender.shader index cc6e47faa..a6e5b4fc2 100644 --- a/Assets/Shaders/Raymarching/VolumeRender.shader +++ b/Assets/Shaders/Raymarching/VolumeRender.shader @@ -111,7 +111,7 @@ return o; } - void computeCamera( in float2 q, out float3 rayOrigin, out float3 rd ) + void computeCamera( in float2 q, out float3 rayOrigin, out float3 rayDirection ) { rayOrigin = _WorldSpaceCameraPos; @@ -119,7 +119,7 @@ float4 d = mul(_CamProj, float4(p, 0, 1)); d.xyz /= d.w; //rd = (d - rayOrigin); - rd = normalize(d - rayOrigin); + rayDirection = normalize(d - rayOrigin); rayOrigin = d; //rayOrigin += _ProjectionParams.y * rd; } diff --git a/Assets/Shaders/Volumetric.cginc b/Assets/Shaders/Volumetric.cginc index dc155f86b..a58eb6c61 100644 --- a/Assets/Shaders/Volumetric.cginc +++ b/Assets/Shaders/Volumetric.cginc @@ -51,7 +51,9 @@ uniform half _NebulaFillDensity, _NebulaFloorOffset, _NebulaFloorBlend, _NebulaPatchBlend, + _NebulaLuminance, _TintExponent, + _TintLodExponent, _NoiseScale, _NoiseExponent, _NoiseAmplitude, @@ -65,12 +67,32 @@ uniform half _NebulaFillDensity, float tri(in float x){return abs(frac(x)-.5);} float3 tri3(in float3 p){return float3( tri(p.z+tri(p.y*1.)), tri(p.z+tri(p.x*1.)), tri(p.y+tri(p.x*1.)));} +// float tri3l(in float3 p) +// { +// float z=1.4; +// float rz = 0.; +// float3 bp = p; +// for (float i=0.; i<=4.; i++ ) +// { +// float3 dg = tri3(bp * 2.); +// p = (p + dg + _Time.y * _NoiseSpeed); +// +// bp *= 1.8; +// z *= 1.5; +// p *= 1.2; +// +// return (tri(p.z+tri(p.x+tri(p.y))))/2; +// bp += 0.14; +// } +// return rz; +// } + float triNoise3d(in float3 p) { float z=1.4; - float rz = 0.; + float rz = 0.001; float3 bp = p; - for (float i=0.; i<=2.; i++ ) + for (float i=0.; i<=1.; i++ ) { float3 dg = tri3(bp * 2.); p += dg + _Time.y * _NoiseSpeed; @@ -151,37 +173,41 @@ float3 calcNormal( float3 p ) // for function f(p) float3 flow(float3 pos, out float noise) { - //float2 uv = -(pos.xz-_GridTransform.xy)/_GridTransform.z + float2(.5,.5); - //normal = calcNormal(pos); - //return normalize(float3(-normal.x,0,-normal.z)) * _TurbulenceAmplitude; const float4 noiseSample1 = Value3D_Deriv( pos / _FlowScale - float3(0,_FlowScroll,0) ); - const float4 noiseSample2 = Value3D_Deriv( (pos / _FlowScale - float3(0,_FlowScroll,0)) / 1.61803398875 ); // make it golden + const float4 noiseSample2 = Value3D_Deriv( pos / (_FlowScale * 1.61803398875) - float3(0,_FlowScroll,0) ); // make it golden noise = noiseSample1.x; return cross(normalize(noiseSample2.yzw), normalize(noiseSample1.yzw)) * _FlowAmplitude; - //return BitangentNoise3D(pos / _FlowScale - float3(0,_FlowScroll,0)) * _FlowAmplitude; } +float tri2(in float x){return 1-2*abs(frac(x)-.5);} + float d(float3 pos) { float noise; const float3 fl = flow(pos, noise); const float lerp1 = frac(_Time.x * _FlowSpeed + noise); - const float lerp2 = frac(_Time.x * _FlowSpeed + noise + .5); - const float noise1 = pow(triNoise3d((pos+fl * lerp1) / _NoiseScale),_NoiseExponent) * _NoiseAmplitude * parabola(lerp1, 2); - const float noise2 = pow(triNoise3d((pos+fl * lerp2) / _NoiseScale),_NoiseExponent) * _NoiseAmplitude * parabola(lerp2, 2); + const float lerp2 = frac(_Time.x * _FlowSpeed + .5 + noise); + const float noise1 = pow(triNoise3d((pos+fl * lerp1) / _NoiseScale),_NoiseExponent) * _NoiseAmplitude * tri2(lerp1); + const float noise2 = pow(triNoise3d((pos+fl * lerp2) / _NoiseScale),_NoiseExponent) * _NoiseAmplitude * tri2(lerp2); pos.y += (noise1 + noise2); + const float lerp3 = frac(_Time.x * _FlowSpeed * 2); + const float lerp4 = frac(_Time.x * _FlowSpeed * 2 + .5); + const float noise3 = pow(triNoise3d((pos-fl * lerp3) / _NoiseScale * 2), _NoiseExponent) * _NoiseAmplitude * tri2(lerp3) / 2; + const float noise4 = pow(triNoise3d((pos-fl * lerp4) / _NoiseScale * 2), _NoiseExponent) * _NoiseAmplitude * tri2(lerp4) / 2; + pos.y -= (noise3 + noise4); return f(pos); } float4 VolumeSampleColor(float3 pos) { - float2 uv = -(pos.xz-_GridTransform.xy)/_GridTransform.z + float2(.5,.5); float density = d(pos); - float3 tint = tex2Dlod(_NebulaTint, float4(uv.x, uv.y, 0, 1 / pow(density, .25))); + float clampedDensity = max(.01,density); + float2 uv = -(pos.xz-_GridTransform.xy)/_GridTransform.z + float2(.5,.5); + float3 tint = tex2Dlod(_NebulaTint, float4(uv.x, uv.y, 0, 1 / pow(clampedDensity, _TintLodExponent))); //float2 tintGrad = tintGradient(pos, uv, 1 / pow(density, .25), tint); //float3 tintNormal = normalize(float3(tintGrad.x, 0, tintGrad.y)); //tint *= abs(dot(normal, float3(0,-1,0))); // pow(abs(1-density), _TintExponent) - const float albedo = smoothstep(0,-250,pos.y) * pow(1/max(.01,density), _TintExponent); + const float albedo = smoothstep(0,-250,pos.y) * pow(1/clampedDensity, _TintExponent) * _NebulaLuminance; return float4(albedo*tint, density); } diff --git a/Assets/Wwise/API/CHANGELOG.md b/Assets/Wwise/API/CHANGELOG.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/Assets/Wwise/API/Editor/AK.Wwise.Unity.API.Editor.asmdef b/Assets/Wwise/API/Editor/AK.Wwise.Unity.API.Editor.asmdef deleted file mode 100644 index d895096f1..000000000 --- a/Assets/Wwise/API/Editor/AK.Wwise.Unity.API.Editor.asmdef +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "AK.Wwise.Unity.API.Editor", - "references": [ - "AK.Wwise.Unity.API", - "AK.Wwise.Unity.API.WwiseTypes", - "AK.Wwise.Unity.MonoBehaviour", - "Ak.Wwise.Api.WAAPI" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/AK.Wwise.Unity.API.Editor.asmdef.meta b/Assets/Wwise/API/Editor/AK.Wwise.Unity.API.Editor.asmdef.meta deleted file mode 100644 index 806dbab8a..000000000 --- a/Assets/Wwise/API/Editor/AK.Wwise.Unity.API.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3f1361d532510084ab0640363407119c -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/AkPluginActivator.cs b/Assets/Wwise/API/Editor/AkPluginActivator.cs deleted file mode 100644 index dc4c37f39..000000000 --- a/Assets/Wwise/API/Editor/AkPluginActivator.cs +++ /dev/null @@ -1,1115 +0,0 @@ -#if UNITY_EDITOR -using System.Collections.Generic; - -[UnityEditor.InitializeOnLoad] -public class AkPluginActivator -{ - public const string ALL_PLATFORMS = "All"; - public const string CONFIG_DEBUG = "Debug"; - public const string CONFIG_PROFILE = "Profile"; - public const string CONFIG_RELEASE = "Release"; - - private const string EditorConfiguration = CONFIG_PROFILE; - - private const string MENU_PATH = "Assets/Wwise/Activate Plugins/"; - private const UnityEditor.BuildTarget INVALID_BUILD_TARGET = (UnityEditor.BuildTarget)(-1); - - private const string WwisePluginFolder = "Runtime/Plugins"; - - // The following check is required until "BuildTarget.Switch" is available on all versions of Unity that we support. - private static readonly UnityEditor.BuildTarget SwitchBuildTarget = GetPlatformBuildTarget("Switch"); - - private static readonly System.Collections.Generic.Dictionary s_LastParsed = - new System.Collections.Generic.Dictionary(); - - private static readonly System.Collections.Generic.Dictionary> - s_PerPlatformPlugins = new System.Collections.Generic.Dictionary>(); - - private static readonly System.Collections.Generic.HashSet builtInPluginIDs = - new System.Collections.Generic.HashSet - { - PluginID.AkCompressor, - PluginID.AkDelay, - PluginID.AkExpander, - PluginID.AkGain, - PluginID.AkMatrixReverb, - PluginID.AkMeter, - PluginID.AkParametricEQ, - PluginID.AkPeakLimiter, - PluginID.AkRoomVerb, -#if !UNITY_2018_3_OR_NEWER - PluginID.VitaReverb, - PluginID.VitaCompressor, - PluginID.VitaDelay, - PluginID.VitaDistortion, - PluginID.VitaEQ, -#endif - }; - - private static readonly System.Collections.Generic.HashSet alwaysSkipPluginsIDs = - new System.Collections.Generic.HashSet - { - PluginID.SineGenerator, - PluginID.SinkAuxiliary, - PluginID.SinkCommunication, - PluginID.SinkControllerHeadphones, - PluginID.SinkControllerSpeaker, - PluginID.SinkDVRByPass, - PluginID.SinkNoOutput, - PluginID.SinkSystem, - PluginID.ToneGenerator, - PluginID.WwiseSilence, - PluginID.AkAudioInput, - }; - - private static readonly System.Collections.Generic.Dictionary PluginIDToStaticLibName = - new System.Collections.Generic.Dictionary - { - { PluginID.AkAudioInput, "AkAudioInputSource" }, - { PluginID.AkCompressor, "AkCompressorFX" }, - { PluginID.AkConvolutionReverb, "AkConvolutionReverbFX" }, - { PluginID.AkDelay, "AkDelayFX" }, - { PluginID.AkExpander, "AkExpanderFX" }, - { PluginID.AkFlanger, "AkFlangerFX" }, - { PluginID.AkGain, "AkGainFX" }, - { PluginID.AkGuitarDistortion, "AkGuitarDistortionFX" }, - { PluginID.AkHarmonizer, "AkHarmonizerFX" }, - { PluginID.AkMatrixReverb, "AkMatrixReverbFX" }, - { PluginID.AkMeter, "AkMeterFX" }, - { PluginID.AkMotionSink, "AkMotionSink" }, - { PluginID.AkMotionSource, "AkMotionSourceSource" }, - { PluginID.AkMotionGeneratorSource, "AkMotionGeneratorSource" }, - { PluginID.AkParametricEQ, "AkParametricEQFX" }, - { PluginID.AkPeakLimiter, "AkPeakLimiterFX" }, - { PluginID.AkPitchShifter, "AkPitchShifterFX" }, - { PluginID.AkRecorder, "AkRecorderFX" }, - { PluginID.AkReflect, "AkReflectFX" }, - { PluginID.AkRoomVerb, "AkRoomVerbFX" }, - { PluginID.AkSoundSeedGrain, "AkSoundSeedGrainSource" }, - { PluginID.AkSoundSeedImpact, "AkSoundSeedImpactFX" }, - { PluginID.AkSoundSeedWind, "AkSoundSeedWindSource" }, - { PluginID.AkSoundSeedWoosh, "AkSoundSeedWooshSource" }, - { PluginID.AkStereoDelay, "AkStereoDelayFX" }, - { PluginID.AkSynthOne, "AkSynthOneSource" }, - { PluginID.AkTimeStretch, "AkTimeStretchFX" }, - { PluginID.AkTremolo, "AkTremoloFX" }, - { PluginID.AuroHeadphone, "AuroHeadphoneFX" }, - { PluginID.CrankcaseAudioREVModelPlayer, "CrankcaseAudioREVModelPlayerFX" }, - { PluginID.iZHybridReverb, "iZHybridReverbFX" }, - { PluginID.iZTrashBoxModeler, "iZTrashBoxModelerFX" }, - { PluginID.iZTrashDelay, "iZTrashDelayFX" }, - { PluginID.iZTrashDistortion, "iZTrashDistortionFX" }, - { PluginID.iZTrashDynamics, "iZTrashDynamicsFX" }, - { PluginID.iZTrashFilters, "iZTrashFiltersFX" }, - { PluginID.iZTrashMultibandDistortion, "iZTrashMultibandDistortionFX" }, - { PluginID.MasteringSuite, "MasteringSuiteFX" }, - { PluginID.McDSPFutzBox, "McDSPFutzBoxFX" }, - { PluginID.McDSPLimiter, "McDSPLimiterFX" }, - { PluginID.ResonanceAudioRenderer, "ResonanceAudioFX" }, - { PluginID.ResonanceAudioRoomEffect, "ResonanceAudioFX" }, - { PluginID.IgniterLive, "IgniterLiveSource" }, - { PluginID.IgniterLiveSynth, "IgniterLiveSource" } - }; - - // Support libraries are DLLs that do not have an associated Wwise plug-in ID; they are meant to be loaded manually by the application - private static readonly System.Collections.Generic.List SupportLibraries = - new System.Collections.Generic.List - { - "AkVorbisHwAccelerator" - }; - - public delegate void FilterOutPlatformDelegate(UnityEditor.BuildTarget target, UnityEditor.PluginImporter pluginImporter, string pluginPlatform); - public static FilterOutPlatformDelegate FilterOutPlatformIfNeeded = FilterOutPlatformIfNeeded_Default; - - static AkPluginActivator() - { - ActivatePluginsForEditor(); - } - - // Use reflection because projects that were created in Unity 4 won't have the CurrentPluginConfig field - public static string GetCurrentConfig() - { - var CurrentPluginConfigField = typeof(AkWwiseProjectData).GetField("CurrentPluginConfig"); - var CurrentConfig = string.Empty; - var data = AkWwiseProjectInfo.GetData(); - - if (CurrentPluginConfigField != null && data != null) - { - CurrentConfig = (string)CurrentPluginConfigField.GetValue(data); - } - - if (string.IsNullOrEmpty(CurrentConfig)) - { - CurrentConfig = CONFIG_PROFILE; - } - - return CurrentConfig; - } - - private static void SetCurrentConfig(string config) - { - var CurrentPluginConfigField = typeof(AkWwiseProjectData).GetField("CurrentPluginConfig"); - var data = AkWwiseProjectInfo.GetData(); - if (CurrentPluginConfigField != null) - { - CurrentPluginConfigField.SetValue(data, config); - UnityEngine.Debug.LogFormat("WwiseUnity: Changed plugin configuration for game runtime to {0}", config); - } - - UnityEditor.EditorUtility.SetDirty(AkWwiseProjectInfo.GetData()); - } - - private static void ActivateConfig(string config) - { - SetCurrentConfig(config); - CheckMenuItems(config); - } - - [UnityEditor.MenuItem(MENU_PATH + CONFIG_DEBUG)] - public static void ActivateDebug() - { - ActivateConfig(CONFIG_DEBUG); - } - - [UnityEditor.MenuItem(MENU_PATH + CONFIG_PROFILE)] - public static void ActivateProfile() - { - ActivateConfig(CONFIG_PROFILE); - } - - [UnityEditor.MenuItem(MENU_PATH + CONFIG_RELEASE)] - public static void ActivateRelease() - { - ActivateConfig(CONFIG_RELEASE); - } - - private static UnityEditor.BuildTarget GetPlatformBuildTarget(string platform) - { - var targets = System.Enum.GetNames(typeof(UnityEditor.BuildTarget)); - var values = System.Enum.GetValues(typeof(UnityEditor.BuildTarget)); - - for (var ii = 0; ii < targets.Length; ++ii) - { - if (platform.Equals(targets[ii])) - return (UnityEditor.BuildTarget)values.GetValue(ii); - } - - return INVALID_BUILD_TARGET; - } - - public static Dictionary BuildTargetToPlatformName = new Dictionary(); - - // returns the name of the folder that contains plugins for a specific target - private static string GetPluginDeploymentPlatformName(UnityEditor.BuildTarget target) - { - if (BuildTargetToPlatformName.ContainsKey(target)) - { - return BuildTargetToPlatformName[target]; - } - return target.ToString(); - } - - private static string[] GetPluginInfoFromPath(string path) - { - var indexOfPluginFolder = path.IndexOf(WwisePluginFolder, System.StringComparison.OrdinalIgnoreCase); - if (indexOfPluginFolder == -1) - { - return null; - } - - return path.Substring(indexOfPluginFolder + WwisePluginFolder.Length + 1).Split('/'); - } - - private static void SetupStaticPluginRegistration(UnityEditor.BuildTarget target) - { - if (!RequiresStaticPluginRegistration(target)) - return; - - string deploymentTargetName = GetPluginDeploymentPlatformName(target); - - var staticPluginRegistration = new StaticPluginRegistration(target); - var importers = UnityEditor.PluginImporter.GetAllImporters(); - foreach (var pluginImporter in importers) - { - var splitPath = GetPluginInfoFromPath(pluginImporter.assetPath); - if (splitPath == null) - { - continue; - } - - var pluginPlatform = splitPath[0]; - if (pluginPlatform != deploymentTargetName) - continue; - - var pluginConfig = string.Empty; - - switch (pluginPlatform) - { - case "iOS": - case "tvOS": - pluginConfig = splitPath[1]; - break; - - case "Switch": - if (SwitchBuildTarget == INVALID_BUILD_TARGET) - continue; - - pluginConfig = splitPath[2]; - - var pluginArch = splitPath[1]; - if (pluginArch != "NX32" && pluginArch != "NX64") - { - UnityEngine.Debug.Log("WwiseUnity: Architecture not found: " + pluginArch); - continue; - } - break; - - default: - UnityEngine.Debug.Log("WwiseUnity: Unknown platform: " + pluginPlatform); - continue; - } - - if (pluginConfig != "DSP") - continue; - - if (!IsPluginUsed(pluginPlatform, System.IO.Path.GetFileNameWithoutExtension(pluginImporter.assetPath))) - continue; - - staticPluginRegistration.TryAddLibrary(pluginImporter.assetPath); - } - - System.Collections.Generic.HashSet plugins; - s_PerPlatformPlugins.TryGetValue(deploymentTargetName, out plugins); - var missingPlugins = staticPluginRegistration.GetMissingPlugins(plugins); - if (missingPlugins.Count == 0) - { - if (plugins == null) - UnityEngine.Debug.LogWarningFormat("WwiseUnity: The activated Wwise plug-ins may not be correct. Could not read PluginInfo.xml for platform: {0}", deploymentTargetName); - - staticPluginRegistration.TryWriteToFile(); - } - else - { - UnityEngine.Debug.LogErrorFormat( - "WwiseUnity: These plugins used by the Wwise project are missing from the Unity project: {0}. Please check folder Assets/Wwise/API/Runtime/Plugin/{1}.", - string.Join(", ", missingPlugins.ToArray()), deploymentTargetName); - } - } - - private static void SetStandalonePlatformData(UnityEditor.PluginImporter pluginImporter, string platformName, string architecture) - { - var isLinux = platformName == "Linux"; - var isWindows = platformName == "Windows"; - var isMac = platformName == "Mac"; - var isX86 = architecture == "x86"; - var isX64 = architecture == "x86_64"; - -#if !UNITY_2019_2_OR_NEWER - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.StandaloneLinux, "CPU", isLinux && isX86 ? "x86" : "None"); - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.StandaloneLinuxUniversal, "CPU", !isLinux ? "None" : isX86 ? "x86" : isX64 ? "x86_64" : "None"); -#endif - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.StandaloneLinux64, "CPU", isLinux && isX64 ? "x86_64" : "None"); - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.StandaloneWindows, "CPU", isWindows && isX86 ? "AnyCPU" : "None"); - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.StandaloneWindows64, "CPU", isWindows && isX64 ? "AnyCPU" : "None"); - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.StandaloneOSX, "CPU", isMac ? "AnyCPU" : "None"); - } - - public static void ActivatePluginsForDeployment(UnityEditor.BuildTarget target, bool Activate) - { - if (Activate) - { - SetupStaticPluginRegistration(target); - } - - var importers = UnityEditor.PluginImporter.GetAllImporters(); - foreach (var pluginImporter in importers) - { - var splitPath = GetPluginInfoFromPath(pluginImporter.assetPath); - if (splitPath == null) - { - continue; - } - - var pluginPlatform = splitPath[0]; - if (pluginPlatform != GetPluginDeploymentPlatformName(target)) - { - if (Activate) - { - FilterOutPlatformIfNeeded(target, pluginImporter, pluginPlatform); - } - - continue; - } - - var pluginName = splitPath[splitPath.Length - 1].Split('.')[0]; - var pluginArch = string.Empty; - var pluginConfig = string.Empty; - var bIsSupportLibrary = SupportLibraries.Contains(pluginName); - - switch (pluginPlatform) - { - case "iOS": - case "tvOS": - case "PS4": - case "PS5": - case "XboxOne": - case "Stadia": - case "XboxSeriesX": - case "XboxOneGC": - pluginConfig = splitPath[1]; - break; - - case "Android": - pluginArch = splitPath[1]; - pluginConfig = splitPath[2]; - - if (pluginArch == "armeabi-v7a") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.Android, "CPU", "ARMv7"); - } - else if (pluginArch == "arm64-v8a") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.Android, "CPU", "ARM64"); - } - else if (pluginArch == "x86") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.Android, "CPU", "x86"); - } - else - { - UnityEngine.Debug.Log("WwiseUnity: Architecture not found: " + pluginArch); - } - break; - - case "Linux": - pluginArch = splitPath[1]; - pluginConfig = splitPath[2]; - - if (pluginArch != "x86" && pluginArch != "x86_64") - { - UnityEngine.Debug.Log("WwiseUnity: Architecture not found: " + pluginArch); - continue; - } - SetStandalonePlatformData(pluginImporter, pluginPlatform, pluginArch); - break; - - case "Mac": - pluginConfig = splitPath[1]; - SetStandalonePlatformData(pluginImporter, pluginPlatform, pluginArch); - break; - - case "WSA": - pluginArch = splitPath[1]; - pluginConfig = splitPath[2]; - - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.WSAPlayer, "SDK", "AnySDK"); - - if (pluginArch == "WSA_UWP_Win32") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.WSAPlayer, "CPU", "X86"); - } - else if (pluginArch == "WSA_UWP_x64") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.WSAPlayer, "CPU", "X64"); - } - else if (pluginArch == "WSA_UWP_ARM") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.WSAPlayer, "CPU", "ARM"); - } - else if (pluginArch == "WSA_UWP_ARM64") - { - pluginImporter.SetPlatformData(UnityEditor.BuildTarget.WSAPlayer, "CPU", "ARM64"); - } - break; - - case "Windows": - pluginArch = splitPath[1]; - pluginConfig = splitPath[2]; - - if (pluginArch != "x86" && pluginArch != "x86_64") - { - UnityEngine.Debug.Log("WwiseUnity: Architecture not found: " + pluginArch); - continue; - } - SetStandalonePlatformData(pluginImporter, pluginPlatform, pluginArch); - break; - - case "Switch": - pluginArch = splitPath[1]; - pluginConfig = splitPath[2]; - - if (SwitchBuildTarget == INVALID_BUILD_TARGET) - { - continue; - } - - if (pluginArch != "NX32" && pluginArch != "NX64") - { - UnityEngine.Debug.Log("WwiseUnity: Architecture not found: " + pluginArch); - continue; - } - break; - - default: - UnityEngine.Debug.Log("WwiseUnity: Unknown platform: " + pluginPlatform); - continue; - } - - var AssetChanged = false; - if (pluginImporter.GetCompatibleWithAnyPlatform()) - { - pluginImporter.SetCompatibleWithAnyPlatform(false); - AssetChanged = true; - } - - var bActivate = true; - if (pluginConfig == "DSP") - { - if (!bIsSupportLibrary && !IsPluginUsed(pluginPlatform, System.IO.Path.GetFileNameWithoutExtension(pluginImporter.assetPath))) - { - bActivate = false; - } - } - else if (pluginConfig != GetCurrentConfig()) - { - bActivate = false; - } - - bool isCompatibleWithPlatform = bActivate && Activate; - if (!bActivate && target == UnityEditor.BuildTarget.WSAPlayer) - { - AssetChanged = true; - } - else - { - AssetChanged |= pluginImporter.GetCompatibleWithPlatform(target) != isCompatibleWithPlatform; - } - - pluginImporter.SetCompatibleWithPlatform(target, isCompatibleWithPlatform); - - if (AssetChanged) - { - pluginImporter.SaveAndReimport(); - } - } - } - - private static void FilterOutPlatformIfNeeded_Default(UnityEditor.BuildTarget target, UnityEditor.PluginImporter pluginImporter, string pluginPlatform) - { - } - - public static void ActivatePluginsForEditor() - { - var importers = UnityEditor.PluginImporter.GetAllImporters(); - var ChangedSomeAssets = false; - - foreach (var pluginImporter in importers) - { - var splitPath = GetPluginInfoFromPath(pluginImporter.assetPath); - if (splitPath == null) - { - continue; - } - - var pluginPlatform = splitPath[0]; - var pluginConfig = string.Empty; - var editorCPU = string.Empty; - var editorOS = string.Empty; - - switch (pluginPlatform) - { - case "Mac": - pluginConfig = splitPath[1]; - editorCPU = "AnyCPU"; - editorOS = "OSX"; - break; - - case "Windows": - editorCPU = splitPath[1]; - pluginConfig = splitPath[2]; - editorOS = "Windows"; - break; - } - - var AssetChanged = false; - if (pluginImporter.GetCompatibleWithAnyPlatform()) - { - pluginImporter.SetCompatibleWithAnyPlatform(false); - AssetChanged = true; - } - - var bActivate = false; - if (!string.IsNullOrEmpty(editorOS)) - { - if (pluginConfig == "DSP") - { - if (!s_PerPlatformPlugins.ContainsKey(pluginPlatform)) - { - continue; - } - - bActivate = IsPluginUsed(pluginPlatform, System.IO.Path.GetFileNameWithoutExtension(pluginImporter.assetPath)); - } - else - { - bActivate = pluginConfig == EditorConfiguration; - } - - if (bActivate) - { - pluginImporter.SetEditorData("CPU", editorCPU); - pluginImporter.SetEditorData("OS", editorOS); - } - } - - AssetChanged |= pluginImporter.GetCompatibleWithEditor() != bActivate; - pluginImporter.SetCompatibleWithEditor(bActivate); - - if (AssetChanged) - { - ChangedSomeAssets = true; - UnityEditor.AssetDatabase.ImportAsset(pluginImporter.assetPath); - } - } - - if (ChangedSomeAssets) - { - UnityEngine.Debug.Log("WwiseUnity: Plugins successfully activated for " + EditorConfiguration + " in Editor."); - } - } - - private static void CheckMenuItems(string config) - { - UnityEditor.Menu.SetChecked(MENU_PATH + CONFIG_DEBUG, config == CONFIG_DEBUG); - UnityEditor.Menu.SetChecked(MENU_PATH + CONFIG_PROFILE, config == CONFIG_PROFILE); - UnityEditor.Menu.SetChecked(MENU_PATH + CONFIG_RELEASE, config == CONFIG_RELEASE); - } - - public static void DeactivateAllPlugins() - { - var importers = UnityEditor.PluginImporter.GetAllImporters(); - - foreach (var pluginImporter in importers) - { - if (pluginImporter.assetPath.IndexOf(WwisePluginFolder, System.StringComparison.OrdinalIgnoreCase) == -1) - { - continue; - } - - pluginImporter.SetCompatibleWithAnyPlatform(false); - UnityEditor.AssetDatabase.ImportAsset(pluginImporter.assetPath); - } - } - - public static bool IsPluginUsed(string in_UnityPlatform, string in_PluginName) - { - // For WSA, we use the plugin info for Windows, since they share banks. Same for tvOS vs iOS. - var pluginDSPPlatform = in_UnityPlatform; - switch (pluginDSPPlatform) - { - case "WSA": - pluginDSPPlatform = "Windows"; - break; - case "tvOS": - pluginDSPPlatform = "iOS"; - break; - } - - if (!s_PerPlatformPlugins.ContainsKey(pluginDSPPlatform)) - { - return false; //XML not parsed, don't touch anything. - } - - if (in_PluginName.Contains("AkSoundEngine")) - { - return true; - } - - var pluginName = in_PluginName; - if (in_PluginName.StartsWith("lib")) - { - pluginName = in_PluginName.Substring(3); - } - - int indexOfFactory = in_PluginName.IndexOf("Factory"); - if (indexOfFactory != -1) - { - pluginName = in_PluginName.Substring(0, indexOfFactory); - } - - System.Collections.Generic.HashSet plugins; - if (s_PerPlatformPlugins.TryGetValue(pluginDSPPlatform, out plugins)) - { - if (in_UnityPlatform != "iOS" && in_UnityPlatform != "tvOS" && in_UnityPlatform != "Switch") - { - foreach (var pluginInfo in plugins) - { - if (pluginInfo.DllName == pluginName) - { - return true; - } - } - } - - //Exceptions - if (in_UnityPlatform == "iOS" && pluginName.Contains("AkiOSPlugins")) - { - return true; - } - - if (in_UnityPlatform == "tvOS" && pluginName.Contains("AktvOSPlugins")) - { - return true; - } - - if (in_UnityPlatform == "Switch" && pluginName.Contains("AkSwitchPlugins")) - { - return true; - } - - //iOS, tvOS, and Switch deal with the static libs directly, unlike all other platforms. - //Luckily the DLL name is always a subset of the lib name. - foreach (var pluginInfo in plugins) - { - if (pluginInfo.StaticLibName == pluginName) - { - return true; - } - } - } - - return false; - } - - public static void Update(bool forceUpdate = false) - { - //Gather all GeneratedSoundBanks folder from the project - var allPaths = AkUtilities.GetAllBankPaths(); - var bNeedRefresh = false; - var projectDir = AkBasePathGetter.GetWwiseProjectDirectory(); - var baseSoundBankPath = AkBasePathGetter.GetFullSoundBankPathEditor(); - - AkWwiseInitializationSettings.UpdatePlatforms(); - - //make a copy of the platform map and handle "special" custom platforms - var platformMap = new Dictionary>(); - foreach (var key in AkUtilities.PlatformMapping.Keys) - { - platformMap.Add(key, new List(AkUtilities.PlatformMapping[key])); - foreach (var customPF in AkUtilities.PlatformMapping[key]) - { - if (customPF != key && AkWwiseInitializationSettings.PlatformSettings.IsDistinctPlatform(customPF)) - { - platformMap.Add(customPF, new List { customPF }); - platformMap[key].Remove(customPF); - } - } - if (platformMap[key].Count==0) - { - platformMap.Remove(key); - } - } - - - //Go through all BasePlatforms - foreach (var pairPF in platformMap) - { - //Go through all custom platforms related to that base platform and check if any of the bank files were updated. - var bParse = forceUpdate; - var fullPaths = new System.Collections.Generic.List(); - foreach (var customPF in pairPF.Value) - { - string bankPath; - if (!allPaths.TryGetValue(customPF, out bankPath)) - continue; - - var pluginFile = ""; - try - { - pluginFile = System.IO.Path.Combine(projectDir, System.IO.Path.Combine(bankPath, "PluginInfo.xml")); - pluginFile = pluginFile.Replace('/', System.IO.Path.DirectorySeparatorChar); - if (!System.IO.File.Exists(pluginFile)) - { - //Try in StreamingAssets too. - pluginFile = System.IO.Path.Combine(System.IO.Path.Combine(baseSoundBankPath, customPF), "PluginInfo.xml"); - if (!System.IO.File.Exists(pluginFile)) - continue; - } - - fullPaths.Add(pluginFile); - - var t = System.IO.File.GetLastWriteTime(pluginFile); - var lastTime = System.DateTime.MinValue; - s_LastParsed.TryGetValue(customPF, out lastTime); - if (lastTime < t) - { - bParse = true; - s_LastParsed[customPF] = t; - } - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError("WwiseUnity: " + pluginFile + " could not be parsed. " + ex.Message); - } - } - - if (bParse) - { - var platform = pairPF.Key; - - var newDlls = ParsePluginsXML(platform, fullPaths); - System.Collections.Generic.HashSet oldDlls = null; - - //Remap base Wwise platforms to Unity platform folders names -#if !UNITY_2018_3_OR_NEWER - if (platform.Contains("Vita")) - { - platform = "Vita"; - } -#endif - //else other platforms already have the right name - - s_PerPlatformPlugins.TryGetValue(platform, out oldDlls); - s_PerPlatformPlugins[platform] = newDlls; - - //Check if there was any change. - if (!bNeedRefresh && oldDlls != null) - { - if (oldDlls.Count == newDlls.Count) - { - oldDlls.IntersectWith(newDlls); - } - - bNeedRefresh |= oldDlls.Count != newDlls.Count; - } - else - { - bNeedRefresh |= newDlls.Count > 0; - } - } - } - - if (bNeedRefresh) - { - ActivatePluginsForEditor(); - } - - var currentConfig = GetCurrentConfig(); - CheckMenuItems(currentConfig); - } - - private static System.Collections.Generic.HashSet ParsePluginsXML(string platform, - System.Collections.Generic.List in_pluginFiles) - { - var newPlugins = new System.Collections.Generic.HashSet(); - - foreach (var pluginFile in in_pluginFiles) - { - if (!System.IO.File.Exists(pluginFile)) - { - continue; - } - - try - { - var doc = new System.Xml.XmlDocument(); - doc.Load(pluginFile); - var Navigator = doc.CreateNavigator(); - var pluginInfoNode = Navigator.SelectSingleNode("//PluginInfo"); - var boolMotion = pluginInfoNode.GetAttribute("Motion", ""); - - var it = Navigator.Select("//Plugin"); - - if (boolMotion == "true") - { - AkPluginInfo motionPluginInfo = new AkPluginInfo(); - motionPluginInfo.DllName = "AkMotion"; - newPlugins.Add(motionPluginInfo); - } - - foreach (System.Xml.XPath.XPathNavigator node in it) - { - var rawPluginID = uint.Parse(node.GetAttribute("ID", "")); - if (rawPluginID == 0) - { - continue; - } - - PluginID pluginID = (PluginID)rawPluginID; - - if (alwaysSkipPluginsIDs.Contains(pluginID)) - { - continue; - } - - var dll = string.Empty; - - if (platform == "Switch") - { - if (pluginID == PluginID.AkMeter) - { - dll = "AkMeter"; - } - } - else if (builtInPluginIDs.Contains(pluginID)) - { - continue; - } - - if (string.IsNullOrEmpty(dll)) - { - dll = node.GetAttribute("DLL", ""); - } - - AkPluginInfo newPluginInfo = new AkPluginInfo(); - newPluginInfo.PluginID = rawPluginID; - newPluginInfo.DllName = dll; - - if (!PluginIDToStaticLibName.TryGetValue(pluginID, out newPluginInfo.StaticLibName)) - { - newPluginInfo.StaticLibName = dll; - } - - newPlugins.Add(newPluginInfo); - } - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError("WwiseUnity: " + pluginFile + " could not be parsed. " + ex.Message); - } - } - - return newPlugins; - } - - private static bool RequiresStaticPluginRegistration(UnityEditor.BuildTarget target) - { - return target == UnityEditor.BuildTarget.iOS || target == UnityEditor.BuildTarget.tvOS || target == SwitchBuildTarget; - } - - private class StaticPluginRegistration - { - private readonly System.Collections.Generic.HashSet FactoriesHeaderFilenames = - new System.Collections.Generic.HashSet(); - - private readonly UnityEditor.BuildTarget Target; - private bool Active; - - public StaticPluginRegistration(UnityEditor.BuildTarget target) - { - Target = target; - } - - public void TryAddLibrary(string AssetPath) - { - Active = true; - if (AssetPath.Contains(".a")) - { - //Extract the lib name, generate the registration code. - var begin = AssetPath.LastIndexOf('/') + 4; - var end = AssetPath.LastIndexOf('.') - begin; - var LibName = AssetPath.Substring(begin, end); //Remove the lib prefix and the .a extension - - if (!LibName.Contains("AkSoundEngine")) - { - string headerFilename = LibName + "Factory.h"; - - string fullPath = System.IO.Path.GetFullPath(AkUtilities.GetPathInPackage(WwisePluginFolder + GetWwisePluginRelativeDSPFolder() + headerFilename)); - - if (System.IO.File.Exists(fullPath)) - { - FactoriesHeaderFilenames.Add(headerFilename); - } - else - { - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Could not find '{0}', required for building plugin.", WwisePluginFolder + GetWwisePluginRelativeDSPFolder() + headerFilename); - } - } - } - else if (AssetPath.Contains("Factory.h")) - { - FactoriesHeaderFilenames.Add(System.IO.Path.GetFileName(AssetPath)); - } - } - - public void TryWriteToFile() - { - if (!Active) - return; - - string RelativePath; - string CppText; - - if (Target == UnityEditor.BuildTarget.iOS) - { - RelativePath = GetWwisePluginRelativeDSPFolder() + "AkiOSPlugins.cpp"; - CppText = "#define AK_IOS"; - } - else if (Target == UnityEditor.BuildTarget.tvOS) - { - RelativePath = GetWwisePluginRelativeDSPFolder() + "AktvOSPlugins.cpp"; - CppText = "#define AK_IOS"; - } - else if (Target == SwitchBuildTarget) - { - RelativePath = GetWwisePluginRelativeDSPFolder() + "AkSwitchPlugins.cpp"; - CppText = "#define AK_NX"; - } - else - return; - - CppText += @" -namespace AK { class PluginRegistration; }; -#define AK_STATIC_LINK_PLUGIN(_pluginName_) \ -extern AK::PluginRegistration _pluginName_##Registration; \ -void *_pluginName_##_fp = (void*)&_pluginName_##Registration; - -"; - - foreach (var filename in FactoriesHeaderFilenames) - { - CppText += "#include \"" + filename + "\"\n"; - } - - try - { - var FullPath = System.IO.Path.GetFullPath(AkUtilities.GetPathInPackage(WwisePluginFolder + RelativePath)); - System.IO.File.WriteAllText(FullPath, CppText); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Could not write <" + RelativePath + ">. Exception: " + e.Message); - return; - } - - UnityEditor.AssetDatabase.Refresh(); - } - - public System.Collections.Generic.List GetMissingPlugins(System.Collections.Generic.HashSet usedPlugins) - { - var pluginList = new System.Collections.Generic.List(); - if (usedPlugins == null) - return pluginList; - - foreach (var plugin in usedPlugins) - { - if (string.IsNullOrEmpty(plugin.StaticLibName)) - { - continue; - } - - string includeFilename = plugin.StaticLibName + "Factory.h"; - if (!FactoriesHeaderFilenames.Contains(includeFilename)) - { - pluginList.Add(plugin.StaticLibName); - } - } - - return pluginList; - } - - private string GetWwisePluginRelativeDSPFolder() - { - if (Target == UnityEditor.BuildTarget.iOS) - { - return "/iOS/DSP/"; - } - else if (Target == UnityEditor.BuildTarget.tvOS) - { - return "/tvOS/DSP/"; - } - else if (Target == SwitchBuildTarget) - { - return "/Switch/NX64/DSP/"; - } - - return string.Empty; - } - } - - private enum PluginID - { - // Built-in plugins - AkCompressor = 0x006C0003, //Wwise Compressor - AkDelay = 0x006A0003, //Delay - AkExpander = 0x006D0003, //Wwise Expander - AkGain = 0x008B0003, //Gain - AkMatrixReverb = 0x00730003, //Matrix Reverb - AkMeter = 0x00810003, //Wwise Meter - AkParametricEQ = 0x00690003, //Wwise Parametric EQ - AkPeakLimiter = 0x006E0003, //Wwise Peak Limiter - AkRoomVerb = 0x00760003, //Wwise RoomVerb - SineGenerator = 0x00640002, //Sine - SinkAuxiliary = 0xB40007, - SinkCommunication = 0xB00007, - SinkControllerHeadphones = 0xB10007, - SinkControllerSpeaker = 0xB30007, - SinkDVRByPass = 0xAF0007, - SinkNoOutput = 0xB50007, - SinkSystem = 0xAE0007, - ToneGenerator = 0x00660002, //Tone Generator - WwiseSilence = 0x00650002, //Wwise Silence -#if !UNITY_2018_3_OR_NEWER - VitaReverb = 0x008C0003, //Vita Reverb - VitaCompressor = 0x008D0003, //Vita Compressor - VitaDelay = 0x008E0003, //Vita Delay - VitaDistortion = 0x008F0003, //Vita Distortion - VitaEQ = 0x00900003, //Vita EQ -#endif - - // Static or DLL plugins - AkAudioInput = 0xC80002, - AkConvolutionReverb = 0x7F0003, - AkFlanger = 0x7D0003, - AkGuitarDistortion = 0x7E0003, - AkHarmonizer = 0x8A0003, - AkMotionSink = 0x1FB0007, - AkMotionSource = 0x1990002, - AkMotionGeneratorSource = 0x1950002, - AkPitchShifter = 0x880003, - AkRecorder = 0x840003, - AkReflect = 0xAB0003, - AkSoundSeedGrain = 0xB70002, - AkSoundSeedImpact = 0x740003, - AkSoundSeedWind = 0x770002, - AkSoundSeedWoosh = 0x780002, - AkStereoDelay = 0x870003, - AkSynthOne = 0x940002, - AkTimeStretch = 0x820003, - AkTremolo = 0x830003, - AuroHeadphone = 0x44C1073, - CrankcaseAudioREVModelPlayer = 0x1A01052, - iZHybridReverb = 0x21033, - iZTrashBoxModeler = 0x71033, - iZTrashDelay = 0x41033, - iZTrashDistortion = 0x31033, - iZTrashDynamics = 0x51033, - iZTrashFilters = 0x61033, - iZTrashMultibandDistortion = 0x91033, - MasteringSuite = 0xBA0003, - McDSPFutzBox = 0x6E1003, - McDSPLimiter = 0x671003, - ResonanceAudioRenderer = 0x641103, - ResonanceAudioRoomEffect = 0xC81106, - IgniterLive = 0x5110D2, - IgniterLiveSynth = 0x5210D2 - } - - private class AkPluginInfo - { - public uint PluginID; - public string DllName; - public string StaticLibName; - - public override int GetHashCode() - { - return PluginID.GetHashCode(); - } - - public override bool Equals(object obj) - { - return PluginID.Equals(obj); - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu.meta b/Assets/Wwise/API/Editor/WwiseMenu.meta deleted file mode 100644 index 3d62141eb..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 69bde7d45ecaab748b48ccfedecaba20 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common.meta b/Assets/Wwise/API/Editor/WwiseMenu/Common.meta deleted file mode 100644 index 99385e66b..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 26913be84cba5aa4d975a69312ac8022 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityBuilderBase.cs b/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityBuilderBase.cs deleted file mode 100644 index 37821bdfa..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityBuilderBase.cs +++ /dev/null @@ -1,128 +0,0 @@ -#if UNITY_EDITOR - -public class AkUnityIntegrationBuilderBase -{ - private readonly string m_progTitle = "WwiseUnity: Rebuilding Unity Integration Progress"; - protected string m_assetsDir = "Undefined"; - protected string m_assetsPluginsDir = "Undefined"; - protected string m_buildScriptDir = "Undefined"; - protected string m_buildScriptFile = "Undefined"; - protected string m_platform = "Undefined"; - protected string m_shell = "python"; - protected string m_wwiseSdkDir = ""; - - public AkUnityIntegrationBuilderBase() - { - var unityProjectRoot = System.IO.Directory.GetCurrentDirectory(); - m_assetsDir = System.IO.Path.Combine(unityProjectRoot, "Assets"); - m_assetsPluginsDir = System.IO.Path.Combine(m_assetsDir, "Plugins"); - m_buildScriptDir = - System.IO.Path.Combine(System.IO.Path.Combine(System.IO.Path.Combine(m_assetsDir, "Wwise"), "AkSoundEngine"), - "Common"); - m_buildScriptFile = "BuildWwiseUnityIntegration.py"; - } - - public void BuildByConfig(string config, string arch) - { - if (UnityEditor.EditorApplication.isPlaying) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Editor is in play mode. Stop playing any scenes and retry. Aborted."); - return; - } - - // Try to parse config to get Wwise location. - var configPath = System.IO.Path.Combine(m_buildScriptDir, "BuildWwiseUnityIntegration.json"); - var fi = new System.IO.FileInfo(configPath); - if (fi.Exists) - { - var msg = string.Format("WwiseUnity: Found preference file: {0}. Use build variables defined in it.", configPath); - UnityEngine.Debug.Log(msg); - } - else - { - var msg = string.Format("WwiseUnity: Preference file: {0} is unavailable. Need user input.", configPath); - UnityEngine.Debug.Log(msg); - - m_wwiseSdkDir = UnityEditor.EditorUtility.OpenFolderPanel("Choose Wwise SDK folder", ".", ""); - - var isUserCancelledBuild = m_wwiseSdkDir == ""; - if (isUserCancelledBuild) - { - UnityEngine.Debug.Log("WwiseUnity: User cancelled the build."); - return; - } - } - - if (!PreBuild()) - return; - - // On Windows, separate shell console window will open. When building is done, close the Window yourself if it stays active. Usually at the end you will see the last line says "Build succeeded" or "Build failed". - var progMsg = string.Format("WwiseUnity: Rebuilding Wwise Unity Integration for {0} ({1}) ...", m_platform, config); - UnityEngine.Debug.Log(progMsg); - - var start = new System.Diagnostics.ProcessStartInfo(); - start.FileName = m_shell; - - start.Arguments = GetProcessArgs(config, arch); - if (start.Arguments == "") - return; - start.UseShellExecute = false; - start.RedirectStandardOutput = true; - - UnityEditor.EditorUtility.DisplayProgressBar(m_progTitle, progMsg, 0.5f); - - using (var process = System.Diagnostics.Process.Start(start)) - { - using (var reader = process.StandardOutput) - { - process.WaitForExit(); - - try - { - //ExitCode throws InvalidOperationException if the process is hanging - - var isBuildSucceeded = process.ExitCode == 0; - if (isBuildSucceeded) - { - UnityEditor.EditorUtility.DisplayProgressBar(m_progTitle, progMsg, 1.0f); - UnityEngine.Debug.Log("WwiseUnity: Build succeeded. Check detailed logs under the Logs folder."); - } - else - UnityEngine.Debug.LogError("WwiseUnity: Build failed. Check detailed logs under the Logs folder."); - - UnityEditor.AssetDatabase.Refresh(); - - UnityEditor.EditorUtility.ClearProgressBar(); - } - catch (System.Exception ex) - { - UnityEditor.AssetDatabase.Refresh(); - - UnityEngine.Debug.LogError(string.Format( - "WwiseUnity: Build process failed with exception: {}. Check detailed logs under the Logs folder.", ex)); - UnityEditor.EditorUtility.ClearProgressBar(); - } - } - } - } - - protected virtual string GetProcessArgs(string config, string arch) - { - var scriptPath = System.IO.Path.Combine(m_buildScriptDir, m_buildScriptFile); - var args = string.Format("\"{0}\" -p {1} -c {2}", scriptPath, m_platform, config); - if (arch != null) - args += string.Format(" -a {0}", arch); - - if (m_wwiseSdkDir != "") - args += string.Format(" -w \"{0}\" -u", m_wwiseSdkDir); - - return args; - } - - protected virtual bool PreBuild() - { - return true; - } -} - -#endif // #if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs b/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs deleted file mode 100644 index fac454604..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs +++ /dev/null @@ -1,385 +0,0 @@ -#if UNITY_EDITOR -public class AkUnityAssetsInstaller -{ - public string[] m_arches = { }; - protected string m_assetsDir = UnityEngine.Application.dataPath; - protected System.Collections.Generic.List m_excludes = new System.Collections.Generic.List { ".meta" }; - protected string m_platform = "Undefined"; - protected string m_pluginDir = System.IO.Path.Combine(UnityEngine.Application.dataPath, "Plugins"); - - // Copy file to destination directory and create the directory when none exists. - public static bool CopyFileToDirectory(string srcFilePath, string destDir) - { - var fi = new System.IO.FileInfo(srcFilePath); - if (!fi.Exists) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to copy. Source is missing: {0}.", srcFilePath)); - return false; - } - - var di = new System.IO.DirectoryInfo(destDir); - - if (!di.Exists) - di.Create(); - - const bool IsToOverwrite = true; - try - { - fi.CopyTo(System.IO.Path.Combine(di.FullName, fi.Name), IsToOverwrite); - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Error during installation: {0}.", ex.Message)); - return false; - } - - return true; - } - - // Copy or overwrite destination file with source file. - public static bool OverwriteFile(string srcFilePath, string destFilePath) - { - var fi = new System.IO.FileInfo(srcFilePath); - if (!fi.Exists) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to overwrite. Source is missing: {0}.", srcFilePath)); - return false; - } - - var di = new System.IO.DirectoryInfo(System.IO.Path.GetDirectoryName(destFilePath)); - - if (!di.Exists) - di.Create(); - - const bool IsToOverwrite = true; - try - { - fi.CopyTo(destFilePath, IsToOverwrite); - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Error during installation: {0}.", ex.Message)); - return false; - } - - return true; - } - - // Move file to destination directory and create the directory when none exists. - public static void MoveFileToDirectory(string srcFilePath, string destDir) - { - var fi = new System.IO.FileInfo(srcFilePath); - if (!fi.Exists) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to move. Source is missing: {0}.", srcFilePath)); - return; - } - - var di = new System.IO.DirectoryInfo(destDir); - - if (!di.Exists) - di.Create(); - - var destFilePath = System.IO.Path.Combine(di.FullName, fi.Name); - try - { - fi.MoveTo(destFilePath); - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Error during installation: {0}.", ex.Message)); - } - } - - // Recursively copy a directory to its destination. - public static bool RecursiveCopyDirectory(System.IO.DirectoryInfo srcDir, System.IO.DirectoryInfo destDir, - System.Collections.Generic.List excludeExtensions = null) - { - if (!srcDir.Exists) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to copy. Source is missing: {0}.", srcDir)); - return false; - } - - if (!destDir.Exists) - destDir.Create(); - - // Copy all files. - var files = srcDir.GetFiles(); - foreach (var file in files) - { - if (excludeExtensions != null) - { - var fileExt = System.IO.Path.GetExtension(file.Name); - var isFileExcluded = false; - foreach (var ext in excludeExtensions) - { - if (fileExt.ToLower() == ext) - { - isFileExcluded = true; - break; - } - } - - if (isFileExcluded) - continue; - } - - const bool IsToOverwrite = true; - try - { - file.CopyTo(System.IO.Path.Combine(destDir.FullName, file.Name), IsToOverwrite); - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Error during installation: {0}.", ex.Message)); - return false; - } - } - - // Process subdirectories. - var dirs = srcDir.GetDirectories(); - foreach (var dir in dirs) - { - // Get destination directory. - var destFullPath = System.IO.Path.Combine(destDir.FullName, dir.Name); - - // Recurse - var isSuccess = RecursiveCopyDirectory(dir, new System.IO.DirectoryInfo(destFullPath), excludeExtensions); - if (!isSuccess) - return false; - } - - return true; - } -} - -public class AkUnityPluginInstallerBase : AkUnityAssetsInstaller -{ - private readonly string m_progTitle = "WwiseUnity: Plugin Installation Progress"; - - public bool InstallPluginByConfig(string config) - { - var pluginSrc = GetPluginSrcPathByConfig(config); - var pluginDest = GetPluginDestPath(""); - - var progMsg = string.Format("Installing plugin for {0} ({1}) from {2} to {3}.", m_platform, config, pluginSrc, - pluginDest); - UnityEditor.EditorUtility.DisplayProgressBar(m_progTitle, progMsg, 0.5f); - - var isSuccess = RecursiveCopyDirectory(new System.IO.DirectoryInfo(pluginSrc), - new System.IO.DirectoryInfo(pluginDest), m_excludes); - if (!isSuccess) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to install plugin for {0} ({1}) from {2} to {3}.", - m_platform, config, pluginSrc, pluginDest)); - UnityEditor.EditorUtility.ClearProgressBar(); - return false; - } - - UnityEditor.EditorUtility.DisplayProgressBar(m_progTitle, progMsg, 1.0f); - UnityEditor.AssetDatabase.Refresh(); - - UnityEditor.EditorUtility.ClearProgressBar(); - UnityEngine.Debug.Log(string.Format("WwiseUnity: Plugin for {0} {1} installed from {2} to {3}.", m_platform, config, - pluginSrc, pluginDest)); - - return true; - } - - public virtual bool InstallPluginByArchConfig(string arch, string config) - { - var pluginSrc = GetPluginSrcPathByArchConfig(arch, config); - var pluginDest = GetPluginDestPath(arch); - - var progMsg = string.Format("Installing plugin for {0} ({1}, {2}) from {3} to {4}.", m_platform, arch, config, - pluginSrc, pluginDest); - UnityEditor.EditorUtility.DisplayProgressBar(m_progTitle, progMsg, 0.5f); - - var isSuccess = RecursiveCopyDirectory(new System.IO.DirectoryInfo(pluginSrc), - new System.IO.DirectoryInfo(pluginDest), m_excludes); - if (!isSuccess) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to install plugin for {0} ({1}, {2}) from {3} to {4}.", - m_platform, arch, config, pluginSrc, pluginDest)); - UnityEditor.EditorUtility.ClearProgressBar(); - return false; - } - - UnityEditor.EditorUtility.DisplayProgressBar(m_progTitle, progMsg, 1.0f); - UnityEditor.AssetDatabase.Refresh(); - - UnityEditor.EditorUtility.ClearProgressBar(); - UnityEngine.Debug.Log(string.Format("WwiseUnity: Plugin for {0} {1} {2} installed from {3} to {4}.", m_platform, arch, - config, pluginSrc, pluginDest)); - - return true; - } - - protected string GetPluginSrcPathByConfig(string config) - { - return System.IO.Path.Combine( - System.IO.Path.Combine( - System.IO.Path.Combine(System.IO.Path.Combine(System.IO.Path.Combine(m_assetsDir, "Wwise"), "API", "Runtime"), - "Plugins"), m_platform), config); - } - - protected string GetPluginSrcPathByArchConfig(string arch, string config) - { - return System.IO.Path.Combine( - System.IO.Path.Combine( - System.IO.Path.Combine( - System.IO.Path.Combine(System.IO.Path.Combine(System.IO.Path.Combine(m_assetsDir, "Wwise"), "API", "Runtime"), - "Plugins"), m_platform), arch), config); - } - - protected virtual string GetPluginDestPath(string arch) - { - return m_pluginDir; - } -} - -public class AkUnityPluginInstallerMultiArchBase : AkUnityPluginInstallerBase -{ - protected override string GetPluginDestPath(string arch) - { - return System.IO.Path.Combine(System.IO.Path.Combine(m_pluginDir, m_platform), arch); - } -} - -public class AkDocHelper -{ - private static string m_WwiseVersionString = string.Empty; - - public static void OpenDoc(string platform) - { - if (m_WwiseVersionString == string.Empty) - { - var temp = AkSoundEngine.GetMajorMinorVersion(); - var temp2 = AkSoundEngine.GetSubminorBuildVersion(); - m_WwiseVersionString = (temp >> 16) + "." + (temp & 0xFFFF); - if (temp2 >> 16 != 0) - m_WwiseVersionString += "." + (temp2 >> 16); - - m_WwiseVersionString += "_" + (temp2 & 0xFFFF); - } - - var docUrl = "http://www.audiokinetic.com/library/" + m_WwiseVersionString + "/?source=Unity&id=main.html"; - var isConnected = false; - try - { - var request = (System.Net.HttpWebRequest) System.Net.WebRequest.Create("http://www.audiokinetic.com/robots.txt"); - request.Timeout = 1000; - request.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; - var response = (System.Net.HttpWebResponse) request.GetResponse(); - - isConnected = response.StatusCode == System.Net.HttpStatusCode.OK; - } - catch (System.Exception) - { - isConnected = false; - } - - if (!isConnected) - { - // Can't access audiokinetic.com, open local doc. - docUrl = GetLocalDocUrl(platform); - if (string.IsNullOrEmpty(docUrl)) - return; - } - - UnityEngine.Application.OpenURL(docUrl); - } - - private static string GetLocalDocUrl(string platform) - { - var docUrl = string.Empty; - var docPath = string.Empty; - var dataPath = UnityEngine.Application.dataPath; - -#if UNITY_EDITOR_WIN - var format = (platform == "Windows") - ? "{0}/Wwise/Documentation/{1}/en/WwiseUnityIntegrationHelp_en.chm" - : "{0}/Wwise/Documentation/{1}/en/WwiseUnityIntegrationHelp_{1}_en.chm"; - - docPath = string.Format(format, dataPath, platform); -#else - string DestPath = AkUtilities.GetFullPath(dataPath, "../WwiseUnityIntegrationHelp_en"); - docPath = string.Format ("{0}/html/index.html", DestPath); - if (!System.IO.File.Exists(docPath)) - UnzipHelp(DestPath); - - if (!System.IO.File.Exists(docPath)) - { - UnityEngine.Debug.Log("WwiseUnity: Unable to show documentation. Please unzip WwiseUnityIntegrationHelp_AppleCommon_en.zip manually."); - return string.Empty; - } -#endif - - var fi = new System.IO.FileInfo(docPath); - if (!fi.Exists) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to find documentation: {0}. Aborted.", docPath)); - return string.Empty; - } - - docUrl = string.Format("file:///{0}", docPath.Replace(" ", "%20")); - - return docUrl; - } - - public static void UnzipHelp(string DestPath) - { - // Start by extracting the zip, if it exists - var ZipPath = System.IO.Path.Combine( - System.IO.Path.Combine( - System.IO.Path.Combine( - System.IO.Path.Combine(System.IO.Path.Combine(UnityEngine.Application.dataPath, "Wwise"), "Documentation"), - "AppleCommon"), "en"), "WwiseUnityIntegrationHelp_en.zip"); - - if (System.IO.File.Exists(ZipPath)) - { - var start = new System.Diagnostics.ProcessStartInfo(); - start.FileName = "unzip"; - - start.Arguments = "\"" + ZipPath + "\" -d \"" + DestPath + "\""; - - start.UseShellExecute = true; - start.RedirectStandardOutput = false; - - var progMsg = "WwiseUnity: Unzipping documentation..."; - var progTitle = "Unzipping Wwise documentation"; - UnityEditor.EditorUtility.DisplayProgressBar(progTitle, progMsg, 0.5f); - - using (var process = System.Diagnostics.Process.Start(start)) - { - while (!process.WaitForExit(1000)) - System.Threading.Thread.Sleep(100); - try - { - //ExitCode throws InvalidOperationException if the process is hanging - var returnCode = process.ExitCode; - - var isBuildSucceeded = returnCode == 0; - if (isBuildSucceeded) - { - UnityEditor.EditorUtility.DisplayProgressBar(progTitle, progMsg, 1.0f); - UnityEngine.Debug.Log("WwiseUnity: Documentation extraction succeeded. "); - } - else - UnityEngine.Debug.LogError("WwiseUnity: Extraction failed."); - - UnityEditor.EditorUtility.ClearProgressBar(); - } - catch (System.Exception ex) - { - UnityEditor.EditorUtility.ClearProgressBar(); - UnityEngine.Debug.LogError(ex.ToString()); - UnityEditor.EditorUtility.ClearProgressBar(); - } - } - } - } -} - -#endif // #if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkWwiseIdConverter.cs b/Assets/Wwise/API/Editor/WwiseMenu/Common/AkWwiseIdConverter.cs deleted file mode 100644 index 084b4ed9d..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Common/AkWwiseIdConverter.cs +++ /dev/null @@ -1,63 +0,0 @@ -#if UNITY_EDITOR -internal static class AkWwiseIDConverter -{ - private static readonly string s_bankDir = UnityEngine.Application.dataPath; - - private static readonly string s_converterScript = System.IO.Path.Combine( - System.IO.Path.Combine(System.IO.Path.Combine(UnityEngine.Application.dataPath, "Wwise"), "Tools"), - "WwiseIDConverter.py"); - - private static readonly string s_progTitle = "WwiseUnity: Converting SoundBank IDs"; - - [UnityEditor.MenuItem("Assets/Wwise/Convert Wwise SoundBank IDs", false, (int) AkWwiseMenuOrder.ConvertIDs)] - public static void ConvertWwiseSoundBankIDs() - { - var bankIdHeaderPath = - UnityEditor.EditorUtility.OpenFilePanel("Choose Wwise SoundBank ID C++ header", s_bankDir, "h"); - if (string.IsNullOrEmpty(bankIdHeaderPath)) - { - UnityEngine.Debug.Log("WwiseUnity: User canceled the action."); - return; - } - - var start = new System.Diagnostics.ProcessStartInfo(); - start.FileName = "python"; - start.Arguments = string.Format("\"{0}\" \"{1}\"", s_converterScript, bankIdHeaderPath); - start.UseShellExecute = false; - start.RedirectStandardOutput = true; - - var progMsg = "WwiseUnity: Converting C++ SoundBank IDs into C# ..."; - UnityEditor.EditorUtility.DisplayProgressBar(s_progTitle, progMsg, 0.5f); - - using (var process = System.Diagnostics.Process.Start(start)) - { - process.WaitForExit(); - try - { - //ExitCode throws InvalidOperationException if the process is hanging - if (process.ExitCode == 0) - { - UnityEditor.EditorUtility.DisplayProgressBar(s_progTitle, progMsg, 1.0f); - UnityEngine.Debug.Log(string.Format( - "WwiseUnity: SoundBank ID conversion succeeded. Find generated Unity script under {0}.", s_bankDir)); - } - else - UnityEngine.Debug.LogError("WwiseUnity: Conversion failed."); - - UnityEditor.AssetDatabase.Refresh(); - } - catch (System.Exception ex) - { - UnityEditor.AssetDatabase.Refresh(); - - UnityEditor.EditorUtility.ClearProgressBar(); - UnityEngine.Debug.LogError(string.Format( - "WwiseUnity: SoundBank ID conversion process failed with exception: {}. Check detailed logs under the folder: Assets/Wwise/Logs.", - ex)); - } - - UnityEditor.EditorUtility.ClearProgressBar(); - } - } -} -#endif // #if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Mac.meta b/Assets/Wwise/API/Editor/WwiseMenu/Mac.meta deleted file mode 100644 index d16d665bb..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Mac.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 43676f33ae6eb964f8b08322c0b5f845 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Mac/AkWwiseMenu_Mac.cs b/Assets/Wwise/API/Editor/WwiseMenu/Mac/AkWwiseMenu_Mac.cs deleted file mode 100644 index da98684bb..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Mac/AkWwiseMenu_Mac.cs +++ /dev/null @@ -1,13 +0,0 @@ -#if UNITY_EDITOR -public class AkWwiseMenu_Mac -{ - private const string MENU_PATH = "Help/Wwise Help/"; - private const string Platform = "Mac"; - - [UnityEditor.MenuItem(MENU_PATH + Platform, false, (int) AkWwiseHelpOrder.WwiseHelpOrder)] - public static void OpenDoc() - { - AkDocHelper.OpenDoc(Platform); - } -} -#endif // #if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Mac/AkWwiseMenu_Mac.cs.meta b/Assets/Wwise/API/Editor/WwiseMenu/Mac/AkWwiseMenu_Mac.cs.meta deleted file mode 100644 index e1b595ad9..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Mac/AkWwiseMenu_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8be9f5b2f27bf6b4a863ada9a0cf0651 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Windows.meta b/Assets/Wwise/API/Editor/WwiseMenu/Windows.meta deleted file mode 100644 index 2b10655fa..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Windows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0cfd87c035b29fb4faedb9097b304c66 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs b/Assets/Wwise/API/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs deleted file mode 100644 index 3ce97ef6d..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs +++ /dev/null @@ -1,13 +0,0 @@ -#if UNITY_EDITOR -public class AkWwiseMenu_Windows -{ - private const string MENU_PATH = "Help/Wwise Help/"; - private const string Platform = "Windows"; - - [UnityEditor.MenuItem(MENU_PATH + Platform, false, (int) AkWwiseHelpOrder.WwiseHelpOrder)] - public static void OpenDoc() - { - AkDocHelper.OpenDoc(Platform); - } -} -#endif // #if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs.meta b/Assets/Wwise/API/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs.meta deleted file mode 100644 index a7208eb0b..000000000 --- a/Assets/Wwise/API/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 13699b1b1a4f1b04491d49457d840453 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes.meta b/Assets/Wwise/API/Editor/WwiseTypes.meta deleted file mode 100644 index 94d149246..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9dc14105c2a9e0c49a5b2207bcd80952 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/AcousticTextureDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/AcousticTextureDrawer.cs deleted file mode 100644 index b6acabce7..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/AcousticTextureDrawer.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(AcousticTexture))] - public class AcousticTextureDrawer : BaseTypeDrawer - { - protected override string GetComponentName(UnityEditor.SerializedProperty wwiseObjectReference) - { - var componentName = base.GetComponentName(wwiseObjectReference); - return string.IsNullOrEmpty(componentName) ? "None" : componentName; - } - - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AcousticTexture; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/AcousticTextureDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/AcousticTextureDrawer.cs.meta deleted file mode 100644 index 6121fb5ed..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/AcousticTextureDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0a36ba03468834a459e1a15f3ba50859 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/AuxBusDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/AuxBusDrawer.cs deleted file mode 100644 index 33ec1d32a..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/AuxBusDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(AuxBus))] - public class AuxBusDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AuxBus; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/AuxBusDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/AuxBusDrawer.cs.meta deleted file mode 100644 index bc1653437..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/AuxBusDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 73b3e876b5a417843b9d94156e3c43b8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/BankDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/BankDrawer.cs deleted file mode 100644 index 305389d67..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/BankDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(Bank))] - public class BankDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Soundbank; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/BankDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/BankDrawer.cs.meta deleted file mode 100644 index 18fccd1c4..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/BankDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d0552a3dcd819684e9c5f2d46e8ebccf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/BaseTypeDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/BaseTypeDrawer.cs deleted file mode 100644 index b5d451fdb..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/BaseTypeDrawer.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace AK.Wwise.Editor -{ - public abstract class BaseTypeDrawer : UnityEditor.PropertyDrawer - { - public override void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) - { - // Get unique control Id - int controlId = UnityEngine.GUIUtility.GetControlID(label, UnityEngine.FocusType.Passive); - UnityEditor.EditorGUI.BeginProperty(position, label, property); - - var wwiseObjectReference = property.FindPropertyRelative("WwiseObjectReference"); - HandleDragAndDrop(wwiseObjectReference, position); - - position = UnityEditor.EditorGUI.PrefixLabel(position, controlId, label); - - var style = new UnityEngine.GUIStyle(UnityEngine.GUI.skin.button); - style.alignment = UnityEngine.TextAnchor.MiddleLeft; - style.fontStyle = UnityEngine.FontStyle.Normal; - - var componentName = GetComponentName(wwiseObjectReference); - if (string.IsNullOrEmpty(componentName)) - { - componentName = "No " + WwiseObjectType + " is currently selected"; - style.normal.textColor = UnityEngine.Color.red; - } - - if (UnityEngine.GUI.Button(position, componentName, style)) - { - new AkWwiseComponentPicker.PickerCreator - { - objectType = WwiseObjectType, - wwiseObjectReference = wwiseObjectReference, - serializedObject = property.serializedObject, - //Current selected object - currentWwiseObjectReference = GetWwiseObjectReference(wwiseObjectReference), - //We're currently clicking focus windows must be the right - pickedSourceEditorWindow = UnityEditor.EditorWindow.focusedWindow, - //Useful to control event source - pickedSourceControlId = controlId, - pickerPosition = AkUtilities.GetLastRectAbsolute(position), - }; - } - - // Check picker window close event and we're in the right drawer instance using control ID - if (UnityEngine.Event.current.commandName == AkWwiseComponentPicker.PickerClosedEventName && - controlId == AkWwiseComponentPicker.GetObjectPickerControlID()) - { - var oldValue = GetWwiseObjectReference(wwiseObjectReference); - var newValue = AkWwiseComponentPicker.GetObjectPickerObjectReference(); - - if (oldValue != newValue) - { - // Serialized object updating - wwiseObjectReference.serializedObject.Update(); - SetSerializedObject(wwiseObjectReference, newValue); - wwiseObjectReference.serializedObject.ApplyModifiedProperties(); - - // Force GUI modification, to send back to the base component drawer - UnityEngine.GUI.changed = true; - } - } - - UnityEditor.EditorGUI.EndProperty(); - } - - protected abstract WwiseObjectType WwiseObjectType { get; } - - protected virtual string GetComponentName(UnityEditor.SerializedProperty wwiseObjectReference) - { - var reference = wwiseObjectReference.objectReferenceValue as WwiseObjectReference; - return reference ? reference.DisplayName : string.Empty; - } - - // These are to be able use other type instead of WwiseObjectReference - protected virtual WwiseObjectReference GetWwiseObjectReference(UnityEditor.SerializedProperty serializedProperty) - { - return serializedProperty.objectReferenceValue as WwiseObjectReference; - } - - protected virtual void SetSerializedObject(UnityEditor.SerializedProperty serializedProperty, WwiseObjectReference wwiseObjectReference) - { - serializedProperty.objectReferenceValue = wwiseObjectReference; - } - - private void HandleDragAndDrop(UnityEditor.SerializedProperty wwiseObjectReference, UnityEngine.Rect dropArea) - { - var currentEvent = UnityEngine.Event.current; - if (!dropArea.Contains(currentEvent.mousePosition)) - return; - - if (currentEvent.type != UnityEngine.EventType.DragUpdated && currentEvent.type != UnityEngine.EventType.DragPerform) - return; - - var reference = AkWwiseTypes.DragAndDropObjectReference; - if (reference != null && reference.WwiseObjectType != WwiseObjectType) - reference = null; - - UnityEditor.DragAndDrop.visualMode = reference != null ? UnityEditor.DragAndDropVisualMode.Link : UnityEditor.DragAndDropVisualMode.Rejected; - - if (currentEvent.type == UnityEngine.EventType.DragPerform) - { - UnityEditor.DragAndDrop.AcceptDrag(); - - if (reference != null) - { - SetSerializedObject(wwiseObjectReference, reference); - } - - UnityEditor.DragAndDrop.PrepareStartDrag(); - UnityEngine.GUIUtility.hotControl = 0; - } - - currentEvent.Use(); - } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/BaseTypeDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/BaseTypeDrawer.cs.meta deleted file mode 100644 index 29a73fe0e..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/BaseTypeDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c3fe74a19ed66fa45b17eea4d8dbd427 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/EventDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/EventDrawer.cs deleted file mode 100644 index d00cb5c5a..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/EventDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(Event))] - public class EventDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Event; } } - } -} \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseTypes/EventDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/EventDrawer.cs.meta deleted file mode 100644 index 8909bea5c..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/EventDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6e3aded9dafd94a4fa817f8a990e0efa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/RTPCDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/RTPCDrawer.cs deleted file mode 100644 index 364e4ca03..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/RTPCDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(RTPC))] - public class RTPCDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.GameParameter; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/RTPCDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/RTPCDrawer.cs.meta deleted file mode 100644 index a20b8c37e..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/RTPCDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 79c15edebabbb5146b4068a9a9b017f4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/StateDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/StateDrawer.cs deleted file mode 100644 index 868b46719..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/StateDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(State))] - public class StateDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.State; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/StateDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/StateDrawer.cs.meta deleted file mode 100644 index f02cad09d..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/StateDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ac51eff351c52444c84daaba2054a967 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/SwitchDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/SwitchDrawer.cs deleted file mode 100644 index ddb13bd6c..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/SwitchDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(Switch))] - public class SwitchDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Switch; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/SwitchDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/SwitchDrawer.cs.meta deleted file mode 100644 index 807ce71c3..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/SwitchDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b471700968b33944e854fe5c01131010 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseTypes/TriggerDrawer.cs b/Assets/Wwise/API/Editor/WwiseTypes/TriggerDrawer.cs deleted file mode 100644 index d3f898c82..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/TriggerDrawer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace AK.Wwise.Editor -{ - [UnityEditor.CustomPropertyDrawer(typeof(Trigger))] - public class TriggerDrawer : BaseTypeDrawer - { - protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Trigger; } } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseTypes/TriggerDrawer.cs.meta b/Assets/Wwise/API/Editor/WwiseTypes/TriggerDrawer.cs.meta deleted file mode 100644 index 16295ba35..000000000 --- a/Assets/Wwise/API/Editor/WwiseTypes/TriggerDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2bb6e06f811ade64291a0abc0897e777 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows.meta b/Assets/Wwise/API/Editor/WwiseWindows.meta deleted file mode 100644 index 8ae6f148e..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1f452b070fdaf384a8cb91ebc3c474d1 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseComponentPicker.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseComponentPicker.cs deleted file mode 100644 index 79ada8c4f..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseComponentPicker.cs +++ /dev/null @@ -1,199 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkWwiseComponentPicker : UnityEditor.EditorWindow -{ - /// - /// Return the last picked object - /// - public static WwiseObjectReference GetObjectPickerObjectReference() - { - return s_componentPicker != null ? s_componentPicker.m_CurrentObjectReference : default; - } - - /// - /// Return last control Id which opened the window - /// - public static int GetObjectPickerControlID() - { - return s_componentPicker != null ? s_componentPicker.m_ObjectSelectorId : default; - } - - public const string PickerClosedEventName = "AkWwiseComponentPickerClosed"; - - public static AkWwiseComponentPicker s_componentPicker; - - private AkWwiseTreeView m_treeView; - - private bool m_close; - private UnityEditor.SerializedProperty m_WwiseObjectReference; - private UnityEditor.SerializedObject m_serializedObject; - private WwiseObjectType m_type; - UnityEditor.IMGUI.Controls.SearchField m_SearchField; - - private WwiseObjectReference m_CurrentObjectReference; - private UnityEditor.EditorWindow m_PickedSourceEditorWindow; - private int m_ObjectSelectorId = 0; - - /// - /// The window to repaint after closing the picker - /// - public static UnityEditor.EditorWindow LastFocusedWindow = null; - - private void Update() - { - //Unity sometimes generates an error when the window is closed from the OnGUI function. - //So We close it here - if (m_close) - { - Close(); - - if (LastFocusedWindow) - { - UnityEditor.EditorApplication.delayCall += LastFocusedWindow.Repaint; - LastFocusedWindow = null; - } - } - } - - private void OnGUI() - { - using (new UnityEngine.GUILayout.VerticalScope()) - { - UnityEngine.GUILayout.Space(10); - m_treeView.StoredSearchString = m_SearchField.OnGUI(UnityEngine.GUILayoutUtility.GetRect(position.width - 60, 20), m_treeView.StoredSearchString); - UnityEngine.GUILayout.FlexibleSpace(); - UnityEngine.Rect lastRect = UnityEngine.GUILayoutUtility.GetLastRect(); - - m_treeView.OnGUI(new UnityEngine.Rect(lastRect.x, lastRect.y, position.width, lastRect.height)); - - using (new UnityEngine.GUILayout.HorizontalScope("box")) - { - if (UnityEngine.GUILayout.Button("Ok")) - { - //Get the selected item - var selectedItem = m_treeView.dataSource.Find(m_treeView.state.lastClickedID); - - SetGuid(selectedItem); - } - else if (UnityEngine.GUILayout.Button("Cancel")) - m_close = true; - else if (UnityEngine.GUILayout.Button("Reset")) - { - ResetGuid(); - m_close = true; - } - } - } - } - - private void SetGuid(AkWwiseTreeViewItem in_element) - { - if (in_element == null || m_type != in_element.objectType) return; - - m_serializedObject.Update(); - var reference = WwiseObjectReference.FindOrCreateWwiseObject(m_type, in_element.name, in_element.objectGuid); - var groupReference = reference as WwiseGroupValueObjectReference; - if (groupReference) - { - var parent = in_element.parent as AkWwiseTreeViewItem; - groupReference.SetupGroupObjectReference(parent.name, parent.objectGuid); - } - - m_CurrentObjectReference = reference; - if (m_PickedSourceEditorWindow) - { - m_PickedSourceEditorWindow.SendEvent(UnityEditor.EditorGUIUtility.CommandEvent(PickerClosedEventName)); - } - else - { - m_serializedObject.Update(); - m_WwiseObjectReference.objectReferenceValue = reference; - m_serializedObject.ApplyModifiedProperties(); - } - - m_close = true; - } - - private void ResetGuid() - { - m_CurrentObjectReference = null; - if (m_PickedSourceEditorWindow) - { - m_PickedSourceEditorWindow.SendEvent(UnityEditor.EditorGUIUtility.CommandEvent(PickerClosedEventName)); - } - else - { - m_serializedObject.Update(); - m_WwiseObjectReference.objectReferenceValue = null; - m_serializedObject.ApplyModifiedProperties(); - - } - } - - public class PickerCreator - { - public UnityEditor.SerializedProperty wwiseObjectReference; - public WwiseObjectType objectType; - public UnityEngine.Rect pickerPosition; - public UnityEditor.SerializedObject serializedObject; - - public WwiseObjectReference currentWwiseObjectReference; - public UnityEditor.EditorWindow pickedSourceEditorWindow; - public int pickedSourceControlId = 0; - private int minPickerWidth = 300; - - internal PickerCreator() - { - UnityEditor.EditorApplication.delayCall += DelayCall; - } - - private void DelayCall() - { - if (s_componentPicker != null) - return; - - s_componentPicker = CreateInstance(); - - //position the window below the button - var pos = new UnityEngine.Rect(pickerPosition.x, pickerPosition.yMax, 0, 0); - - //If the window gets out of the screen, we place it on top of the button instead - if (pickerPosition.yMax > UnityEngine.Screen.currentResolution.height / 2) - pos.y = pickerPosition.y - UnityEngine.Screen.currentResolution.height / 2; - - //We show a drop down window which is automatically destroyed when focus is lost - s_componentPicker.ShowAsDropDown(pos, - new UnityEngine.Vector2(pickerPosition.width >= minPickerWidth ? pickerPosition.width : minPickerWidth, - UnityEngine.Screen.currentResolution.height / 2)); - - s_componentPicker.m_WwiseObjectReference = wwiseObjectReference; - s_componentPicker.m_serializedObject = serializedObject; - s_componentPicker.m_type = objectType; - s_componentPicker.m_CurrentObjectReference = currentWwiseObjectReference; - s_componentPicker.m_PickedSourceEditorWindow = pickedSourceEditorWindow; - s_componentPicker.m_ObjectSelectorId = pickedSourceControlId; - - UnityEditor.IMGUI.Controls.TreeViewState treeViewState = new UnityEditor.IMGUI.Controls.TreeViewState(); - s_componentPicker.m_treeView = new AkWwiseTreeView(treeViewState, AkWwiseProjectInfo.GetTreeData(), objectType); - s_componentPicker.m_treeView.DragDropEnabled = false; - s_componentPicker.m_treeView.SetDoubleClickFunction(s_componentPicker.SetGuid); - - s_componentPicker.m_SearchField = new UnityEditor.IMGUI.Controls.SearchField(); - s_componentPicker.m_SearchField.downOrUpArrowKeyPressed += s_componentPicker.m_treeView.SetFocusAndEnsureSelectedItem; - s_componentPicker.m_SearchField.SetFocus(); - - var reference = currentWwiseObjectReference; - if (reference) - { - s_componentPicker.m_treeView.dataSource.SelectItem(reference.Guid); - } - } - } - -} -#endif diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseComponentPicker.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseComponentPicker.cs.meta deleted file mode 100644 index 071c5d555..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseComponentPicker.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3f64cbdeb252c84438649da05a61c59f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwisePicker.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwisePicker.cs deleted file mode 100644 index 0614a22b3..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwisePicker.cs +++ /dev/null @@ -1,233 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkWwisePicker : UnityEditor.EditorWindow -{ - [UnityEngine.SerializeField] UnityEditor.IMGUI.Controls.TreeViewState m_treeViewState; - - public static AkWwiseTreeView m_treeView; - UnityEditor.IMGUI.Controls.SearchField m_SearchField; - - [UnityEditor.MenuItem("Window/Wwise Picker", false, (int)AkWwiseWindowOrder.WwisePicker)] - public static void InitPickerWindow() - { - GetWindow("Wwise Picker", true, - typeof(UnityEditor.EditorWindow).Assembly.GetType("UnityEditor.ConsoleWindow")); - } - - public void OnEnable() - { - if (m_treeViewState == null) - m_treeViewState = new UnityEditor.IMGUI.Controls.TreeViewState(); - - var multiColumnHeaderState = AkWwiseTreeView.CreateDefaultMultiColumnHeaderState(); - var multiColumnHeader = new UnityEditor.IMGUI.Controls.MultiColumnHeader(multiColumnHeaderState); - m_treeView = new AkWwiseTreeView(m_treeViewState, multiColumnHeader, AkWwiseProjectInfo.GetTreeData()); - m_treeView.SetDoubleClickFunction(PlayPauseItem); - - m_treeView.dirtyDelegate = RequestRepaint; - - m_SearchField = new UnityEditor.IMGUI.Controls.SearchField(); - m_SearchField.downOrUpArrowKeyPressed += m_treeView.SetFocusAndEnsureSelectedItem; - m_SearchField.SetFocus(); - } - - public static void Refresh(bool ignoreIfWaapi = false) - { - if (AkWwiseProjectInfo.GetData().currentDataSource == AkWwiseProjectInfo.DataSourceType.WwiseAuthoring && ignoreIfWaapi) - { - return; - } - - if (m_treeView != null) - { - m_treeView.dataSource.FetchData(); - }; - } - - private void PlayPauseItem(AkWwiseTreeViewItem item) - { - if (m_treeView != null && m_treeView.CheckWaapi()) - AkWaapiUtilities.TogglePlayEvent(item.objectType, item.objectGuid); - } - - private bool isDirty; - public void RequestRepaint() - { - isDirty = true; - } - - void Update() - { - if (isDirty) - { - Repaint(); - m_treeView.Reload(); - isDirty = false; - } - - if (AkWwiseEditorSettings.Instance.UseWaapi) - { - AkWwiseProjectInfo.WaapiPickerData.Update(); - } - } - - public void OnGUI() - { - AkWwiseProjectInfo.DataSourceType ds; - var buttonWidth = 150; - using (new UnityEngine.GUILayout.HorizontalScope("box")) - { - ds = (AkWwiseProjectInfo.DataSourceType)UnityEditor.EditorGUILayout.EnumPopup( - AkWwiseProjectInfo.GetData().currentDataSource, UnityEngine.GUILayout.Width(buttonWidth)); - UnityEngine.GUILayout.Space(5); - - var projectData = AkWwiseProjectInfo.GetData(); - - if (ds != projectData.currentDataSource) - { - projectData.currentDataSource = ds; - m_treeView.SetDataSource(AkWwiseProjectInfo.GetTreeData()); - } - - if (ds == AkWwiseProjectInfo.DataSourceType.FileSystem) - { - projectData.autoPopulateEnabled = - UnityEngine.GUILayout.Toggle(projectData.autoPopulateEnabled, "Auto populate"); - } - else - { - projectData.AutoSyncSelection = - UnityEngine.GUILayout.Toggle(projectData.AutoSyncSelection, "Autosync selection"); - AkWwiseProjectInfo.WaapiPickerData.AutoSyncSelection = projectData.AutoSyncSelection; - } - - UnityEngine.GUILayout.FlexibleSpace(); - - if (UnityEngine.GUILayout.Button("Refresh Project", UnityEngine.GUILayout.Width(buttonWidth))) - { - if (ds == AkWwiseProjectInfo.DataSourceType.FileSystem) - { - AkWwiseProjectInfo.Populate(); - } - Refresh(); - } - - - if (UnityEngine.GUILayout.Button("Generate SoundBanks", UnityEngine.GUILayout.Width(buttonWidth))) - { - if (AkUtilities.IsSoundbankGenerationAvailable()) - { - AkUtilities.GenerateSoundbanks(); - } - else - { - UnityEngine.Debug.LogError("Access to Wwise is required to generate the SoundBanks. Please go to Edit > Project Settings... and set the Wwise Application Path found in the Wwise Editor view."); - } - } - - if (projectData.autoPopulateEnabled && AkUtilities.IsWwiseProjectAvailable) - AkWwiseWWUBuilder.StartWWUWatcher(); - else - AkWwiseWWUBuilder.StopWWUWatcher(); - } - - using (new UnityEngine.GUILayout.HorizontalScope("box")) - { - var search_width = System.Math.Max(position.width / 3, buttonWidth * 2); - - if (ds == AkWwiseProjectInfo.DataSourceType.FileSystem) - { - m_treeView.StoredSearchString = m_SearchField.OnGUI(UnityEngine.GUILayoutUtility.GetRect(search_width, 20), m_treeView.StoredSearchString); - UnityEngine.GUILayout.FlexibleSpace(); - - } - - else - { - m_treeView.StoredSearchString = m_SearchField.OnGUI(UnityEngine.GUILayoutUtility.GetRect(search_width, 20), m_treeView.StoredSearchString); - UnityEngine.GUILayout.FlexibleSpace(); - - var labelStyle = new UnityEngine.GUIStyle(); - labelStyle.richText = true; - UnityEngine.GUILayout.Label(AkWaapiUtilities.GetStatusString(), labelStyle); - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - - UnityEngine.GUILayout.FlexibleSpace(); - UnityEngine.Rect lastRect = UnityEngine.GUILayoutUtility.GetLastRect(); - m_treeView.OnGUI(new UnityEngine.Rect(lastRect.x, lastRect.y, position.width, lastRect.height)); - - if (UnityEngine.GUI.changed && AkUtilities.IsWwiseProjectAvailable) - UnityEditor.EditorUtility.SetDirty(AkWwiseProjectInfo.GetData()); - } - - static void SelectInWwisePicker(System.Guid guid) - { - InitPickerWindow(); - m_treeView.SelectItem(guid); - } - - [UnityEditor.MenuItem("CONTEXT/AkBank/Select in Wwise Picker")] - [UnityEditor.MenuItem("CONTEXT/AkAmbient/Select in Wwise Picker")] - [UnityEditor.MenuItem("CONTEXT/AkEvent/Select in Wwise Picker")] - [UnityEditor.MenuItem("CONTEXT/AkState/Select in Wwise Picker")] - [UnityEditor.MenuItem("CONTEXT/AkSwitch/Select in Wwise Picker")] - static void SelectItemInWwisePicker(UnityEditor.MenuCommand command) - { - AkTriggerHandler component = (AkTriggerHandler)command.context; - try - { - var data = component.GetType().GetField("data"); - var guid = (data.GetValue(component) as AK.Wwise.BaseType).ObjectReference.Guid; - SelectInWwisePicker(guid); - } - catch { } - } - - [UnityEditor.MenuItem("CONTEXT/AkRoom/Select Aux Bus in Wwise Picker")] - static void SelectAkRoomAuxBusInWwisePicker(UnityEditor.MenuCommand command) - { - AkRoom component = (AkRoom)command.context; - SelectInWwisePicker(component.reverbAuxBus.ObjectReference.Guid); - } - - [UnityEditor.MenuItem("CONTEXT/AkRoom/Select Event in Wwise Picker")] - static void SelectAkRoomEventInWwisePicker(UnityEditor.MenuCommand command) - { - AkRoom component = (AkRoom)command.context; - SelectInWwisePicker(component.roomToneEvent.ObjectReference.Guid); - } - - [UnityEditor.MenuItem("CONTEXT/AkSurfaceReflector/Select in Wwise Picker")] - static void SelectReflectorTextureItemInWwisePicker(UnityEditor.MenuCommand command) - { - AkSurfaceReflector component = (AkSurfaceReflector)command.context; - if (component.AcousticTextures.Length >0 && component.AcousticTextures[0].ObjectReference !=null) - { - SelectInWwisePicker(component.AcousticTextures[0].ObjectReference.Guid); - } - } - - [UnityEditor.MenuItem("CONTEXT/AkEnvironment/Select in Wwise Picker")] - static void SelectEnvironmentItemInWwisePicker(UnityEditor.MenuCommand command) - { - AkEnvironment component = (AkEnvironment)command.context; - SelectInWwisePicker(component.data.ObjectReference.Guid); - } - - [UnityEditor.MenuItem("CONTEXT/AkEarlyReflections/Select in Wwise Picker")] - static void SelectReflectionsItemInWwisePicker(UnityEditor.MenuCommand command) - { - AkEarlyReflections component = (AkEarlyReflections)command.context; - SelectInWwisePicker(component.reflectionsAuxBus.ObjectReference.Guid); - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwisePicker.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwisePicker.cs.meta deleted file mode 100644 index 77d01026c..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwisePicker.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fc793ecb16bff044dba5442507fae6ea -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectData.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectData.cs deleted file mode 100644 index e88ee570a..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectData.cs +++ /dev/null @@ -1,407 +0,0 @@ -using UnityEngine; - -public class AkWwiseProjectData : UnityEngine.ScriptableObject -{ - public System.Collections.Generic.List AcousticTextureWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List AuxBusWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List BankWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List EventWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List RtpcWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List StateWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List SwitchWwu = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List TriggerWwu = - new System.Collections.Generic.List(); - - ////Contains the int id of all items that are expanded in the Wwise picker - public System.Collections.Generic.List ExpandedFileSystemItemIds = new System.Collections.Generic.List(); - public System.Collections.Generic.List ExpandedWaapiItemIds = new System.Collections.Generic.List(); - - public bool AutoSyncSelection; - public bool autoPopulateEnabled = true; - public AkWwiseProjectInfo.DataSourceType currentDataSource; - - public string CurrentPluginConfig; - - public System.Collections.ArrayList GetWwuListByString(string in_wwuType) - { - if (string.Equals(in_wwuType, "Events", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(EventWwu); - if (string.Equals(in_wwuType, "States", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(StateWwu); - if (string.Equals(in_wwuType, "Switches", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(SwitchWwu); - if (string.Equals(in_wwuType, "Master-Mixer Hierarchy", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(AuxBusWwu); - if (string.Equals(in_wwuType, "SoundBanks", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(BankWwu); - if (string.Equals(in_wwuType, "Game Parameters", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(RtpcWwu); - if (string.Equals(in_wwuType, "Triggers", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(TriggerWwu); - if (string.Equals(in_wwuType, "Virtual Acoustics", System.StringComparison.OrdinalIgnoreCase)) - return System.Collections.ArrayList.Adapter(AcousticTextureWwu); - - return null; - } - - public float GetEventMaxAttenuation(uint eventID) - { - var Event = GetEventInfo(eventID); - return Event != null ? Event.maxAttenuation : 0.0f; - } - - public Event GetEventInfo(uint eventID) - { - foreach (var wwu in EventWwu) - { - foreach (var entry in wwu.List) - { - if (entry.Id == eventID) - { - return entry; - } - } - } - - return null; - } - - public void Reset() - { - EventWwu = new System.Collections.Generic.List(); - StateWwu = new System.Collections.Generic.List(); - SwitchWwu = new System.Collections.Generic.List(); - BankWwu = new System.Collections.Generic.List(); - AuxBusWwu = new System.Collections.Generic.List(); - RtpcWwu = new System.Collections.Generic.List(); - TriggerWwu = new System.Collections.Generic.List(); - AcousticTextureWwu = new System.Collections.Generic.List(); - } - - public void Migrate() - { - foreach (var wwu in EventWwu) - wwu.Migrate(); - - foreach (var wwu in StateWwu) - wwu.Migrate(); - - foreach (var wwu in SwitchWwu) - wwu.Migrate(); - - foreach (var wwu in BankWwu) - wwu.Migrate(); - - foreach (var wwu in AuxBusWwu) - wwu.Migrate(); - - foreach (var wwu in RtpcWwu) - wwu.Migrate(); - - foreach (var wwu in TriggerWwu) - wwu.Migrate(); - - foreach (var wwu in AcousticTextureWwu) - wwu.Migrate(); - - UnityEditor.EditorUtility.SetDirty(this); - } - - [System.Serializable] - public class ByteArrayWrapper - { - public byte[] bytes; - - public ByteArrayWrapper(byte[] byteArray) - { - - bytes = byteArray; - } - - public static implicit operator ByteArrayWrapper(System.Guid guid) => new ByteArrayWrapper(guid.ToByteArray()); - - public static implicit operator System.Guid(ByteArrayWrapper bytes) => new System.Guid(bytes.bytes); - } - - private static System.Guid GetGuid(byte[] bytes) - { - try - { - return new System.Guid(bytes); - } - catch - { - return System.Guid.Empty; - } - } - - [System.Serializable] - public class AkBaseInformation : System.IComparable - { - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("Name")] - private string name; - - public string Name - { - get { return name; } - - set - { - name = value; - id = AkUtilities.ShortIDGenerator.Compute(value); - } - } - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("Guid")] - private byte[] guid = null; - - public System.Guid Guid - { - get { return GetGuid(guid); } - set { guid = value.ToByteArray(); } - } - - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("ID")] - private uint id; - - public uint Id - { - get { return id; } - } - - [UnityEngine.HideInInspector] - public System.Collections.Generic.List PathAndIcons = new System.Collections.Generic.List(); - - int System.IComparable.CompareTo(object other) - { - if (other == null) - return 1; - - var otherAkInformation = other as AkBaseInformation; - if (otherAkInformation == null) - throw new System.ArgumentException("Object is not of type AkBaseInformation"); - - return Name.CompareTo(otherAkInformation.Name); - } - - private class _CompareByGuid : System.Collections.Generic.IComparer - { - int System.Collections.Generic.IComparer.Compare(AkBaseInformation a, AkBaseInformation b) - { - if (a == null) - return b == null ? 0 : -1; - - return a.Guid.CompareTo(b.Guid); - } - } - - public static System.Collections.Generic.IComparer CompareByGuid = new _CompareByGuid(); - } - - [System.Serializable] - public class AkInformation : AkBaseInformation - { - public string Path; - } - - [System.Serializable] - public class GroupValue : AkInformation - { - public System.Collections.Generic.List values = - new System.Collections.Generic.List(); - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - private System.Collections.Generic.List ValueGuids = - new System.Collections.Generic.List(); - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - private System.Collections.Generic.List ValueIcons = new System.Collections.Generic.List(); - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("values")] - private System.Collections.Generic.List valuesInternal = new System.Collections.Generic.List(); - - public void Migrate() - { - var count = ValueGuids.Count; - if (count < 1 || count != ValueIcons.Count || count != valuesInternal.Count) - return; - - values.Clear(); - for (var i = 0; i < count; ++i) - { - var value = new AkBaseInformation - { - Name = valuesInternal[i], - Guid = GetGuid(ValueGuids[i].bytes) - }; - value.PathAndIcons.Add(ValueIcons[i]); - values.Add(value); - } - } - } - - [System.Serializable] - public class Event : AkInformation - { - public float maxAttenuation; - public float maxDuration = -1; - public float minDuration = -1; - } - - [System.Serializable] - public class WorkUnit : System.IComparable - { - public string PhysicalPath; - - [UnityEngine.HideInInspector] - public System.Collections.Generic.List PathAndIcons = new System.Collections.Generic.List(); - - [UnityEngine.Serialization.FormerlySerializedAs("ParentPhysicalPath")] - public string ParentPath; - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - private byte[] guid = null; - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("Guid")] - private string GuidInternal = string.Empty; - - public System.Guid Guid - { - get { return GetGuid(guid); } - set { guid = value.ToByteArray(); } - } - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - private long m_lastTime; - - public System.DateTime LastTime - { - get { return m_lastTime == 0 ? System.DateTime.MinValue : System.DateTime.FromBinary(m_lastTime); } - set { m_lastTime = value.ToBinary(); } - } - - public virtual void Migrate() - { - try - { - Guid = new System.Guid(GuidInternal); - } - catch - { - Guid = System.Guid.Empty; - } - } - - int System.IComparable.CompareTo(object other) - { - if (other == null) - return 1; - - var otherWwu = other as WorkUnit; - if (otherWwu == null) - throw new System.ArgumentException("Object is not a WorkUnit"); - - return PhysicalPath.CompareTo(otherWwu.PhysicalPath); - } - - - public virtual System.Collections.ArrayList GetChildrenArrayList() { return null; } - } - - [System.Serializable] - public class GenericWorkUnit : WorkUnit where T : AkInformation - { - public System.Collections.Generic.List List = new System.Collections.Generic.List(); - - public T Find(string name) - { - foreach (var item in List) - if (item.Name == name) - return item; - - return null; - } - - public override System.Collections.ArrayList GetChildrenArrayList() - { - return System.Collections.ArrayList.Adapter(List); - } - } - - [System.Serializable] - public class AkInfoWorkUnit : GenericWorkUnit { } - - [System.Serializable] - public class EventWorkUnit : GenericWorkUnit { } - - [System.Serializable] - public class GroupValWorkUnit : GenericWorkUnit - { - public override void Migrate() - { - base.Migrate(); - - foreach (var item in List) - item.Migrate(); - } - } - - [System.Serializable] - public class PathElement - { - public string ElementName; - public WwiseObjectType ObjectType; - - [UnityEngine.SerializeField] - [UnityEngine.HideInInspector] - private byte[] guid = null; - - public System.Guid ObjectGuid - { - get { return GetGuid(guid); } - set { guid = value.ToByteArray(); } - } - - public PathElement(string Name, WwiseObjectType objType, System.Guid guid) - { - ElementName = Name; - ObjectType = objType; - ObjectGuid = guid; - } - - public static string GetProjectPathString(System.Collections.Generic.List pathElements, int index) - { - string path = ""; - for (int i = 0; i<=index && i < pathElements.Count; i++) - { - path += $"/{pathElements[i].ElementName}"; - - } - return path; - } - } -} diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectData.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectData.cs.meta deleted file mode 100644 index 0e613531b..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7b9fcd7ddb9dea64c905ea2e2bfa1a68 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectInfo.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectInfo.cs deleted file mode 100644 index 78e16e137..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectInfo.cs +++ /dev/null @@ -1,131 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Runtime.CompilerServices; -using UnityEngine; - -public static class AkWwiseProjectInfo -{ - private const string DataFileName = "AkWwiseProjectData.asset"; - private static string WwiseEditorDirectory = System.IO.Path.Combine("Wwise", "Editor"); - private static string DataRelativeDirectory = System.IO.Path.Combine(WwiseEditorDirectory, "ProjectData"); - private static string DataRelativePath = System.IO.Path.Combine(DataRelativeDirectory, DataFileName); - private static string DataAssetPath = System.IO.Path.Combine("Assets", DataRelativePath); - - public static AkWwiseProjectData m_Data; - public static AkWwiseTreeWAAPIDataSource m_WaapiPickerData = new AkWwiseTreeWAAPIDataSource(); - public static AkWwiseTreeProjectDataSource m_ProjectPickerData = new AkWwiseTreeProjectDataSource(); - - public enum DataSourceType - { - WwiseAuthoring, - FileSystem - } - - public static AkWwiseTreeWAAPIDataSource WaapiPickerData - { - get - { - return m_WaapiPickerData; - } - } - - public static AkWwiseTreeProjectDataSource ProjectPickerData - { - get - { - return m_ProjectPickerData; - } - } - - public static AkWwiseTreeDataSource GetTreeData() - { - AkWwiseTreeDataSource treeData; - if (GetData().currentDataSource == DataSourceType.WwiseAuthoring) - { - treeData = WaapiPickerData; - } - else - { - treeData = ProjectPickerData; - } - return treeData; - } - - private static bool WwiseFolderExists() - { - return System.IO.Directory.Exists(System.IO.Path.Combine(UnityEngine.Application.dataPath, "Wwise")); - } - - public static AkWwiseProjectData GetData() - { - if (m_Data == null && WwiseFolderExists()) - { - try - { - m_Data = UnityEditor.AssetDatabase.LoadAssetAtPath(DataAssetPath); - - if (m_Data == null) - { - var dataAbsolutePath = System.IO.Path.Combine(UnityEngine.Application.dataPath, DataRelativePath); - var dataExists = System.IO.File.Exists(dataAbsolutePath); - - if (!dataExists) - { - var dataAbsoluteDirectory = System.IO.Path.Combine(UnityEngine.Application.dataPath, DataRelativeDirectory); - if (!System.IO.Directory.Exists(dataAbsoluteDirectory)) - System.IO.Directory.CreateDirectory(dataAbsoluteDirectory); - } - - m_Data = UnityEngine.ScriptableObject.CreateInstance(); - - if (dataExists) - UnityEngine.Debug.LogWarning("WwiseUnity: Unable to load asset at <" + dataAbsolutePath + ">."); - else - { -#if UNITY_2019_3_OR_LATER - if (UnityEditor.EditorSettings.assetPipelineMode == UnityEditor.AssetPipelineMode.Version2) - { - UnityEditor.EditorApplication.delayCall += () => UnityEditor.AssetDatabase.CreateAsset(m_Data, DataAssetPath); - } - else -#else - { - UnityEditor.AssetDatabase.CreateAsset(m_Data, DataAssetPath); - } -#endif - } - } - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Unable to load Wwise Data: " + e); - } - } - - return m_Data; - } - - public static bool Populate() - { - var bDirty = false; - if (AkUtilities.IsWwiseProjectAvailable) - { - bDirty = AkWwiseWWUBuilder.Populate(); - bDirty |= AkWwiseXMLBuilder.Populate(); - if (bDirty) - { - UnityEditor.EditorUtility.SetDirty(GetData()); - UnityEditor.AssetDatabase.SaveAssets(); - UnityEditor.AssetDatabase.Refresh(); - } - } - - return bDirty; - } -} -#endif diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectInfo.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectInfo.cs.meta deleted file mode 100644 index 8c35b3e70..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseProjectInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 008080a84899ef046b02bf218d816649 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeDataSource.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeDataSource.cs deleted file mode 100644 index 5e1c775c7..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeDataSource.cs +++ /dev/null @@ -1,240 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Linq; -using System.Collections.Generic; -using UnityEditor.IMGUI.Controls; - -public abstract class AkWwiseTreeDataSource -{ - public List Data { get; protected set; } - - public AkWwiseTreeViewItem ProjectRoot { get; protected set; } - public Dictionary wwiseObjectFolders; - - public AkWwiseTreeViewItem SearchRoot { get; protected set; } - public List SearchItems { get; protected set; } - - public AkWwiseTreeView TreeView { protected get; set; } - - public event System.Action modelChanged; - - static readonly List collapsedChildren = new List(); - public static List CreateCollapsedChild() - { - // To mark a collapsed parent we use a list with one element that is null. - // The null element in the children list ensures we show the collapse arrow. - // Reuse read-only list to prevent allocations. - if (collapsedChildren.Count != 1 || collapsedChildren[0] != null) - { - collapsedChildren.Clear(); - collapsedChildren.Add(null); - } - return collapsedChildren; - } - - public AkWwiseTreeViewItem CreateProjectRootItem() - { - return new AkWwiseTreeViewItem(System.IO.Path.GetFileNameWithoutExtension(AkWwiseEditorSettings.Instance.WwiseProjectPath), - -1, GenerateUniqueID(), System.Guid.Empty, WwiseObjectType.Project); - } - - protected int m_MaxID; - public int GenerateUniqueID() - { - return ++m_MaxID; - } - - public AkWwiseTreeDataSource() - { - Data = new List(100); - wwiseObjectFolders = new Dictionary(); - ProjectRoot = CreateProjectRootItem(); - } - - public virtual AkWwiseTreeViewItem Find(IEnumerable data, System.Guid guid) - { - return data.FirstOrDefault(element => element.objectGuid == guid); - } - - public virtual AkWwiseTreeViewItem Find(IEnumerable data, System.Guid guid, string name) - { - return data.FirstOrDefault(element => element.objectGuid == guid && element.name ==name); - } - - - public virtual AkWwiseTreeViewItem Find(IEnumerable data, int id) - { - return data.FirstOrDefault(element => element.id == id); - } - - public virtual AkWwiseTreeViewItem Find(int id) - { - return Find(Data, id); - } - - public virtual AkWwiseTreeViewItem Find(System.Guid guid) - { - return Find(Data, guid); - } - - public virtual AkWwiseTreeViewItem Find(System.Guid guid, string name) - { - return Find(Data, guid, name); - } - - public IEnumerable GetGuidsFromIds(IEnumerable ids) - { - if (Data.Count == 0) return new List(); - return Data.Where(el => ids.Contains(el.id)).Select(el => el.objectGuid); - } - - public IEnumerable GetIdsFromGuids(IEnumerable guids) - { - if (Data.Count == 0) return new List(); - return Data.Where(el => guids.Contains(el.objectGuid)).Select(el => el.id); - } - - public IList GetAncestors(int id) - { - var parents = new List(); - TreeViewItem el = Find(id); - if (el != null) - { - while (el.parent != null) - { - parents.Add(el.parent.id); - el = el.parent; - } - } - return parents; - } - - public IList GetDescendantsThatHaveChildren(int id) - { - AkWwiseTreeViewItem searchFromThis = Find(id); - if (searchFromThis != null) - { - return GetParentsBelowStackBased(searchFromThis); - } - return new List(); - } - - IList GetParentsBelowStackBased(AkWwiseTreeViewItem searchFromThis) - { - Stack stack = new Stack(); - stack.Push(searchFromThis); - - var parentsBelow = new List(); - while (stack.Count > 0) - { - AkWwiseTreeViewItem current = stack.Pop(); - if (current.hasChildren) - { - parentsBelow.Add(current.id); - foreach (AkWwiseTreeViewItem el in current.children) - { - stack.Push(el); - } - } - } - return parentsBelow; - } - - abstract public AkWwiseTreeViewItem GetComponentDataRoot(WwiseObjectType objectType); - - protected void Changed() - { - if (modelChanged != null) - modelChanged(); - } - - public bool IsExpanded(TreeViewState state, int id) - { - if (ProjectRoot != null && id == ProjectRoot.id) - { - return true; - } - return state.expandedIDs.BinarySearch(id) >= 0; - } - - public abstract void FetchData(); - - public static int GetDepthFromPath(string path) - { - return path.Split('\\').Length - 1; - } - - public virtual void ScheduleRebuild() - { - } - - public abstract void SaveExpansionStatus(List itemIds); - public abstract List LoadExpansionSatus(); - - public string currentSearchString; - public bool isSearching = false; - public abstract AkWwiseTreeViewItem GetSearchResults(); - public abstract void UpdateSearchResults(string searchString, WwiseObjectType objectType); - public virtual void SelectItem(System.Guid itemGuid) - { - TreeView.ExpandItem(itemGuid, true); - } - - public virtual void LoadComponentData(WwiseObjectType objectType) { } - public virtual void ItemSelected(AkWwiseTreeViewItem itemID) { } - public virtual void SelectObjectInAuthoring(System.Guid objectGuid) { } - public abstract void SetExpanded(IEnumerable ids); -} - -#region Utility Functions -public static class TreeUtility -{ - public static void CopyTree(AkWwiseTreeViewItem sourceRoot, AkWwiseTreeViewItem destRoot) - { - for (int i = 0; i < sourceRoot.children.Count(); i++) - { - var currItem = sourceRoot.children[i]; - var newItem = new AkWwiseTreeViewItem(currItem as AkWwiseTreeViewItem); - CopyTree(currItem as AkWwiseTreeViewItem, newItem); - destRoot.AddWwiseItemChild(newItem); - } - } - - public static void TreeToList(AkWwiseTreeViewItem root, IList result) - { - if (root == null) - return; - - if (result == null) - return; - - result.Clear(); - - Stack stack = new Stack(); - stack.Push(root); - - while (stack.Count > 0) - { - AkWwiseTreeViewItem current = stack.Pop(); - result.Add(current); - - if (current.children != null && current.children.Count > 0) - { - for (int i = current.children.Count - 1; i >= 0; i--) - { - if (current.children[i] != null) - { - stack.Push((AkWwiseTreeViewItem)current.children[i]); - } - } - } - } - } -} -#endregion -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeDataSource.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeDataSource.cs.meta deleted file mode 100644 index 092ed5dbd..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeDataSource.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7d93836597034c343b184cc57f01cfa9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeProjectDataSource.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeProjectDataSource.cs deleted file mode 100644 index 4ec7b9a43..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeProjectDataSource.cs +++ /dev/null @@ -1,281 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Linq; -using System.Collections.Generic; - -public class AkWwiseTreeProjectDataSource : AkWwiseTreeDataSource -{ - - public AkWwiseTreeProjectDataSource() : base() - { - } - - public override void FetchData() - { - Data.Clear(); - m_MaxID = 0; - InitializeMinimal(); - Changed(); - } - - protected void InitializeMinimal() - { - ProjectRoot = CreateProjectRootItem(); - - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(WwiseObjectType.Event)); - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(WwiseObjectType.Switch)); - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(WwiseObjectType.State)); - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(WwiseObjectType.Soundbank)); - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(WwiseObjectType.AuxBus)); - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(WwiseObjectType.AcousticTexture)); - - TreeUtility.TreeToList(ProjectRoot, Data); - } - - public override AkWwiseTreeViewItem GetComponentDataRoot(WwiseObjectType objectType) - { - if (!wwiseObjectFolders.ContainsKey(objectType)) - ProjectRoot.AddWwiseItemChild(BuildObjectTypeTree(objectType)); - - var tempProjectRoot = new AkWwiseTreeViewItem(ProjectRoot); - tempProjectRoot.AddWwiseItemChild(wwiseObjectFolders[objectType]); - return tempProjectRoot; - } - - protected AkWwiseTreeViewItem BuildObjectTypeTree(WwiseObjectType objectType) - { - var rootElement = new AkWwiseTreeViewItem(); - switch (objectType) - { - case WwiseObjectType.AuxBus: - rootElement = BuildTree("Master-Mixer Hierarchy", AkWwiseProjectInfo.GetData().AuxBusWwu); - break; - - case WwiseObjectType.Event: - rootElement = BuildTree("Events", AkWwiseProjectInfo.GetData().EventWwu); - break; - - case WwiseObjectType.Soundbank: - rootElement = BuildTree("SoundBanks", AkWwiseProjectInfo.GetData().BankWwu); - break; - - case WwiseObjectType.State: - rootElement = BuildTree("States", AkWwiseProjectInfo.GetData().StateWwu); - break; - - case WwiseObjectType.Switch: - case WwiseObjectType.SwitchGroup: - rootElement = BuildTree("Switches", AkWwiseProjectInfo.GetData().SwitchWwu); - break; - - case WwiseObjectType.GameParameter: - rootElement = BuildTree("Game Parameters", AkWwiseProjectInfo.GetData().RtpcWwu); - break; - - case WwiseObjectType.Trigger: - rootElement = BuildTree("Triggers", AkWwiseProjectInfo.GetData().TriggerWwu); - break; - - case WwiseObjectType.AcousticTexture: - rootElement = BuildTree("Virtual Acoustics", AkWwiseProjectInfo.GetData().AcousticTextureWwu); - break; - } - wwiseObjectFolders[objectType] = rootElement; - return rootElement; - } - - public AkWwiseTreeViewItem BuildTree(string name, - List Events) - { - var akInfoWwu = new List(Events.Count); - for (var i = 0; i < Events.Count; i++) - { - akInfoWwu.Add(new AkWwiseProjectData.AkInfoWorkUnit()); - akInfoWwu[i].PhysicalPath = Events[i].PhysicalPath; - akInfoWwu[i].ParentPath = Events[i].ParentPath; - akInfoWwu[i].PathAndIcons = Events[i].PathAndIcons; - akInfoWwu[i].Guid = Events[i].Guid; - akInfoWwu[i].List = Events[i].List.ConvertAll(x => (AkWwiseProjectData.AkInformation)x); - } - return BuildTree(name, akInfoWwu); - } - - public AkWwiseTreeViewItem BuildTree(string name, List workUnits) - { - var rootFolder = new AkWwiseTreeViewItem(name, 1, GenerateUniqueID(), System.Guid.Empty, WwiseObjectType.PhysicalFolder); - foreach (var wwu in workUnits) - { - var wwuItem = AddTreeItem(rootFolder, wwu.PathAndIcons); - - foreach (var group in wwu.List) - { - var groupElement = AddTreeItem(wwuItem, group.PathAndIcons); - - foreach (var child in group.values) - { - AddTreeItem(groupElement, child.PathAndIcons); - } - } - } - return rootFolder; - } - - private AkWwiseTreeViewItem BuildTree(string name, List workUnits) - { - var rootFolder = new AkWwiseTreeViewItem(name, 1, GenerateUniqueID(), System.Guid.Empty, WwiseObjectType.PhysicalFolder); - - foreach (var wwu in workUnits) - { - var wwuElement = AddTreeItem(rootFolder, wwu.PathAndIcons); - if (wwu.List.Count > 0) - { - foreach (var akInfo in wwu.List) - { - AddTreeItem(wwuElement, akInfo.PathAndIcons); - } - } - } - return rootFolder; - } - - private AkWwiseTreeViewItem AddTreeItem(AkWwiseTreeViewItem parentWorkUnit, List pathAndIcons) - { - var pathDepth = pathAndIcons.Count; - var treeDepth = pathDepth + 1; - AkWwiseTreeViewItem newItem; - AkWwiseProjectData.PathElement pathElem; - var parent = parentWorkUnit; - - if (pathDepth > parentWorkUnit.depth) - { - var unaccountedDepth = pathDepth - parentWorkUnit.depth; - for (; unaccountedDepth > 0; unaccountedDepth--) - { - var pathIndex = pathAndIcons.Count - unaccountedDepth; - pathElem = pathAndIcons[pathIndex]; - if (pathElem.ObjectGuid == System.Guid.Empty) - { - var path = AkWwiseProjectData.PathElement.GetProjectPathString(pathAndIcons, pathIndex); - newItem = Find(pathElem.ObjectGuid, pathElem.ElementName, path); - } - else - newItem = Find(pathElem.ObjectGuid, pathElem.ElementName); - - if (newItem == null) - { - newItem = new AkWwiseTreeViewItem(pathElem.ElementName, treeDepth - unaccountedDepth, GenerateUniqueID(), pathElem.ObjectGuid, pathElem.ObjectType); - parent.AddWwiseItemChild(newItem); - Data.Add(newItem); - } - parent = newItem; - - } - } - - pathElem = pathAndIcons.Last(); - newItem = Find(pathElem.ObjectGuid); - - if (newItem == null) - { - newItem = new AkWwiseTreeViewItem(pathElem.ElementName, treeDepth, GenerateUniqueID(), pathElem.ObjectGuid, pathElem.ObjectType); - parent.AddWwiseItemChild(newItem); - Data.Add(newItem); - } - return newItem; - } - - public virtual AkWwiseTreeViewItem Find(System.Guid guid, string name, string path) - { - var results = Data.FindAll(element => element.objectGuid == guid && element.name == name); - - foreach (var r in results) - { - var itemPath = GetProjectPath(r,""); - if (itemPath == path) - { - return r; - } - } - - return null; - } - - public string GetProjectPath(AkWwiseTreeViewItem item, string currentpath) - { - currentpath = $"/{item.name}{currentpath}"; - if (item.parent == null || item.parent == ProjectRoot) - { - return currentpath; - } - - return GetProjectPath(item.parent as AkWwiseTreeViewItem, currentpath); - } - - - public override AkWwiseTreeViewItem GetSearchResults() - { - return SearchRoot; - } - - public override void UpdateSearchResults(string searchString, WwiseObjectType objectType) - { - SearchRoot = new AkWwiseTreeViewItem(ProjectRoot); - if (objectType != WwiseObjectType.None) - { - SearchRoot = new AkWwiseTreeViewItem(ProjectRoot); - var objectRoot = new AkWwiseTreeViewItem(wwiseObjectFolders[objectType]); - TreeUtility.CopyTree(wwiseObjectFolders[objectType], objectRoot); - SearchRoot.AddWwiseItemChild(objectRoot); - } - else - { - TreeUtility.CopyTree(ProjectRoot, SearchRoot); - } - FilterTree(SearchRoot, searchString); - } - - void FilterTree(AkWwiseTreeViewItem treeElement, string searchFilter) - { - var ItemsToRemove = new List(); - for (int i = 0; i < treeElement.children.Count(); i++) - { - var current = treeElement.children[i] as AkWwiseTreeViewItem; - FilterTree(current, searchFilter); - - if (current.name.IndexOf(searchFilter, System.StringComparison.OrdinalIgnoreCase) == -1 && current.children.Count == 0) - { - ItemsToRemove.Add(current); - } - } - - for (int i = 0; i < ItemsToRemove.Count(); i++) - { - treeElement.children.Remove(ItemsToRemove[i]); - } - } - - public override void SetExpanded(IEnumerable ids) - { - if (TreeView != null) - { - TreeView.state.expandedIDs = GetIdsFromGuids(ids).ToList(); - } - Changed(); - } - - public override void SaveExpansionStatus(List expandedItems ) - { - AkWwiseProjectInfo.GetData().ExpandedFileSystemItemIds = expandedItems; - } - - public override List LoadExpansionSatus() - { - return AkWwiseProjectInfo.GetData().ExpandedFileSystemItemIds; - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeProjectDataSource.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeProjectDataSource.cs.meta deleted file mode 100644 index e5f6df112..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeProjectDataSource.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 50db06aaedd9e6644a4daf4fe3254ce3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeView.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeView.cs deleted file mode 100644 index c2194c66e..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeView.cs +++ /dev/null @@ -1,966 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Linq; -using System.Collections.Generic; -using UnityEditor.IMGUI.Controls; -public class AkWwiseTreeView : TreeView -{ - - public enum PickerMode - { - FullPicker, - ComponentPicker - } - - private PickerMode m_pickerMode; - private WwiseObjectType componentObjectType; - - AkWwisePickerIcons icons; - protected AkWwiseTreeDataSource m_dataSource; - public AkWwiseTreeDataSource dataSource { get { return m_dataSource; } } - readonly IList m_Rows = new List(100); - - public event System.Action treeChanged; - - private static Dictionary DragDropMonoScriptMap; - private static Dictionary ScriptTypeMap - = new Dictionary{ - { typeof(AkAmbient), WwiseObjectType.Event }, - { typeof(AkBank), WwiseObjectType.Soundbank }, - { typeof(AkEnvironment), WwiseObjectType.AuxBus }, - { typeof(AkState), WwiseObjectType.State }, - { typeof(AkSurfaceReflector), WwiseObjectType.AcousticTexture }, - { typeof(AkSwitch), WwiseObjectType.Switch }, - }; - - - public AkWwiseTreeView(TreeViewState treeViewState, - MultiColumnHeader multiColumnHeader, AkWwiseTreeDataSource data) - : base(treeViewState, multiColumnHeader) - { - m_pickerMode = PickerMode.FullPicker; - Initialize(data); - Reload(); - } - - public AkWwiseTreeView(TreeViewState treeViewState, - AkWwiseTreeDataSource data, WwiseObjectType componentType) - : base(treeViewState) - - { - m_pickerMode = PickerMode.ComponentPicker; - componentObjectType = componentType; - Initialize(data); - data.LoadComponentData(componentObjectType); - Reload(); - } - - private void Initialize(AkWwiseTreeDataSource data) - { - - m_dataSource = data; - m_dataSource.TreeView = this; - m_dataSource.modelChanged += ModelChanged; - this.LoadExpansionStatus(); - - icons = new AkWwisePickerIcons(); - icons.LoadIcons(); - - DragDropEnabled = true; - extraSpaceBeforeIconAndLabel = AkWwisePickerIcons.kIconWidth; - StoredSearchString = ""; - - if (DragDropMonoScriptMap == null) - { - DragDropMonoScriptMap = new Dictionary(); - - var scripts = UnityEngine.Resources.FindObjectsOfTypeAll(); - foreach (var script in scripts) - { - WwiseObjectType wwiseObjectType; - var type = script.GetClass(); - if (type != null && ScriptTypeMap.TryGetValue(type, out wwiseObjectType)) - DragDropMonoScriptMap[wwiseObjectType] = script; - } - } - - UnityEditor.EditorApplication.playModeStateChanged += (UnityEditor.PlayModeStateChange playMode) => - { - if (playMode == UnityEditor.PlayModeStateChange.ExitingEditMode) - SaveExpansionStatus(); - }; - UnityEditor.EditorApplication.quitting += SaveExpansionStatus; - } - - private bool bSearchStringChanged; - public string m_storedSearchString; - public string StoredSearchString - { - get { return m_storedSearchString; } - set - { - if (m_storedSearchString != value) - { - if (value != string.Empty) - { - bSearchStringChanged = true; - SaveExpansionStatus(); - } - else - { - LoadExpansionStatus(); - } - } - m_storedSearchString = value; - searchString = value; - } - } - - public void SaveExpansionStatus() - { - //Don't save exansion state when searching - if (m_storedSearchString != string.Empty) return; - dataSource.SaveExpansionStatus(new List(state.expandedIDs)); - } - - public void LoadExpansionStatus() - { - state.expandedIDs = dataSource.LoadExpansionSatus(); - } - - protected override void ExpandedStateChanged() - { - if (this.m_storedSearchString == string.Empty) - { - this.m_dataSource.ScheduleRebuild(); - } - } - - void ModelChanged() - { - if (treeChanged != null) - treeChanged(); - - SetDirty(); - } - - public delegate void DirtyDelegate(); - public DirtyDelegate dirtyDelegate; - public void SetDirty() - { - dirtyDelegate?.Invoke(); - } - - public override void OnGUI(UnityEngine.Rect rect) - { - if (bSearchStringChanged) - { - if (!m_dataSource.isSearching) - { - m_dataSource.UpdateSearchResults(searchString, componentObjectType); - bSearchStringChanged = false; - } - } - - base.OnGUI(rect); - } - - protected override TreeViewItem BuildRoot() - { - return m_dataSource.CreateProjectRootItem(); - } - - public void RebuildRows() - { - BuildRows(new AkWwiseTreeViewItem()); - } - - protected override IList BuildRows( - TreeViewItem root) - { - m_Rows.Clear(); - - var dataRoot = m_dataSource.ProjectRoot; - - if (m_pickerMode == PickerMode.ComponentPicker) - { - dataRoot = m_dataSource.GetComponentDataRoot(componentObjectType); - } - - if (!string.IsNullOrEmpty(searchString)) - { - dataRoot = m_dataSource.GetSearchResults(); - } - AddChildrenRecursive(dataRoot, m_Rows); - searchString = ""; - return m_Rows.Cast().ToList(); - } - - - private bool TestExpanded(AkWwiseTreeViewItem node) - { - if (node.children.Count > 0) - { - if (node.depth ==-1) - { - return true; - } - return IsExpanded(node.id); - } - return false; - } - - void AddChildrenRecursive(AkWwiseTreeViewItem parent, IList newRows) - { - if (parent == null) - { - return; - } - - foreach (AkWwiseTreeViewItem child in parent.children) - { - var item = new AkWwiseTreeViewItem(child); - item.parent = parent; - item.children = child.children; - newRows.Add(item); - - if (child.children.Count > 0) - { - if (TestExpanded(child)) - { - AddChildrenRecursive(child, newRows); - } - else - { - item.children = AkWwiseTreeDataSource.CreateCollapsedChild(); - } - } - } - } - - protected override IList GetAncestors(int id) - { - return m_dataSource.GetAncestors(id); - } - - protected override IList GetDescendantsThatHaveChildren(int id) - { - return m_dataSource.GetDescendantsThatHaveChildren(id); - } - - public AkWwiseTreeViewItem GetItemByGuid(System.Guid guid) - { - - return m_dataSource.Find(m_Rows, guid); - } - - public void SelectItem(System.Guid guid) - { - var item = dataSource.Find(guid); - if (item == null && AkWwiseProjectInfo.GetData().currentDataSource == AkWwiseProjectInfo.DataSourceType.WwiseAuthoring) - { - m_dataSource.SelectItem(guid); - } - else - { - HighlightItem(item, true); - } - } - - public bool ExpandItem(System.Guid guid, bool select) - { - var item = GetItemByGuid(guid); - if (item != null) - { - HighlightItem(item, select); - return true; - } - - item = m_dataSource.Find(guid); - if (item != null) - { - var parent = item.parent; - while (parent != null && GetItemByGuid((parent as AkWwiseTreeViewItem).objectGuid) == null) - { - parent = parent.parent; - } - if (parent != null) - { - SetExpandedRecursive(parent.id, true); - } - } - return false; - } - - - public void HighlightItem(AkWwiseTreeViewItem item, bool select) - { - if (item != null) - { - FrameItem(item.id); - if (select) - { - SetSelection(new List() { item.id }); - } - SetDirty(); - } - } - - #region Mulicolumn - enum ObjectColumns - { - Name, - Guid, - Depth, - } - - public static MultiColumnHeaderState CreateDefaultMultiColumnHeaderState() - { - var columns = new[] - { - new MultiColumnHeaderState.Column - { - headerContent = new UnityEngine.GUIContent("Name"), - headerTextAlignment = UnityEngine.TextAlignment.Left, - sortedAscending = true, - sortingArrowAlignment = UnityEngine.TextAlignment.Center, - width = 300, - minWidth = 200, - autoResize = true, - allowToggleVisibility = false - }, - }; - - var state = new MultiColumnHeaderState(columns); - return state; - } - - - public static MultiColumnHeaderState CreateDebug() - { - var columns = new[] - { - new MultiColumnHeaderState.Column - { - headerContent = new UnityEngine.GUIContent("Name"), - headerTextAlignment = UnityEngine.TextAlignment.Left, - sortedAscending = true, - sortingArrowAlignment = UnityEngine.TextAlignment.Center, - width = 300, - minWidth = 200, - autoResize = true, - allowToggleVisibility = false - }, - new MultiColumnHeaderState.Column - { - headerContent = new UnityEngine.GUIContent("Guid"), - headerTextAlignment = UnityEngine.TextAlignment.Right, - sortedAscending = true, - sortingArrowAlignment = UnityEngine.TextAlignment.Left, - width = 200, - minWidth = 60, - autoResize = true - }, - new MultiColumnHeaderState.Column - { - headerContent = new UnityEngine.GUIContent("depth"), - headerTextAlignment = UnityEngine.TextAlignment.Right, - sortedAscending = true, - sortingArrowAlignment = UnityEngine.TextAlignment.Left, - width = 200, - minWidth = 60, - autoResize = true - }, - }; - - var state = new MultiColumnHeaderState(columns); - return state; - } - - #endregion - - #region Search - - protected void SearchStringChanged(string lastSearch, string newSearch) - { - - } - - #endregion - - #region Drawing - protected override void AfterRowsGUI() - { - base.AfterRowsGUI(); - this.searchString = StoredSearchString; - } - - //check here to see if multicolumn or not - protected override void RowGUI(RowGUIArgs args) - { - var evt = UnityEngine.Event.current; - var item = (AkWwiseTreeViewItem)args.item; - if (m_pickerMode == PickerMode.ComponentPicker) - { - CellGUI(args.rowRect, item, ObjectColumns.Name, ref args); - } - else - { - for (int i = 0; i < args.GetNumVisibleColumns(); ++i) - { - CellGUI(args.GetCellRect(i), item, (ObjectColumns)args.GetColumn(i), ref args); - } - } - } - - void CellGUI(UnityEngine.Rect cellRect, AkWwiseTreeViewItem item, ObjectColumns column, ref RowGUIArgs args) - { - // Center cell rect vertically (makes it easier to place controls, icons etc in the cells) - CenterRectUsingSingleLineHeight(ref cellRect); - - switch (column) - { - case ObjectColumns.Name: - { - UnityEngine.Rect iconRect = new UnityEngine.Rect(cellRect); - iconRect.x += GetContentIndent(item); - iconRect.width = AkWwisePickerIcons.kIconWidth; - UnityEngine.GUI.DrawTexture(iconRect, icons.GetIcon(item.objectType), UnityEngine.ScaleMode.ScaleToFit); - //// Default icon and label - args.rowRect = cellRect; - base.RowGUI(args); - } - break; - case ObjectColumns.Guid: - { - UnityEngine.GUI.Label(cellRect, item.objectGuid.ToString()); - } - break; - case ObjectColumns.Depth: - { - UnityEngine.GUI.Label(cellRect, item.depth.ToString()); - } - break; - } - } - - public void SetExpandedUpwardsRecursive(TreeViewItem item) - { - if (item == null) - { - return; - } - SetExpanded(item.id, true); - SetExpandedUpwardsRecursive(item.parent); - } - - public AkWwiseTreeViewItem Find(int id) - { - var result = this.m_Rows.FirstOrDefault(element => element.id == id); - return result as AkWwiseTreeViewItem; - } - - #endregion - - #region click and drag/drop - protected override bool CanMultiSelect(TreeViewItem item) - { - return false; - } - - protected override void SelectionChanged(IList selectedIds) - { - dataSource.ItemSelected(Find(selectedIds.Last())); - base.SelectionChanged(selectedIds); - } - - public bool CheckWaapi() - { - return AkWwiseEditorSettings.Instance.UseWaapi && AkWaapiUtilities.IsConnected() && - AkWwiseProjectInfo.GetData().currentDataSource == AkWwiseProjectInfo.DataSourceType.WwiseAuthoring; - } - - protected override void ContextClickedItem(int id) - { - UnityEditor.GenericMenu menu = new UnityEditor.GenericMenu(); - var item = Find(id); - if (CheckWaapi()) - { - if (CanPlay(item)) - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Play \u2215 Stop _SPACE"), false, - () => AkWaapiUtilities.TogglePlayEvent(item.objectType, item.objectGuid)); - else - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Play \u2215 Stop _Space")); - - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Stop All"), false, - () => AkWaapiUtilities.StopAllTransports()); - - menu.AddSeparator(""); - - if (CanRenameWithLog(item, false)) - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Rename _F2"), false, - () => BeginRename(item)); - else - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Rename")); - - if (CanDelete(item, false)) - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Delete _Delete"), false, - () => AkWaapiUtilities.Delete(item.objectGuid)); - else - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Delete")); - - menu.AddSeparator(""); - if (item.objectType == WwiseObjectType.Soundbank) - { - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Open Folder/WorkUnit #O"), false, - () => AkWaapiUtilities.OpenWorkUnitInExplorer(item.objectGuid)); - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Open Folder/SoundBank "), false, - () => AkWaapiUtilities.OpenSoundBankInExplorer(item.objectGuid)); - } - else - { - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Open Containing Folder #O"), false, - () => AkWaapiUtilities.OpenWorkUnitInExplorer(item.objectGuid)); - } - - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Find in Project Explorer #F"), false, - () => m_dataSource.SelectObjectInAuthoring(item.objectGuid)); - - } - else - { - if (AkWwiseProjectInfo.GetData().currentDataSource == AkWwiseProjectInfo.DataSourceType.WwiseAuthoring) - { - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Wwise Connection Settings"), false, - OpenSettings); - menu.AddSeparator(""); - } - - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Play \u2215 Stop")); - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Stop all")); - menu.AddSeparator(""); - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Rename")); - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Delete")); - menu.AddSeparator(""); - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Open Containing Folder")); - menu.AddDisabledItem(UnityEditor.EditorGUIUtility.TrTextContent("Find in Project Explorer")); - } - - menu.AddItem(UnityEditor.EditorGUIUtility.TrTextContent("Find References in Scene #R"), false, - () => FindReferencesInScene(item)); - - menu.ShowAsContext(); - } - - protected void OpenSettings() - { - UnityEditor.SettingsService.OpenProjectSettings("Project/Wwise Editor"); - } - - protected override void KeyEvent() - { - var selected = GetSelection(); - if (selected.Count == 0) - { - return; - } - var item = Find(GetSelection()[0]); - if (UnityEngine.Event.current.type == UnityEngine.EventType.KeyDown) - { - switch (UnityEngine.Event.current.keyCode) - { - case UnityEngine.KeyCode.KeypadEnter: - DoubleClickedItem(item.id); - UnityEngine.Event.current.Use(); - break; - case UnityEngine.KeyCode.Space: - if (CanPlay(item)) - AkWaapiUtilities.TogglePlayEvent(item.objectType, item.objectGuid); - UnityEngine.Event.current.Use(); - break; - case UnityEngine.KeyCode.Delete: - if (CanDelete(item)) - AkWaapiUtilities.Delete(item.objectGuid); - UnityEngine.Event.current.Use(); - break; - case UnityEngine.KeyCode.F2: - if (CanRename(item)) - BeginRename(item); - UnityEngine.Event.current.Use(); - break; - case UnityEngine.KeyCode.O: - if (UnityEngine.Event.current.shift) - { - if (CanOpen(item)) - AkWaapiUtilities.OpenWorkUnitInExplorer(item.objectGuid); - UnityEngine.Event.current.Use(); - } - break; - case UnityEngine.KeyCode.F: - if (UnityEngine.Event.current.shift) - { - if (CanSelect(item)) - m_dataSource.SelectObjectInAuthoring(item.objectGuid); - UnityEngine.Event.current.Use(); - } - break; - case UnityEngine.KeyCode.R: - if (UnityEngine.Event.current.shift) - { - FindReferencesInScene(item); - UnityEngine.Event.current.Use(); - } - break; - } - } - } - - internal static void FindReferencesInScene(AkWwiseTreeViewItem item) - { - var reference = WwiseObjectReference.FindWwiseObject(item.objectType, item.objectGuid); - var path = UnityEditor.AssetDatabase.GetAssetPath(reference); - - if (path.IndexOf(' ') != -1) - path = '"' + path + '"'; - - if (path == string.Empty) - { - UnityEngine.Debug.Log($"No references to {item.displayName} in scene."); - return; - } - -#if !UNITY_2019_1_OR_NEWER - //drop "Assets" part of path - path = string.Join("/", path.Split('/').Skip(1)); -#endif - - var searchFilter = "ref:" + path; - - System.Type type = typeof(UnityEditor.SearchableEditorWindow); - System.Reflection.FieldInfo info = type.GetField("searchableWindows", - System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static); - var searchableWindows = info.GetValue(null) as List; - - foreach (UnityEditor.SearchableEditorWindow sw in searchableWindows) - { - info = type.GetField("m_HierarchyType", - System.Reflection.BindingFlags.NonPublic); - if (sw.GetType().ToString() == "UnityEditor.SceneHierarchyWindow") - { - if (sw.GetType().ToString() == "UnityEditor.SceneHierarchyWindow") - { - System.Reflection.MethodInfo setSearchFilter = typeof(UnityEditor.SearchableEditorWindow).GetMethod( - "SetSearchFilter", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); - object[] parameters = new object[] { searchFilter, 0, false, false }; - - setSearchFilter.Invoke(sw, parameters); - sw.Repaint(); - } - } - } - } - - protected override void RenameEnded(RenameEndedArgs args) - { - var item = Find(args.itemID); - - if (ValidateNameChange(item, args.newName)) - { - var name = args.newName.Replace(" ", "_"); - AkWaapiUtilities.Rename(item.objectGuid, name); - item.displayName = args.newName; - } - } - protected override bool CanRename(TreeViewItem item) - { - return CanRenameWithLog(item, true); - } - - protected bool CanRenameWithLog(TreeViewItem item, bool log) - { - if (!CheckWaapi()) return false; - - var wwiseItem = (AkWwiseTreeViewItem)item; - if (item == null) - { - if (log) UnityEngine.Debug.LogWarning("Tree item no longer exists"); - return false; - } - - if ((wwiseItem.objectType == WwiseObjectType.PhysicalFolder) || (wwiseItem.objectType == WwiseObjectType.WorkUnit)) - { - if (log) UnityEngine.Debug.LogWarning("You can't change the name of a PhysicalFolder/WorkUnit"); - return false; - } - - if (item.parent == null) - { - if (log) UnityEngine.Debug.LogWarning("A root tree item can not be renamed"); - return false; - } - - return true; - } - - protected bool CanPlay(TreeViewItem item) - { - if (!CheckWaapi()) return false; - - var wwiseItem = (AkWwiseTreeViewItem)item; - if (wwiseItem.objectType == WwiseObjectType.Event) return true; - - return false; - } - protected bool CanDelete(TreeViewItem item, bool log = true) - { - if (!CheckWaapi()) return false; - - var wwiseItem = (AkWwiseTreeViewItem)item; - - if ((wwiseItem.objectType == WwiseObjectType.PhysicalFolder) || (wwiseItem.objectType == WwiseObjectType.WorkUnit) - || wwiseItem.WwiseTypeInChildren(WwiseObjectType.WorkUnit)) - { - if (log) UnityEngine.Debug.LogWarning("You can't delete a PhysicalFolder/WorkUnit from within Unity"); - return false; - } - - return true; - } - - protected bool CanSelect(TreeViewItem item) - { - if (!CheckWaapi()) return false; - return true; - } - - protected bool CanOpen(TreeViewItem item) - { - if (!CheckWaapi()) return false; - return true; - } - - const int MAX_NAME_LENGTH = 1024; - bool ValidateNameChange(AkWwiseTreeViewItem item, string newName) - { - if (item == null) - { - UnityEngine.Debug.LogWarning("Tree item no longer exists"); - return false; - } - - if (newName.Trim() == System.String.Empty) - { - UnityEngine.Debug.LogWarning("Names cannot be left blank"); - return false; - } - - if (newName.Trim().Length >= MAX_NAME_LENGTH) - { - UnityEngine.Debug.LogWarning($"Names must be less than {MAX_NAME_LENGTH} characters long."); - return false; - } - - // If the new name is the same as the old name, consider this to be unchanged - if (item.displayName == newName) - { - return false; - } - - if (newName.Contains('/') || newName.Contains('\\')) - { - UnityEngine.Debug.LogWarning("Item names cannot contain / or \\."); - return false; - } - - // Validate that an item with this name doesn't exist already - if (item.parent.children.Find((i) => i.displayName == newName) != null) - { - UnityEngine.Debug.LogWarning("An item with this name already exists at this level"); - return false; - } - - return true; - } - - public delegate void DoubleClickFunctionDelegate(AkWwiseTreeViewItem element); - - private DoubleClickFunctionDelegate doubleClickExternalFunction; - public void SetDoubleClickFunction(DoubleClickFunctionDelegate f) - { - doubleClickExternalFunction = f; - } - - protected override void DoubleClickedItem(int id) - { - base.DoubleClickedItem(id); - var doubleClickedElement = m_dataSource.Find(id); - doubleClickExternalFunction?.Invoke(doubleClickedElement); - } - - public bool DragDropEnabled; - protected override bool CanStartDrag(CanStartDragArgs args) - { - return DragDropEnabled; - } - - protected override void SetupDragAndDrop(SetupDragAndDropArgs args) - { - UnityEditor.DragAndDrop.PrepareStartDrag(); - - var draggedRows = GetRows().Where(item => args.draggedItemIDs.Contains(item.id)).ToList(); - var draggedItem = draggedRows[0] as AkWwiseTreeViewItem; - if (draggedItem.objectGuid == System.Guid.Empty || - draggedItem.objectType == WwiseObjectType.Bus || - draggedItem.objectType == WwiseObjectType.PhysicalFolder || - draggedItem.objectType == WwiseObjectType.Folder || - draggedItem.objectType == WwiseObjectType.WorkUnit || - draggedItem.objectType == WwiseObjectType.Project || - draggedItem.objectType == WwiseObjectType.StateGroup || - draggedItem.objectType == WwiseObjectType.SwitchGroup) - return; - - - var reference = WwiseObjectReference.FindOrCreateWwiseObject(draggedItem.objectType, draggedItem.name, draggedItem.objectGuid); - if (!reference) - return; - - var groupReference = reference as WwiseGroupValueObjectReference; - if (groupReference) - { - var parent = draggedItem.parent as AkWwiseTreeViewItem; - groupReference.SetupGroupObjectReference(parent.name, parent.objectGuid); - } - - UnityEditor.MonoScript script; - if (DragDropMonoScriptMap.TryGetValue(reference.WwiseObjectType, out script)) - { - UnityEngine.GUIUtility.hotControl = 0; - UnityEditor.DragAndDrop.PrepareStartDrag(); - UnityEditor.DragAndDrop.objectReferences = new UnityEngine.Object[] { script }; - AkWwiseTypes.DragAndDropObjectReference = reference; - UnityEditor.DragAndDrop.StartDrag("Dragging an AkObject"); - } - } - - public void SetDataSource(AkWwiseTreeDataSource datasource) - { - if (m_dataSource != null) - { - m_dataSource.modelChanged -= this.ModelChanged; - m_dataSource.TreeView = null; - } - m_dataSource = datasource; - m_dataSource.modelChanged += this.ModelChanged; - m_dataSource.TreeView = this; - m_dataSource.FetchData(); - } - - ~AkWwiseTreeView() - { - if (m_pickerMode != PickerMode.ComponentPicker && StoredSearchString == System.String.Empty) - { - SaveExpansionStatus(); - } - } - -#endregion -} - - -#region Icons -public class AkWwisePickerIcons -{ - public const float kIconWidth = 18f; - - private UnityEngine.Texture2D m_textureWwiseAcousticTextureIcon; - private UnityEngine.Texture2D m_textureWwiseAuxBusIcon; - private UnityEngine.Texture2D m_textureWwiseBusIcon; - private UnityEngine.Texture2D m_textureWwiseEventIcon; - private UnityEngine.Texture2D m_textureWwiseFolderIcon; - private UnityEngine.Texture2D m_textureWwiseGameParameterIcon; - private UnityEngine.Texture2D m_textureWwisePhysicalFolderIcon; - private UnityEngine.Texture2D m_textureWwiseProjectIcon; - private UnityEngine.Texture2D m_textureWwiseSoundbankIcon; - private UnityEngine.Texture2D m_textureWwiseStateIcon; - private UnityEngine.Texture2D m_textureWwiseStateGroupIcon; - private UnityEngine.Texture2D m_textureWwiseSwitchIcon; - private UnityEngine.Texture2D m_textureWwiseSwitchGroupIcon; - private UnityEngine.Texture2D m_textureWwiseWorkUnitIcon; - - protected UnityEngine.Texture2D GetTexture(string texturePath) - { - try - { - return UnityEditor.AssetDatabase.LoadAssetAtPath(texturePath); - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError(string.Format("WwiseUnity: Failed to find local texture: {0}", ex)); - return null; - } - } - - public void LoadIcons() - { - var tempWwisePath = "Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/"; - - m_textureWwiseAcousticTextureIcon = GetTexture(tempWwisePath + "acoustictexture_nor.png"); - m_textureWwiseAuxBusIcon = GetTexture(tempWwisePath + "auxbus_nor.png"); - m_textureWwiseBusIcon = GetTexture(tempWwisePath + "bus_nor.png"); - m_textureWwiseEventIcon = GetTexture(tempWwisePath + "event_nor.png"); - m_textureWwiseFolderIcon = GetTexture(tempWwisePath + "folder_nor.png"); - m_textureWwiseGameParameterIcon = GetTexture(tempWwisePath + "gameparameter_nor.png"); - m_textureWwisePhysicalFolderIcon = GetTexture(tempWwisePath + "physical_folder_nor.png"); - m_textureWwiseProjectIcon = GetTexture(tempWwisePath + "wproj.png"); - m_textureWwiseSoundbankIcon = GetTexture(tempWwisePath + "soundbank_nor.png"); - m_textureWwiseStateIcon = GetTexture(tempWwisePath + "state_nor.png"); - m_textureWwiseStateGroupIcon = GetTexture(tempWwisePath + "stategroup_nor.png"); - m_textureWwiseSwitchIcon = GetTexture(tempWwisePath + "switch_nor.png"); - m_textureWwiseSwitchGroupIcon = GetTexture(tempWwisePath + "switchgroup_nor.png"); - m_textureWwiseWorkUnitIcon = GetTexture(tempWwisePath + "workunit_nor.png"); - } - - public UnityEngine.Texture2D GetIcon(WwiseObjectType type) - { - switch (type) - { - case WwiseObjectType.AcousticTexture: - return m_textureWwiseAcousticTextureIcon; - case WwiseObjectType.AuxBus: - return m_textureWwiseAuxBusIcon; - case WwiseObjectType.Bus: - return m_textureWwiseBusIcon; - case WwiseObjectType.Event: - return m_textureWwiseEventIcon; - case WwiseObjectType.Folder: - return m_textureWwiseFolderIcon; - case WwiseObjectType.GameParameter: - return m_textureWwiseGameParameterIcon; - case WwiseObjectType.PhysicalFolder: - return m_textureWwisePhysicalFolderIcon; - case WwiseObjectType.Project: - return m_textureWwiseProjectIcon; - case WwiseObjectType.Soundbank: - return m_textureWwiseSoundbankIcon; - case WwiseObjectType.State: - return m_textureWwiseStateIcon; - case WwiseObjectType.StateGroup: - return m_textureWwiseStateGroupIcon; - case WwiseObjectType.Switch: - return m_textureWwiseSwitchIcon; - case WwiseObjectType.SwitchGroup: - return m_textureWwiseSwitchGroupIcon; - case WwiseObjectType.WorkUnit: - return m_textureWwiseWorkUnitIcon; - default: - return m_textureWwisePhysicalFolderIcon; - } - } -} -#endregion -#endif diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeView.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeView.cs.meta deleted file mode 100644 index 58fc75f52..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeView.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f1154c445cddd1a4d912765f7ad3ece5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeViewItem.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeViewItem.cs deleted file mode 100644 index 040a03508..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeViewItem.cs +++ /dev/null @@ -1,172 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Linq; -using System.Collections.Generic; -using UnityEditor.IMGUI.Controls; -using UnityEngine; - -public class AkWwiseTreeViewItem : TreeViewItem, System.IEquatable -{ - public System.Guid objectGuid; - public WwiseObjectType objectType; - public int numChildren; - - public string name - { - get { return displayName; } - set { - displayName = value; - if (parent != null) - { - parent.children.Sort(); - } - } - } - - private int m_depth; - public override int depth - { - get { return m_depth; } - set { - m_depth= value; - if (children != null) - { - foreach (var child in this.children) - { - if (child != null && child.depth != depth + 1) - child.depth = depth + 1; - } - } - } - } - - public AkWwiseTreeViewItem(WwiseObjectInfo info, int id, int depth) : base(id, depth, info.name) - { - objectGuid = info.objectGUID; - objectType = info.type; - numChildren = info.childrenCount; - - if (objectType == WwiseObjectType.Event) - { - numChildren = 0; - } - - children = new List(); - this.depth = depth; - - } - - public AkWwiseTreeViewItem(string displayName, int depth, int id, System.Guid objGuid, WwiseObjectType objType) : base(id, depth, displayName) - { - objectGuid = objGuid; - objectType = objType; - - children = new List(); - this.depth = depth; - } - - public AkWwiseTreeViewItem() - { - objectGuid = System.Guid.Empty; - objectType = WwiseObjectType.None; - children = new List(); - } - - public AkWwiseTreeViewItem(AkWwiseTreeViewItem other) : base(other.id, other.depth, other.displayName) - { - objectGuid = other.objectGuid; - objectType = other.objectType; - children = new List(); - this.depth = other.depth; - } - - public bool Equals(AkWwiseTreeViewItem other) - { - return objectGuid == other.objectGuid && displayName == other.displayName && objectType == other.objectType; - } - - public void AddWwiseItemChild(AkWwiseTreeViewItem child) - { - child.depth = this.depth + 1; - child.parent = this; - children.Add(child); - children.Sort(); - } - - public override int CompareTo(TreeViewItem B) - { - return CompareTo(this, B as AkWwiseTreeViewItem); - } - public int CompareTo(AkWwiseTreeViewItem A, AkWwiseTreeViewItem B) - { - // Items are sorted like so: - // 1- Physical folders, sorted alphabetically - // 1- WorkUnits, sorted alphabetically (with default work unit first) - // 2- Virtual folders, sorted alphabetically - // 3- Normal items, sorted alphabetically - if (A.objectType == B.objectType) - { - if (A.objectType == WwiseObjectType.WorkUnit) - { - if (A.displayName == "Default Work Unit") - return -1; - else if (B.displayName == "Default Work Unit") - return 1; - } - return string.CompareOrdinal(A.displayName, B.displayName); - } - else if (A.objectType == WwiseObjectType.PhysicalFolder) - { - return -1; - } - else if (B.objectType == WwiseObjectType.PhysicalFolder) - { - return 1; - } - else if (A.objectType == WwiseObjectType.WorkUnit || A.objectType == WwiseObjectType.WorkUnit) - { - return -1; - } - else if (B.objectType == WwiseObjectType.WorkUnit || B.objectType == WwiseObjectType.WorkUnit) - { - return 1; - } - else if (A.objectType == WwiseObjectType.Folder) - { - return -1; - } - else if (B.objectType == WwiseObjectType.Folder) - { - return 1; - } - else if (A.objectType == WwiseObjectType.Bus || B.objectType == WwiseObjectType.AuxBus) - { - return -1; - } - else if (A.objectType == WwiseObjectType.AuxBus || B.objectType == WwiseObjectType.Bus) - { - return 1; - } - else - { - return 1; - } - } - - public bool WwiseTypeInChildren(WwiseObjectType t) - { - if (this.objectType == t) return true; - - foreach (var child in children) - { - if ((child as AkWwiseTreeViewItem).WwiseTypeInChildren(t)) return true; - } - return false; - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeViewItem.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeViewItem.cs.meta deleted file mode 100644 index a51e415a7..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeViewItem.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8fc198a18167442409e698ae9a2e7116 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeWAAPIDataSource.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeWAAPIDataSource.cs deleted file mode 100644 index de146c989..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeWAAPIDataSource.cs +++ /dev/null @@ -1,741 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Linq; -using System.Collections.Generic; -using System.Collections.Concurrent; -using System.Collections.ObjectModel; -using UnityEditor.IMGUI.Controls; - -/// -/// This class communicates with Wwise Authoring via AkWaapiUtilities to keep track of the Wwise object hierarchy in the project. -/// This hierarchy information is stored in a tree structure and is used by the Wwise Picker when it is in WAAPI mode. -/// Changes to the project are received via WAAPI subscriptions. -/// -public class AkWwiseTreeWAAPIDataSource : AkWwiseTreeDataSource -{ - - private System.Timers.Timer selectTimer; - private System.Timers.Timer searchTimer; - - private ReturnOptions waapiWwiseObjectOptions = - new ReturnOptions(new string[] { "id", "name", "type", "childrenCount", "path", "workunitType", "parent" }); - - - public bool AutoSyncSelection; - - public AkWwiseTreeWAAPIDataSource() : base() - { - Connect(); - - selectTimer = new System.Timers.Timer(); - selectTimer.Interval = 200; - selectTimer.AutoReset = false; - selectTimer.Elapsed += FireSelect; - - searchTimer = new System.Timers.Timer(); - searchTimer.Interval = 200; - searchTimer.AutoReset = false; - searchTimer.Elapsed += FireSearch; - } - - public override void FetchData() - { - Data.Clear(); - m_MaxID = 0; - ProjectRoot = CreateProjectRootItem(); - - foreach (var type in FolderNames.Keys) - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - AddBaseFolder(AkWaapiUtilities.ParseObjectInfo(items), type); - }; - AkWaapiUtilities.GetWwiseObjectAndDescendants(FolderNames[type], waapiWwiseObjectOptions, 2, callback); - } - Changed(); - } - - public override AkWwiseTreeViewItem GetComponentDataRoot(WwiseObjectType objectType) - { - var tempProjectRoot = new AkWwiseTreeViewItem(ProjectRoot); - if (!wwiseObjectFolders.ContainsKey(objectType)) - { - return tempProjectRoot; - } - - tempProjectRoot.AddWwiseItemChild(wwiseObjectFolders[objectType]); - return tempProjectRoot; - } - - WwiseObjectType componentObjectType; - public override void LoadComponentData(WwiseObjectType objectType) - { - componentObjectType = objectType; - LoadComponentDataDelayed(); - } - - public void LoadComponentDataDelayed() - { - //Delay call until data has been fetched - if (!wwiseObjectFolders.ContainsKey(componentObjectType)) - { - UnityEditor.EditorApplication.delayCall += LoadComponentDataDelayed; - } - else - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - AddItems(AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetWwiseObjectAndDescendants(wwiseObjectFolders[componentObjectType].objectGuid, - waapiWwiseObjectOptions, -1, callback); - } - } - - - private string searchString; - private WwiseObjectType searchObjectTypeFilter; - public override void UpdateSearchResults(string searchFilter, WwiseObjectType objectType = WwiseObjectType.None) - { - searchTimer.Stop(); - searchString = searchFilter; - searchObjectTypeFilter = objectType; - searchTimer.Enabled = true; - searchTimer.Start(); - } - - private void FireSearch(object sender, System.Timers.ElapsedEventArgs e) - { - if (SearchRoot == null) - { - SearchRoot = new AkWwiseTreeViewItem(ProjectRoot); - } - - SearchRoot.children.Clear(); - SearchItems = new List(new[] { SearchRoot }); - TreeUtility.TreeToList(SearchRoot, SearchItems); - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - AddSearchResults(AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.Search(searchString, searchObjectTypeFilter, waapiWwiseObjectOptions, callback); - } - - public override AkWwiseTreeViewItem GetSearchResults() - { - if (SearchRoot == null) - { - SearchRoot = new AkWwiseTreeViewItem(ProjectRoot); - } - - return SearchRoot; - } - - public void AddSearchResults(IEnumerable matchList) - { - try - { - foreach (var info in matchList) - { - if (!FilterPath(info.path)) - { - continue; - } - - var match = Find(SearchItems, info.objectGUID); - if (match != null) - { - continue; - } - - var matchItem = Find(info.objectGUID); - if (matchItem == null) - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - AddItemWithAncestorsToSearch(AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetWwiseObjectAndAncestors(info.objectGUID, waapiWwiseObjectOptions, callback); - continue; - } - - AddItemToSearch(matchItem); - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => Expand(matchItem.objectGuid, false))); - } - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("Search died"); - UnityEngine.Debug.LogError(e.Message); - } - } - - private void AddItemToSearch(AkWwiseTreeViewItem sourceItem) - { - var matchItem = new AkWwiseTreeViewItem(sourceItem); - SearchItems.Add(matchItem); - - var sourceParent = sourceItem.parent as AkWwiseTreeViewItem; - var parentCopy = Find(SearchItems, sourceParent.objectGuid); - if (parentCopy != null) - { - parentCopy.AddWwiseItemChild(matchItem); - return; - } - else - { - parentCopy = new AkWwiseTreeViewItem(sourceParent); - parentCopy.AddWwiseItemChild(matchItem); - SearchItems.Add(parentCopy); - - var nextParent = sourceParent.parent as AkWwiseTreeViewItem; - while (nextParent != null) - { - var parentInSearchItems = Find(SearchItems, nextParent.objectGuid); - if (parentInSearchItems != null) - { - parentInSearchItems.AddWwiseItemChild(parentCopy); - break; - } - parentInSearchItems = new AkWwiseTreeViewItem(nextParent); - parentInSearchItems.AddWwiseItemChild(parentCopy); - SearchItems.Add(parentInSearchItems); - parentCopy = parentInSearchItems; - nextParent = nextParent.parent as AkWwiseTreeViewItem; - } - } - } - - public void AddItemWithAncestors(List infoItems, bool selectAfterCreated = false) - { - var parent = ProjectRoot; - //Items obtained from the WAAPI call are sorted by path so we can simply iterate over them - foreach (var infoItem in infoItems) - { - var newItem = Find(infoItem.objectGUID); - if (newItem == null) - { - newItem = new AkWwiseTreeViewItem(infoItem, GenerateUniqueID(), parent.depth + 1); - Data.Add(newItem); - parent.AddWwiseItemChild(newItem); - } - - if (!CheckIfFullyLoaded(parent)) - { - System.Guid guid = new System.Guid(parent.objectGuid.ToString()); - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - UpdateParentWithLoadedChildren(guid, AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetChildren(parent.objectGuid, waapiWwiseObjectOptions, callback); - } - parent = newItem; - } - - if (selectAfterCreated) - { - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => Expand(parent.objectGuid, true))); - } - } - - public void AddItemWithAncestorsToSearch(List infoItems) - { - AddItemWithAncestors(infoItems, false); - var item = Find(infoItems.Last().objectGUID); - AddItemToSearch(item); - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => Expand(item.objectGuid, false))); - } - - public void AddItems(List infoItems) - { - foreach (var infoItem in infoItems) - { - if (infoItem.type == WwiseObjectType.None) - { - continue; - } - - var tParent = Find(infoItem.parentID); - if (tParent == null || tParent == ProjectRoot) - { - tParent = ProjectRoot; - } - - var tChild = Find(infoItem.objectGUID); - if (tChild == null) - { - tChild = new AkWwiseTreeViewItem(infoItem, GenerateUniqueID(), tParent.depth + 1); - Data.Add(tChild); - tParent.AddWwiseItemChild(tChild); - } - } - } - - public void AddBaseFolder(List infoItems, WwiseObjectType oType) - { - if (infoItems != null && infoItems.Count > 0) - { - AddItems(infoItems); - var folder = Find(infoItems[0].objectGUID); - wwiseObjectFolders[oType] = folder; - } - } - - public void UpdateParentWithLoadedChildren(System.Guid parentGuid, List children) - { - if (children == null) - { - return; - } - - var parent = Find(parentGuid); - if (parent == null) - { - return; - } - parent.children.Remove(null); - - parent.numChildren = children.Count; - if (parent.children.Count > children.Count) - { - parent.children.Clear(); - } - - foreach (var child in children) - { - if (parent.children.Any(c => ((AkWwiseTreeViewItem)c).objectGuid == child.objectGUID)) - continue; - else - parent.AddWwiseItemChild(new AkWwiseTreeViewItem(child, GenerateUniqueID(), parent.depth + 1)); - } - } - - public void SetChildren(System.Guid parentGuid, List children) - { - if (children == null) - { - return; - } - - var parent = Find(parentGuid); - parent.children.Clear(); - parent.children.Remove(null); - - parent.numChildren = children.Count; - - foreach (var child in children) - { - parent.AddWwiseItemChild(new AkWwiseTreeViewItem(child, GenerateUniqueID(), parent.depth + 1)); - } - } - - bool CheckIfFullyLoaded(AkWwiseTreeViewItem item) - { - if (item == ProjectRoot) - { - return true; - } - if (item.objectType == WwiseObjectType.Event) - { - return true; - } - if (item.numChildren != item.children.Count) - { - return false; - } - if (item.children.Contains(null)) - { - return false; - } - return true; - } - - private ReadOnlyDictionary FolderNames = new ReadOnlyDictionary(new Dictionary() - { - { WwiseObjectType.AuxBus , @"\Master-Mixer Hierarchy" }, - { WwiseObjectType.Event , @"\Events" }, - { WwiseObjectType.State, @"\States"}, - { WwiseObjectType.StateGroup, @"\States"}, - { WwiseObjectType.Soundbank, @"\SoundBanks"}, - { WwiseObjectType.Switch, @"\Switches"}, - { WwiseObjectType.SwitchGroup, @"\Switches"}, - { WwiseObjectType.AcousticTexture, @"\Virtual Acoustics" }, - { WwiseObjectType.GameParameter, @"\Game Parameters" }, - }); - - - static List subscriptions = new List(); - - /// - /// Subscribes to nameChanged, childAdded, childRemoved, and selectionChanged WAAPI events in order to keep the picker in sync with the Wwise project explorer. - /// - public void SubscribeTopics() - { - AkWaapiUtilities.Subscribe(ak.wwise.core.@object.nameChanged, OnWaapiRenamed, SubscriptionHandshake); - AkWaapiUtilities.Subscribe(ak.wwise.core.@object.childAdded, OnWaapiChildAdded, SubscriptionHandshake); - AkWaapiUtilities.Subscribe(ak.wwise.core.@object.childRemoved, OnWaapiChildRemoved, SubscriptionHandshake); - AkWaapiUtilities.Subscribe(ak.wwise.ui.selectionChanged, OnWwiseSelectionChanged, SubscriptionHandshake); - } - - public void SubscriptionHandshake(AkWaapiUtilities.SubscriptionInfo sub) - { - subscriptions.Add(sub); - } - - /// - /// Unsubscribes from currently active subscriptions. - /// - void UnsubscribeTopics() - { - var tSubs = subscriptions; - foreach (var sub in tSubs) - { - if (sub.SubscriptionId != 0) - { - AkWaapiUtilities.Unsubscribe(sub.SubscriptionId); - } - } - subscriptions.Clear(); - } - - void OnWaapiRenamed(string json) - { - var renamedItem = AkWaapiUtilities.ParseRenameObject(json); - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => Rename(renamedItem.objectInfo.objectGUID, renamedItem.newName))); - } - - void OnWaapiChildAdded(string json) - { - var added = AkWaapiUtilities.ParseChildAddedOrRemoved(json); - - if (added.childInfo.type == WwiseObjectType.None) - return; - - var parent = Find(added.parentInfo.objectGUID); - - // New object created, but parent is not loaded yet, so we can ignore it - if (parent == null) - { - return; - } - - var child = Find(added.childInfo.objectGUID); - if (child == null) - { - child = new AkWwiseTreeViewItem(added.childInfo, GenerateUniqueID(), parent.depth + 1); - } - else - { - child.numChildren = added.childInfo.childrenCount; - child.displayName = added.childInfo.name; - } - - parent.AddWwiseItemChild(child); - Data.Add(child); - parent.numChildren = added.parentInfo.childrenCount; - child.depth = parent.depth + 1; - - if (!CheckIfFullyLoaded(parent)) - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - UpdateParentWithLoadedChildren(parent.objectGuid, AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetChildren(parent.objectGuid, waapiWwiseObjectOptions, callback); - } - - if (!CheckIfFullyLoaded(child)) - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - UpdateParentWithLoadedChildren(child.objectGuid, AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetChildren(child.objectGuid, waapiWwiseObjectOptions, callback); - } - ScheduleRebuild(); - } - - void OnWaapiChildRemoved(string json) - { - var removed = AkWaapiUtilities.ParseChildAddedOrRemoved(json); - toRequeue.Enqueue(new TreeViewCommand(() => Remove(removed.parentInfo, removed.childInfo))); - } - - void OnWwiseSelectionChanged(string json) - { - if (AutoSyncSelection) - { - var objects = AkWaapiUtilities.ParseSelectedObjects(json); - if (objects.Count > 0) - { - if (FilterPath(objects[0].path)) - { - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => SelectItem(objects[0].objectGUID))); - } - } - } - } - - public void Rename(System.Guid objectGuid, string newName) - { - var item = Find(objectGuid); - if (item != null) - { - item.name = newName; - } - else - { - toRequeue.Enqueue(new TreeViewCommand(() => Rename(objectGuid, newName))); - } - } - - public void Remove(WwiseObjectInfo parentInfo, WwiseObjectInfo childInfo) - { - var parent = Find(parentInfo.objectGUID); - - //Object removed, but it was never loaded so we can ignore it - if (parent == null) - { - return; - } - - parent.numChildren = parentInfo.childrenCount; - var index = parent.children.FindIndex(el => ((AkWwiseTreeViewItem)el).objectGuid == childInfo.objectGUID); - if (index != -1) - { - parent.children.RemoveAt(index); - } - } - - public void Expand(System.Guid objectGuid, bool select) - { - if (TreeView == null || !TreeView.ExpandItem(objectGuid, select)) - { - toRequeue.Enqueue(new TreeViewCommand(() => Expand(objectGuid, select))); - } - } - - public override void SelectItem(System.Guid itemGuid) - { - if (TreeView == null) - { - return; - } - - if (TreeView.m_storedSearchString != string.Empty) - { - return; - } - - if (!TreeView.ExpandItem(itemGuid, true)) - { - var item = Find(itemGuid); - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => Expand(itemGuid, true))); - - if (item == null) - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - AddItemWithAncestors(AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetWwiseObjectAndAncestors(itemGuid, waapiWwiseObjectOptions, callback); - } - } - } - - public bool FilterPath(string path) - { - var splitpath = path.Split('\\'); - if (splitpath.Length > 1) - { - var folder = @"\" + splitpath[1]; - if (FolderNames.Values.Contains(folder) || WaapiKeywords.FolderDisplaynames.Values.Contains(folder)) - { - return true; - } - } - return false; - } - - public override void ItemSelected(AkWwiseTreeViewItem item) - { - if (AutoSyncSelection) - { - SelectObjectInAuthoring(item.objectGuid); - } - } - - private System.Guid guidToSelect; - public override void SelectObjectInAuthoring(System.Guid objectGuid) - { - selectTimer.Stop(); - guidToSelect = objectGuid; - selectTimer.Enabled = true; - selectTimer.Start(); - } - - private void FireSelect(object sender, System.Timers.ElapsedEventArgs e) - { - AkWaapiUtilities.SelectObjectInAuthoring(guidToSelect); - } - - //Make a single command queue - private ConcurrentQueue treeviewCommandQueue = new ConcurrentQueue(); - private Queue toRequeue = new Queue(); - - public class TreeViewCommand - { - public System.Action payload; - - public TreeViewCommand(System.Action payload) - { - this.payload = payload; - } - public void Execute() - { - payload.Invoke(); - } - } - - public override void ScheduleRebuild() - { - rebuildFlag = true; - } - - private bool rebuildFlag = false; - private bool refreshFlag = false; - - public void Update() - { - while (treeviewCommandQueue.Count > 0) - { - if (treeviewCommandQueue.TryDequeue(out TreeViewCommand cmd)) - { - cmd.Execute(); - refreshFlag = true; - } - } - - while (toRequeue.Count > 0) - { - treeviewCommandQueue.Enqueue(toRequeue.Dequeue()); - } - - //Preemptively load items in heirarchy that are close to being exposed ( up to grandchildren of unexpanded items) - if (rebuildFlag) - { - TreeUtility.TreeToList(ProjectRoot, Data); - if (TreeView != null) - { - Preload(ProjectRoot, TreeView.state); - } - refreshFlag = true; - rebuildFlag = false; - } - - - //Updates treeView data and sets repaint flag - if (refreshFlag) - { - Changed(); - refreshFlag = false; - } - } - - void Preload(AkWwiseTreeViewItem parent, TreeViewState treeState) - { - if (parent == null) - { - return; - } - - if (!CheckIfFullyLoaded(parent)) - { - AkWaapiUtilities.GetResultListDelegate callback = (List items) => - { - UpdateParentWithLoadedChildren(parent.objectGuid, AkWaapiUtilities.ParseObjectInfo(items)); - }; - AkWaapiUtilities.GetChildren(parent.objectGuid, waapiWwiseObjectOptions, callback); - } - - //Preload one level of hidden items. - if (IsExpanded(treeState, parent.id) || (parent.parent != null && IsExpanded(treeState, parent.parent.id)) || - parent.id == ProjectRoot.id ) - { - foreach (AkWwiseTreeViewItem childItem in parent.children) - { - - Preload(childItem, treeState); - } - } - } - - public override void SetExpanded(IEnumerable ids) - { - if (TreeView != null) - { - foreach (var id in ids) - { - treeviewCommandQueue.Enqueue(new TreeViewCommand(() => Expand(id, false))); - } - TreeView.state.expandedIDs.Clear(); - } - } - - public void Connect() - { - AkWaapiUtilities.Connected += OnConnection; - AkWaapiUtilities.QueueConsumed += ScheduleRebuild; - AkWaapiUtilities.Disconnecting += Disconnect; - } - - public void OnConnection() - { - SubscribeTopics(); - FetchData(); - } - - public void Disconnect(bool still_connected) - { - this.treeviewCommandQueue = new ConcurrentQueue(); - if (ProjectRoot != null) - ProjectRoot.children = new List(); - if (still_connected) - { - UnsubscribeTopics(); - } - else - { - subscriptions.Clear(); - } - Changed(); - } - - - public void Cleanup() - { - subscriptions.Clear(); - } - - - ~AkWwiseTreeWAAPIDataSource() - { - Disconnect(true); - } - - public override void SaveExpansionStatus(List expandedItems) - { - AkWwiseProjectInfo.GetData().ExpandedWaapiItemIds = expandedItems; - } - - public override List LoadExpansionSatus() - { - return AkWwiseProjectInfo.GetData().ExpandedWaapiItemIds; - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeWAAPIDataSource.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeWAAPIDataSource.cs.meta deleted file mode 100644 index 10fa9173c..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseTreeWAAPIDataSource.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6838c30b0f8791c4898666cbd6d20edf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseWWUBuilder.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseWWUBuilder.cs deleted file mode 100644 index a7b249fc2..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseWWUBuilder.cs +++ /dev/null @@ -1,947 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -#pragma warning disable 0168 -[UnityEditor.InitializeOnLoad] -public class AkWwiseWWUBuilder -{ - private const string s_progTitle = "Populating Wwise Picker"; - private const int s_SecondsBetweenChecks = 3; - - private static string s_wwiseProjectPath = System.IO.Path.GetDirectoryName(AkWwiseEditorSettings.WwiseProjectAbsolutePath); - - private static System.DateTime s_lastFileCheck = System.DateTime.Now.AddSeconds(-s_SecondsBetweenChecks); - private static readonly FileInfo_CompareByPath s_FileInfo_CompareByPath = new FileInfo_CompareByPath(); - - private readonly System.Collections.Generic.HashSet m_WwuToProcess = - new System.Collections.Generic.HashSet(); - - private int m_currentWwuCnt; - private int m_totWwuCnt = 1; - - private static void Tick() - { - isTicking = true; - - if (AkWwiseProjectInfo.GetData() != null) - { - if (System.DateTime.Now.Subtract(s_lastFileCheck).Seconds > s_SecondsBetweenChecks && - !UnityEditor.EditorApplication.isCompiling && !UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode && - AkWwiseProjectInfo.GetData().autoPopulateEnabled) - { - if (Populate()) - { - AkWwiseXMLBuilder.Populate(); - //check if WAAPI or not - AkWwisePicker.Refresh(ignoreIfWaapi: true); - //Make sure that the Wwise picker and the inspector are updated - AkUtilities.RepaintInspector(); - } - - s_lastFileCheck = System.DateTime.Now; - } - } - } - - public static void InitializeWwiseProjectData() - { - try - { - if (string.IsNullOrEmpty(AkWwiseEditorSettings.Instance.WwiseProjectPath)) - { - UnityEngine.Debug.LogError("WwiseUnity: Wwise project needed to populate from Work Units. Aborting."); - return; - } - - var fullWwiseProjectPath = AkWwiseEditorSettings.WwiseProjectAbsolutePath; - s_wwiseProjectPath = System.IO.Path.GetDirectoryName(fullWwiseProjectPath); - - AkUtilities.IsWwiseProjectAvailable = System.IO.File.Exists(fullWwiseProjectPath); - if (!AkUtilities.IsWwiseProjectAvailable || UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || string.IsNullOrEmpty(s_wwiseProjectPath) || - UnityEditor.EditorApplication.isCompiling) - return; - - var builder = new AkWwiseWWUBuilder(); - builder.GatherModifiedFiles(); - builder.UpdateFiles(); - } - catch - { - } - } - - public static bool Populate() - { - try - { - if (string.IsNullOrEmpty(AkWwiseEditorSettings.Instance.WwiseProjectPath)) - { - UnityEngine.Debug.LogError("WwiseUnity: Wwise project needed to populate from Work Units. Aborting."); - return false; - } - - var fullWwiseProjectPath = AkWwiseEditorSettings.WwiseProjectAbsolutePath; - s_wwiseProjectPath = System.IO.Path.GetDirectoryName(fullWwiseProjectPath); - - AkUtilities.IsWwiseProjectAvailable = System.IO.File.Exists(fullWwiseProjectPath); - if (!AkUtilities.IsWwiseProjectAvailable || UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || string.IsNullOrEmpty(s_wwiseProjectPath) || - (UnityEditor.EditorApplication.isCompiling && !AkUtilities.IsMigrating)) - return false; - - AkPluginActivator.Update(); - - var builder = new AkWwiseWWUBuilder(); - if (!builder.GatherModifiedFiles()) - return false; - - builder.UpdateFiles(); - return true; - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError(e.ToString()); - UnityEditor.EditorUtility.ClearProgressBar(); - return true; - } - } - - public static void UpdateWwiseObjectReferenceData() - { - UnityEngine.Debug.Log("WwiseUnity: Updating Wwise Object References"); - - WwiseObjectReference.ClearWwiseObjectDataMap(); - UpdateWwiseObjectReference(WwiseObjectType.AuxBus, AkWwiseProjectInfo.GetData().AuxBusWwu); - UpdateWwiseObjectReference(WwiseObjectType.Event, AkWwiseProjectInfo.GetData().EventWwu); - UpdateWwiseObjectReference(WwiseObjectType.Soundbank, AkWwiseProjectInfo.GetData().BankWwu); - UpdateWwiseObjectReference(WwiseObjectType.GameParameter, AkWwiseProjectInfo.GetData().RtpcWwu); - UpdateWwiseObjectReference(WwiseObjectType.Trigger, AkWwiseProjectInfo.GetData().TriggerWwu); - UpdateWwiseObjectReference(WwiseObjectType.AcousticTexture, AkWwiseProjectInfo.GetData().AcousticTextureWwu); - UpdateWwiseObjectReference(WwiseObjectType.StateGroup, WwiseObjectType.State, AkWwiseProjectInfo.GetData().StateWwu); - UpdateWwiseObjectReference(WwiseObjectType.SwitchGroup, WwiseObjectType.Switch, AkWwiseProjectInfo.GetData().SwitchWwu); - } - - private int RecurseWorkUnit(AssetType in_type, System.IO.FileInfo in_workUnit, string in_currentPathInProj, - string in_currentPhysicalPath, System.Collections.Generic.LinkedList in_pathAndIcons, - string in_parentPath = "") - { - m_WwuToProcess.Remove(in_workUnit.FullName); - var wwuIndex = -1; - try - { - //Progress bar stuff - var msg = "Parsing Work Unit " + in_workUnit.Name; - UnityEditor.EditorUtility.DisplayProgressBar(s_progTitle, msg, m_currentWwuCnt / (float)m_totWwuCnt); - m_currentWwuCnt++; - - in_currentPathInProj = - System.IO.Path.Combine(in_currentPathInProj, System.IO.Path.GetFileNameWithoutExtension(in_workUnit.Name)); - - var WwuPhysicalPath = System.IO.Path.Combine(in_currentPhysicalPath, in_workUnit.Name); - - var wwu = ReplaceWwuEntry(WwuPhysicalPath, in_type, out wwuIndex); - - wwu.ParentPath = in_currentPathInProj; - wwu.PhysicalPath = WwuPhysicalPath; - wwu.Guid = System.Guid.Empty; - wwu.LastTime = System.IO.File.GetLastWriteTime(in_workUnit.FullName); - - using (var reader = System.Xml.XmlReader.Create(in_workUnit.FullName)) - { - reader.MoveToContent(); - reader.Read(); - - while (!reader.EOF && reader.ReadState == System.Xml.ReadState.Interactive) - { - if (reader.NodeType == System.Xml.XmlNodeType.Element && reader.Name.Equals("WorkUnit")) - { - if (wwu.Guid.Equals(System.Guid.Empty)) - { - var ID = reader.GetAttribute("ID"); - try - { - wwu.Guid = new System.Guid(ID); - in_pathAndIcons.AddLast(new AkWwiseProjectData.PathElement( - System.IO.Path.GetFileNameWithoutExtension(in_workUnit.Name), WwiseObjectType.WorkUnit, wwu.Guid)); - wwu.PathAndIcons = new System.Collections.Generic.List(in_pathAndIcons); - - } - catch - { - UnityEngine.Debug.LogWarning("WwiseUnity: Error reading ID <" + ID + "> from work unit <" + in_workUnit.FullName + ">."); - throw; - } - } - - var persistMode = reader.GetAttribute("PersistMode"); - if (persistMode == "Reference") - { - // ReadFrom advances the reader - var matchedElement = System.Xml.Linq.XNode.ReadFrom(reader) as System.Xml.Linq.XElement; - var newWorkUnitPath = - System.IO.Path.Combine(in_workUnit.Directory.FullName, matchedElement.Attribute("Name").Value + ".wwu"); - var newWorkUnit = new System.IO.FileInfo(newWorkUnitPath); - - // Parse the referenced Work Unit - RecurseWorkUnit(in_type, newWorkUnit, in_currentPathInProj, in_currentPhysicalPath, in_pathAndIcons, - WwuPhysicalPath); - } - else - { - // If the persist mode is "Standalone" or "Nested", it means the current XML tag - // is the one corresponding to the current file. We can ignore it and advance the reader - reader.Read(); - } - } - else if (reader.NodeType == System.Xml.XmlNodeType.Element && (reader.Name.Equals("AuxBus") || reader.Name.Equals("Folder") || reader.Name.Equals("Bus"))) - { - WwiseObjectType objType; - switch (reader.Name) - { - case "AuxBus": - objType = WwiseObjectType.AuxBus; - break; - - case "Bus": - objType = WwiseObjectType.Bus; - break; - - case "Folder": - default: - objType = WwiseObjectType.Folder; - break; - } - in_currentPathInProj = System.IO.Path.Combine(in_currentPathInProj, reader.GetAttribute("Name")); - in_pathAndIcons.AddLast(new AkWwiseProjectData.PathElement(reader.GetAttribute("Name"), objType, new System.Guid(reader.GetAttribute("ID")))); - bool IsEmptyElement = reader.IsEmptyElement; // Need to cache this because AddElementToList advances the reader. - AddElementToList(in_currentPathInProj, reader, in_type, in_pathAndIcons, wwuIndex, objType); - if (IsEmptyElement) - { - // This element has no children, step out of it immediately - // Remove the folder/bus from the path - in_currentPathInProj = in_currentPathInProj.Remove(in_currentPathInProj.LastIndexOf(System.IO.Path.DirectorySeparatorChar)); - in_pathAndIcons.RemoveLast(); - // Reader was already advanced by AddElementToList - } - } - else if (reader.NodeType == System.Xml.XmlNodeType.EndElement && - (reader.Name.Equals("Folder") || reader.Name.Equals("Bus") || reader.Name.Equals("AuxBus"))) - { - // Remove the folder/bus from the path - in_currentPathInProj = in_currentPathInProj.Remove(in_currentPathInProj.LastIndexOf(System.IO.Path.DirectorySeparatorChar)); - in_pathAndIcons.RemoveLast(); - // Advance the reader - reader.Read(); - } - else if (reader.NodeType == System.Xml.XmlNodeType.Element && reader.Name.Equals(in_type.XmlElementName)) - { - // Add the element to the list - AddElementToList(in_currentPathInProj, reader, in_type, in_pathAndIcons, wwuIndex); - } - else - reader.Read(); - } - } - - // Sort the newly populated Wwu alphabetically - SortWwu(in_type, wwuIndex); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError(e.ToString()); - wwuIndex = -1; - } - - in_pathAndIcons.RemoveLast(); - return wwuIndex; - } - - private static bool isTicking = false; - - public static void StartWWUWatcher() - { - if (isTicking) - return; - - Tick(); - UnityEditor.EditorApplication.update += Tick; - } - - public static void StopWWUWatcher() - { - if (isTicking) - UnityEditor.EditorApplication.update -= Tick; - } - - private static void RestartWWUWatcher() - { - if (AkWwiseProjectInfo.GetData().autoPopulateEnabled) - StartWWUWatcher(); - } - - static AkWwiseWWUBuilder() - { - InitializeWwiseProjectData(); - - UnityEditor.EditorApplication.playModeStateChanged += (UnityEditor.PlayModeStateChange playMode) => - { - if (playMode == UnityEditor.PlayModeStateChange.EnteredEditMode) - RestartWWUWatcher(); - }; - } - - private static System.Collections.Generic.Dictionary> _WwiseObjectsToRemove - = new System.Collections.Generic.Dictionary>(); - - private static System.Collections.Generic.Dictionary> _WwiseObjectsToAdd - = new System.Collections.Generic.Dictionary>(); - - private static void FlagForRemoval(WwiseObjectType type, int wwuIndex) - { - switch (type) - { - case WwiseObjectType.AuxBus: - foreach (var wwobject in AkWwiseProjectInfo.GetData().AuxBusWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.Event: - foreach (var wwobject in AkWwiseProjectInfo.GetData().EventWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.Soundbank: - foreach (var wwobject in AkWwiseProjectInfo.GetData().BankWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.GameParameter: - foreach (var wwobject in AkWwiseProjectInfo.GetData().RtpcWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.Trigger: - foreach (var wwobject in AkWwiseProjectInfo.GetData().TriggerWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.AcousticTexture: - foreach (var wwobject in AkWwiseProjectInfo.GetData().AcousticTextureWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.StateGroup: - foreach (var wwobject in AkWwiseProjectInfo.GetData().StateWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - - case WwiseObjectType.SwitchGroup: - foreach (var wwobject in AkWwiseProjectInfo.GetData().SwitchWwu[wwuIndex].List) - FlagForRemoval(wwobject, type); - break; - } - } - - private static void FlagForInsertion(AkWwiseProjectData.AkBaseInformation info, WwiseObjectType type) - { - if (!_WwiseObjectsToAdd.ContainsKey(type)) - _WwiseObjectsToAdd[type] = new System.Collections.Generic.List(); - - _WwiseObjectsToAdd[type].Add(info); - - if (!AkUtilities.IsMigrating) - WwiseObjectReference.UpdateWwiseObject(type, info.Name, info.Guid); - } - - private static void FlagForRemoval(AkWwiseProjectData.AkBaseInformation info, WwiseObjectType type) - { - if (!_WwiseObjectsToRemove.ContainsKey(type)) - _WwiseObjectsToRemove[type] = new System.Collections.Generic.List(); - - _WwiseObjectsToRemove[type].Add(info); - } - - private bool GatherModifiedFiles() - { - _WwiseObjectsToRemove.Clear(); - _WwiseObjectsToAdd.Clear(); - - var bChanged = false; - var iBasePathLen = s_wwiseProjectPath.Length + 1; - foreach (var scannedAsset in AssetType.ScannedAssets) - { - var dir = scannedAsset.RootDirectoryName; - var deleted = new System.Collections.Generic.List(); - var knownFiles = AkWwiseProjectInfo.GetData().GetWwuListByString(dir); - var cKnownBefore = knownFiles.Count; - - try - { - //Get all Wwus in this folder. - var di = new System.IO.DirectoryInfo(System.IO.Path.Combine(s_wwiseProjectPath, dir)); - var files = di.GetFiles("*.wwu", System.IO.SearchOption.AllDirectories); - System.Array.Sort(files, s_FileInfo_CompareByPath); - - //Walk both arrays - var iKnown = 0; - var iFound = 0; - - while (iFound < files.Length && iKnown < knownFiles.Count) - { - var workunit = knownFiles[iKnown] as AkWwiseProjectData.WorkUnit; - var foundRelPath = files[iFound].FullName.Substring(iBasePathLen); - switch (workunit.PhysicalPath.CompareTo(foundRelPath)) - { - case 0: - //File was there and is still there. Check the FileTimes. - try - { - if (files[iFound].LastWriteTime > workunit.LastTime) - { - //File has been changed! - //If this file had a parent, parse recursively the parent itself - m_WwuToProcess.Add(files[iFound].FullName); - FlagForRemoval(scannedAsset.Type, iKnown); - bChanged = true; - } - } - catch - { - //Access denied probably (file does exists since it was picked up by GetFiles). - //Just ignore this file. - } - - iFound++; - iKnown++; - break; - - case 1: - m_WwuToProcess.Add(files[iFound].FullName); - iFound++; - break; - - case -1: - //A file was deleted. Can't process it now, it would change the array indices. - deleted.Add(iKnown); - iKnown++; - break; - } - } - - //The remainder from the files found on disk are all new files. - for (; iFound < files.Length; iFound++) - m_WwuToProcess.Add(files[iFound].FullName); - - //All the remainder is deleted. From the end, of course. - if (iKnown < knownFiles.Count) - { - for (var i = iKnown; i < knownFiles.Count; ++i) - FlagForRemoval(scannedAsset.Type, i); - - knownFiles.RemoveRange(iKnown, knownFiles.Count - iKnown); - } - - //Delete those tagged. - for (var i = deleted.Count - 1; i >= 0; i--) - { - FlagForRemoval(scannedAsset.Type, deleted[i]); - knownFiles.RemoveAt(deleted[i]); - } - - bChanged |= cKnownBefore != knownFiles.Count; - } - catch - { - return false; - } - } - - return bChanged || m_WwuToProcess.Count > 0; - } - - private void UpdateFiles() - { - m_totWwuCnt = m_WwuToProcess.Count; - - var iBasePathLen = s_wwiseProjectPath.Length + 1; - var iUnprocessed = 0; - while (m_WwuToProcess.Count - iUnprocessed > 0) - { - System.Collections.IEnumerator e = m_WwuToProcess.GetEnumerator(); - for (var i = 0; i < iUnprocessed + 1; i++) - e.MoveNext(); - - var fullPath = e.Current as string; - var relPath = fullPath.Substring(iBasePathLen); - var typeStr = relPath.Remove(relPath.IndexOf(System.IO.Path.DirectorySeparatorChar)); - if (!CreateWorkUnit(relPath, typeStr, fullPath)) - iUnprocessed++; - } - - //Add the unprocessed directly. This can happen if we don't find the parent WorkUnit. - //Normally, it should never happen, this is just a safe guard. - while (m_WwuToProcess.Count > 0) - { - System.Collections.IEnumerator e = m_WwuToProcess.GetEnumerator(); - e.MoveNext(); - var fullPath = e.Current as string; - var relPath = fullPath.Substring(iBasePathLen); - var typeStr = relPath.Remove(relPath.IndexOf(System.IO.Path.DirectorySeparatorChar)); - UpdateWorkUnit(fullPath, typeStr, relPath); - } - - foreach (var pair in _WwiseObjectsToAdd) - { - System.Collections.Generic.List removeList = null; - if (!_WwiseObjectsToRemove.TryGetValue(pair.Key, out removeList)) - continue; - - removeList.Sort(AkWwiseProjectData.AkBaseInformation.CompareByGuid); - foreach (var info in pair.Value) - { - var index = removeList.BinarySearch(info, AkWwiseProjectData.AkBaseInformation.CompareByGuid); - if (index >= 0) - removeList.RemoveAt(index); - } - } - - foreach (var pair in _WwiseObjectsToRemove) - { - var type = pair.Key; - var childType = type == WwiseObjectType.StateGroup ? WwiseObjectType.State : WwiseObjectType.Switch; - - foreach (var info in pair.Value) - { - var groupValue = info as AkWwiseProjectData.GroupValue; - if (groupValue != null) - foreach (var value in groupValue.values) - WwiseObjectReference.DeleteWwiseObject(childType, value.Guid); - - WwiseObjectReference.DeleteWwiseObject(type, info.Guid); - } - } - - UnityEditor.EditorUtility.SetDirty(AkWwiseProjectInfo.GetData()); - UnityEditor.EditorUtility.ClearProgressBar(); - } - - private static void UpdateWwiseObjectReference(WwiseObjectType type, System.Collections.Generic.List infoWwus) - { - foreach (var infoWwu in infoWwus) - foreach (var info in infoWwu.List) - WwiseObjectReference.UpdateWwiseObjectDataMap(type, info.Name, info.Guid); - } - - private static void UpdateWwiseObjectReference(WwiseObjectType type, System.Collections.Generic.List infoWwus) - { - foreach (var infoWwu in infoWwus) - foreach (var info in infoWwu.List) - WwiseObjectReference.UpdateWwiseObjectDataMap(type, info.Name, info.Guid); - } - - private static void UpdateWwiseObjectReference(WwiseObjectType groupType, WwiseObjectType type, System.Collections.Generic.List infoWwus) - { - foreach (var infoWwu in infoWwus) - { - foreach (var info in infoWwu.List) - { - WwiseObjectReference.UpdateWwiseObjectDataMap(groupType, info.Name, info.Guid); - foreach (var subTypeInfo in info.values) - WwiseObjectReference.UpdateWwiseObjectDataMap(type, subTypeInfo.Name, subTypeInfo.Guid); - } - } - } - - private static void SortWwu(AssetType in_type, int in_wwuIndex) - { - switch (in_type.Type) - { - case WwiseObjectType.AuxBus: - AkWwiseProjectInfo.GetData().AuxBusWwu[in_wwuIndex].List.Sort(); - break; - - case WwiseObjectType.Event: - AkWwiseProjectInfo.GetData().EventWwu[in_wwuIndex].List.Sort(); - break; - - case WwiseObjectType.Soundbank: - AkWwiseProjectInfo.GetData().BankWwu[in_wwuIndex].List.Sort(); - break; - - case WwiseObjectType.GameParameter: - AkWwiseProjectInfo.GetData().RtpcWwu[in_wwuIndex].List.Sort(); - break; - - case WwiseObjectType.Trigger: - AkWwiseProjectInfo.GetData().TriggerWwu[in_wwuIndex].List.Sort(); - break; - - case WwiseObjectType.AcousticTexture: - AkWwiseProjectInfo.GetData().AcousticTextureWwu[in_wwuIndex].List.Sort(); - break; - - case WwiseObjectType.StateGroup: - var stateList = AkWwiseProjectInfo.GetData().StateWwu[in_wwuIndex].List; - stateList.Sort(); - foreach (var group in stateList) - if (group.values.Count > 0) - group.values.Sort(); - break; - - case WwiseObjectType.SwitchGroup: - var switchList = AkWwiseProjectInfo.GetData().SwitchWwu[in_wwuIndex].List; - switchList.Sort(); - foreach (var group in switchList) - if (group.values.Count > 0) - group.values.Sort(); - break; - } - } - - private static AkWwiseProjectData.WorkUnit ReplaceWwuEntry(string in_currentPhysicalPath, AssetType in_type, out int out_wwuIndex) - { - var list = AkWwiseProjectInfo.GetData().GetWwuListByString(in_type.RootDirectoryName); - out_wwuIndex = list.BinarySearch(new AkWwiseProjectData.WorkUnit { PhysicalPath = in_currentPhysicalPath }); - AkWwiseProjectData.WorkUnit out_wwu = null; - - switch (in_type.Type) - { - case WwiseObjectType.Event: - out_wwu = new AkWwiseProjectData.EventWorkUnit(); - break; - - case WwiseObjectType.StateGroup: - case WwiseObjectType.SwitchGroup: - out_wwu = new AkWwiseProjectData.GroupValWorkUnit(); - break; - - case WwiseObjectType.AuxBus: - case WwiseObjectType.Soundbank: - case WwiseObjectType.GameParameter: - case WwiseObjectType.Trigger: - case WwiseObjectType.AcousticTexture: - out_wwu = new AkWwiseProjectData.AkInfoWorkUnit(); - break; - } - - if (out_wwuIndex < 0) - { - out_wwuIndex = ~out_wwuIndex; - list.Insert(out_wwuIndex, out_wwu); - } - else - list[out_wwuIndex] = out_wwu; - - return out_wwu; - } - - private static void AddElementToList(string in_currentPathInProj, System.Xml.XmlReader in_reader, AssetType in_type, - System.Collections.Generic.LinkedList in_pathAndIcons, int in_wwuIndex, WwiseObjectType in_LeafType = WwiseObjectType.None) - { - switch (in_type.Type) - { - case WwiseObjectType.Folder: - case WwiseObjectType.Bus: - case WwiseObjectType.AuxBus: - case WwiseObjectType.Event: - case WwiseObjectType.Soundbank: - case WwiseObjectType.GameParameter: - case WwiseObjectType.Trigger: - case WwiseObjectType.AcousticTexture: - { - var LeafType = in_LeafType == WwiseObjectType.None ? in_type.Type : in_LeafType; - var name = in_reader.GetAttribute("Name"); - var valueToAdd = in_type.Type == WwiseObjectType.Event ? new AkWwiseProjectData.Event() : new AkWwiseProjectData.AkInformation(); - valueToAdd.Name = name; - valueToAdd.Guid = new System.Guid(in_reader.GetAttribute("ID")); - valueToAdd.PathAndIcons = new System.Collections.Generic.List(in_pathAndIcons); - - FlagForInsertion(valueToAdd, in_type.Type); - - switch (LeafType) - { - case WwiseObjectType.AuxBus: - case WwiseObjectType.Bus: - case WwiseObjectType.Folder: - valueToAdd.Path = in_currentPathInProj; - break; - - default: - valueToAdd.Path = System.IO.Path.Combine(in_currentPathInProj, name); - valueToAdd.PathAndIcons.Add(new AkWwiseProjectData.PathElement(name, in_type.Type, valueToAdd.Guid)); - break; - } - - switch (in_type.Type) - { - case WwiseObjectType.AuxBus: - AkWwiseProjectInfo.GetData().AuxBusWwu[in_wwuIndex].List.Add(valueToAdd); - break; - - case WwiseObjectType.Event: - AkWwiseProjectInfo.GetData().EventWwu[in_wwuIndex].List.Add(valueToAdd as AkWwiseProjectData.Event); - break; - - case WwiseObjectType.Soundbank: - AkWwiseProjectInfo.GetData().BankWwu[in_wwuIndex].List.Add(valueToAdd); - break; - - case WwiseObjectType.GameParameter: - AkWwiseProjectInfo.GetData().RtpcWwu[in_wwuIndex].List.Add(valueToAdd); - break; - - case WwiseObjectType.Trigger: - AkWwiseProjectInfo.GetData().TriggerWwu[in_wwuIndex].List.Add(valueToAdd); - break; - - case WwiseObjectType.AcousticTexture: - AkWwiseProjectInfo.GetData().AcousticTextureWwu[in_wwuIndex].List.Add(valueToAdd); - break; - } - } - - in_reader.Read(); - break; - - case WwiseObjectType.StateGroup: - case WwiseObjectType.SwitchGroup: - { - var valueToAdd = new AkWwiseProjectData.GroupValue(); - if (in_LeafType == WwiseObjectType.Folder) - { - valueToAdd.Name = in_reader.GetAttribute("Name"); - valueToAdd.Guid = new System.Guid(in_reader.GetAttribute("ID")); - valueToAdd.PathAndIcons = new System.Collections.Generic.List(in_pathAndIcons); - valueToAdd.Path = in_currentPathInProj; - - FlagForInsertion(valueToAdd, in_type.Type); - in_reader.Read(); - } - else - { - var XmlElement = System.Xml.Linq.XNode.ReadFrom(in_reader) as System.Xml.Linq.XElement; - var ChildrenList = System.Xml.Linq.XName.Get("ChildrenList"); - var ChildrenElement = XmlElement.Element(ChildrenList); - if (ChildrenElement != null) - { - var name = XmlElement.Attribute("Name").Value; - valueToAdd.Name = name; - valueToAdd.Guid = new System.Guid(XmlElement.Attribute("ID").Value); - valueToAdd.Path = System.IO.Path.Combine(in_currentPathInProj, name); - valueToAdd.PathAndIcons = new System.Collections.Generic.List(in_pathAndIcons); - valueToAdd.PathAndIcons.Add(new AkWwiseProjectData.PathElement(name, in_type.Type, valueToAdd.Guid)); - - FlagForInsertion(valueToAdd, in_type.Type); - - var ChildElem = System.Xml.Linq.XName.Get(in_type.ChildElementName); - foreach (var element in ChildrenElement.Elements(ChildElem)) - { - if (element.Name != in_type.ChildElementName) - continue; - - var elementName = element.Attribute("Name").Value; - var childValue = new AkWwiseProjectData.AkBaseInformation - { - Name = elementName, - Guid = new System.Guid(element.Attribute("ID").Value), - }; - childValue.PathAndIcons = new System.Collections.Generic.List(valueToAdd.PathAndIcons); - childValue.PathAndIcons.Add(new AkWwiseProjectData.PathElement(elementName, in_type.ChildType, childValue.Guid)); - valueToAdd.values.Add(childValue); - - FlagForInsertion(childValue, in_type.ChildType); - } - } - else - { - valueToAdd = null; - } - } - - if (valueToAdd != null) - { - switch (in_type.Type) - { - case WwiseObjectType.StateGroup: - AkWwiseProjectInfo.GetData().StateWwu[in_wwuIndex].List.Add(valueToAdd); - break; - - case WwiseObjectType.SwitchGroup: - AkWwiseProjectInfo.GetData().SwitchWwu[in_wwuIndex].List.Add(valueToAdd); - break; - } - } - } - break; - - default: - UnityEngine.Debug.LogError("WwiseUnity: Unknown asset type in WWU parser"); - break; - } - } - - private bool CreateWorkUnit(string in_relativePath, string in_wwuType, string in_fullPath) - { - var ParentID = string.Empty; - try - { - using (var reader = System.Xml.XmlReader.Create(in_fullPath)) - { - reader.MoveToContent(); - - //We check if the current work unit has a parent and save its guid if its the case - while (!reader.EOF && reader.ReadState == System.Xml.ReadState.Interactive) - { - if (reader.NodeType == System.Xml.XmlNodeType.Element && reader.Name.Equals("WorkUnit")) - { - if (reader.GetAttribute("PersistMode").Equals("Nested")) - ParentID = reader.GetAttribute("OwnerID"); - break; - } - - reader.Read(); - } - } - } - catch (System.Exception e) - { - UnityEngine.Debug.Log("WwiseUnity: A changed Work unit wasn't found. It must have been deleted " + in_fullPath); - return false; - } - - if (!string.IsNullOrEmpty(ParentID)) - { - var parentGuid = System.Guid.Empty; - - try - { - parentGuid = new System.Guid(ParentID); - } - catch - { - UnityEngine.Debug.LogWarning("WwiseUnity: \"OwnerID\" in <" + in_fullPath + "> cannot be converted to a GUID (" + ParentID + ")"); - return false; - } - - var list = AkWwiseProjectInfo.GetData().GetWwuListByString(in_wwuType); - var PathAndIcons = new System.Collections.Generic.LinkedList(); - string PathInProj = string.Empty; - AkWwiseProjectData.WorkUnit wwu = null; - - if (parentGuid != System.Guid.Empty) - { - for (var i = 0; i < list.Count; i++) - { - wwu = list[i] as AkWwiseProjectData.WorkUnit; - if (wwu.Guid.Equals(parentGuid)) - { - PathInProj = wwu.ParentPath; - PathAndIcons = new System.Collections.Generic.LinkedList(wwu.PathAndIcons); - break; - } - else - { - var WwuChildren = wwu.GetChildrenArrayList(); - foreach (AkWwiseProjectData.AkInformation child in WwuChildren) - { - if (child.Guid.Equals(parentGuid)) - { - PathInProj = child.Path; - PathAndIcons = new System.Collections.Generic.LinkedList(child.PathAndIcons); - break; - } - } - } - } - } - if (!string.IsNullOrEmpty(PathInProj)) - { - RecurseWorkUnit(AssetType.Create(in_wwuType), new System.IO.FileInfo(in_fullPath), PathInProj, - in_relativePath.Remove(in_relativePath.LastIndexOf(System.IO.Path.DirectorySeparatorChar)), PathAndIcons, - wwu.PhysicalPath); - return true; - } - - //Not found. Wait for it to load - return false; - } - - //Root Wwu - UpdateWorkUnit(in_fullPath, in_wwuType, in_relativePath); - return true; - } - - private void UpdateWorkUnit(string in_wwuFullPath, string in_wwuType, string in_relativePath) - { - var PathAndIcons = new System.Collections.Generic.LinkedList(); - var currentPathInProj = string.Empty; - - - //Add physical folders to the hierarchy if the work unit isn't in the root folder - var physicalPath = in_relativePath.Split(System.IO.Path.DirectorySeparatorChar); - for (var i = 0; i < physicalPath.Length -1; i++) - { - PathAndIcons.AddLast( - new AkWwiseProjectData.PathElement(physicalPath[i], WwiseObjectType.PhysicalFolder, System.Guid.Empty)); - currentPathInProj = System.IO.Path.Combine(currentPathInProj,physicalPath[i]); - } - - //Parse the work unit file - RecurseWorkUnit(AssetType.Create(in_wwuType), new System.IO.FileInfo(in_wwuFullPath), currentPathInProj, - in_relativePath.Remove(in_relativePath.LastIndexOf(System.IO.Path.DirectorySeparatorChar)), PathAndIcons); - } - - public class AssetType - { - public string RootDirectoryName { get; set; } - public string XmlElementName; - public string ChildElementName; - public WwiseObjectType Type = WwiseObjectType.None; - public WwiseObjectType ChildType = WwiseObjectType.None; - - public static AssetType[] ScannedAssets - { - get { return _ScannedAssets; } - } - - public static AssetType Create(string rootDirectoryName) - { - foreach (var asset in ScannedAssets) - if (string.Equals(rootDirectoryName, asset.RootDirectoryName, System.StringComparison.OrdinalIgnoreCase)) - return asset; - - return null; - } - - private AssetType(string RootFolder, string XmlElemName, WwiseObjectType type) - { - RootDirectoryName = RootFolder; - XmlElementName = XmlElemName; - Type = type; - } - - private static readonly AssetType[] _ScannedAssets = new AssetType[] - { - new AssetType("Master-Mixer Hierarchy", "AuxBus", WwiseObjectType.AuxBus), - new AssetType("Events", "Event", WwiseObjectType.Event), - new AssetType("SoundBanks", "SoundBank", WwiseObjectType.Soundbank), - new AssetType("States", "StateGroup", WwiseObjectType.StateGroup) { ChildElementName = "State", ChildType = WwiseObjectType.State }, - new AssetType("Switches", "SwitchGroup", WwiseObjectType.SwitchGroup) { ChildElementName = "Switch", ChildType = WwiseObjectType.Switch }, - new AssetType("Game Parameters", "GameParameter", WwiseObjectType.GameParameter), - new AssetType("Triggers", "Trigger", WwiseObjectType.Trigger), - new AssetType("Virtual Acoustics", "AcousticTexture", WwiseObjectType.AcousticTexture), - }; - } - - private class FileInfo_CompareByPath : System.Collections.Generic.IComparer - { - int System.Collections.Generic.IComparer.Compare(System.IO.FileInfo wwuA, System.IO.FileInfo wwuB) - { - return wwuA.FullName.CompareTo(wwuB.FullName); - } - } -} -#endif diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseWWUBuilder.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseWWUBuilder.cs.meta deleted file mode 100644 index 1def62a5b..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseWWUBuilder.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ae60ef50a9c66f644b6c98c8c0373828 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseXMLBuilder.cs b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseXMLBuilder.cs deleted file mode 100644 index f77c0a40e..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseXMLBuilder.cs +++ /dev/null @@ -1,156 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.InitializeOnLoad] -public class AkWwiseXMLBuilder -{ - private static readonly System.DateTime s_LastParsed = System.DateTime.MinValue; - - static AkWwiseXMLBuilder() - { - AkWwiseFileWatcher.Instance.PopulateXML += Populate; - UnityEditor.EditorApplication.playModeStateChanged += PlayModeChanged; - } - - private static void PlayModeChanged(UnityEditor.PlayModeStateChange mode) - { - if (mode == UnityEditor.PlayModeStateChange.EnteredEditMode) - { - AkWwiseProjectInfo.Populate(); - AkWwiseFileWatcher.Instance.StartWatchers(); - } - } - - public static bool Populate() - { - if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || UnityEditor.EditorApplication.isCompiling) - { - return false; - } - - try - { - // Try getting the SoundbanksInfo.xml file for Windows or Mac first, then try to find any other available platform. - var logWarnings = AkBasePathGetter.LogWarnings; - AkBasePathGetter.LogWarnings = false; - var FullSoundbankPath = AkBasePathGetter.GetPlatformBasePath(); - AkBasePathGetter.LogWarnings = logWarnings; - - var filename = System.IO.Path.Combine(FullSoundbankPath, "SoundbanksInfo.xml"); - if (!System.IO.File.Exists(filename)) - { - FullSoundbankPath = System.IO.Path.Combine(UnityEngine.Application.streamingAssetsPath, AkWwiseEditorSettings.Instance.SoundbankPath); - - if (!System.IO.Directory.Exists(FullSoundbankPath)) - return false; - - var foundFiles = System.IO.Directory.GetFiles(FullSoundbankPath, "SoundbanksInfo.xml", System.IO.SearchOption.AllDirectories); - if (foundFiles.Length == 0) - return false; - - filename = foundFiles[0]; - } - - var time = System.IO.File.GetLastWriteTime(filename); - if (time <= s_LastParsed) - { - return false; - } - - var doc = new System.Xml.XmlDocument(); - doc.Load(filename); - - var bChanged = false; - var soundBanks = doc.GetElementsByTagName("SoundBanks"); - for (var i = 0; i < soundBanks.Count; i++) - { - var soundBank = soundBanks[i].SelectNodes("SoundBank"); - for (var j = 0; j < soundBank.Count; j++) - { - bChanged = SerialiseSoundBank(soundBank[j]) || bChanged; - } - } - - return bChanged; - } - catch - { - return false; - } - } - - private static bool SerialiseSoundBank(System.Xml.XmlNode node) - { - var bChanged = false; - var includedEvents = node.SelectNodes("IncludedEvents"); - for (var i = 0; i < includedEvents.Count; i++) - { - var events = includedEvents[i].SelectNodes("Event"); - for (var j = 0; j < events.Count; j++) - { - bChanged = SerialiseEventData(events[j]) || bChanged; - } - } - - return bChanged; - } - - private static float GetFloatFromString(string s) - { - return string.Compare(s, "Infinite") == 0 ? UnityEngine.Mathf.Infinity : float.Parse(s); - } - - private static bool SerialiseEventData(System.Xml.XmlNode node) - { - var maxAttenuationAttribute = node.Attributes["MaxAttenuation"]; - var durationMinAttribute = node.Attributes["DurationMin"]; - var durationMaxAttribute = node.Attributes["DurationMax"]; - if (maxAttenuationAttribute == null && durationMinAttribute == null && durationMaxAttribute == null) - return false; - - var bChanged = false; - var name = node.Attributes["Name"].Value; - foreach (var wwu in AkWwiseProjectInfo.GetData().EventWwu) - { - var eventData = wwu.Find(name); - if (eventData == null) - continue; - - if (maxAttenuationAttribute != null) - { - var maxAttenuation = float.Parse(maxAttenuationAttribute.Value); - if (eventData.maxAttenuation != maxAttenuation) - { - eventData.maxAttenuation = maxAttenuation; - bChanged = true; - } - } - - if (durationMinAttribute != null) - { - var minDuration = GetFloatFromString(durationMinAttribute.Value); - if (eventData.minDuration != minDuration) - { - eventData.minDuration = minDuration; - bChanged = true; - } - } - - if (durationMaxAttribute != null) - { - var maxDuration = GetFloatFromString(durationMaxAttribute.Value); - if (eventData.maxDuration != maxDuration) - { - eventData.maxDuration = maxDuration; - bChanged = true; - } - } - } - return bChanged; - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseXMLBuilder.cs.meta b/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseXMLBuilder.cs.meta deleted file mode 100644 index 5596ec627..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/AkWwiseXMLBuilder.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 580b2a14186e9fa40b56bccfe1424b5d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons.meta deleted file mode 100644 index dd8c7d78c..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f9af5d513b95c7141b7f565ee70485ee -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/acoustictexture_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/acoustictexture_nor.png deleted file mode 100644 index 9fe2505f4..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/acoustictexture_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c3cbc7330f9827805927abba8728be29fc73768a93463b5e3a5a8f10c5c4e81 -size 645 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/auxbus_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/auxbus_nor.png deleted file mode 100644 index 5e1d1fa24..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/auxbus_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:994fa13ea9f3bcf1a38bb089ab75c1c37b324f545e19611410f826986a41e27d -size 731 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/blank.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/blank.png deleted file mode 100644 index a829c693d..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/blank.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb6d90909ff41e90fd51511981ab38a85c7a7c93efbce2cb3ab6dc82b97b9947 -size 182 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/bus_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/bus_nor.png deleted file mode 100644 index 0ee63ca07..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/bus_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed88a670c3abde938282afb6afe29c24b7c308d0cb095b2e7d53c7de388ea4aa -size 646 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/bus_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/bus_nor.png.meta deleted file mode 100644 index af67c7f29..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/bus_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: b687c5e428b2cf24aadd432af54dd5c3 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/event_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/event_nor.png deleted file mode 100644 index 279f0355d..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/event_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f10982a2f2e9bb194d895f41f7f41bae953763990e15960763f5793b793500b7 -size 657 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/event_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/event_nor.png.meta deleted file mode 100644 index dff12159d..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/event_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 7523fdad97bf4064e8b44e8fada63249 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/folder_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/folder_nor.png deleted file mode 100644 index 5572526b5..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/folder_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bec0438a0b3ab9aec78740a5f3e28c739eb890f30769a8879bcb5a9bdb7c34a6 -size 592 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/folder_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/folder_nor.png.meta deleted file mode 100644 index 5241f49ea..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/folder_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: bcab6219a664a4f45a4c5e48d161c69f -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/gameparameter_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/gameparameter_nor.png deleted file mode 100644 index de4c83ddb..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/gameparameter_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cdfe2135f4a9af4757d6f6959b763997bbc9158b576e8730318e2823f10678ac -size 833 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/gameparameter_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/gameparameter_nor.png.meta deleted file mode 100644 index 782bf559c..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/gameparameter_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 21c434ebf27077748bc1a6b900eaff20 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/physical_folder_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/physical_folder_nor.png deleted file mode 100644 index 97afa97be..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/physical_folder_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:baadea78edd501e726c82b3e552b62217f4991740bbfa1d0f0606d67d020bcaa -size 543 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/physical_folder_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/physical_folder_nor.png.meta deleted file mode 100644 index 9635cb251..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/physical_folder_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: d8ed4ae9462ee674f9fe2bc121f7b7ac -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/soundbank_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/soundbank_nor.png deleted file mode 100644 index fa9d5c9f8..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/soundbank_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7232a9dee72d396cd7f4d432a2391e214d071b240689de2263ac47d577e9e7fd -size 921 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/soundbank_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/soundbank_nor.png.meta deleted file mode 100644 index 4fd7a4d04..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/soundbank_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 6a832604659bbbc4e87f498d6706bf71 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/state_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/state_nor.png deleted file mode 100644 index 3b043b27e..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/state_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5efbdb1bd836bad1b79af337fde634ef61179782b4f713ab8f1b5e9beb3f16db -size 936 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/state_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/state_nor.png.meta deleted file mode 100644 index 4b2e73695..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/state_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 2f158a171bc4d0948b26f08575cb65eb -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/stategroup_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/stategroup_nor.png deleted file mode 100644 index 1955b903a..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/stategroup_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee1e798966fb3a52d41098f705f628c0444c5fcd58107304bc2c34744c399d2a -size 834 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/stategroup_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/stategroup_nor.png.meta deleted file mode 100644 index eb953207e..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/stategroup_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: d4e4bd07312d61a4b88c325f554556d5 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switch_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switch_nor.png deleted file mode 100644 index 239929f45..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switch_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:757b872e14f17426587ead103ba310d635a7f43732b54cb447454e3151dfebae -size 609 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switch_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switch_nor.png.meta deleted file mode 100644 index 32385ccc3..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switch_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 3e4335402b9e1054ab991d7ad408d706 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switchgroup_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switchgroup_nor.png deleted file mode 100644 index f337039c6..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switchgroup_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9397fcd3123373f23964c6f0c6bff4db5691420fcd57c076ef24b4ae3e21f3f8 -size 636 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switchgroup_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switchgroup_nor.png.meta deleted file mode 100644 index 83f11b134..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/switchgroup_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 22b2dd55779f8294ebf7fe6879f0ba52 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/workunit_nor.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/workunit_nor.png deleted file mode 100644 index 948b82cab..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/workunit_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5daaf332f4df4f1944dbd9504823598321dc6aec9fc7dd2d5b51f2b62b8f2e46 -size 912 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/workunit_nor.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/workunit_nor.png.meta deleted file mode 100644 index 9fb54be54..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/workunit_nor.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 1cf82855275b96047a92c4666eee1e3a -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/wproj.png b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/wproj.png deleted file mode 100644 index cde085626..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/wproj.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dac4d5bd1e575f2f5e8eab7fb9b84a46311ad067379f0125344b734bd5a2e097 -size 742 diff --git a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/wproj.png.meta b/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/wproj.png.meta deleted file mode 100644 index b616debc5..000000000 --- a/Assets/Wwise/API/Editor/WwiseWindows/TreeViewIcons/wproj.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: f6ad97d3f15b362499bdfec2e4662176 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/LICENSE.md b/Assets/Wwise/API/LICENSE.md deleted file mode 100644 index 5cfd6f070..000000000 --- a/Assets/Wwise/API/LICENSE.md +++ /dev/null @@ -1,11 +0,0 @@ -The content of this file includes portions of the AUDIOKINETIC Wwise Technology -released in source code form as part of the Wwise Unity integration installer package - -Commercial License Usage - -Licensees holding valid commercial 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) 2020 Audiokinetic Inc. \ No newline at end of file diff --git a/Assets/Wwise/API/LICENSE.md.meta b/Assets/Wwise/API/LICENSE.md.meta deleted file mode 100644 index bc873af17..000000000 --- a/Assets/Wwise/API/LICENSE.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e1f64f1e2dacf204b903435b687cde92 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/README.md b/Assets/Wwise/API/README.md deleted file mode 100644 index 2b902d3e7..000000000 --- a/Assets/Wwise/API/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Unity Wwise API - -This package adds basic API support for Wwise in Unity. - -## Usage - -See [Wwise Unity Integration](https://www.audiokinetic.com/library/edge/?source=Unity&id=index.html) for more information about how to use the package. - -## Legal - -Copyright © 2020 Audiokinetic Inc. All rights reserved. diff --git a/Assets/Wwise/API/README.md.meta b/Assets/Wwise/API/README.md.meta deleted file mode 100644 index 3aaa0a87e..000000000 --- a/Assets/Wwise/API/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 61d6e8d636239214fab5503a600f1e5d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime.meta b/Assets/Wwise/API/Runtime.meta deleted file mode 100644 index 503fba6d5..000000000 --- a/Assets/Wwise/API/Runtime.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 249f6fa5abf7b804b890ad13702c886c -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/AK.Wwise.Unity.API.asmdef b/Assets/Wwise/API/Runtime/AK.Wwise.Unity.API.asmdef deleted file mode 100644 index a8baf5aca..000000000 --- a/Assets/Wwise/API/Runtime/AK.Wwise.Unity.API.asmdef +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "AK.Wwise.Unity.API", - "references": [ - ], - "optionalUnityReferences": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [ - { - "name": "com.unity.addressables", - "expression": "1.8", - "define": "UNITY_ADDRESSABLES" - }, - { - "name": "com.audiokinetic.wwise.addressables", - "expression": "1.0.0", - "define": "AK_WWISE_ADDRESSABLES" - } - ] -} \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/AK.Wwise.Unity.API.asmdef.meta b/Assets/Wwise/API/Runtime/AK.Wwise.Unity.API.asmdef.meta deleted file mode 100644 index 2ed525e42..000000000 --- a/Assets/Wwise/API/Runtime/AK.Wwise.Unity.API.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7dc08a3a66eda674089ecee16e7141ce -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/AkSoundEngine.extensions.cs b/Assets/Wwise/API/Runtime/AkSoundEngine.extensions.cs deleted file mode 100644 index 08f2464ea..000000000 --- a/Assets/Wwise/API/Runtime/AkSoundEngine.extensions.cs +++ /dev/null @@ -1,101 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System; - -public partial class AkSoundEngine -{ - #region User Hooks - Extended for Auto-Registration - - private const string AkGameObjTypeString = "AkGameObj, AK.Wwise.Unity.MonoBehaviour"; - - private class AutoObject - { - private readonly UnityEngine.GameObject gameObject; - - public AutoObject(UnityEngine.GameObject go) - { - gameObject = go; - RegisterGameObj(gameObject, gameObject != null ? "AkAutoObject for " + gameObject.name : "AkAutoObject"); - } - - ~AutoObject() - { - UnregisterGameObj(gameObject); - } - } - - private static void AutoRegister(UnityEngine.GameObject gameObject, ulong id) - { - Type AkGameObjectType = Type.GetType(AkGameObjTypeString); - - if (gameObject == null || !gameObject.activeInHierarchy) - { - new AutoObject(gameObject); - } - else if (gameObject.GetComponent(AkGameObjectType) == null) - { - gameObject.AddComponent(AkGameObjectType); - } - } - - static partial void PreGameObjectAPICallUserHook(UnityEngine.GameObject gameObject, ulong id) - { -#if UNITY_EDITOR - if (!UnityEngine.Application.isPlaying) - { - AutoRegister(gameObject, id); - return; - } -#endif - - if (!IsInRegisteredList(id) && IsInitialized()) - AutoRegister(gameObject, id); - } - - private static readonly System.Collections.Generic.HashSet RegisteredGameObjects = - new System.Collections.Generic.HashSet(); - - static partial void PostRegisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id) - { -#if UNITY_EDITOR - if (!UnityEngine.Application.isPlaying) - return; -#endif - - 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); - } - - // Helper method that a user might want to implement - 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) - { -#if UNITY_EDITOR - if (!UnityEngine.Application.isPlaying) - { - return in_gameObject.GetComponent(AkGameObjTypeString) != null; - } -#endif - - return IsInRegisteredList(GetAkGameObjectID(in_gameObject)); - } - - #endregion -} -#endif // #if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/AkSoundEngine.extensions.cs.meta b/Assets/Wwise/API/Runtime/AkSoundEngine.extensions.cs.meta deleted file mode 100644 index 1357fe579..000000000 --- a/Assets/Wwise/API/Runtime/AkSoundEngine.extensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c334c3940ca83fb45a75c68329c2c938 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated.meta b/Assets/Wwise/API/Runtime/Generated.meta deleted file mode 100644 index 2f7e5dd4d..000000000 --- a/Assets/Wwise/API/Runtime/Generated.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e624a5166a239dc409b98c24c32dc8a3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common.meta b/Assets/Wwise/API/Runtime/Generated/Common.meta deleted file mode 100644 index fbe0d2ac0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9771e8d0fc856be4aad266c7e8a8e97d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AKRESULT.cs b/Assets/Wwise/API/Runtime/Generated/Common/AKRESULT.cs deleted file mode 100644 index e3e3b9697..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AKRESULT.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AKRESULT { - AK_NotImplemented = 0, - AK_Success = 1, - AK_Fail = 2, - AK_PartialSuccess = 3, - AK_NotCompatible = 4, - AK_AlreadyConnected = 5, - AK_InvalidFile = 7, - AK_AudioFileHeaderTooLarge = 8, - AK_MaxReached = 9, - AK_InvalidID = 14, - AK_IDNotFound = 15, - AK_InvalidInstanceID = 16, - AK_NoMoreData = 17, - AK_InvalidStateGroup = 20, - AK_ChildAlreadyHasAParent = 21, - AK_InvalidLanguage = 22, - AK_CannotAddItseflAsAChild = 23, - AK_InvalidParameter = 31, - AK_ElementAlreadyInList = 35, - AK_PathNotFound = 36, - AK_PathNoVertices = 37, - AK_PathNotRunning = 38, - AK_PathNotPaused = 39, - AK_PathNodeAlreadyInList = 40, - AK_PathNodeNotInList = 41, - AK_DataNeeded = 43, - AK_NoDataNeeded = 44, - AK_DataReady = 45, - AK_NoDataReady = 46, - AK_InsufficientMemory = 52, - AK_Cancelled = 53, - AK_UnknownBankID = 54, - AK_BankReadError = 56, - AK_InvalidSwitchType = 57, - AK_FormatNotReady = 63, - AK_WrongBankVersion = 64, - AK_FileNotFound = 66, - AK_DeviceNotReady = 67, - AK_BankAlreadyLoaded = 69, - AK_RenderedFX = 71, - AK_ProcessNeeded = 72, - AK_ProcessDone = 73, - AK_MemManagerNotInitialized = 74, - AK_StreamMgrNotInitialized = 75, - AK_SSEInstructionsNotSupported = 76, - AK_Busy = 77, - AK_UnsupportedChannelConfig = 78, - AK_PluginMediaNotAvailable = 79, - AK_MustBeVirtualized = 80, - AK_CommandTooLarge = 81, - AK_RejectedByFilter = 82, - AK_InvalidCustomPlatformName = 83, - AK_DLLCannotLoad = 84, - AK_DLLPathNotFound = 85, - AK_NoJavaVM = 86, - AK_OpenSLError = 87, - AK_PluginNotRegistered = 88, - AK_DataAlignmentError = 89, - AK_DeviceNotCompatible = 90, - AK_DuplicateUniqueID = 91, - AK_InitBankNotLoaded = 92, - AK_DeviceNotFound = 93, - AK_PlayingIDNotFound = 94, - AK_InvalidFloatValue = 95, - AK_FileFormatMismatch = 96, - AK_NoDistinctListener = 97, - AK_ACP_Error = 98 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AKRESULT.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AKRESULT.cs.meta deleted file mode 100644 index 44eb801ee..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AKRESULT.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 25f7f8dd5795b1047b475559929909dd -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DAudioSinkCapabilities.cs b/Assets/Wwise/API/Runtime/Generated/Common/Ak3DAudioSinkCapabilities.cs deleted file mode 100644 index b3cc7b875..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DAudioSinkCapabilities.cs +++ /dev/null @@ -1,72 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_Ak3DAudioSinkCapabilities(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkChannelConfig channelConfig { set { AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_channelConfig_set(swigCPtr, AkChannelConfig.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_channelConfig_get(swigCPtr); - AkChannelConfig ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkChannelConfig(cPtr, false); - return ret; - } - } - - public uint uMaxSystemAudioObjects { set { AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_get(swigCPtr); } - } - - public uint uAvailableSystemAudioObjects { set { AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_get(swigCPtr); } - } - - public bool bPassthrough { set { AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bPassthrough_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bPassthrough_get(swigCPtr); } - } - - public bool bMultiChannelObjects { set { AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_get(swigCPtr); } - } - - public Ak3DAudioSinkCapabilities() : this(AkSoundEnginePINVOKE.CSharp_new_Ak3DAudioSinkCapabilities(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DAudioSinkCapabilities.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/Ak3DAudioSinkCapabilities.cs.meta deleted file mode 100644 index aedc35380..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DAudioSinkCapabilities.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: beba60372a3403146a720291f620a4b9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DPositionType.cs b/Assets/Wwise/API/Runtime/Generated/Common/Ak3DPositionType.cs deleted file mode 100644 index 4ba5f818e..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DPositionType.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum Ak3DPositionType { - AK_3DPositionType_Emitter = 0, - AK_3DPositionType_EmitterWithAutomation = 1, - AK_3DPositionType_ListenerWithAutomation = 2 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DPositionType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/Ak3DPositionType.cs.meta deleted file mode 100644 index 5d497fc3a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DPositionType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: edb96f350d38f5e4c99114e5c2bb598e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DSpatializationMode.cs b/Assets/Wwise/API/Runtime/Generated/Common/Ak3DSpatializationMode.cs deleted file mode 100644 index ef2ea2a5d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DSpatializationMode.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum Ak3DSpatializationMode { - AK_SpatializationMode_None = 0, - AK_SpatializationMode_PositionOnly = 1, - AK_SpatializationMode_PositionAndOrientation = 2 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DSpatializationMode.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/Ak3DSpatializationMode.cs.meta deleted file mode 100644 index 8b7a8933a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3DSpatializationMode.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 89be7f0b976fcef47ba4d6868c11a77b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3dData.cs b/Assets/Wwise/API/Runtime/Generated/Common/Ak3dData.cs deleted file mode 100644 index b006da381..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3dData.cs +++ /dev/null @@ -1,69 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_Ak3dData(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public Ak3dData() : this(AkSoundEnginePINVOKE.CSharp_new_Ak3dData(), true) { - } - - public AkTransform xform { set { AkSoundEnginePINVOKE.CSharp_Ak3dData_xform_set(swigCPtr, AkTransform.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_Ak3dData_xform_get(swigCPtr); - AkTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkTransform(cPtr, false); - return ret; - } - } - - public float spread { set { AkSoundEnginePINVOKE.CSharp_Ak3dData_spread_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3dData_spread_get(swigCPtr); } - } - - public float focus { set { AkSoundEnginePINVOKE.CSharp_Ak3dData_focus_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3dData_focus_get(swigCPtr); } - } - - public uint uEmitterChannelMask { set { AkSoundEnginePINVOKE.CSharp_Ak3dData_uEmitterChannelMask_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_Ak3dData_uEmitterChannelMask_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/Ak3dData.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/Ak3dData.cs.meta deleted file mode 100644 index bbc7522a2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/Ak3dData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d9b1e0fce81783741b452bd25116052a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAcousticSurface.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAcousticSurface.cs deleted file mode 100644 index 690945e1d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAcousticSurface.cs +++ /dev/null @@ -1,69 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkAcousticSurface(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkAcousticSurface() : this(AkSoundEnginePINVOKE.CSharp_new_AkAcousticSurface(), true) { - } - - public uint textureID { set { AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_textureID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_textureID_get(swigCPtr); } - } - - public float transmissionLoss { set { AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_transmissionLoss_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_transmissionLoss_get(swigCPtr); } - } - - public string strName { set { AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_strName_set(swigCPtr, value); } get { return AkSoundEngine.StringFromIntPtrString(AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_strName_get(swigCPtr)); } - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_Clear(swigCPtr); } - - public void DeleteName() { AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_DeleteName(swigCPtr); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_GetSizeOf(); } - - public void Clone(AkAcousticSurface other) { AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_Clone(swigCPtr, AkAcousticSurface.getCPtr(other)); } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAcousticSurface.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAcousticSurface.cs.meta deleted file mode 100644 index 332e4ec0a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAcousticSurface.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 139f293461c756d4f87ed76f6faf4548 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkActionOnEventType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkActionOnEventType.cs deleted file mode 100644 index a9186c9f3..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkActionOnEventType.cs +++ /dev/null @@ -1,20 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkActionOnEventType { - AkActionOnEventType_Stop = 0, - AkActionOnEventType_Pause = 1, - AkActionOnEventType_Resume = 2, - AkActionOnEventType_Break = 3, - AkActionOnEventType_ReleaseEnvelope = 4 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkActionOnEventType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkActionOnEventType.cs.meta deleted file mode 100644 index 2a2efdb46..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkActionOnEventType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ae2be906c53b9bb4a91f20068385638d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioDeviceState.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioDeviceState.cs deleted file mode 100644 index 4022ba3da..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioDeviceState.cs +++ /dev/null @@ -1,21 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkAudioDeviceState { - AkDeviceState_Unknown = 0, - AkDeviceState_Active = 1 << 0, - AkDeviceState_Disabled = 1 << 1, - AkDeviceState_NotPresent = 1 << 2, - AkDeviceState_Unplugged = 1 << 3, - AkDeviceState_All = AkDeviceState_Active|AkDeviceState_Disabled|AkDeviceState_NotPresent|AkDeviceState_Unplugged -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioDeviceState.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioDeviceState.cs.meta deleted file mode 100644 index b1333d186..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioDeviceState.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 251e99cc846a48e409f4dbe260213d9a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioFormat.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioFormat.cs deleted file mode 100644 index 1f2e66462..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioFormat.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkAudioFormat(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint uSampleRate { set { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uSampleRate_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uSampleRate_get(swigCPtr); } - } - - public AkChannelConfig channelConfig { set { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_channelConfig_set(swigCPtr, AkChannelConfig.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkAudioFormat_channelConfig_get(swigCPtr); - AkChannelConfig ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkChannelConfig(cPtr, false); - return ret; - } - } - - public uint uBitsPerSample { set { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uBitsPerSample_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uBitsPerSample_get(swigCPtr); } - } - - public uint uBlockAlign { set { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uBlockAlign_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uBlockAlign_get(swigCPtr); } - } - - public uint uTypeID { set { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uTypeID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uTypeID_get(swigCPtr); } - } - - public uint uInterleaveID { set { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uInterleaveID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_uInterleaveID_get(swigCPtr); } - } - - public uint GetNumChannels() { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_GetNumChannels(swigCPtr); } - - public uint GetBitsPerSample() { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_GetBitsPerSample(swigCPtr); } - - public uint GetBlockAlign() { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_GetBlockAlign(swigCPtr); } - - public uint GetTypeID() { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_GetTypeID(swigCPtr); } - - public uint GetInterleaveID() { return AkSoundEnginePINVOKE.CSharp_AkAudioFormat_GetInterleaveID(swigCPtr); } - - public void SetAll(uint in_uSampleRate, AkChannelConfig in_channelConfig, uint in_uBitsPerSample, uint in_uBlockAlign, uint in_uTypeID, uint in_uInterleaveID) { AkSoundEnginePINVOKE.CSharp_AkAudioFormat_SetAll(swigCPtr, in_uSampleRate, AkChannelConfig.getCPtr(in_channelConfig), in_uBitsPerSample, in_uBlockAlign, in_uTypeID, in_uInterleaveID); } - - public AkAudioFormat() : this(AkSoundEnginePINVOKE.CSharp_new_AkAudioFormat(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioFormat.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioFormat.cs.meta deleted file mode 100644 index 920c51597..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioFormat.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 76a000aee2794d244a89e4bc59c89ee4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioInterruptionCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioInterruptionCallbackInfo.cs deleted file mode 100644 index 18f24e8a2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioInterruptionCallbackInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkAudioInterruptionCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public bool bEnterInterruption { get { return AkSoundEnginePINVOKE.CSharp_AkAudioInterruptionCallbackInfo_bEnterInterruption_get(swigCPtr); } - } - - public AkAudioInterruptionCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkAudioInterruptionCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioInterruptionCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioInterruptionCallbackInfo.cs.meta deleted file mode 100644 index ec229f2f3..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioInterruptionCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7cc73f48ce163104c8237b7cc0899863 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioObjectDestination.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioObjectDestination.cs deleted file mode 100644 index cc0064193..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioObjectDestination.cs +++ /dev/null @@ -1,19 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkAudioObjectDestination { - eDefault = 0, - eMainMix = 1, - ePassthrough = 2, - eSystemAudioObject = 3 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioObjectDestination.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioObjectDestination.cs.meta deleted file mode 100644 index 4715af603..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioObjectDestination.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a437848b5c5fa20479ae3e4ecfdb561b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSettings.cs deleted file mode 100644 index c25a85aa0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSettings.cs +++ /dev/null @@ -1,58 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkAudioSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint uNumSamplesPerFrame { set { AkSoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerFrame_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerFrame_get(swigCPtr); } - } - - public uint uNumSamplesPerSecond { set { AkSoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerSecond_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAudioSettings_uNumSamplesPerSecond_get(swigCPtr); } - } - - public AkAudioSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkAudioSettings(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSettings.cs.meta deleted file mode 100644 index 3b3b9da3a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9487d375ea5c54f45b45ed86c4015248 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSourceChangeCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSourceChangeCallbackInfo.cs deleted file mode 100644 index eab716803..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSourceChangeCallbackInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkAudioSourceChangeCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public bool bOtherAudioPlaying { get { return AkSoundEnginePINVOKE.CSharp_AkAudioSourceChangeCallbackInfo_bOtherAudioPlaying_get(swigCPtr); } - } - - public AkAudioSourceChangeCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkAudioSourceChangeCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSourceChangeCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSourceChangeCallbackInfo.cs.meta deleted file mode 100644 index 60a6706bd..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAudioSourceChangeCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 73d4f3e9b87f17145bdfbaaf6e725a98 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAuxSendValue.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkAuxSendValue.cs deleted file mode 100644 index 08d2455d3..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAuxSendValue.cs +++ /dev/null @@ -1,80 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkAuxSendValue(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public ulong listenerID { set { AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_listenerID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_listenerID_get(swigCPtr); } - } - - public uint auxBusID { set { AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_auxBusID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_auxBusID_get(swigCPtr); } - } - - public float fControlValue { set { AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_fControlValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_fControlValue_get(swigCPtr); } - } - - public void Set(ulong listener, uint id, float value) { AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_Set(swigCPtr, listener, id, value); } - - public bool IsSame(ulong listener, uint id) { return AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_IsSame(swigCPtr, listener, id); } - - public void Set(UnityEngine.GameObject listener, uint id, float value) - { - var listener_id = AkSoundEngine.GetAkGameObjectID(listener); - AkSoundEngine.PreGameObjectAPICall(listener, listener_id); - - Set(listener_id, id, value); - } - - public bool IsSame(UnityEngine.GameObject listener, uint id) - { - var listener_id = AkSoundEngine.GetAkGameObjectID(listener); - AkSoundEngine.PreGameObjectAPICall(listener, listener_id); - - return IsSame(listener_id, id); - } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_GetSizeOf(); } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkAuxSendValue.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkAuxSendValue.cs.meta deleted file mode 100644 index 077b2c61e..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkAuxSendValue.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 184bc8415a8bb384b82eb3c0afdf2546 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBankCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkBankCallbackInfo.cs deleted file mode 100644 index da841c946..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBankCallbackInfo.cs +++ /dev/null @@ -1,61 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkBankCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint bankID { get { return AkSoundEnginePINVOKE.CSharp_AkBankCallbackInfo_bankID_get(swigCPtr); } - } - - public global::System.IntPtr inMemoryBankPtr { get { return AkSoundEnginePINVOKE.CSharp_AkBankCallbackInfo_inMemoryBankPtr_get(swigCPtr); } - } - - public AKRESULT loadResult { get { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkBankCallbackInfo_loadResult_get(swigCPtr); } - } - - public AkBankCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkBankCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBankCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkBankCallbackInfo.cs.meta deleted file mode 100644 index 590c22013..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBankCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d4ccf4d77362d2a46ba0cbab0201f7aa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBankContent.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkBankContent.cs deleted file mode 100644 index c5e7ef9a9..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBankContent.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkBankContent { - AkBankContent_StructureOnly, - AkBankContent_All -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBankContent.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkBankContent.cs.meta deleted file mode 100644 index 651848a82..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBankContent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b8c0e19e58bf7394998dbe763e82b073 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBehavioralPositioningData.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkBehavioralPositioningData.cs deleted file mode 100644 index 54ea83664..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBehavioralPositioningData.cs +++ /dev/null @@ -1,76 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkBehavioralPositioningData(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkBehavioralPositioningData() : this(AkSoundEnginePINVOKE.CSharp_new_AkBehavioralPositioningData(), true) { - } - - public float center { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_center_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_center_get(swigCPtr); } - } - - public float panLR { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panLR_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panLR_get(swigCPtr); } - } - - public float panBF { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panBF_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panBF_get(swigCPtr); } - } - - public float panDU { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panDU_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panDU_get(swigCPtr); } - } - - public float panSpatMix { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panSpatMix_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panSpatMix_get(swigCPtr); } - } - - public Ak3DSpatializationMode spatMode { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_spatMode_set(swigCPtr, (int)value); } get { return (Ak3DSpatializationMode)AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_spatMode_get(swigCPtr); } - } - - public AkSpeakerPanningType panType { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panType_set(swigCPtr, (int)value); } get { return (AkSpeakerPanningType)AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_panType_get(swigCPtr); } - } - - public bool enableHeightSpread { set { AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_enableHeightSpread_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkBehavioralPositioningData_enableHeightSpread_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBehavioralPositioningData.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkBehavioralPositioningData.cs.meta deleted file mode 100644 index 00f0b49db..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBehavioralPositioningData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6051f18e34517d6449e7b368f6351840 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBusHierarchyFlags.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkBusHierarchyFlags.cs deleted file mode 100644 index ead35e4c1..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBusHierarchyFlags.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkBusHierarchyFlags { - AkBusHierarchy_Primary = 1 << 0, - AkBusHierarchy_Secondary = 1 << 1, - AkBusHierarchy_IsMaster = 1 << 7 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkBusHierarchyFlags.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkBusHierarchyFlags.cs.meta deleted file mode 100644 index 8557c1ce4..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkBusHierarchyFlags.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 34f641efd74dac2488d13e9ae1a1d8b5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs deleted file mode 100644 index 3bf8a435b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public global::System.IntPtr pCookie { get { return AkSoundEnginePINVOKE.CSharp_AkCallbackInfo_pCookie_get(swigCPtr); } - } - - public ulong gameObjID { get { return AkSoundEnginePINVOKE.CSharp_AkCallbackInfo_gameObjID_get(swigCPtr); } - } - - public AkCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs.meta deleted file mode 100644 index 6dd8a7403..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ab55ae5b9a0631646902cfd8488ed1ed -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackSerializer.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackSerializer.cs deleted file mode 100644 index 94386deb3..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackSerializer.cs +++ /dev/null @@ -1,64 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkCallbackSerializer(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public static AKRESULT Init() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Init(); } - - public static void Term() { AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Term(); } - - public static global::System.IntPtr Lock() { return AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Lock(); } - - public static void Unlock() { AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Unlock(); } - - public static void SetLocalOutput(uint in_uErrorLevel) { AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_SetLocalOutput(in_uErrorLevel); } - - public static AKRESULT AudioSourceChangeCallbackFunc(bool in_bOtherAudioPlaying, object in_pCookie) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc(in_bOtherAudioPlaying, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - - public AkCallbackSerializer() : this(AkSoundEnginePINVOKE.CSharp_new_AkCallbackSerializer(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackSerializer.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackSerializer.cs.meta deleted file mode 100644 index 0742ac834..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackSerializer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8f5d89e9a7d50e84db8bfe7d9599faff -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackType.cs deleted file mode 100644 index 949d862d5..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackType.cs +++ /dev/null @@ -1,40 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkCallbackType { - AK_EndOfEvent = 0x0001, - AK_EndOfDynamicSequenceItem = 0x0002, - AK_Marker = 0x0004, - AK_Duration = 0x0008, - AK_SpeakerVolumeMatrix = 0x0010, - AK_Starvation = 0x0020, - AK_MusicPlaylistSelect = 0x0040, - AK_MusicPlayStarted = 0x0080, - AK_MusicSyncBeat = 0x0100, - AK_MusicSyncBar = 0x0200, - AK_MusicSyncEntry = 0x0400, - AK_MusicSyncExit = 0x0800, - AK_MusicSyncGrid = 0x1000, - AK_MusicSyncUserCue = 0x2000, - AK_MusicSyncPoint = 0x4000, - AK_MusicSyncAll = 0x7f00, - AK_MIDIEvent = 0x10000, - AK_CallbackBits = 0xfffff, - AK_EnableGetSourcePlayPosition = 0x100000, - AK_EnableGetMusicPlayPosition = 0x200000, - AK_EnableGetSourceStreamBuffering = 0x400000, - AK_Monitoring = 0x20000000, - AK_AudioSourceChange = 0x23000000, - AK_Bank = 0x40000000, - AK_AudioInterruption = 0x22000000 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackType.cs.meta deleted file mode 100644 index 3f7491603..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCallbackType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: df421a3c810d9924d843e9c0206d35fb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfig.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfig.cs deleted file mode 100644 index f8ff4ca76..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfig.cs +++ /dev/null @@ -1,92 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkChannelConfig(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint uNumChannels { set { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_uNumChannels_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkChannelConfig_uNumChannels_get(swigCPtr); } - } - - public uint eConfigType { set { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_eConfigType_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkChannelConfig_eConfigType_get(swigCPtr); } - } - - public uint uChannelMask { set { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_uChannelMask_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkChannelConfig_uChannelMask_get(swigCPtr); } - } - - public AkChannelConfig() : this(AkSoundEnginePINVOKE.CSharp_new_AkChannelConfig__SWIG_0(), true) { - } - - public AkChannelConfig(uint in_uNumChannels, uint in_uChannelMask) : this(AkSoundEnginePINVOKE.CSharp_new_AkChannelConfig__SWIG_1(in_uNumChannels, in_uChannelMask), true) { - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_Clear(swigCPtr); } - - public void SetStandard(uint in_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_SetStandard(swigCPtr, in_uChannelMask); } - - public void SetStandardOrAnonymous(uint in_uNumChannels, uint in_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_SetStandardOrAnonymous(swigCPtr, in_uNumChannels, in_uChannelMask); } - - public void SetAnonymous(uint in_uNumChannels) { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_SetAnonymous(swigCPtr, in_uNumChannels); } - - public void SetAmbisonic(uint in_uNumChannels) { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_SetAmbisonic(swigCPtr, in_uNumChannels); } - - public void SetObject() { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_SetObject(swigCPtr); } - - public bool IsValid() { return AkSoundEnginePINVOKE.CSharp_AkChannelConfig_IsValid(swigCPtr); } - - public uint Serialize() { return AkSoundEnginePINVOKE.CSharp_AkChannelConfig_Serialize(swigCPtr); } - - public void Deserialize(uint in_uChannelConfig) { AkSoundEnginePINVOKE.CSharp_AkChannelConfig_Deserialize(swigCPtr, in_uChannelConfig); } - - public AkChannelConfig RemoveLFE() { - AkChannelConfig ret = new AkChannelConfig(AkSoundEnginePINVOKE.CSharp_AkChannelConfig_RemoveLFE(swigCPtr), true); - return ret; - } - - public AkChannelConfig RemoveCenter() { - AkChannelConfig ret = new AkChannelConfig(AkSoundEnginePINVOKE.CSharp_AkChannelConfig_RemoveCenter(swigCPtr), true); - return ret; - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfig.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfig.cs.meta deleted file mode 100644 index d60dca3d7..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfig.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3564082eab22fa94aaa81f697f9696d4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfigType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfigType.cs deleted file mode 100644 index ade894f07..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfigType.cs +++ /dev/null @@ -1,21 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkChannelConfigType { - AK_ChannelConfigType_Anonymous = 0x0, - AK_ChannelConfigType_Standard = 0x1, - AK_ChannelConfigType_Ambisonic = 0x2, - AK_ChannelConfigType_Objects = 0x3, - AK_ChannelConfigType_UseDeviceMain = 0xE, - AK_ChannelConfigType_UseDevicePassthrough = 0xF -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfigType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfigType.cs.meta deleted file mode 100644 index 730b7faef..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelConfigType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bfccbbe0e7a47c34395c5fcef1118a85 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelEmitter.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelEmitter.cs deleted file mode 100644 index 08ec19b85..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelEmitter.cs +++ /dev/null @@ -1,60 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkChannelEmitter(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkTransform position { set { AkSoundEnginePINVOKE.CSharp_AkChannelEmitter_position_set(swigCPtr, AkTransform.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkChannelEmitter_position_get(swigCPtr); - AkTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkTransform(cPtr, false); - return ret; - } - } - - public uint uInputChannels { set { AkSoundEnginePINVOKE.CSharp_AkChannelEmitter_uInputChannels_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkChannelEmitter_uInputChannels_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelEmitter.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelEmitter.cs.meta deleted file mode 100644 index 40ad6ec23..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelEmitter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: eb252e378ccd8a24980906170330ef0b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelOrdering.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelOrdering.cs deleted file mode 100644 index a590583c8..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelOrdering.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkChannelOrdering { - ChannelOrdering_Standard, - ChannelOrdering_RunTime -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelOrdering.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkChannelOrdering.cs.meta deleted file mode 100644 index d4444a491..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkChannelOrdering.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0cc1789a76d0f464cbf2260c0b1dc235 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkConnectionType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkConnectionType.cs deleted file mode 100644 index 56fee2c46..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkConnectionType.cs +++ /dev/null @@ -1,19 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkConnectionType { - ConnectionType_Direct = 0x0, - ConnectionType_GameDefSend = 0x1, - ConnectionType_UserDefSend = 0x2, - ConnectionType_ReflectionsSend = 0x3 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkConnectionType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkConnectionType.cs.meta deleted file mode 100644 index 3dee1e939..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkConnectionType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c91925a237df56642b9899ac3699cf31 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCurveInterpolation.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkCurveInterpolation.cs deleted file mode 100644 index 7b9a80590..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCurveInterpolation.cs +++ /dev/null @@ -1,26 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkCurveInterpolation { - AkCurveInterpolation_Log3 = 0, - AkCurveInterpolation_Sine = 1, - AkCurveInterpolation_Log1 = 2, - AkCurveInterpolation_InvSCurve = 3, - AkCurveInterpolation_Linear = 4, - AkCurveInterpolation_SCurve = 5, - AkCurveInterpolation_Exp1 = 6, - AkCurveInterpolation_SineRecip = 7, - AkCurveInterpolation_Exp3 = 8, - AkCurveInterpolation_LastFadeCurve = 8, - AkCurveInterpolation_Constant = 9 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkCurveInterpolation.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkCurveInterpolation.cs.meta deleted file mode 100644 index eabe7878d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkCurveInterpolation.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a94c477f64d4997409af9741640556b8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceDescription.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceDescription.cs deleted file mode 100644 index f39cfaae9..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceDescription.cs +++ /dev/null @@ -1,70 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkDeviceDescription(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint idDevice { set { AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_idDevice_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_idDevice_get(swigCPtr); } - } - - public string deviceName { set { AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceName_set(swigCPtr, value); } get { return AkSoundEngine.StringFromIntPtrOSString(AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceName_get(swigCPtr)); } - } - - public AkAudioDeviceState deviceStateMask { set { AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceStateMask_set(swigCPtr, (int)value); } get { return (AkAudioDeviceState)AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_deviceStateMask_get(swigCPtr); } - } - - public bool isDefaultDevice { set { AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_isDefaultDevice_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_isDefaultDevice_get(swigCPtr); } - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_Clear(swigCPtr); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_GetSizeOf(); } - - public void Clone(AkDeviceDescription other) { AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_Clone(swigCPtr, AkDeviceDescription.getCPtr(other)); } - - public AkDeviceDescription() : this(AkSoundEnginePINVOKE.CSharp_new_AkDeviceDescription(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceDescription.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceDescription.cs.meta deleted file mode 100644 index 65d2e16f0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceDescription.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 106e4a7940ed0014f82bb16d0be639ac -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceSettings.cs deleted file mode 100644 index a6c021dab..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceSettings.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkDeviceSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public global::System.IntPtr pIOMemory { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_pIOMemory_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_pIOMemory_get(swigCPtr); } - } - - public uint uIOMemorySize { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemorySize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemorySize_get(swigCPtr); } - } - - public uint uIOMemoryAlignment { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemoryAlignment_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uIOMemoryAlignment_get(swigCPtr); } - } - - public uint ePoolAttributes { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_ePoolAttributes_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_ePoolAttributes_get(swigCPtr); } - } - - public uint uGranularity { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uGranularity_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uGranularity_get(swigCPtr); } - } - - public uint uSchedulerTypeFlags { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uSchedulerTypeFlags_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uSchedulerTypeFlags_get(swigCPtr); } - } - - public AkThreadProperties threadProperties { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_threadProperties_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_threadProperties_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public float fTargetAutoStmBufferLength { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_get(swigCPtr); } - } - - public uint uMaxConcurrentIO { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxConcurrentIO_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxConcurrentIO_get(swigCPtr); } - } - - public bool bUseStreamCache { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_bUseStreamCache_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_bUseStreamCache_get(swigCPtr); } - } - - public uint uMaxCachePinnedBytes { set { AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxCachePinnedBytes_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDeviceSettings_uMaxCachePinnedBytes_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceSettings.cs.meta deleted file mode 100644 index 82a465a28..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDeviceSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: eb0f35cd5cb1a704a974c9c085836465 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDiffractionPathInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkDiffractionPathInfo.cs deleted file mode 100644 index bf593f9a0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDiffractionPathInfo.cs +++ /dev/null @@ -1,91 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkDiffractionPathInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public UnityEngine.Vector3 emitterPos { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_emitterPos_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_emitterPos_get(swigCPtr); } - } - - public AkTransform virtualPos { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_virtualPos_set(swigCPtr, AkTransform.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_virtualPos_get(swigCPtr); - AkTransform ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkTransform(cPtr, false); - return ret; - } - } - - public uint nodeCount { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_nodeCount_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_nodeCount_get(swigCPtr); } - } - - public float diffraction { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_diffraction_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_diffraction_get(swigCPtr); } - } - - public float transmissionLoss { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_transmissionLoss_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_transmissionLoss_get(swigCPtr); } - } - - public float totLength { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_totLength_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_totLength_get(swigCPtr); } - } - - public float obstructionValue { set { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_obstructionValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_obstructionValue_get(swigCPtr); } - } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetSizeOf(); } - - public UnityEngine.Vector3 GetNodes(uint idx) { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetNodes(swigCPtr, idx); } - - public float GetAngles(uint idx) { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetAngles(swigCPtr, idx); } - - public ulong GetPortals(uint idx) { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetPortals(swigCPtr, idx); } - - public ulong GetRooms(uint idx) { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetRooms(swigCPtr, idx); } - - public void Clone(AkDiffractionPathInfo other) { AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_Clone(swigCPtr, AkDiffractionPathInfo.getCPtr(other)); } - - public AkDiffractionPathInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkDiffractionPathInfo(), true) { - } - - public const uint kMaxNodes = 8; -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDiffractionPathInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkDiffractionPathInfo.cs.meta deleted file mode 100644 index 75fa01166..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDiffractionPathInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ac342196dbfb68145a6c4be99b65e88e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDurationCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkDurationCallbackInfo.cs deleted file mode 100644 index 7fcc5571d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDurationCallbackInfo.cs +++ /dev/null @@ -1,66 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(AkSoundEnginePINVOKE.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(AkSoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkDurationCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkDurationCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public float fDuration { get { return AkSoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_fDuration_get(swigCPtr); } - } - - public float fEstimatedDuration { get { return AkSoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_fEstimatedDuration_get(swigCPtr); } - } - - public uint audioNodeID { get { return AkSoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_audioNodeID_get(swigCPtr); } - } - - public uint mediaID { get { return AkSoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_mediaID_get(swigCPtr); } - } - - public bool bStreaming { get { return AkSoundEnginePINVOKE.CSharp_AkDurationCallbackInfo_bStreaming_get(swigCPtr); } - } - - public AkDurationCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkDurationCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDurationCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkDurationCallbackInfo.cs.meta deleted file mode 100644 index d131ef13d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDurationCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9128a750b0691e042aa555f688a15fd1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceItemCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceItemCallbackInfo.cs deleted file mode 100644 index e60e0ed90..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceItemCallbackInfo.cs +++ /dev/null @@ -1,60 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(AkSoundEnginePINVOKE.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(AkSoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkDynamicSequenceItemCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkDynamicSequenceItemCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public uint playingID { get { return AkSoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_playingID_get(swigCPtr); } - } - - public uint audioNodeID { get { return AkSoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_audioNodeID_get(swigCPtr); } - } - - public global::System.IntPtr pCustomInfo { get { return AkSoundEnginePINVOKE.CSharp_AkDynamicSequenceItemCallbackInfo_pCustomInfo_get(swigCPtr); } - } - - public AkDynamicSequenceItemCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkDynamicSequenceItemCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceItemCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceItemCallbackInfo.cs.meta deleted file mode 100644 index 3f160b32a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceItemCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cabb3e66b7fd1b846b5219e813cac248 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceType.cs deleted file mode 100644 index 8845ee6e2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceType.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkDynamicSequenceType { - DynamicSequenceType_SampleAccurate, - DynamicSequenceType_NormalTransition -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceType.cs.meta deleted file mode 100644 index f6130443f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkDynamicSequenceType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 51e254fd41ef75248b18323170fce599 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkEventCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkEventCallbackInfo.cs deleted file mode 100644 index 0711fad1a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkEventCallbackInfo.cs +++ /dev/null @@ -1,57 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(AkSoundEnginePINVOKE.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(AkSoundEnginePINVOKE.CSharp_AkEventCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkEventCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkEventCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public uint playingID { get { return AkSoundEnginePINVOKE.CSharp_AkEventCallbackInfo_playingID_get(swigCPtr); } - } - - public uint eventID { get { return AkSoundEnginePINVOKE.CSharp_AkEventCallbackInfo_eventID_get(swigCPtr); } - } - - public AkEventCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkEventCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkEventCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkEventCallbackInfo.cs.meta deleted file mode 100644 index 9f32d5c85..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkEventCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1ff67a8d7599a244d9a386af4dd02591 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkExtent.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkExtent.cs deleted file mode 100644 index 00b684542..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkExtent.cs +++ /dev/null @@ -1,64 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkExtent(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkExtent() : this(AkSoundEnginePINVOKE.CSharp_new_AkExtent__SWIG_0(), true) { - } - - public AkExtent(float in_halfWidth, float in_halfHeight, float in_halfDepth) : this(AkSoundEnginePINVOKE.CSharp_new_AkExtent__SWIG_1(in_halfWidth, in_halfHeight, in_halfDepth), true) { - } - - public float halfWidth { set { AkSoundEnginePINVOKE.CSharp_AkExtent_halfWidth_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExtent_halfWidth_get(swigCPtr); } - } - - public float halfHeight { set { AkSoundEnginePINVOKE.CSharp_AkExtent_halfHeight_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExtent_halfHeight_get(swigCPtr); } - } - - public float halfDepth { set { AkSoundEnginePINVOKE.CSharp_AkExtent_halfDepth_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExtent_halfDepth_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkExtent.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkExtent.cs.meta deleted file mode 100644 index 1bb41896e..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkExtent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a86e233a00ba40941a620080d605b6be -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkExternalSourceInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkExternalSourceInfo.cs deleted file mode 100644 index d002e6abf..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkExternalSourceInfo.cs +++ /dev/null @@ -1,85 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkExternalSourceInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkExternalSourceInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_0(), true) { - } - - public AkExternalSourceInfo(global::System.IntPtr in_pInMemory, uint in_uiMemorySize, uint in_iExternalSrcCookie, uint in_idCodec) : this(AkSoundEnginePINVOKE.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(AkSoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_2(in_pszFileName, in_iExternalSrcCookie, in_idCodec), true) { - } - - public AkExternalSourceInfo(uint in_idFile, uint in_iExternalSrcCookie, uint in_idCodec) : this(AkSoundEnginePINVOKE.CSharp_new_AkExternalSourceInfo__SWIG_3(in_idFile, in_iExternalSrcCookie, in_idCodec), true) { - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_Clear(swigCPtr); } - - public void Clone(AkExternalSourceInfo other) { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_Clone(swigCPtr, AkExternalSourceInfo.getCPtr(other)); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_GetSizeOf(); } - - public uint iExternalSrcCookie { set { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_iExternalSrcCookie_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_iExternalSrcCookie_get(swigCPtr); } - } - - public uint idCodec { set { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idCodec_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idCodec_get(swigCPtr); } - } - - public string szFile { set { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_szFile_set(swigCPtr, value); } get { return AkSoundEngine.StringFromIntPtrOSString(AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_szFile_get(swigCPtr)); } - } - - public global::System.IntPtr pInMemory { set { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_pInMemory_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_pInMemory_get(swigCPtr); } - } - - public uint uiMemorySize { set { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_uiMemorySize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_uiMemorySize_get(swigCPtr); } - } - - public uint idFile { set { AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idFile_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_idFile_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkExternalSourceInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkExternalSourceInfo.cs.meta deleted file mode 100644 index 41f7252bb..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkExternalSourceInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d57b44733d0fc5548ab8adf3246729a7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkFloorPlane.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkFloorPlane.cs deleted file mode 100644 index cc72f319b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkFloorPlane.cs +++ /dev/null @@ -1,19 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkFloorPlane { - AkFloorPlane_XZ = 0, - AkFloorPlane_XY, - AkFloorPlane_YZ, - AkFloorPlane_Default = AkFloorPlane_XZ -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkFloorPlane.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkFloorPlane.cs.meta deleted file mode 100644 index 1a81fbb37..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkFloorPlane.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 20707995b0a376441a015f86ff589564 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkGlobalCallbackLocation.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkGlobalCallbackLocation.cs deleted file mode 100644 index 38d4eb5dc..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkGlobalCallbackLocation.cs +++ /dev/null @@ -1,29 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkGlobalCallbackLocation { - AkGlobalCallbackLocation_Register = (1 << 0), - AkGlobalCallbackLocation_Begin = (1 << 1), - AkGlobalCallbackLocation_PreProcessMessageQueueForRender = (1 << 2), - AkGlobalCallbackLocation_PostMessagesProcessed = (1 << 3), - AkGlobalCallbackLocation_BeginRender = (1 << 4), - AkGlobalCallbackLocation_EndRender = (1 << 5), - AkGlobalCallbackLocation_End = (1 << 6), - AkGlobalCallbackLocation_Term = (1 << 7), - AkGlobalCallbackLocation_Monitor = (1 << 8), - AkGlobalCallbackLocation_MonitorRecap = (1 << 9), - AkGlobalCallbackLocation_Init = (1 << 10), - AkGlobalCallbackLocation_Suspend = (1 << 11), - AkGlobalCallbackLocation_WakeupFromSuspend = (1 << 12), - AkGlobalCallbackLocation_Num = 13 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkGlobalCallbackLocation.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkGlobalCallbackLocation.cs.meta deleted file mode 100644 index 75d208b4b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkGlobalCallbackLocation.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 90c133a1ad22ebd4c9e95e9cbb723d68 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkGroupType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkGroupType.cs deleted file mode 100644 index eb22c5060..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkGroupType.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkGroupType { - AkGroupType_Switch = 0, - AkGroupType_State = 1 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkGroupType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkGroupType.cs.meta deleted file mode 100644 index dff0c2bf2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkGroupType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 44459849f9884b845b1ac3ce7537794a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceParams.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceParams.cs deleted file mode 100644 index a0184e28a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceParams.cs +++ /dev/null @@ -1,73 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// 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(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkImageSourceParams(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkImageSourceParams() : this(AkSoundEnginePINVOKE.CSharp_new_AkImageSourceParams__SWIG_0(), true) { - } - - public AkImageSourceParams(UnityEngine.Vector3 in_sourcePosition, float in_fDistanceScalingFactor, float in_fLevel) : this(AkSoundEnginePINVOKE.CSharp_new_AkImageSourceParams__SWIG_1(in_sourcePosition, in_fDistanceScalingFactor, in_fLevel), true) { - } - - public UnityEngine.Vector3 sourcePosition { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_sourcePosition_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_sourcePosition_get(swigCPtr); } - } - - public float fDistanceScalingFactor { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_fDistanceScalingFactor_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_fDistanceScalingFactor_get(swigCPtr); } - } - - public float fLevel { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_fLevel_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_fLevel_get(swigCPtr); } - } - - public float fDiffraction { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_fDiffraction_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_fDiffraction_get(swigCPtr); } - } - - public byte uDiffractionEmitterSide { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionEmitterSide_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionEmitterSide_get(swigCPtr); } - } - - public byte uDiffractionListenerSide { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionListenerSide_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkImageSourceParams_uDiffractionListenerSide_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceParams.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceParams.cs.meta deleted file mode 100644 index 68ad2fcdb..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceParams.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b41b1f27b963b8448a0362bc7d4a24af -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceSettings.cs deleted file mode 100644 index 689878310..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceSettings.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkImageSourceSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkImageSourceSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkImageSourceSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkImageSourceSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkImageSourceSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkImageSourceSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkImageSourceSettings__SWIG_0(), true) { - } - - public AkImageSourceSettings(UnityEngine.Vector3 in_sourcePosition, float in_fDistanceScalingFactor, float in_fLevel) : this(AkSoundEnginePINVOKE.CSharp_new_AkImageSourceSettings__SWIG_1(in_sourcePosition, in_fDistanceScalingFactor, in_fLevel), true) { - } - - public void SetOneTexture(uint in_texture) { AkSoundEnginePINVOKE.CSharp_AkImageSourceSettings_SetOneTexture(swigCPtr, in_texture); } - - public void SetName(string in_pName) { AkSoundEnginePINVOKE.CSharp_AkImageSourceSettings_SetName(swigCPtr, in_pName); } - - public AkImageSourceParams params_ { set { AkSoundEnginePINVOKE.CSharp_AkImageSourceSettings_params__set(swigCPtr, AkImageSourceParams.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkImageSourceSettings_params__get(swigCPtr); - AkImageSourceParams ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkImageSourceParams(cPtr, false); - return ret; - } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceSettings.cs.meta deleted file mode 100644 index a9045064a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkImageSourceSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4097b71b76ccd704e8f7ee740af9b6e1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkInitSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkInitSettings.cs deleted file mode 100644 index fd40918bd..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkInitSettings.cs +++ /dev/null @@ -1,102 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkInitSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkInitSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkInitSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkInitSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkInitSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint uMaxNumPaths { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uMaxNumPaths_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uMaxNumPaths_get(swigCPtr); } - } - - public uint uCommandQueueSize { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uCommandQueueSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uCommandQueueSize_get(swigCPtr); } - } - - public bool bEnableGameSyncPreparation { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_bEnableGameSyncPreparation_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_bEnableGameSyncPreparation_get(swigCPtr); } - } - - public uint uContinuousPlaybackLookAhead { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uContinuousPlaybackLookAhead_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uContinuousPlaybackLookAhead_get(swigCPtr); } - } - - public uint uNumSamplesPerFrame { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uNumSamplesPerFrame_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uNumSamplesPerFrame_get(swigCPtr); } - } - - public uint uMonitorQueuePoolSize { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uMonitorQueuePoolSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uMonitorQueuePoolSize_get(swigCPtr); } - } - - public AkOutputSettings settingsMainOutput { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_settingsMainOutput_set(swigCPtr, AkOutputSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitSettings_settingsMainOutput_get(swigCPtr); - AkOutputSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkOutputSettings(cPtr, false); - return ret; - } - } - - public uint uMaxHardwareTimeoutMs { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uMaxHardwareTimeoutMs_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uMaxHardwareTimeoutMs_get(swigCPtr); } - } - - public bool bUseSoundBankMgrThread { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_bUseSoundBankMgrThread_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_bUseSoundBankMgrThread_get(swigCPtr); } - } - - public bool bUseLEngineThread { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_bUseLEngineThread_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_bUseLEngineThread_get(swigCPtr); } - } - - public string szPluginDLLPath { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_szPluginDLLPath_set(swigCPtr, value); } get { return AkSoundEngine.StringFromIntPtrOSString(AkSoundEnginePINVOKE.CSharp_AkInitSettings_szPluginDLLPath_get(swigCPtr)); } - } - - public AkFloorPlane eFloorPlane { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_eFloorPlane_set(swigCPtr, (int)value); } get { return (AkFloorPlane)AkSoundEnginePINVOKE.CSharp_AkInitSettings_eFloorPlane_get(swigCPtr); } - } - - public float fGameUnitsToMeters { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_fGameUnitsToMeters_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_fGameUnitsToMeters_get(swigCPtr); } - } - - public uint uBankReadBufferSize { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_uBankReadBufferSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_uBankReadBufferSize_get(swigCPtr); } - } - - public float fDebugOutOfRangeLimit { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_fDebugOutOfRangeLimit_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_fDebugOutOfRangeLimit_get(swigCPtr); } - } - - public bool bDebugOutOfRangeCheckEnabled { set { AkSoundEnginePINVOKE.CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkInitSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkInitSettings.cs.meta deleted file mode 100644 index a649f5d25..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkInitSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7b19cd9ae9009dc45adec18f3dbeda27 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkInitializationSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkInitializationSettings.cs deleted file mode 100644 index a0f1ae5e9..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkInitializationSettings.cs +++ /dev/null @@ -1,103 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkInitializationSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkInitializationSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkInitializationSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkInitializationSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkInitializationSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkInitializationSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkInitializationSettings(), true) { - } - - public AkStreamMgrSettings streamMgrSettings { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_streamMgrSettings_set(swigCPtr, AkStreamMgrSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_streamMgrSettings_get(swigCPtr); - AkStreamMgrSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkStreamMgrSettings(cPtr, false); - return ret; - } - } - - public AkDeviceSettings deviceSettings { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_deviceSettings_set(swigCPtr, AkDeviceSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_deviceSettings_get(swigCPtr); - AkDeviceSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkDeviceSettings(cPtr, false); - return ret; - } - } - - public AkInitSettings initSettings { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_initSettings_set(swigCPtr, AkInitSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_initSettings_get(swigCPtr); - AkInitSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkInitSettings(cPtr, false); - return ret; - } - } - - public AkPlatformInitSettings platformSettings { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_platformSettings_set(swigCPtr, AkPlatformInitSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_platformSettings_get(swigCPtr); - AkPlatformInitSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlatformInitSettings(cPtr, false); - return ret; - } - } - - public AkMusicSettings musicSettings { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_musicSettings_set(swigCPtr, AkMusicSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_musicSettings_get(swigCPtr); - AkMusicSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMusicSettings(cPtr, false); - return ret; - } - } - - public AkUnityPlatformSpecificSettings unityPlatformSpecificSettings { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_unityPlatformSpecificSettings_set(swigCPtr, AkUnityPlatformSpecificSettings.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_unityPlatformSpecificSettings_get(swigCPtr); - AkUnityPlatformSpecificSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkUnityPlatformSpecificSettings(cPtr, false); - return ret; - } - } - - public bool useAsyncOpen { set { AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_useAsyncOpen_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkInitializationSettings_useAsyncOpen_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkInitializationSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkInitializationSettings.cs.meta deleted file mode 100644 index 30edc8948..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkInitializationSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a7650ac304c99464ebeb8f1c565f1c60 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkIterator.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkIterator.cs deleted file mode 100644 index c650fff78..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkIterator.cs +++ /dev/null @@ -1,79 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkIterator : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkIterator(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkIterator obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkIterator() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkIterator(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkPlaylistItem pItem { set { AkSoundEnginePINVOKE.CSharp_AkIterator_pItem_set(swigCPtr, AkPlaylistItem.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkIterator_pItem_get(swigCPtr); - AkPlaylistItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylistItem(cPtr, false); - return ret; - } - } - - public AkIterator NextIter() { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkIterator_NextIter(swigCPtr), false); - return ret; - } - - public AkIterator PrevIter() { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkIterator_PrevIter(swigCPtr), false); - return ret; - } - - public AkPlaylistItem GetItem() { - AkPlaylistItem ret = new AkPlaylistItem(AkSoundEnginePINVOKE.CSharp_AkIterator_GetItem(swigCPtr), false); - return ret; - } - - public bool IsEqualTo(AkIterator in_rOp) { return AkSoundEnginePINVOKE.CSharp_AkIterator_IsEqualTo(swigCPtr, AkIterator.getCPtr(in_rOp)); } - - public bool IsDifferentFrom(AkIterator in_rOp) { return AkSoundEnginePINVOKE.CSharp_AkIterator_IsDifferentFrom(swigCPtr, AkIterator.getCPtr(in_rOp)); } - - public AkIterator() : this(AkSoundEnginePINVOKE.CSharp_new_AkIterator(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkIterator.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkIterator.cs.meta deleted file mode 100644 index 480d44f5a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkIterator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bf287fefc06632f43945eafb38776181 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDICcTypes.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDICcTypes.cs deleted file mode 100644 index 0ecd0cc72..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDICcTypes.cs +++ /dev/null @@ -1,112 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkMIDICcTypes { - BANK_SELECT_COARSE = 0, - MOD_WHEEL_COARSE = 1, - BREATH_CTRL_COARSE = 2, - CTRL_3_COARSE = 3, - FOOT_PEDAL_COARSE = 4, - PORTAMENTO_COARSE = 5, - DATA_ENTRY_COARSE = 6, - VOLUME_COARSE = 7, - BALANCE_COARSE = 8, - CTRL_9_COARSE = 9, - PAN_POSITION_COARSE = 10, - EXPRESSION_COARSE = 11, - EFFECT_CTRL_1_COARSE = 12, - EFFECT_CTRL_2_COARSE = 13, - CTRL_14_COARSE = 14, - CTRL_15_COARSE = 15, - GEN_SLIDER_1 = 16, - GEN_SLIDER_2 = 17, - GEN_SLIDER_3 = 18, - GEN_SLIDER_4 = 19, - CTRL_20_COARSE = 20, - CTRL_21_COARSE = 21, - CTRL_22_COARSE = 22, - CTRL_23_COARSE = 23, - CTRL_24_COARSE = 24, - CTRL_25_COARSE = 25, - CTRL_26_COARSE = 26, - CTRL_27_COARSE = 27, - CTRL_28_COARSE = 28, - CTRL_29_COARSE = 29, - CTRL_30_COARSE = 30, - CTRL_31_COARSE = 31, - BANK_SELECT_FINE = 32, - MOD_WHEEL_FINE = 33, - BREATH_CTRL_FINE = 34, - CTRL_3_FINE = 35, - FOOT_PEDAL_FINE = 36, - PORTAMENTO_FINE = 37, - DATA_ENTRY_FINE = 38, - VOLUME_FINE = 39, - BALANCE_FINE = 40, - CTRL_9_FINE = 41, - PAN_POSITION_FINE = 42, - EXPRESSION_FINE = 43, - EFFECT_CTRL_1_FINE = 44, - EFFECT_CTRL_2_FINE = 45, - CTRL_14_FINE = 46, - CTRL_15_FINE = 47, - CTRL_20_FINE = 52, - CTRL_21_FINE = 53, - CTRL_22_FINE = 54, - CTRL_23_FINE = 55, - CTRL_24_FINE = 56, - CTRL_25_FINE = 57, - CTRL_26_FINE = 58, - CTRL_27_FINE = 59, - CTRL_28_FINE = 60, - CTRL_29_FINE = 61, - CTRL_30_FINE = 62, - CTRL_31_FINE = 63, - HOLD_PEDAL = 64, - PORTAMENTO_ON_OFF = 65, - SUSTENUTO_PEDAL = 66, - SOFT_PEDAL = 67, - LEGATO_PEDAL = 68, - HOLD_PEDAL_2 = 69, - SOUND_VARIATION = 70, - SOUND_TIMBRE = 71, - SOUND_RELEASE_TIME = 72, - SOUND_ATTACK_TIME = 73, - SOUND_BRIGHTNESS = 74, - SOUND_CTRL_6 = 75, - SOUND_CTRL_7 = 76, - SOUND_CTRL_8 = 77, - SOUND_CTRL_9 = 78, - SOUND_CTRL_10 = 79, - GENERAL_BUTTON_1 = 80, - GENERAL_BUTTON_2 = 81, - GENERAL_BUTTON_3 = 82, - GENERAL_BUTTON_4 = 83, - REVERB_LEVEL = 91, - TREMOLO_LEVEL = 92, - CHORUS_LEVEL = 93, - CELESTE_LEVEL = 94, - PHASER_LEVEL = 95, - DATA_BUTTON_P1 = 96, - DATA_BUTTON_M1 = 97, - NON_REGISTER_COARSE = 98, - NON_REGISTER_FINE = 99, - ALL_SOUND_OFF = 120, - ALL_CONTROLLERS_OFF = 121, - LOCAL_KEYBOARD = 122, - ALL_NOTES_OFF = 123, - OMNI_MODE_OFF = 124, - OMNI_MODE_ON = 125, - OMNI_MONOPHONIC_ON = 126, - OMNI_POLYPHONIC_ON = 127 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDICcTypes.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDICcTypes.cs.meta deleted file mode 100644 index 7ecb6d23b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDICcTypes.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 77d836e922160e04e93531727f8653ec -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEvent.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEvent.cs deleted file mode 100644 index ad1b495ef..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEvent.cs +++ /dev/null @@ -1,520 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMIDIEvent : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkMIDIEvent(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMIDIEvent obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkMIDIEvent() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byChan { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byChan_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byChan_get(swigCPtr); } - } - - public class tGen : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tGen(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tGen obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tGen() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tGen(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byParam1 { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tGen_byParam1_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tGen_byParam1_get(swigCPtr); } - } - - public byte byParam2 { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tGen_byParam2_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tGen_byParam2_get(swigCPtr); } - } - - public tGen() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tGen(), true) { - } - - } - - public class tNoteOnOff : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tNoteOnOff(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tNoteOnOff obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tNoteOnOff() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tNoteOnOff(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byNote { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteOnOff_byNote_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteOnOff_byNote_get(swigCPtr); } - } - - public byte byVelocity { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_get(swigCPtr); } - } - - public tNoteOnOff() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tNoteOnOff(), true) { - } - - } - - public class tCc : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tCc(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tCc obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tCc() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tCc(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byCc { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tCc_byCc_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tCc_byCc_get(swigCPtr); } - } - - public byte byValue { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tCc_byValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tCc_byValue_get(swigCPtr); } - } - - public tCc() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tCc(), true) { - } - - } - - public class tPitchBend : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tPitchBend(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tPitchBend obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tPitchBend() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tPitchBend(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byValueLsb { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tPitchBend_byValueLsb_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tPitchBend_byValueLsb_get(swigCPtr); } - } - - public byte byValueMsb { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tPitchBend_byValueMsb_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tPitchBend_byValueMsb_get(swigCPtr); } - } - - public tPitchBend() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tPitchBend(), true) { - } - - } - - public class tNoteAftertouch : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tNoteAftertouch(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tNoteAftertouch obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tNoteAftertouch() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tNoteAftertouch(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byNote { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteAftertouch_byNote_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteAftertouch_byNote_get(swigCPtr); } - } - - public byte byValue { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteAftertouch_byValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tNoteAftertouch_byValue_get(swigCPtr); } - } - - public tNoteAftertouch() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tNoteAftertouch(), true) { - } - - } - - public class tChanAftertouch : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tChanAftertouch(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tChanAftertouch obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tChanAftertouch() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tChanAftertouch(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byValue { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tChanAftertouch_byValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tChanAftertouch_byValue_get(swigCPtr); } - } - - public tChanAftertouch() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tChanAftertouch(), true) { - } - - } - - public class tProgramChange : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tProgramChange(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tProgramChange obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tProgramChange() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tProgramChange(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public byte byProgramNum { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tProgramChange_byProgramNum_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tProgramChange_byProgramNum_get(swigCPtr); } - } - - public tProgramChange() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tProgramChange(), true) { - } - - } - - public class tWwiseCmd : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal tWwiseCmd(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(tWwiseCmd obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~tWwiseCmd() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEvent_tWwiseCmd(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public ushort uCmd { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tWwiseCmd_uCmd_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tWwiseCmd_uCmd_get(swigCPtr); } - } - - public uint uArg { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tWwiseCmd_uArg_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_tWwiseCmd_uArg_get(swigCPtr); } - } - - public tWwiseCmd() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent_tWwiseCmd(), true) { - } - - } - - public AkMIDIEvent.tGen Gen { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_Gen_set(swigCPtr, AkMIDIEvent.tGen.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_Gen_get(swigCPtr); - AkMIDIEvent.tGen ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tGen(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tCc Cc { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_Cc_set(swigCPtr, AkMIDIEvent.tCc.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_Cc_get(swigCPtr); - AkMIDIEvent.tCc ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tCc(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tNoteOnOff NoteOnOff { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_NoteOnOff_set(swigCPtr, AkMIDIEvent.tNoteOnOff.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_NoteOnOff_get(swigCPtr); - AkMIDIEvent.tNoteOnOff ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tNoteOnOff(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tPitchBend PitchBend { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_PitchBend_set(swigCPtr, AkMIDIEvent.tPitchBend.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_PitchBend_get(swigCPtr); - AkMIDIEvent.tPitchBend ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tPitchBend(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tNoteAftertouch NoteAftertouch { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_NoteAftertouch_set(swigCPtr, AkMIDIEvent.tNoteAftertouch.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_NoteAftertouch_get(swigCPtr); - AkMIDIEvent.tNoteAftertouch ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tNoteAftertouch(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tChanAftertouch ChanAftertouch { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_ChanAftertouch_set(swigCPtr, AkMIDIEvent.tChanAftertouch.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_ChanAftertouch_get(swigCPtr); - AkMIDIEvent.tChanAftertouch ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tChanAftertouch(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tProgramChange ProgramChange { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_ProgramChange_set(swigCPtr, AkMIDIEvent.tProgramChange.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_ProgramChange_get(swigCPtr); - AkMIDIEvent.tProgramChange ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tProgramChange(cPtr, false); - return ret; - } - } - - public AkMIDIEvent.tWwiseCmd WwiseCmd { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_WwiseCmd_set(swigCPtr, AkMIDIEvent.tWwiseCmd.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_WwiseCmd_get(swigCPtr); - AkMIDIEvent.tWwiseCmd ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkMIDIEvent.tWwiseCmd(cPtr, false); - return ret; - } - } - - public AkMIDIEventTypes byType { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byType_set(swigCPtr, (int)value); } get { return (AkMIDIEventTypes)AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byType_get(swigCPtr); } - } - - public byte byOnOffNote { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byOnOffNote_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byOnOffNote_get(swigCPtr); } - } - - public byte byVelocity { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byVelocity_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byVelocity_get(swigCPtr); } - } - - public AkMIDICcTypes byCc { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byCc_set(swigCPtr, (int)value); } get { return (AkMIDICcTypes)AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byCc_get(swigCPtr); } - } - - public byte byCcValue { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byCcValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byCcValue_get(swigCPtr); } - } - - public byte byValueLsb { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byValueLsb_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byValueLsb_get(swigCPtr); } - } - - public byte byValueMsb { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byValueMsb_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byValueMsb_get(swigCPtr); } - } - - public byte byAftertouchNote { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byAftertouchNote_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byAftertouchNote_get(swigCPtr); } - } - - public byte byNoteAftertouchValue { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byNoteAftertouchValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byNoteAftertouchValue_get(swigCPtr); } - } - - public byte byChanAftertouchValue { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byChanAftertouchValue_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byChanAftertouchValue_get(swigCPtr); } - } - - public byte byProgramNum { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byProgramNum_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_byProgramNum_get(swigCPtr); } - } - - public ushort uCmd { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_uCmd_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_uCmd_get(swigCPtr); } - } - - public uint uArg { set { AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_uArg_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEvent_uArg_get(swigCPtr); } - } - - public AkMIDIEvent() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEvent(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEvent.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEvent.cs.meta deleted file mode 100644 index 2d197f1a5..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEvent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 64d99d92258498045b969cf256c8849c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventCallbackInfo.cs deleted file mode 100644 index ebb01f31b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventCallbackInfo.cs +++ /dev/null @@ -1,93 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMIDIEventCallbackInfo : AkEventCallbackInfo { - private global::System.IntPtr swigCPtr; - - internal AkMIDIEventCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMIDIEventCallbackInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal override void setCPtr(global::System.IntPtr cPtr) { - base.setCPtr(AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkMIDIEventCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIEventCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public byte byChan { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byChan_get(swigCPtr); } - } - - public byte byParam1 { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byParam1_get(swigCPtr); } - } - - public byte byParam2 { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byParam2_get(swigCPtr); } - } - - public AkMIDIEventTypes byType { get { return (AkMIDIEventTypes)AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byType_get(swigCPtr); } - } - - public byte byOnOffNote { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byOnOffNote_get(swigCPtr); } - } - - public byte byVelocity { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byVelocity_get(swigCPtr); } - } - - public AkMIDICcTypes byCc { get { return (AkMIDICcTypes)AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byCc_get(swigCPtr); } - } - - public byte byCcValue { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byCcValue_get(swigCPtr); } - } - - public byte byValueLsb { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byValueLsb_get(swigCPtr); } - } - - public byte byValueMsb { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byValueMsb_get(swigCPtr); } - } - - public byte byAftertouchNote { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byAftertouchNote_get(swigCPtr); } - } - - public byte byNoteAftertouchValue { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byNoteAftertouchValue_get(swigCPtr); } - } - - public byte byChanAftertouchValue { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byChanAftertouchValue_get(swigCPtr); } - } - - public byte byProgramNum { get { return AkSoundEnginePINVOKE.CSharp_AkMIDIEventCallbackInfo_byProgramNum_get(swigCPtr); } - } - - public AkMIDIEventCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIEventCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventCallbackInfo.cs.meta deleted file mode 100644 index a2b2a9231..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7b0ce1603c310c2479ebdb943f6b2139 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventTypes.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventTypes.cs deleted file mode 100644 index 6621d0765..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventTypes.cs +++ /dev/null @@ -1,25 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkMIDIEventTypes { - NOTE_OFF = 0x80, - NOTE_ON = 0x90, - NOTE_AFTERTOUCH = 0xa0, - CONTROLLER = 0xb0, - PROGRAM_CHANGE = 0xc0, - CHANNEL_AFTERTOUCH = 0xd0, - PITCH_BEND = 0xe0, - SYSEX = 0xf0, - ESCAPE = 0xf7, - META = 0xff -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventTypes.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventTypes.cs.meta deleted file mode 100644 index 5b13d5b0f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIEventTypes.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8f99b3e9e5fe6a5478631632a1757ce8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIPost.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIPost.cs deleted file mode 100644 index 9df6b20e2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIPost.cs +++ /dev/null @@ -1,130 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMIDIPost : AkMIDIEvent { - private global::System.IntPtr swigCPtr; - - internal AkMIDIPost(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkSoundEnginePINVOKE.CSharp_AkMIDIPost_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMIDIPost obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal override void setCPtr(global::System.IntPtr cPtr) { - base.setCPtr(AkSoundEnginePINVOKE.CSharp_AkMIDIPost_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkMIDIPost() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMIDIPost(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public ulong uOffset { set { AkSoundEnginePINVOKE.CSharp_AkMIDIPost_uOffset_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMIDIPost_uOffset_get(swigCPtr); } - } - - public uint PostOnEvent(uint in_eventID, ulong in_gameObjectID, uint in_uNumPosts) { - uint ret = AkSoundEnginePINVOKE.CSharp_AkMIDIPost_PostOnEvent__SWIG_0(swigCPtr, in_eventID, in_gameObjectID, in_uNumPosts); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public uint PostOnEvent(uint in_eventID, ulong in_gameObjectID, uint in_uNumPosts, bool in_bAbsoluteOffsets) { - uint ret = AkSoundEnginePINVOKE.CSharp_AkMIDIPost_PostOnEvent__SWIG_1(swigCPtr, in_eventID, in_gameObjectID, in_uNumPosts, in_bAbsoluteOffsets); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public uint PostOnEvent(uint in_eventID, ulong in_gameObjectID, uint in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_AkMIDIPost_PostOnEvent__SWIG_2(swigCPtr, in_eventID, in_gameObjectID, in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public uint PostOnEvent(uint in_eventID, ulong in_gameObjectID, uint in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_playingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_AkMIDIPost_PostOnEvent__SWIG_3(swigCPtr, in_eventID, in_gameObjectID, in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_playingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public uint PostOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uNumPosts) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - uint ret = PostOnEvent(in_eventID, in_gameObjectID_id, in_uNumPosts); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public uint PostOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uNumPosts, bool in_bAbsoluteOffsets) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - uint ret = PostOnEvent(in_eventID, in_gameObjectID_id, in_uNumPosts, in_bAbsoluteOffsets); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public uint PostOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - uint ret = PostOnEvent(in_eventID, in_gameObjectID_id, in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_pfnCallback, in_pCookie); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public uint PostOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_playingID) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - - uint ret = PostOnEvent(in_eventID, in_gameObjectID_id, in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_pfnCallback, in_pCookie, in_playingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - - public void Clone(AkMIDIPost other) { AkSoundEnginePINVOKE.CSharp_AkMIDIPost_Clone(swigCPtr, AkMIDIPost.getCPtr(other)); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkMIDIPost_GetSizeOf(); } - - public AkMIDIPost() : this(AkSoundEnginePINVOKE.CSharp_new_AkMIDIPost(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIPost.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIPost.cs.meta deleted file mode 100644 index 7954f134d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMIDIPost.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a2382adbb4b7d7241ad6cfa145ab5555 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMarkerCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMarkerCallbackInfo.cs deleted file mode 100644 index 5882ce39a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMarkerCallbackInfo.cs +++ /dev/null @@ -1,60 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMarkerCallbackInfo : AkEventCallbackInfo { - private global::System.IntPtr swigCPtr; - - internal AkMarkerCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkSoundEnginePINVOKE.CSharp_AkMarkerCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMarkerCallbackInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal override void setCPtr(global::System.IntPtr cPtr) { - base.setCPtr(AkSoundEnginePINVOKE.CSharp_AkMarkerCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkMarkerCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMarkerCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public uint uIdentifier { get { return AkSoundEnginePINVOKE.CSharp_AkMarkerCallbackInfo_uIdentifier_get(swigCPtr); } - } - - public uint uPosition { get { return AkSoundEnginePINVOKE.CSharp_AkMarkerCallbackInfo_uPosition_get(swigCPtr); } - } - - public string strLabel { get { return AkSoundEngine.StringFromIntPtrString(AkSoundEnginePINVOKE.CSharp_AkMarkerCallbackInfo_strLabel_get(swigCPtr)); } - } - - public AkMarkerCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkMarkerCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMarkerCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMarkerCallbackInfo.cs.meta deleted file mode 100644 index b0d26c976..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMarkerCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 127a20db56fb2b7428d6d5502a9021ff -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMeteringFlags.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMeteringFlags.cs deleted file mode 100644 index 35c81b4a3..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMeteringFlags.cs +++ /dev/null @@ -1,21 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkMeteringFlags { - AK_NoMetering = 0, - AK_EnableBusMeter_Peak = 1 << 0, - AK_EnableBusMeter_TruePeak = 1 << 1, - AK_EnableBusMeter_RMS = 1 << 2, - AK_EnableBusMeter_KPower = 1 << 4, - AK_EnableBusMeter_3DMeter = 1 << 5 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMeteringFlags.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMeteringFlags.cs.meta deleted file mode 100644 index 7f0344a1f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMeteringFlags.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: da4fe7f20e4d8914eac7266c298091d0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorCode.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorCode.cs deleted file mode 100644 index b2bdf5024..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorCode.cs +++ /dev/null @@ -1,124 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkMonitorErrorCode { - ErrorCode_NoError = 0, - ErrorCode_FileNotFound, - ErrorCode_CannotOpenFile, - ErrorCode_CannotStartStreamNoMemory, - ErrorCode_IODevice, - ErrorCode_IncompatibleIOSettings, - ErrorCode_PluginUnsupportedChannelConfiguration, - ErrorCode_PluginMediaUnavailable, - ErrorCode_PluginInitialisationFailed, - ErrorCode_PluginProcessingFailed, - ErrorCode_PluginExecutionInvalid, - ErrorCode_PluginAllocationFailed, - ErrorCode_VorbisSeekTableRecommended, - ErrorCode_VorbisDecodeError, - ErrorCode_AACDecodeError, - ErrorCode_xWMACreateDecoderFailed, - ErrorCode_ATRAC9DecodeFailed, - ErrorCode_ATRAC9LoopSectionTooSmall, - ErrorCode_InvalidAudioFileHeader, - ErrorCode_AudioFileHeaderTooLarge, - ErrorCode_FileTooSmall, - ErrorCode_TransitionNotAccurateChannel, - ErrorCode_TransitionNotAccuratePluginMismatch, - ErrorCode_TransitionNotAccurateRejectedByPlugin, - ErrorCode_TransitionNotAccurateStarvation, - ErrorCode_TransitionNotAccurateCodecError, - ErrorCode_NothingToPlay, - ErrorCode_PlayFailed, - ErrorCode_StingerCouldNotBeScheduled, - ErrorCode_TooLongSegmentLookAhead, - ErrorCode_CannotScheduleMusicSwitch, - ErrorCode_TooManySimultaneousMusicSegments, - ErrorCode_PlaylistStoppedForEditing, - ErrorCode_MusicClipsRescheduledAfterTrackEdit, - ErrorCode_CannotPlaySource_Create, - ErrorCode_CannotPlaySource_VirtualOff, - ErrorCode_CannotPlaySource_TimeSkip, - ErrorCode_CannotPlaySource_InconsistentState, - ErrorCode_MediaNotLoaded, - ErrorCode_VoiceStarving, - ErrorCode_StreamingSourceStarving, - ErrorCode_XMADecoderSourceStarving, - ErrorCode_XMADecodingError, - ErrorCode_InvalidXMAData, - ErrorCode_PluginNotRegistered, - ErrorCode_CodecNotRegistered, - ErrorCode_PluginVersionMismatch, - ErrorCode_EventIDNotFound, - ErrorCode_InvalidGroupID, - ErrorCode_SelectedChildNotAvailable, - ErrorCode_SelectedNodeNotAvailable, - ErrorCode_SelectedMediaNotAvailable, - ErrorCode_NoValidSwitch, - ErrorCode_SelectedNodeNotAvailablePlay, - ErrorCode_FeedbackVoiceStarving, - ErrorCode_BankLoadFailed, - ErrorCode_BankUnloadFailed, - ErrorCode_ErrorWhileLoadingBank, - ErrorCode_InsufficientSpaceToLoadBank, - ErrorCode_LowerEngineCommandListFull, - ErrorCode_SeekNoMarker, - ErrorCode_CannotSeekContinuous, - ErrorCode_SeekAfterEof, - ErrorCode_UnknownGameObject, - ErrorCode_UnknownEmitter, - ErrorCode_UnknownListener, - ErrorCode_GameObjectIsNotListener, - ErrorCode_GameObjectIsNotEmitter, - ErrorCode_UnknownGameObjectEvent, - ErrorCode_GameObjectIsNotEmitterEvent, - ErrorCode_ExternalSourceNotResolved, - ErrorCode_FileFormatMismatch, - ErrorCode_CommandQueueFull, - ErrorCode_CommandTooLarge, - ErrorCode_XMACreateDecoderLimitReached, - ErrorCode_XMAStreamBufferTooSmall, - ErrorCode_ModulatorScopeError_Inst, - ErrorCode_ModulatorScopeError_Obj, - ErrorCode_SeekAfterEndOfPlaylist, - ErrorCode_OpusRequireSeekTable, - ErrorCode_OpusDecodeError, - ErrorCode_OpusCreateDecoderFailed, - ErrorCode_SourcePluginNotFound, - ErrorCode_VirtualVoiceLimit, - ErrorCode_AudioDeviceShareSetNotFound, - ErrorCode_NotEnoughMemoryToStart, - ErrorCode_UnkownOpusError, - ErrorCode_AudioDeviceInitFailure, - ErrorCode_AudioDeviceRemoveFailure, - ErrorCode_AudioDeviceNotFound, - ErrorCode_AudioDeviceNotValid, - ErrorCode_SpatialAudio_ListenerAutomationNotSupported, - ErrorCode_MediaDuplicationLength, - ErrorCode_HwVoicesSystemInitFailed, - ErrorCode_HwVoicesDecodeBatchFailed, - ErrorCode_HwVoiceLimitReached, - ErrorCode_HwVoiceInitFailed, - ErrorCode_OpusHWCommandFailed, - ErrorCode_AddOutputListenerIdWithZeroListeners, - ErrorCode_3DObjectLimitExceeded, - ErrorCode_OpusHWDecodeUnavailable, - ErrorCode_OpusHWFatalError, - ErrorCode_OpusHWTimeout, - ErrorCode_SystemAudioObjectsUnavailable, - ErrorCode_AddOutputNoDistinctListener, - ErrorCode_PluginCannotRunOnObjectConfig, - ErrorCode_SpatialAudio_ReflectionBusError, - ErrorCode_VorbisHWDecodeUnavailable, - Num_ErrorCodes -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorCode.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorCode.cs.meta deleted file mode 100644 index de53e102c..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorCode.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7c34c5f42d9958a48bd97d7b1e2847a7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorLevel.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorLevel.cs deleted file mode 100644 index 845205d03..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorLevel.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkMonitorErrorLevel { - ErrorLevel_Message = (1 << 0), - ErrorLevel_Error = (1 << 1), - ErrorLevel_All = ErrorLevel_Message|ErrorLevel_Error -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorLevel.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorLevel.cs.meta deleted file mode 100644 index 0f3ca0038..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitorErrorLevel.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 805900754fa088a48b3960c67d7cc9a9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitoringCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMonitoringCallbackInfo.cs deleted file mode 100644 index 0e86ea826..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitoringCallbackInfo.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMonitoringCallbackInfo : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkMonitoringCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMonitoringCallbackInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkMonitoringCallbackInfo() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMonitoringCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkMonitorErrorCode errorCode { get { return (AkMonitorErrorCode)AkSoundEnginePINVOKE.CSharp_AkMonitoringCallbackInfo_errorCode_get(swigCPtr); } - } - - public AkMonitorErrorLevel errorLevel { get { return (AkMonitorErrorLevel)AkSoundEnginePINVOKE.CSharp_AkMonitoringCallbackInfo_errorLevel_get(swigCPtr); } - } - - public uint playingID { get { return AkSoundEnginePINVOKE.CSharp_AkMonitoringCallbackInfo_playingID_get(swigCPtr); } - } - - public ulong gameObjID { get { return AkSoundEnginePINVOKE.CSharp_AkMonitoringCallbackInfo_gameObjID_get(swigCPtr); } - } - - public string message { get { return AkSoundEngine.StringFromIntPtrOSString(AkSoundEnginePINVOKE.CSharp_AkMonitoringCallbackInfo_message_get(swigCPtr)); } - } - - public AkMonitoringCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkMonitoringCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitoringCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMonitoringCallbackInfo.cs.meta deleted file mode 100644 index f924092c7..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMonitoringCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fc41f05894ad7b04fa9be81fafbcc3c3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMultiPositionType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMultiPositionType.cs deleted file mode 100644 index b16859bc0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMultiPositionType.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkMultiPositionType { - MultiPositionType_SingleSource, - MultiPositionType_MultiSources, - MultiPositionType_MultiDirections -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMultiPositionType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMultiPositionType.cs.meta deleted file mode 100644 index 0018a99aa..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMultiPositionType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 11c74af49c5c5764aac62cf57d7a90e7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicPlaylistCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMusicPlaylistCallbackInfo.cs deleted file mode 100644 index 7cbad0d1f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicPlaylistCallbackInfo.cs +++ /dev/null @@ -1,63 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMusicPlaylistCallbackInfo : AkEventCallbackInfo { - private global::System.IntPtr swigCPtr; - - internal AkMusicPlaylistCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkSoundEnginePINVOKE.CSharp_AkMusicPlaylistCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMusicPlaylistCallbackInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal override void setCPtr(global::System.IntPtr cPtr) { - base.setCPtr(AkSoundEnginePINVOKE.CSharp_AkMusicPlaylistCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkMusicPlaylistCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMusicPlaylistCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public uint playlistID { get { return AkSoundEnginePINVOKE.CSharp_AkMusicPlaylistCallbackInfo_playlistID_get(swigCPtr); } - } - - public uint uNumPlaylistItems { get { return AkSoundEnginePINVOKE.CSharp_AkMusicPlaylistCallbackInfo_uNumPlaylistItems_get(swigCPtr); } - } - - public uint uPlaylistSelection { get { return AkSoundEnginePINVOKE.CSharp_AkMusicPlaylistCallbackInfo_uPlaylistSelection_get(swigCPtr); } - } - - public uint uPlaylistItemDone { get { return AkSoundEnginePINVOKE.CSharp_AkMusicPlaylistCallbackInfo_uPlaylistItemDone_get(swigCPtr); } - } - - public AkMusicPlaylistCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkMusicPlaylistCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicPlaylistCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMusicPlaylistCallbackInfo.cs.meta deleted file mode 100644 index 4cd871dc9..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicPlaylistCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 12c2d948831277e4d961568bb4dbfe7d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSettings.cs deleted file mode 100644 index 6197607f4..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSettings.cs +++ /dev/null @@ -1,52 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMusicSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkMusicSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMusicSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkMusicSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMusicSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public float fStreamingLookAheadRatio { set { AkSoundEnginePINVOKE.CSharp_AkMusicSettings_fStreamingLookAheadRatio_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkMusicSettings_fStreamingLookAheadRatio_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSettings.cs.meta deleted file mode 100644 index cb1a4d070..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 37340759ac2bf78499568a8549ef8165 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSyncCallbackInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSyncCallbackInfo.cs deleted file mode 100644 index f01cad359..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSyncCallbackInfo.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkMusicSyncCallbackInfo : AkCallbackInfo { - private global::System.IntPtr swigCPtr; - - internal AkMusicSyncCallbackInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkMusicSyncCallbackInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal override void setCPtr(global::System.IntPtr cPtr) { - base.setCPtr(AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkMusicSyncCallbackInfo() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkMusicSyncCallbackInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public uint playingID { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_playingID_get(swigCPtr); } - } - - public int segmentInfo_iCurrentPosition { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_iCurrentPosition_get(swigCPtr); } - } - - public int segmentInfo_iPreEntryDuration { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPreEntryDuration_get(swigCPtr); } - } - - public int segmentInfo_iActiveDuration { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_iActiveDuration_get(swigCPtr); } - } - - public int segmentInfo_iPostExitDuration { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPostExitDuration_get(swigCPtr); } - } - - public int segmentInfo_iRemainingLookAheadTime { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_iRemainingLookAheadTime_get(swigCPtr); } - } - - public float segmentInfo_fBeatDuration { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBeatDuration_get(swigCPtr); } - } - - public float segmentInfo_fBarDuration { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBarDuration_get(swigCPtr); } - } - - public float segmentInfo_fGridDuration { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridDuration_get(swigCPtr); } - } - - public float segmentInfo_fGridOffset { get { return AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridOffset_get(swigCPtr); } - } - - public AkCallbackType musicSyncType { get { return (AkCallbackType)AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_musicSyncType_get(swigCPtr); } - } - - public string userCueName { get { return AkSoundEngine.StringFromIntPtrString(AkSoundEnginePINVOKE.CSharp_AkMusicSyncCallbackInfo_userCueName_get(swigCPtr)); } - } - - public AkMusicSyncCallbackInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkMusicSyncCallbackInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSyncCallbackInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSyncCallbackInfo.cs.meta deleted file mode 100644 index f68ee0c66..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkMusicSyncCallbackInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fa893561cc2931e4c810816301e867c5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkObjectInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkObjectInfo.cs deleted file mode 100644 index 641c8afd9..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkObjectInfo.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkObjectInfo : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkObjectInfo(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkObjectInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkObjectInfo() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkObjectInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint objID { set { AkSoundEnginePINVOKE.CSharp_AkObjectInfo_objID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkObjectInfo_objID_get(swigCPtr); } - } - - public uint parentID { set { AkSoundEnginePINVOKE.CSharp_AkObjectInfo_parentID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkObjectInfo_parentID_get(swigCPtr); } - } - - public int iDepth { set { AkSoundEnginePINVOKE.CSharp_AkObjectInfo_iDepth_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkObjectInfo_iDepth_get(swigCPtr); } - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkObjectInfo_Clear(swigCPtr); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkObjectInfo_GetSizeOf(); } - - public void Clone(AkObjectInfo other) { AkSoundEnginePINVOKE.CSharp_AkObjectInfo_Clone(swigCPtr, AkObjectInfo.getCPtr(other)); } - - public AkObjectInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkObjectInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkObjectInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkObjectInfo.cs.meta deleted file mode 100644 index ec258dc2b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkObjectInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 17d9a53ec8fe7494b8c9b4e65a52c08f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkObstructionOcclusionValues.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkObstructionOcclusionValues.cs deleted file mode 100644 index b7cebb7f8..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkObstructionOcclusionValues.cs +++ /dev/null @@ -1,64 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkObstructionOcclusionValues : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkObstructionOcclusionValues(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkObstructionOcclusionValues obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkObstructionOcclusionValues() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkObstructionOcclusionValues(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public float occlusion { set { AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_occlusion_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_occlusion_get(swigCPtr); } - } - - public float obstruction { set { AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_obstruction_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_obstruction_get(swigCPtr); } - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_Clear(swigCPtr); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_GetSizeOf(); } - - public void Clone(AkObstructionOcclusionValues other) { AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_Clone(swigCPtr, AkObstructionOcclusionValues.getCPtr(other)); } - - public AkObstructionOcclusionValues() : this(AkSoundEnginePINVOKE.CSharp_new_AkObstructionOcclusionValues(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkObstructionOcclusionValues.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkObstructionOcclusionValues.cs.meta deleted file mode 100644 index a5532d92e..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkObstructionOcclusionValues.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7a585eb368ee38d4aab97e7a455a2d59 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkOutputSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkOutputSettings.cs deleted file mode 100644 index 92f6b9222..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkOutputSettings.cs +++ /dev/null @@ -1,81 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkOutputSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkOutputSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkOutputSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkOutputSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkOutputSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkOutputSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_0(), true) { - } - - public AkOutputSettings(string in_szDeviceShareSet, uint in_idDevice, AkChannelConfig in_channelConfig, AkPanningRule in_ePanning) : this(AkSoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_1(in_szDeviceShareSet, in_idDevice, AkChannelConfig.getCPtr(in_channelConfig), (int)in_ePanning), true) { - } - - public AkOutputSettings(string in_szDeviceShareSet, uint in_idDevice, AkChannelConfig in_channelConfig) : this(AkSoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_2(in_szDeviceShareSet, in_idDevice, AkChannelConfig.getCPtr(in_channelConfig)), true) { - } - - public AkOutputSettings(string in_szDeviceShareSet, uint in_idDevice) : this(AkSoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_3(in_szDeviceShareSet, in_idDevice), true) { - } - - public AkOutputSettings(string in_szDeviceShareSet) : this(AkSoundEnginePINVOKE.CSharp_new_AkOutputSettings__SWIG_4(in_szDeviceShareSet), true) { - } - - public uint audioDeviceShareset { set { AkSoundEnginePINVOKE.CSharp_AkOutputSettings_audioDeviceShareset_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkOutputSettings_audioDeviceShareset_get(swigCPtr); } - } - - public uint idDevice { set { AkSoundEnginePINVOKE.CSharp_AkOutputSettings_idDevice_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkOutputSettings_idDevice_get(swigCPtr); } - } - - public AkPanningRule ePanningRule { set { AkSoundEnginePINVOKE.CSharp_AkOutputSettings_ePanningRule_set(swigCPtr, (int)value); } get { return (AkPanningRule)AkSoundEnginePINVOKE.CSharp_AkOutputSettings_ePanningRule_get(swigCPtr); } - } - - public AkChannelConfig channelConfig { set { AkSoundEnginePINVOKE.CSharp_AkOutputSettings_channelConfig_set(swigCPtr, AkChannelConfig.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkOutputSettings_channelConfig_get(swigCPtr); - AkChannelConfig ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkChannelConfig(cPtr, false); - return ret; - } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkOutputSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkOutputSettings.cs.meta deleted file mode 100644 index b414947fe..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkOutputSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e68673ca3778a5b48bb98b16e7412763 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPanningRule.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPanningRule.cs deleted file mode 100644 index 54a34d17a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPanningRule.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkPanningRule { - AkPanningRule_Speakers = 0, - AkPanningRule_Headphones = 1 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPanningRule.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPanningRule.cs.meta deleted file mode 100644 index b165b6824..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPanningRule.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 407b0f1714250b045bf59673d20b59b6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylist.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylist.cs deleted file mode 100644 index 326a08655..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylist.cs +++ /dev/null @@ -1,61 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPlaylist : AkPlaylistArray { - private global::System.IntPtr swigCPtr; - - internal AkPlaylist(global::System.IntPtr cPtr, bool cMemoryOwn) : base(AkSoundEnginePINVOKE.CSharp_AkPlaylist_SWIGUpcast(cPtr), cMemoryOwn) { - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPlaylist obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal override void setCPtr(global::System.IntPtr cPtr) { - base.setCPtr(AkSoundEnginePINVOKE.CSharp_AkPlaylist_SWIGUpcast(cPtr)); - swigCPtr = cPtr; - } - - ~AkPlaylist() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPlaylist(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public AKRESULT Enqueue(uint in_audioNodeID, int in_msDelay, global::System.IntPtr in_pCustomInfo, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylist_Enqueue__SWIG_0(swigCPtr, in_audioNodeID, in_msDelay, in_pCustomInfo, in_cExternals, in_pExternalSources.GetBuffer()); } - - public AKRESULT Enqueue(uint in_audioNodeID, int in_msDelay, global::System.IntPtr in_pCustomInfo, uint in_cExternals) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylist_Enqueue__SWIG_1(swigCPtr, in_audioNodeID, in_msDelay, in_pCustomInfo, in_cExternals); } - - public AKRESULT Enqueue(uint in_audioNodeID, int in_msDelay, global::System.IntPtr in_pCustomInfo) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylist_Enqueue__SWIG_2(swigCPtr, in_audioNodeID, in_msDelay, in_pCustomInfo); } - - public AKRESULT Enqueue(uint in_audioNodeID, int in_msDelay) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylist_Enqueue__SWIG_3(swigCPtr, in_audioNodeID, in_msDelay); } - - public AKRESULT Enqueue(uint in_audioNodeID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylist_Enqueue__SWIG_4(swigCPtr, in_audioNodeID); } - - public AkPlaylist() : this(AkSoundEnginePINVOKE.CSharp_new_AkPlaylist(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylist.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylist.cs.meta deleted file mode 100644 index ea72bdda5..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylist.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 547426d71bd407e4ba7a2c8364d5e399 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistArray.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistArray.cs deleted file mode 100644 index b91efb09f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistArray.cs +++ /dev/null @@ -1,151 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPlaylistArray : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkPlaylistArray(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPlaylistArray obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkPlaylistArray() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPlaylistArray(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkPlaylistArray() : this(AkSoundEnginePINVOKE.CSharp_new_AkPlaylistArray(), true) { - } - - public AkIterator Begin() { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Begin(swigCPtr), true); - return ret; - } - - public AkIterator End() { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_End(swigCPtr), true); - return ret; - } - - public AkIterator FindEx(AkPlaylistItem in_Item) { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_FindEx(swigCPtr, AkPlaylistItem.getCPtr(in_Item)), true); - return ret; - } - - public AkIterator Erase(AkIterator in_rIter) { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Erase__SWIG_0(swigCPtr, AkIterator.getCPtr(in_rIter)), true); - return ret; - } - - public void Erase(uint in_uIndex) { AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Erase__SWIG_1(swigCPtr, in_uIndex); } - - public AkIterator EraseSwap(AkIterator in_rIter) { - AkIterator ret = new AkIterator(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_EraseSwap__SWIG_0(swigCPtr, AkIterator.getCPtr(in_rIter)), true); - return ret; - } - - public void EraseSwap(uint in_uIndex) { AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_EraseSwap__SWIG_1(swigCPtr, in_uIndex); } - - public bool IsGrowingAllowed() { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_IsGrowingAllowed(swigCPtr); } - - public AKRESULT Reserve(uint in_ulReserve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Reserve(swigCPtr, in_ulReserve); } - - public uint Reserved() { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Reserved(swigCPtr); } - - public void Term() { AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Term(swigCPtr); } - - public uint Length() { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Length(swigCPtr); } - - public AkPlaylistItem Data() { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Data(swigCPtr); - AkPlaylistItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylistItem(cPtr, false); - return ret; - } - - public bool IsEmpty() { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_IsEmpty(swigCPtr); } - - public AkPlaylistItem Exists(AkPlaylistItem in_Item) { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Exists(swigCPtr, AkPlaylistItem.getCPtr(in_Item)); - AkPlaylistItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylistItem(cPtr, false); - return ret; - } - - public AkPlaylistItem AddLast() { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_AddLast__SWIG_0(swigCPtr); - AkPlaylistItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylistItem(cPtr, false); - return ret; - } - - public AkPlaylistItem AddLast(AkPlaylistItem in_rItem) { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_AddLast__SWIG_1(swigCPtr, AkPlaylistItem.getCPtr(in_rItem)); - AkPlaylistItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylistItem(cPtr, false); - return ret; - } - - public AkPlaylistItem Last() { - AkPlaylistItem ret = new AkPlaylistItem(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Last(swigCPtr), false); - return ret; - } - - public void RemoveLast() { AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_RemoveLast(swigCPtr); } - - public AKRESULT Remove(AkPlaylistItem in_rItem) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Remove(swigCPtr, AkPlaylistItem.getCPtr(in_rItem)); } - - public AKRESULT RemoveSwap(AkPlaylistItem in_rItem) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_RemoveSwap(swigCPtr, AkPlaylistItem.getCPtr(in_rItem)); } - - public void RemoveAll() { AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_RemoveAll(swigCPtr); } - - public AkPlaylistItem ItemAtIndex(uint uiIndex) { - AkPlaylistItem ret = new AkPlaylistItem(AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_ItemAtIndex(swigCPtr, uiIndex), false); - return ret; - } - - public AkPlaylistItem Insert(uint in_uIndex) { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Insert(swigCPtr, in_uIndex); - AkPlaylistItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylistItem(cPtr, false); - return ret; - } - - public bool GrowArray() { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_GrowArray__SWIG_0(swigCPtr); } - - public bool GrowArray(uint in_uGrowBy) { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_GrowArray__SWIG_1(swigCPtr, in_uGrowBy); } - - public bool Resize(uint in_uiSize) { return AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Resize(swigCPtr, in_uiSize); } - - public void Transfer(AkPlaylistArray in_rSource) { AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Transfer(swigCPtr, AkPlaylistArray.getCPtr(in_rSource)); } - - public AKRESULT Copy(AkPlaylistArray in_rSource) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylistArray_Copy(swigCPtr, AkPlaylistArray.getCPtr(in_rSource)); } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistArray.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistArray.cs.meta deleted file mode 100644 index 60a5d70c2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 48d815a4f55e18d42a6bb4c80da762ac -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistItem.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistItem.cs deleted file mode 100644 index e1fb61298..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistItem.cs +++ /dev/null @@ -1,73 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPlaylistItem : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkPlaylistItem(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPlaylistItem obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkPlaylistItem() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPlaylistItem(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkPlaylistItem() : this(AkSoundEnginePINVOKE.CSharp_new_AkPlaylistItem__SWIG_0(), true) { - } - - public AkPlaylistItem(AkPlaylistItem in_rCopy) : this(AkSoundEnginePINVOKE.CSharp_new_AkPlaylistItem__SWIG_1(AkPlaylistItem.getCPtr(in_rCopy)), true) { - } - - public AkPlaylistItem Assign(AkPlaylistItem in_rCopy) { - AkPlaylistItem ret = new AkPlaylistItem(AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_Assign(swigCPtr, AkPlaylistItem.getCPtr(in_rCopy)), false); - return ret; - } - - public bool IsEqualTo(AkPlaylistItem in_rCopy) { return AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_IsEqualTo(swigCPtr, AkPlaylistItem.getCPtr(in_rCopy)); } - - public AKRESULT SetExternalSources(uint in_nExternalSrc, AkExternalSourceInfoArray in_pExternalSrc) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_SetExternalSources(swigCPtr, in_nExternalSrc, in_pExternalSrc.GetBuffer()); } - - public uint audioNodeID { set { AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_audioNodeID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_audioNodeID_get(swigCPtr); } - } - - public int msDelay { set { AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_msDelay_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_msDelay_get(swigCPtr); } - } - - public global::System.IntPtr pCustomInfo { set { AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_pCustomInfo_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlaylistItem_pCustomInfo_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistItem.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistItem.cs.meta deleted file mode 100644 index e4fd16ef0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPlaylistItem.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4d087a1f0ab0d134fb06d3ec3320bd4a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPluginType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPluginType.cs deleted file mode 100644 index 1eb5fe1a8..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPluginType.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkPluginType { - AkPluginTypeNone = 0, - AkPluginTypeCodec = 1, - AkPluginTypeSource = 2, - AkPluginTypeEffect = 3, - AkPluginTypeMixer = 6, - AkPluginTypeSink = 7, - AkPluginTypeGlobalExtension = 8, - AkPluginTypeMetadata = 9, - AkPluginTypeMask = 0xf -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPluginType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPluginType.cs.meta deleted file mode 100644 index 40a9a6444..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPluginType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1373e48c1082fb24783e815d88905f6e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningData.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningData.cs deleted file mode 100644 index d89e60db8..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningData.cs +++ /dev/null @@ -1,68 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPositioningData : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkPositioningData(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPositioningData obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkPositioningData() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPositioningData(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public Ak3dData threeD { set { AkSoundEnginePINVOKE.CSharp_AkPositioningData_threeD_set(swigCPtr, Ak3dData.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPositioningData_threeD_get(swigCPtr); - Ak3dData ret = (cPtr == global::System.IntPtr.Zero) ? null : new Ak3dData(cPtr, false); - return ret; - } - } - - public AkBehavioralPositioningData behavioral { set { AkSoundEnginePINVOKE.CSharp_AkPositioningData_behavioral_set(swigCPtr, AkBehavioralPositioningData.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPositioningData_behavioral_get(swigCPtr); - AkBehavioralPositioningData ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkBehavioralPositioningData(cPtr, false); - return ret; - } - } - - public AkPositioningData() : this(AkSoundEnginePINVOKE.CSharp_new_AkPositioningData(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningData.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningData.cs.meta deleted file mode 100644 index 571ce7b21..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 588b82cf90623c24ea694f297d025111 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningInfo.cs deleted file mode 100644 index dcdec84c5..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningInfo.cs +++ /dev/null @@ -1,106 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPositioningInfo : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkPositioningInfo(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPositioningInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkPositioningInfo() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPositioningInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public float fCenterPct { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fCenterPct_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fCenterPct_get(swigCPtr); } - } - - public AkSpeakerPanningType pannerType { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_pannerType_set(swigCPtr, (int)value); } get { return (AkSpeakerPanningType)AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_pannerType_get(swigCPtr); } - } - - public Ak3DPositionType e3dPositioningType { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_e3dPositioningType_set(swigCPtr, (int)value); } get { return (Ak3DPositionType)AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_e3dPositioningType_get(swigCPtr); } - } - - public bool bHoldEmitterPosAndOrient { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_get(swigCPtr); } - } - - public Ak3DSpatializationMode e3DSpatializationMode { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_e3DSpatializationMode_set(swigCPtr, (int)value); } get { return (Ak3DSpatializationMode)AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_e3DSpatializationMode_get(swigCPtr); } - } - - public bool bEnableAttenuation { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_bEnableAttenuation_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_bEnableAttenuation_get(swigCPtr); } - } - - public bool bUseConeAttenuation { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_bUseConeAttenuation_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_bUseConeAttenuation_get(swigCPtr); } - } - - public float fInnerAngle { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fInnerAngle_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fInnerAngle_get(swigCPtr); } - } - - public float fOuterAngle { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fOuterAngle_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fOuterAngle_get(swigCPtr); } - } - - public float fConeMaxAttenuation { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fConeMaxAttenuation_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fConeMaxAttenuation_get(swigCPtr); } - } - - public float LPFCone { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_LPFCone_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_LPFCone_get(swigCPtr); } - } - - public float HPFCone { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_HPFCone_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_HPFCone_get(swigCPtr); } - } - - public float fMaxDistance { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fMaxDistance_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fMaxDistance_get(swigCPtr); } - } - - public float fVolDryAtMaxDist { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fVolDryAtMaxDist_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fVolDryAtMaxDist_get(swigCPtr); } - } - - public float fVolAuxGameDefAtMaxDist { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_get(swigCPtr); } - } - - public float fVolAuxUserDefAtMaxDist { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_get(swigCPtr); } - } - - public float LPFValueAtMaxDist { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_LPFValueAtMaxDist_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_LPFValueAtMaxDist_get(swigCPtr); } - } - - public float HPFValueAtMaxDist { set { AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_HPFValueAtMaxDist_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPositioningInfo_HPFValueAtMaxDist_get(swigCPtr); } - } - - public AkPositioningInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkPositioningInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningInfo.cs.meta deleted file mode 100644 index a25145573..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPositioningInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 270e417b5f5ebd4418b4b2885e237b13 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPreparationType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkPreparationType.cs deleted file mode 100644 index c3807e121..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPreparationType.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkPreparationType { - Preparation_Load, - Preparation_Unload, - Preparation_LoadAndDecode -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkPreparationType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkPreparationType.cs.meta deleted file mode 100644 index 6104ed6fc..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkPreparationType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c28dab8748bfbb2438bb4d323dd328cc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkQueryRTPCValue.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkQueryRTPCValue.cs deleted file mode 100644 index f1a846adf..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkQueryRTPCValue.cs +++ /dev/null @@ -1,20 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkQueryRTPCValue { - RTPCValue_Default, - RTPCValue_Global, - RTPCValue_GameObject, - RTPCValue_PlayingID, - RTPCValue_Unavailable -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkQueryRTPCValue.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkQueryRTPCValue.cs.meta deleted file mode 100644 index fd22249b0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkQueryRTPCValue.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 896c53aa234fcb645989232f49f3e2b2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkRamp.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkRamp.cs deleted file mode 100644 index 41793b087..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkRamp.cs +++ /dev/null @@ -1,61 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkRamp : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkRamp(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkRamp obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkRamp() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkRamp(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkRamp() : this(AkSoundEnginePINVOKE.CSharp_new_AkRamp__SWIG_0(), true) { - } - - public AkRamp(float in_fPrev, float in_fNext) : this(AkSoundEnginePINVOKE.CSharp_new_AkRamp__SWIG_1(in_fPrev, in_fNext), true) { - } - - public float fPrev { set { AkSoundEnginePINVOKE.CSharp_AkRamp_fPrev_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRamp_fPrev_get(swigCPtr); } - } - - public float fNext { set { AkSoundEnginePINVOKE.CSharp_AkRamp_fNext_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRamp_fNext_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkRamp.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkRamp.cs.meta deleted file mode 100644 index 2e4e4439c..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkRamp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 29d97b3e4accd224285ef7daec79f983 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkReflectionPathInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkReflectionPathInfo.cs deleted file mode 100644 index bea97f7d8..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkReflectionPathInfo.cs +++ /dev/null @@ -1,80 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkReflectionPathInfo : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkReflectionPathInfo(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkReflectionPathInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkReflectionPathInfo() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkReflectionPathInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public UnityEngine.Vector3 imageSource { set { AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_imageSource_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_imageSource_get(swigCPtr); } - } - - public uint numPathPoints { set { AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_numPathPoints_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_numPathPoints_get(swigCPtr); } - } - - public uint numReflections { set { AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_numReflections_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_numReflections_get(swigCPtr); } - } - - public float level { set { AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_level_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_level_get(swigCPtr); } - } - - public bool isOccluded { set { AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_isOccluded_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_isOccluded_get(swigCPtr); } - } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_GetSizeOf(); } - - public UnityEngine.Vector3 GetPathPoint(uint idx) { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_GetPathPoint(swigCPtr, idx); } - - public AkAcousticSurface GetAcousticSurface(uint idx) { - AkAcousticSurface ret = new AkAcousticSurface(AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_GetAcousticSurface(swigCPtr, idx), false); - return ret; - } - - public float GetDiffraction(uint idx) { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_GetDiffraction(swigCPtr, idx); } - - public void Clone(AkReflectionPathInfo other) { AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_Clone(swigCPtr, AkReflectionPathInfo.getCPtr(other)); } - - public AkReflectionPathInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkReflectionPathInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkReflectionPathInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkReflectionPathInfo.cs.meta deleted file mode 100644 index 684001ba4..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkReflectionPathInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: db76e6b00bc16c7488fd808b3c890535 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkResourceMonitorDataSummary.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkResourceMonitorDataSummary.cs deleted file mode 100644 index 08be78025..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkResourceMonitorDataSummary.cs +++ /dev/null @@ -1,70 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkResourceMonitorDataSummary : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkResourceMonitorDataSummary(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkResourceMonitorDataSummary obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkResourceMonitorDataSummary() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkResourceMonitorDataSummary(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public float totalCPU { set { AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_totalCPU_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_totalCPU_get(swigCPtr); } - } - - public float pluginCPU { set { AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_pluginCPU_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_pluginCPU_get(swigCPtr); } - } - - public uint physicalVoices { set { AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_physicalVoices_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_physicalVoices_get(swigCPtr); } - } - - public uint virtualVoices { set { AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_virtualVoices_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_virtualVoices_get(swigCPtr); } - } - - public uint totalVoices { set { AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_totalVoices_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_totalVoices_get(swigCPtr); } - } - - public uint nbActiveEvents { set { AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_nbActiveEvents_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkResourceMonitorDataSummary_nbActiveEvents_get(swigCPtr); } - } - - public AkResourceMonitorDataSummary() : this(AkSoundEnginePINVOKE.CSharp_new_AkResourceMonitorDataSummary(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkResourceMonitorDataSummary.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkResourceMonitorDataSummary.cs.meta deleted file mode 100644 index 914c69190..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkResourceMonitorDataSummary.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 974d3ff33b18e83499b4e68086b54016 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkRoomParams.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkRoomParams.cs deleted file mode 100644 index 7fa7faf53..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkRoomParams.cs +++ /dev/null @@ -1,76 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkRoomParams : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkRoomParams(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkRoomParams obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkRoomParams() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkRoomParams(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkRoomParams() : this(AkSoundEnginePINVOKE.CSharp_new_AkRoomParams__SWIG_0(), true) { - } - - public AkRoomParams(AkRoomParams in_rhs) : this(AkSoundEnginePINVOKE.CSharp_new_AkRoomParams__SWIG_1(AkRoomParams.getCPtr(in_rhs)), true) { - } - - public UnityEngine.Vector3 Front { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_Front_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_Front_get(swigCPtr); } - } - - public UnityEngine.Vector3 Up { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_Up_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_Up_get(swigCPtr); } - } - - public uint ReverbAuxBus { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_ReverbAuxBus_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_ReverbAuxBus_get(swigCPtr); } - } - - public float ReverbLevel { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_ReverbLevel_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_ReverbLevel_get(swigCPtr); } - } - - public float TransmissionLoss { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_TransmissionLoss_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_TransmissionLoss_get(swigCPtr); } - } - - public float RoomGameObj_AuxSendLevelToSelf { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_get(swigCPtr); } - } - - public bool RoomGameObj_KeepRegistered { set { AkSoundEnginePINVOKE.CSharp_AkRoomParams_RoomGameObj_KeepRegistered_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkRoomParams_RoomGameObj_KeepRegistered_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkRoomParams.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkRoomParams.cs.meta deleted file mode 100644 index fbdcaac04..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkRoomParams.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0d8bf0ab3f802bb4eacb02125860a792 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSegmentInfo.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkSegmentInfo.cs deleted file mode 100644 index d696d336e..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSegmentInfo.cs +++ /dev/null @@ -1,79 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkSegmentInfo : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkSegmentInfo(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkSegmentInfo obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkSegmentInfo() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkSegmentInfo(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public int iCurrentPosition { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iCurrentPosition_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iCurrentPosition_get(swigCPtr); } - } - - public int iPreEntryDuration { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iPreEntryDuration_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iPreEntryDuration_get(swigCPtr); } - } - - public int iActiveDuration { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iActiveDuration_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iActiveDuration_get(swigCPtr); } - } - - public int iPostExitDuration { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iPostExitDuration_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iPostExitDuration_get(swigCPtr); } - } - - public int iRemainingLookAheadTime { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iRemainingLookAheadTime_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_iRemainingLookAheadTime_get(swigCPtr); } - } - - public float fBeatDuration { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fBeatDuration_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fBeatDuration_get(swigCPtr); } - } - - public float fBarDuration { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fBarDuration_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fBarDuration_get(swigCPtr); } - } - - public float fGridDuration { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridDuration_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridDuration_get(swigCPtr); } - } - - public float fGridOffset { set { AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridOffset_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSegmentInfo_fGridOffset_get(swigCPtr); } - } - - public AkSegmentInfo() : this(AkSoundEnginePINVOKE.CSharp_new_AkSegmentInfo(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSegmentInfo.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkSegmentInfo.cs.meta deleted file mode 100644 index 7da7eb8bb..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSegmentInfo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fce1e584b647f8c48b253575c4a1ad8d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSerializedCallbackHeader.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkSerializedCallbackHeader.cs deleted file mode 100644 index 29e234bfe..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSerializedCallbackHeader.cs +++ /dev/null @@ -1,68 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkSerializedCallbackHeader : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkSerializedCallbackHeader(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkSerializedCallbackHeader obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkSerializedCallbackHeader() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkSerializedCallbackHeader(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public global::System.IntPtr pPackage { get { return AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_pPackage_get(swigCPtr); } - } - - public uint eType { get { return AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_eType_get(swigCPtr); } - } - - public global::System.IntPtr GetData() { return AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_GetData(swigCPtr); } - - public AkSerializedCallbackHeader pNext { - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_pNext_get(swigCPtr); - AkSerializedCallbackHeader ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkSerializedCallbackHeader(cPtr, false); - return ret; - } - } - - public AkSerializedCallbackHeader() : this(AkSoundEnginePINVOKE.CSharp_new_AkSerializedCallbackHeader(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSerializedCallbackHeader.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkSerializedCallbackHeader.cs.meta deleted file mode 100644 index cc88d5300..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSerializedCallbackHeader.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 957785a605e458c4a9ce20c6c5b94c4e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceChannelOrdering.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkSourceChannelOrdering.cs deleted file mode 100644 index 8b04aac6c..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceChannelOrdering.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkSourceChannelOrdering { - SourceChannelOrdering_Standard = 0, - SourceChannelOrdering_Film, - SourceChannelOrdering_FuMa -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceChannelOrdering.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkSourceChannelOrdering.cs.meta deleted file mode 100644 index 829f646f8..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceChannelOrdering.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6dc2eaf14f8bf994a87cbf939e648432 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkSourceSettings.cs deleted file mode 100644 index 33e59d904..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceSettings.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkSourceSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkSourceSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkSourceSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkSourceSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkSourceSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint sourceID { set { AkSoundEnginePINVOKE.CSharp_AkSourceSettings_sourceID_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_sourceID_get(swigCPtr); } - } - - public global::System.IntPtr pMediaMemory { set { AkSoundEnginePINVOKE.CSharp_AkSourceSettings_pMediaMemory_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_pMediaMemory_get(swigCPtr); } - } - - public uint uMediaSize { set { AkSoundEnginePINVOKE.CSharp_AkSourceSettings_uMediaSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_uMediaSize_get(swigCPtr); } - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkSourceSettings_Clear(swigCPtr); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_GetSizeOf(); } - - public void Clone(AkSourceSettings other) { AkSoundEnginePINVOKE.CSharp_AkSourceSettings_Clone(swigCPtr, AkSourceSettings.getCPtr(other)); } - - public AkSourceSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkSourceSettings(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkSourceSettings.cs.meta deleted file mode 100644 index 9fea87257..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSourceSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5faa9982f01185d43b68ba191cdccdc1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSpatialAudioInitSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkSpatialAudioInitSettings.cs deleted file mode 100644 index 71b7b596d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSpatialAudioInitSettings.cs +++ /dev/null @@ -1,85 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkSpatialAudioInitSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkSpatialAudioInitSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkSpatialAudioInitSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkSpatialAudioInitSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkSpatialAudioInitSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkSpatialAudioInitSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkSpatialAudioInitSettings(), true) { - } - - public uint uMaxSoundPropagationDepth { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_get(swigCPtr); } - } - - public float fMovementThreshold { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_fMovementThreshold_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_fMovementThreshold_get(swigCPtr); } - } - - public uint uNumberOfPrimaryRays { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_get(swigCPtr); } - } - - public uint uMaxReflectionOrder { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_get(swigCPtr); } - } - - public float fMaxPathLength { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_fMaxPathLength_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_fMaxPathLength_get(swigCPtr); } - } - - public float fCPULimitPercentage { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_get(swigCPtr); } - } - - public bool bEnableDiffractionOnReflection { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_get(swigCPtr); } - } - - public bool bEnableGeometricDiffractionAndTransmission { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_get(swigCPtr); } - } - - public bool bCalcEmitterVirtualPosition { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_get(swigCPtr); } - } - - public bool bUseObstruction { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bUseObstruction_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bUseObstruction_get(swigCPtr); } - } - - public bool bUseOcclusion { set { AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bUseOcclusion_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkSpatialAudioInitSettings_bUseOcclusion_get(swigCPtr); } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSpatialAudioInitSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkSpatialAudioInitSettings.cs.meta deleted file mode 100644 index 3757ad96a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSpatialAudioInitSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c16c6d0f40f7faf4d96d803058ad555b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSpeakerPanningType.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkSpeakerPanningType.cs deleted file mode 100644 index d5bce0fd3..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSpeakerPanningType.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public enum AkSpeakerPanningType { - AK_DirectSpeakerAssignment = 0, - AK_BalanceFadeHeight = 1, - AK_SteeringPanner = 2 -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkSpeakerPanningType.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkSpeakerPanningType.cs.meta deleted file mode 100644 index 57d3adb74..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkSpeakerPanningType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: dcd749e38da85e74b8df31f863208a50 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkStreamMgrSettings.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkStreamMgrSettings.cs deleted file mode 100644 index da73e9f43..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkStreamMgrSettings.cs +++ /dev/null @@ -1,49 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkStreamMgrSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkStreamMgrSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkStreamMgrSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkStreamMgrSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkStreamMgrSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkStreamMgrSettings.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkStreamMgrSettings.cs.meta deleted file mode 100644 index 6265050a2..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkStreamMgrSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 34746f65112bca24eb04ada1a0d2d6e1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkTaskContext.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkTaskContext.cs deleted file mode 100644 index 6cd49bcb1..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkTaskContext.cs +++ /dev/null @@ -1,55 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkTaskContext : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkTaskContext(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkTaskContext obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkTaskContext() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkTaskContext(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public uint uIdxThread { set { AkSoundEnginePINVOKE.CSharp_AkTaskContext_uIdxThread_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkTaskContext_uIdxThread_get(swigCPtr); } - } - - public AkTaskContext() : this(AkSoundEnginePINVOKE.CSharp_new_AkTaskContext(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkTaskContext.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkTaskContext.cs.meta deleted file mode 100644 index c867c3dac..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkTaskContext.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a8123ddab8c794447b393da784a01f95 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkTransform.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkTransform.cs deleted file mode 100644 index 224418fa6..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkTransform.cs +++ /dev/null @@ -1,70 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkTransform : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkTransform(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkTransform obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkTransform() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkTransform(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public UnityEngine.Vector3 Position() { return AkSoundEnginePINVOKE.CSharp_AkTransform_Position(swigCPtr); } - - public UnityEngine.Vector3 OrientationFront() { return AkSoundEnginePINVOKE.CSharp_AkTransform_OrientationFront(swigCPtr); } - - public UnityEngine.Vector3 OrientationTop() { return AkSoundEnginePINVOKE.CSharp_AkTransform_OrientationTop(swigCPtr); } - - public void Set(UnityEngine.Vector3 in_position, UnityEngine.Vector3 in_orientationFront, UnityEngine.Vector3 in_orientationTop) { AkSoundEnginePINVOKE.CSharp_AkTransform_Set__SWIG_0(swigCPtr, in_position, in_orientationFront, in_orientationTop); } - - public void Set(float in_positionX, float in_positionY, float in_positionZ, float in_orientFrontX, float in_orientFrontY, float in_orientFrontZ, float in_orientTopX, float in_orientTopY, float in_orientTopZ) { AkSoundEnginePINVOKE.CSharp_AkTransform_Set__SWIG_1(swigCPtr, in_positionX, in_positionY, in_positionZ, in_orientFrontX, in_orientFrontY, in_orientFrontZ, in_orientTopX, in_orientTopY, in_orientTopZ); } - - public void SetPosition(UnityEngine.Vector3 in_position) { AkSoundEnginePINVOKE.CSharp_AkTransform_SetPosition__SWIG_0(swigCPtr, in_position); } - - public void SetPosition(float in_x, float in_y, float in_z) { AkSoundEnginePINVOKE.CSharp_AkTransform_SetPosition__SWIG_1(swigCPtr, in_x, in_y, in_z); } - - public void SetOrientation(UnityEngine.Vector3 in_orientationFront, UnityEngine.Vector3 in_orientationTop) { AkSoundEnginePINVOKE.CSharp_AkTransform_SetOrientation__SWIG_0(swigCPtr, in_orientationFront, in_orientationTop); } - - public void SetOrientation(float in_orientFrontX, float in_orientFrontY, float in_orientFrontZ, float in_orientTopX, float in_orientTopY, float in_orientTopZ) { AkSoundEnginePINVOKE.CSharp_AkTransform_SetOrientation__SWIG_1(swigCPtr, in_orientFrontX, in_orientFrontY, in_orientFrontZ, in_orientTopX, in_orientTopY, in_orientTopZ); } - - public AkTransform() : this(AkSoundEnginePINVOKE.CSharp_new_AkTransform(), true) { - } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkTransform.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkTransform.cs.meta deleted file mode 100644 index 138be5a8d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkTransform.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8076e58e8e4f0fe4cbe348477fb919c8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs b/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs deleted file mode 100644 index 58479178a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs +++ /dev/null @@ -1,73 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkTriangle : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkTriangle(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkTriangle obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkTriangle() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkTriangle(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkTriangle() : this(AkSoundEnginePINVOKE.CSharp_new_AkTriangle__SWIG_0(), true) { - } - - public AkTriangle(ushort in_pt0, ushort in_pt1, ushort in_pt2, ushort in_surfaceInfo) : this(AkSoundEnginePINVOKE.CSharp_new_AkTriangle__SWIG_1(in_pt0, in_pt1, in_pt2, in_surfaceInfo), true) { - } - - public ushort point0 { set { AkSoundEnginePINVOKE.CSharp_AkTriangle_point0_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkTriangle_point0_get(swigCPtr); } - } - - public ushort point1 { set { AkSoundEnginePINVOKE.CSharp_AkTriangle_point1_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkTriangle_point1_get(swigCPtr); } - } - - public ushort point2 { set { AkSoundEnginePINVOKE.CSharp_AkTriangle_point2_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkTriangle_point2_get(swigCPtr); } - } - - public ushort surface { set { AkSoundEnginePINVOKE.CSharp_AkTriangle_surface_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkTriangle_surface_get(swigCPtr); } - } - - public void Clear() { AkSoundEnginePINVOKE.CSharp_AkTriangle_Clear(swigCPtr); } - - public static int GetSizeOf() { return AkSoundEnginePINVOKE.CSharp_AkTriangle_GetSizeOf(); } - - public void Clone(AkTriangle other) { AkSoundEnginePINVOKE.CSharp_AkTriangle_Clone(swigCPtr, AkTriangle.getCPtr(other)); } - -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs.meta b/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs.meta deleted file mode 100644 index cfb001e6b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b6fca4582e2c2a2448867e597ce1484e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac.meta b/Assets/Wwise/API/Runtime/Generated/Mac.meta deleted file mode 100644 index c02944d0b..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 522ce37268f2b5a44b6d6e34c78bfd26 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkCommunicationSettings_Mac.cs b/Assets/Wwise/API/Runtime/Generated/Mac/AkCommunicationSettings_Mac.cs deleted file mode 100644 index fe756d86c..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkCommunicationSettings_Mac.cs +++ /dev/null @@ -1,78 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkCommunicationSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkCommunicationSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkCommunicationSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkCommunicationSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkCommunicationSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkCommunicationSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkCommunicationSettings(), true) { - } - - public uint uPoolSize { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uPoolSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uPoolSize_get(swigCPtr); } - } - - public ushort uDiscoveryBroadcastPort { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_get(swigCPtr); } - } - - public ushort uCommandPort { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uCommandPort_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uCommandPort_get(swigCPtr); } - } - - public ushort uNotificationPort { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uNotificationPort_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uNotificationPort_get(swigCPtr); } - } - - public AkCommunicationSettings.AkCommSystem commSystem { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_commSystem_set(swigCPtr, (int)value); } get { return (AkCommunicationSettings.AkCommSystem)AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_commSystem_get(swigCPtr); } - } - - public bool bInitSystemLib { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_bInitSystemLib_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_bInitSystemLib_get(swigCPtr); } - } - - public string szAppNetworkName { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_szAppNetworkName_set(swigCPtr, value); } get { return AkSoundEngine.StringFromIntPtrString(AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_szAppNetworkName_get(swigCPtr)); } - } - - public enum AkCommSystem { - AkCommSystem_Socket, - AkCommSystem_HTCS - } - -} -#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkCommunicationSettings_Mac.cs.meta b/Assets/Wwise/API/Runtime/Generated/Mac/AkCommunicationSettings_Mac.cs.meta deleted file mode 100644 index eebf4fa7f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkCommunicationSettings_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 35bb1edd1d866cf498e2e6b7784ad0f2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkPlatformInitSettings_Mac.cs b/Assets/Wwise/API/Runtime/Generated/Mac/AkPlatformInitSettings_Mac.cs deleted file mode 100644 index 1a5b78477..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkPlatformInitSettings_Mac.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPlatformInitSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkPlatformInitSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPlatformInitSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkPlatformInitSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPlatformInitSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkThreadProperties threadLEngine { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadLEngine_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadLEngine_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public AkThreadProperties threadOutputMgr { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadOutputMgr_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadOutputMgr_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public AkThreadProperties threadBankManager { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadBankManager_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadBankManager_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public AkThreadProperties threadMonitor { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadMonitor_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadMonitor_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public uint uSampleRate { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uSampleRate_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uSampleRate_get(swigCPtr); } - } - - public ushort uNumRefillsInVoice { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get(swigCPtr); } - } - -} -#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkPlatformInitSettings_Mac.cs.meta b/Assets/Wwise/API/Runtime/Generated/Mac/AkPlatformInitSettings_Mac.cs.meta deleted file mode 100644 index a33f7ab3e..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkPlatformInitSettings_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3d180bb78be8504498a47cb84cb0ee92 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEnginePINVOKE_Mac.cs b/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEnginePINVOKE_Mac.cs deleted file mode 100644 index c439b5e8a..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEnginePINVOKE_Mac.cs +++ /dev/null @@ -1,2345 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -class AkSoundEnginePINVOKE { - - static AkSoundEnginePINVOKE() { - } - - - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_PIPELINE_ID_get")] - public static extern uint CSharp_AK_INVALID_PIPELINE_ID_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_AUDIO_OBJECT_ID_get")] - public static extern ulong CSharp_AK_INVALID_AUDIO_OBJECT_ID_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SOUNDBANK_VERSION_get")] - public static extern uint CSharp_AK_SOUNDBANK_VERSION_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerFrame_set")] - public static extern void CSharp_AkAudioSettings_uNumSamplesPerFrame_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerFrame_get")] - public static extern uint CSharp_AkAudioSettings_uNumSamplesPerFrame_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerSecond_set")] - public static extern void CSharp_AkAudioSettings_uNumSamplesPerSecond_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerSecond_get")] - public static extern uint CSharp_AkAudioSettings_uNumSamplesPerSecond_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioSettings")] - public static extern global::System.IntPtr CSharp_new_AkAudioSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioSettings")] - public static extern void CSharp_delete_AkAudioSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_idDevice_set")] - public static extern void CSharp_AkDeviceDescription_idDevice_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_idDevice_get")] - public static extern uint CSharp_AkDeviceDescription_idDevice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceName_set")] - public static extern void CSharp_AkDeviceDescription_deviceName_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceName_get")] - public static extern global::System.IntPtr CSharp_AkDeviceDescription_deviceName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceStateMask_set")] - public static extern void CSharp_AkDeviceDescription_deviceStateMask_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceStateMask_get")] - public static extern int CSharp_AkDeviceDescription_deviceStateMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_isDefaultDevice_set")] - public static extern void CSharp_AkDeviceDescription_isDefaultDevice_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_isDefaultDevice_get")] - public static extern bool CSharp_AkDeviceDescription_isDefaultDevice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_Clear")] - public static extern void CSharp_AkDeviceDescription_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_GetSizeOf")] - public static extern int CSharp_AkDeviceDescription_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_Clone")] - public static extern void CSharp_AkDeviceDescription_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDeviceDescription")] - public static extern global::System.IntPtr CSharp_new_AkDeviceDescription(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDeviceDescription")] - public static extern void CSharp_delete_AkDeviceDescription(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_Position")] - public static extern UnityEngine.Vector3 CSharp_AkTransform_Position(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_OrientationFront")] - public static extern UnityEngine.Vector3 CSharp_AkTransform_OrientationFront(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_OrientationTop")] - public static extern UnityEngine.Vector3 CSharp_AkTransform_OrientationTop(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_Set__SWIG_0")] - public static extern void CSharp_AkTransform_Set__SWIG_0(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2, UnityEngine.Vector3 jarg3, UnityEngine.Vector3 jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_Set__SWIG_1")] - public static extern void CSharp_AkTransform_Set__SWIG_1(global::System.IntPtr jarg1, float jarg2, float jarg3, float jarg4, float jarg5, float jarg6, float jarg7, float jarg8, float jarg9, float jarg10); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetPosition__SWIG_0")] - public static extern void CSharp_AkTransform_SetPosition__SWIG_0(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetPosition__SWIG_1")] - public static extern void CSharp_AkTransform_SetPosition__SWIG_1(global::System.IntPtr jarg1, float jarg2, float jarg3, float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetOrientation__SWIG_0")] - public static extern void CSharp_AkTransform_SetOrientation__SWIG_0(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2, UnityEngine.Vector3 jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetOrientation__SWIG_1")] - public static extern void CSharp_AkTransform_SetOrientation__SWIG_1(global::System.IntPtr jarg1, float jarg2, float jarg3, float jarg4, float jarg5, float jarg6, float jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTransform")] - public static extern global::System.IntPtr CSharp_new_AkTransform(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkTransform")] - public static extern void CSharp_delete_AkTransform(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_occlusion_set")] - public static extern void CSharp_AkObstructionOcclusionValues_occlusion_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_occlusion_get")] - public static extern float CSharp_AkObstructionOcclusionValues_occlusion_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_obstruction_set")] - public static extern void CSharp_AkObstructionOcclusionValues_obstruction_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_obstruction_get")] - public static extern float CSharp_AkObstructionOcclusionValues_obstruction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_Clear")] - public static extern void CSharp_AkObstructionOcclusionValues_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_GetSizeOf")] - public static extern int CSharp_AkObstructionOcclusionValues_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_Clone")] - public static extern void CSharp_AkObstructionOcclusionValues_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkObstructionOcclusionValues")] - public static extern global::System.IntPtr CSharp_new_AkObstructionOcclusionValues(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkObstructionOcclusionValues")] - public static extern void CSharp_delete_AkObstructionOcclusionValues(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_position_set")] - public static extern void CSharp_AkChannelEmitter_position_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_position_get")] - public static extern global::System.IntPtr CSharp_AkChannelEmitter_position_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_uInputChannels_set")] - public static extern void CSharp_AkChannelEmitter_uInputChannels_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_uInputChannels_get")] - public static extern uint CSharp_AkChannelEmitter_uInputChannels_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkChannelEmitter")] - public static extern void CSharp_delete_AkChannelEmitter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_listenerID_set")] - public static extern void CSharp_AkAuxSendValue_listenerID_set(global::System.IntPtr jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_listenerID_get")] - public static extern ulong CSharp_AkAuxSendValue_listenerID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_auxBusID_set")] - public static extern void CSharp_AkAuxSendValue_auxBusID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_auxBusID_get")] - public static extern uint CSharp_AkAuxSendValue_auxBusID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_fControlValue_set")] - public static extern void CSharp_AkAuxSendValue_fControlValue_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_fControlValue_get")] - public static extern float CSharp_AkAuxSendValue_fControlValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_Set")] - public static extern void CSharp_AkAuxSendValue_Set(global::System.IntPtr jarg1, ulong jarg2, uint jarg3, float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_IsSame")] - public static extern bool CSharp_AkAuxSendValue_IsSame(global::System.IntPtr jarg1, ulong jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_GetSizeOf")] - public static extern int CSharp_AkAuxSendValue_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAuxSendValue")] - public static extern void CSharp_delete_AkAuxSendValue(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRamp__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkRamp__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRamp__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkRamp__SWIG_1(float jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fPrev_set")] - public static extern void CSharp_AkRamp_fPrev_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fPrev_get")] - public static extern float CSharp_AkRamp_fPrev_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fNext_set")] - public static extern void CSharp_AkRamp_fNext_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fNext_get")] - public static extern float CSharp_AkRamp_fNext_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkRamp")] - public static extern void CSharp_delete_AkRamp(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INT_get")] - public static extern ushort CSharp_AK_INT_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_FLOAT_get")] - public static extern ushort CSharp_AK_FLOAT_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INTERLEAVED_get")] - public static extern byte CSharp_AK_INTERLEAVED_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_NONINTERLEAVED_get")] - public static extern byte CSharp_AK_NONINTERLEAVED_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_LE_NATIVE_BITSPERSAMPLE_get")] - public static extern uint CSharp_AK_LE_NATIVE_BITSPERSAMPLE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_LE_NATIVE_SAMPLETYPE_get")] - public static extern uint CSharp_AK_LE_NATIVE_SAMPLETYPE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_LE_NATIVE_INTERLEAVE_get")] - public static extern uint CSharp_AK_LE_NATIVE_INTERLEAVE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uSampleRate_set")] - public static extern void CSharp_AkAudioFormat_uSampleRate_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uSampleRate_get")] - public static extern uint CSharp_AkAudioFormat_uSampleRate_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_channelConfig_set")] - public static extern void CSharp_AkAudioFormat_channelConfig_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_channelConfig_get")] - public static extern global::System.IntPtr CSharp_AkAudioFormat_channelConfig_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBitsPerSample_set")] - public static extern void CSharp_AkAudioFormat_uBitsPerSample_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBitsPerSample_get")] - public static extern uint CSharp_AkAudioFormat_uBitsPerSample_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBlockAlign_set")] - public static extern void CSharp_AkAudioFormat_uBlockAlign_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBlockAlign_get")] - public static extern uint CSharp_AkAudioFormat_uBlockAlign_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uTypeID_set")] - public static extern void CSharp_AkAudioFormat_uTypeID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uTypeID_get")] - public static extern uint CSharp_AkAudioFormat_uTypeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uInterleaveID_set")] - public static extern void CSharp_AkAudioFormat_uInterleaveID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uInterleaveID_get")] - public static extern uint CSharp_AkAudioFormat_uInterleaveID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetNumChannels")] - public static extern uint CSharp_AkAudioFormat_GetNumChannels(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetBitsPerSample")] - public static extern uint CSharp_AkAudioFormat_GetBitsPerSample(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetBlockAlign")] - public static extern uint CSharp_AkAudioFormat_GetBlockAlign(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetTypeID")] - public static extern uint CSharp_AkAudioFormat_GetTypeID(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetInterleaveID")] - public static extern uint CSharp_AkAudioFormat_GetInterleaveID(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_SetAll")] - public static extern void CSharp_AkAudioFormat_SetAll(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3, uint jarg4, uint jarg5, uint jarg6, uint jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioFormat")] - public static extern global::System.IntPtr CSharp_new_AkAudioFormat(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioFormat")] - public static extern void CSharp_delete_AkAudioFormat(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_Ak3dData")] - public static extern global::System.IntPtr CSharp_new_Ak3dData(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_xform_set")] - public static extern void CSharp_Ak3dData_xform_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_xform_get")] - public static extern global::System.IntPtr CSharp_Ak3dData_xform_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_spread_set")] - public static extern void CSharp_Ak3dData_spread_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_spread_get")] - public static extern float CSharp_Ak3dData_spread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_focus_set")] - public static extern void CSharp_Ak3dData_focus_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_focus_get")] - public static extern float CSharp_Ak3dData_focus_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_uEmitterChannelMask_set")] - public static extern void CSharp_Ak3dData_uEmitterChannelMask_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_uEmitterChannelMask_get")] - public static extern uint CSharp_Ak3dData_uEmitterChannelMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_Ak3dData")] - public static extern void CSharp_delete_Ak3dData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkBehavioralPositioningData")] - public static extern global::System.IntPtr CSharp_new_AkBehavioralPositioningData(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_center_set")] - public static extern void CSharp_AkBehavioralPositioningData_center_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_center_get")] - public static extern float CSharp_AkBehavioralPositioningData_center_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panLR_set")] - public static extern void CSharp_AkBehavioralPositioningData_panLR_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panLR_get")] - public static extern float CSharp_AkBehavioralPositioningData_panLR_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panBF_set")] - public static extern void CSharp_AkBehavioralPositioningData_panBF_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panBF_get")] - public static extern float CSharp_AkBehavioralPositioningData_panBF_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panDU_set")] - public static extern void CSharp_AkBehavioralPositioningData_panDU_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panDU_get")] - public static extern float CSharp_AkBehavioralPositioningData_panDU_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panSpatMix_set")] - public static extern void CSharp_AkBehavioralPositioningData_panSpatMix_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panSpatMix_get")] - public static extern float CSharp_AkBehavioralPositioningData_panSpatMix_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_spatMode_set")] - public static extern void CSharp_AkBehavioralPositioningData_spatMode_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_spatMode_get")] - public static extern int CSharp_AkBehavioralPositioningData_spatMode_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panType_set")] - public static extern void CSharp_AkBehavioralPositioningData_panType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panType_get")] - public static extern int CSharp_AkBehavioralPositioningData_panType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_enableHeightSpread_set")] - public static extern void CSharp_AkBehavioralPositioningData_enableHeightSpread_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_enableHeightSpread_get")] - public static extern bool CSharp_AkBehavioralPositioningData_enableHeightSpread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkBehavioralPositioningData")] - public static extern void CSharp_delete_AkBehavioralPositioningData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_threeD_set")] - public static extern void CSharp_AkPositioningData_threeD_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_threeD_get")] - public static extern global::System.IntPtr CSharp_AkPositioningData_threeD_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_behavioral_set")] - public static extern void CSharp_AkPositioningData_behavioral_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_behavioral_get")] - public static extern global::System.IntPtr CSharp_AkPositioningData_behavioral_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPositioningData")] - public static extern global::System.IntPtr CSharp_new_AkPositioningData(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPositioningData")] - public static extern void CSharp_delete_AkPositioningData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_channelConfig_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_channelConfig_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_channelConfig_get")] - public static extern global::System.IntPtr CSharp_Ak3DAudioSinkCapabilities_channelConfig_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_get")] - public static extern uint CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_get")] - public static extern uint CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bPassthrough_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_bPassthrough_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bPassthrough_get")] - public static extern bool CSharp_Ak3DAudioSinkCapabilities_bPassthrough_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_get")] - public static extern bool CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_Ak3DAudioSinkCapabilities")] - public static extern global::System.IntPtr CSharp_new_Ak3DAudioSinkCapabilities(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_Ak3DAudioSinkCapabilities")] - public static extern void CSharp_delete_Ak3DAudioSinkCapabilities(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_pItem_set")] - public static extern void CSharp_AkIterator_pItem_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_pItem_get")] - public static extern global::System.IntPtr CSharp_AkIterator_pItem_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_NextIter")] - public static extern global::System.IntPtr CSharp_AkIterator_NextIter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_PrevIter")] - public static extern global::System.IntPtr CSharp_AkIterator_PrevIter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_GetItem")] - public static extern global::System.IntPtr CSharp_AkIterator_GetItem(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_IsEqualTo")] - public static extern bool CSharp_AkIterator_IsEqualTo(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_IsDifferentFrom")] - public static extern bool CSharp_AkIterator_IsDifferentFrom(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkIterator")] - public static extern global::System.IntPtr CSharp_new_AkIterator(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkIterator")] - public static extern void CSharp_delete_AkIterator(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylistItem__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkPlaylistItem__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylistItem__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkPlaylistItem__SWIG_1(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlaylistItem")] - public static extern void CSharp_delete_AkPlaylistItem(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_Assign")] - public static extern global::System.IntPtr CSharp_AkPlaylistItem_Assign(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_IsEqualTo")] - public static extern bool CSharp_AkPlaylistItem_IsEqualTo(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_SetExternalSources")] - public static extern int CSharp_AkPlaylistItem_SetExternalSources(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_audioNodeID_set")] - public static extern void CSharp_AkPlaylistItem_audioNodeID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_audioNodeID_get")] - public static extern uint CSharp_AkPlaylistItem_audioNodeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_msDelay_set")] - public static extern void CSharp_AkPlaylistItem_msDelay_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_msDelay_get")] - public static extern int CSharp_AkPlaylistItem_msDelay_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_pCustomInfo_set")] - public static extern void CSharp_AkPlaylistItem_pCustomInfo_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_pCustomInfo_get")] - public static extern global::System.IntPtr CSharp_AkPlaylistItem_pCustomInfo_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylistArray")] - public static extern global::System.IntPtr CSharp_new_AkPlaylistArray(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlaylistArray")] - public static extern void CSharp_delete_AkPlaylistArray(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Begin")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Begin(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_End")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_End(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_FindEx")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_FindEx(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Erase__SWIG_0")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Erase__SWIG_0(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Erase__SWIG_1")] - public static extern void CSharp_AkPlaylistArray_Erase__SWIG_1(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_EraseSwap__SWIG_0")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_EraseSwap__SWIG_0(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_EraseSwap__SWIG_1")] - public static extern void CSharp_AkPlaylistArray_EraseSwap__SWIG_1(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_IsGrowingAllowed")] - public static extern bool CSharp_AkPlaylistArray_IsGrowingAllowed(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Reserve")] - public static extern int CSharp_AkPlaylistArray_Reserve(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Reserved")] - public static extern uint CSharp_AkPlaylistArray_Reserved(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Term")] - public static extern void CSharp_AkPlaylistArray_Term(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Length")] - public static extern uint CSharp_AkPlaylistArray_Length(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Data")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Data(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_IsEmpty")] - public static extern bool CSharp_AkPlaylistArray_IsEmpty(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Exists")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Exists(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_AddLast__SWIG_0")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_AddLast__SWIG_0(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_AddLast__SWIG_1")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_AddLast__SWIG_1(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Last")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Last(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_RemoveLast")] - public static extern void CSharp_AkPlaylistArray_RemoveLast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Remove")] - public static extern int CSharp_AkPlaylistArray_Remove(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_RemoveSwap")] - public static extern int CSharp_AkPlaylistArray_RemoveSwap(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_RemoveAll")] - public static extern void CSharp_AkPlaylistArray_RemoveAll(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_ItemAtIndex")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_ItemAtIndex(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Insert")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Insert(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_GrowArray__SWIG_0")] - public static extern bool CSharp_AkPlaylistArray_GrowArray__SWIG_0(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_GrowArray__SWIG_1")] - public static extern bool CSharp_AkPlaylistArray_GrowArray__SWIG_1(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Resize")] - public static extern bool CSharp_AkPlaylistArray_Resize(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Transfer")] - public static extern void CSharp_AkPlaylistArray_Transfer(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Copy")] - public static extern int CSharp_AkPlaylistArray_Copy(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_0")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_0(global::System.IntPtr jarg1, uint jarg2, int jarg3, global::System.IntPtr jarg4, uint jarg5, global::System.IntPtr jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_1")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_1(global::System.IntPtr jarg1, uint jarg2, int jarg3, global::System.IntPtr jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_2")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_2(global::System.IntPtr jarg1, uint jarg2, int jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_3")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_3(global::System.IntPtr jarg1, uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_4")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_4(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylist")] - public static extern global::System.IntPtr CSharp_new_AkPlaylist(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlaylist")] - public static extern void CSharp_delete_AkPlaylist(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceOpen__SWIG_0")] - public static extern uint CSharp_DynamicSequenceOpen__SWIG_0(ulong jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceOpen__SWIG_1")] - public static extern uint CSharp_DynamicSequenceOpen__SWIG_1(ulong jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceOpen__SWIG_2")] - public static extern uint CSharp_DynamicSequenceOpen__SWIG_2(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceClose")] - public static extern int CSharp_DynamicSequenceClose(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePlay__SWIG_0")] - public static extern int CSharp_DynamicSequencePlay__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePlay__SWIG_1")] - public static extern int CSharp_DynamicSequencePlay__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePlay__SWIG_2")] - public static extern int CSharp_DynamicSequencePlay__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePause__SWIG_0")] - public static extern int CSharp_DynamicSequencePause__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePause__SWIG_1")] - public static extern int CSharp_DynamicSequencePause__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePause__SWIG_2")] - public static extern int CSharp_DynamicSequencePause__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceResume__SWIG_0")] - public static extern int CSharp_DynamicSequenceResume__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceResume__SWIG_1")] - public static extern int CSharp_DynamicSequenceResume__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceResume__SWIG_2")] - public static extern int CSharp_DynamicSequenceResume__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceStop__SWIG_0")] - public static extern int CSharp_DynamicSequenceStop__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceStop__SWIG_1")] - public static extern int CSharp_DynamicSequenceStop__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceStop__SWIG_2")] - public static extern int CSharp_DynamicSequenceStop__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceBreak")] - public static extern int CSharp_DynamicSequenceBreak(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Seek__SWIG_0")] - public static extern int CSharp_Seek__SWIG_0(uint jarg1, int jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Seek__SWIG_1")] - public static extern int CSharp_Seek__SWIG_1(uint jarg1, float jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceGetPauseTimes")] - public static extern int CSharp_DynamicSequenceGetPauseTimes(uint jarg1, out uint jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceLockPlaylist")] - public static extern global::System.IntPtr CSharp_DynamicSequenceLockPlaylist(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceUnlockPlaylist")] - public static extern int CSharp_DynamicSequenceUnlockPlaylist(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2, global::System.IntPtr jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_2")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_3")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_4")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_audioDeviceShareset_set")] - public static extern void CSharp_AkOutputSettings_audioDeviceShareset_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_audioDeviceShareset_get")] - public static extern uint CSharp_AkOutputSettings_audioDeviceShareset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_idDevice_set")] - public static extern void CSharp_AkOutputSettings_idDevice_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_idDevice_get")] - public static extern uint CSharp_AkOutputSettings_idDevice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_ePanningRule_set")] - public static extern void CSharp_AkOutputSettings_ePanningRule_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_ePanningRule_get")] - public static extern int CSharp_AkOutputSettings_ePanningRule_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_channelConfig_set")] - public static extern void CSharp_AkOutputSettings_channelConfig_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_channelConfig_get")] - public static extern global::System.IntPtr CSharp_AkOutputSettings_channelConfig_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkOutputSettings")] - public static extern void CSharp_delete_AkOutputSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTaskContext_uIdxThread_set")] - public static extern void CSharp_AkTaskContext_uIdxThread_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTaskContext_uIdxThread_get")] - public static extern uint CSharp_AkTaskContext_uIdxThread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTaskContext")] - public static extern global::System.IntPtr CSharp_new_AkTaskContext(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkTaskContext")] - public static extern void CSharp_delete_AkTaskContext(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxNumPaths_set")] - public static extern void CSharp_AkInitSettings_uMaxNumPaths_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxNumPaths_get")] - public static extern uint CSharp_AkInitSettings_uMaxNumPaths_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uCommandQueueSize_set")] - public static extern void CSharp_AkInitSettings_uCommandQueueSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uCommandQueueSize_get")] - public static extern uint CSharp_AkInitSettings_uCommandQueueSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bEnableGameSyncPreparation_set")] - public static extern void CSharp_AkInitSettings_bEnableGameSyncPreparation_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bEnableGameSyncPreparation_get")] - public static extern bool CSharp_AkInitSettings_bEnableGameSyncPreparation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uContinuousPlaybackLookAhead_set")] - public static extern void CSharp_AkInitSettings_uContinuousPlaybackLookAhead_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uContinuousPlaybackLookAhead_get")] - public static extern uint CSharp_AkInitSettings_uContinuousPlaybackLookAhead_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uNumSamplesPerFrame_set")] - public static extern void CSharp_AkInitSettings_uNumSamplesPerFrame_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uNumSamplesPerFrame_get")] - public static extern uint CSharp_AkInitSettings_uNumSamplesPerFrame_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMonitorQueuePoolSize_set")] - public static extern void CSharp_AkInitSettings_uMonitorQueuePoolSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMonitorQueuePoolSize_get")] - public static extern uint CSharp_AkInitSettings_uMonitorQueuePoolSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_settingsMainOutput_set")] - public static extern void CSharp_AkInitSettings_settingsMainOutput_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_settingsMainOutput_get")] - public static extern global::System.IntPtr CSharp_AkInitSettings_settingsMainOutput_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxHardwareTimeoutMs_set")] - public static extern void CSharp_AkInitSettings_uMaxHardwareTimeoutMs_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxHardwareTimeoutMs_get")] - public static extern uint CSharp_AkInitSettings_uMaxHardwareTimeoutMs_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseSoundBankMgrThread_set")] - public static extern void CSharp_AkInitSettings_bUseSoundBankMgrThread_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseSoundBankMgrThread_get")] - public static extern bool CSharp_AkInitSettings_bUseSoundBankMgrThread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseLEngineThread_set")] - public static extern void CSharp_AkInitSettings_bUseLEngineThread_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseLEngineThread_get")] - public static extern bool CSharp_AkInitSettings_bUseLEngineThread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_szPluginDLLPath_set")] - public static extern void CSharp_AkInitSettings_szPluginDLLPath_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_szPluginDLLPath_get")] - public static extern global::System.IntPtr CSharp_AkInitSettings_szPluginDLLPath_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_eFloorPlane_set")] - public static extern void CSharp_AkInitSettings_eFloorPlane_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_eFloorPlane_get")] - public static extern int CSharp_AkInitSettings_eFloorPlane_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fGameUnitsToMeters_set")] - public static extern void CSharp_AkInitSettings_fGameUnitsToMeters_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fGameUnitsToMeters_get")] - public static extern float CSharp_AkInitSettings_fGameUnitsToMeters_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uBankReadBufferSize_set")] - public static extern void CSharp_AkInitSettings_uBankReadBufferSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uBankReadBufferSize_get")] - public static extern uint CSharp_AkInitSettings_uBankReadBufferSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fDebugOutOfRangeLimit_set")] - public static extern void CSharp_AkInitSettings_fDebugOutOfRangeLimit_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fDebugOutOfRangeLimit_get")] - public static extern float CSharp_AkInitSettings_fDebugOutOfRangeLimit_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_set")] - public static extern void CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_get")] - public static extern bool CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkInitSettings")] - public static extern void CSharp_delete_AkInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_sourceID_set")] - public static extern void CSharp_AkSourceSettings_sourceID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_sourceID_get")] - public static extern uint CSharp_AkSourceSettings_sourceID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_pMediaMemory_set")] - public static extern void CSharp_AkSourceSettings_pMediaMemory_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_pMediaMemory_get")] - public static extern global::System.IntPtr CSharp_AkSourceSettings_pMediaMemory_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_uMediaSize_set")] - public static extern void CSharp_AkSourceSettings_uMediaSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_uMediaSize_get")] - public static extern uint CSharp_AkSourceSettings_uMediaSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_Clear")] - public static extern void CSharp_AkSourceSettings_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_GetSizeOf")] - public static extern int CSharp_AkSourceSettings_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_Clone")] - public static extern void CSharp_AkSourceSettings_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSourceSettings")] - public static extern global::System.IntPtr CSharp_new_AkSourceSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSourceSettings")] - public static extern void CSharp_delete_AkSourceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_IsInitialized")] - public static extern bool CSharp_IsInitialized(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetAudioSettings")] - public static extern int CSharp_GetAudioSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerConfiguration__SWIG_0")] - public static extern global::System.IntPtr CSharp_GetSpeakerConfiguration__SWIG_0(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerConfiguration__SWIG_1")] - public static extern global::System.IntPtr CSharp_GetSpeakerConfiguration__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetOutputDeviceConfiguration")] - public static extern int CSharp_GetOutputDeviceConfiguration(ulong jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPanningRule__SWIG_0")] - public static extern int CSharp_GetPanningRule__SWIG_0(out int jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPanningRule__SWIG_1")] - public static extern int CSharp_GetPanningRule__SWIG_1(out int jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPanningRule__SWIG_0")] - public static extern int CSharp_SetPanningRule__SWIG_0(int jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPanningRule__SWIG_1")] - public static extern int CSharp_SetPanningRule__SWIG_1(int jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerAngles__SWIG_0")] - public static extern int CSharp_GetSpeakerAngles__SWIG_0([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, ref uint jarg2, out float jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerAngles__SWIG_1")] - public static extern int CSharp_GetSpeakerAngles__SWIG_1([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, ref uint jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSpeakerAngles__SWIG_0")] - public static extern int CSharp_SetSpeakerAngles__SWIG_0([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, uint jarg2, float jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSpeakerAngles__SWIG_1")] - public static extern int CSharp_SetSpeakerAngles__SWIG_1([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, uint jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetVolumeThreshold")] - public static extern int CSharp_SetVolumeThreshold(float jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMaxNumVoicesLimit")] - public static extern int CSharp_SetMaxNumVoicesLimit(ushort jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RenderAudio__SWIG_0")] - public static extern int CSharp_RenderAudio__SWIG_0(bool jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RenderAudio__SWIG_1")] - public static extern int CSharp_RenderAudio__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterPluginDLL__SWIG_0")] - public static extern int CSharp_RegisterPluginDLL__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterPluginDLL__SWIG_1")] - public static extern int CSharp_RegisterPluginDLL__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetIDFromString__SWIG_0")] - public static extern uint CSharp_GetIDFromString__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_0")] - public static extern uint CSharp_PostEvent__SWIG_0(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_1")] - public static extern uint CSharp_PostEvent__SWIG_1(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_2")] - public static extern uint CSharp_PostEvent__SWIG_2(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_3")] - public static extern uint CSharp_PostEvent__SWIG_3(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_4")] - public static extern uint CSharp_PostEvent__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_5")] - public static extern uint CSharp_PostEvent__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_6")] - public static extern uint CSharp_PostEvent__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_7")] - public static extern uint CSharp_PostEvent__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_0")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_0(uint jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5, uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_1")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_1(uint jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_2")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_2(uint jarg1, int jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_3")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_3(uint jarg1, int jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_4")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_4(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_5")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5, uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_6")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_7")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_8")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_8([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_9")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_9([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_0")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_0(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8, uint jarg9); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_1")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_1(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_2")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_2(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_3")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_3(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_0")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_0(uint jarg1, ulong jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_1")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_1(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_2")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_3")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_3(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PinEventInStreamCache__SWIG_0")] - public static extern int CSharp_PinEventInStreamCache__SWIG_0(uint jarg1, sbyte jarg2, sbyte jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PinEventInStreamCache__SWIG_1")] - public static extern int CSharp_PinEventInStreamCache__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, sbyte jarg2, sbyte jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnpinEventInStreamCache__SWIG_0")] - public static extern int CSharp_UnpinEventInStreamCache__SWIG_0(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnpinEventInStreamCache__SWIG_1")] - public static extern int CSharp_UnpinEventInStreamCache__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBufferStatusForPinnedEvent__SWIG_0")] - public static extern int CSharp_GetBufferStatusForPinnedEvent__SWIG_0(uint jarg1, out float jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBufferStatusForPinnedEvent__SWIG_1")] - public static extern int CSharp_GetBufferStatusForPinnedEvent__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, out float jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_0")] - public static extern int CSharp_SeekOnEvent__SWIG_0(uint jarg1, ulong jarg2, int jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_1")] - public static extern int CSharp_SeekOnEvent__SWIG_1(uint jarg1, ulong jarg2, int jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_2")] - public static extern int CSharp_SeekOnEvent__SWIG_2(uint jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_3")] - public static extern int CSharp_SeekOnEvent__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_4")] - public static extern int CSharp_SeekOnEvent__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_5")] - public static extern int CSharp_SeekOnEvent__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_9")] - public static extern int CSharp_SeekOnEvent__SWIG_9(uint jarg1, ulong jarg2, float jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_10")] - public static extern int CSharp_SeekOnEvent__SWIG_10(uint jarg1, ulong jarg2, float jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_11")] - public static extern int CSharp_SeekOnEvent__SWIG_11(uint jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_12")] - public static extern int CSharp_SeekOnEvent__SWIG_12([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, float jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_13")] - public static extern int CSharp_SeekOnEvent__SWIG_13([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, float jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_14")] - public static extern int CSharp_SeekOnEvent__SWIG_14([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelEventCallbackCookie")] - public static extern void CSharp_CancelEventCallbackCookie(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelEventCallbackGameObject")] - public static extern void CSharp_CancelEventCallbackGameObject(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelEventCallback")] - public static extern void CSharp_CancelEventCallback(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourcePlayPosition__SWIG_0")] - public static extern int CSharp_GetSourcePlayPosition__SWIG_0(uint jarg1, out int jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourcePlayPosition__SWIG_1")] - public static extern int CSharp_GetSourcePlayPosition__SWIG_1(uint jarg1, out int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourceStreamBuffering")] - public static extern int CSharp_GetSourceStreamBuffering(uint jarg1, out int jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopAll__SWIG_0")] - public static extern void CSharp_StopAll__SWIG_0(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopAll__SWIG_1")] - public static extern void CSharp_StopAll__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopPlayingID__SWIG_0")] - public static extern void CSharp_StopPlayingID__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopPlayingID__SWIG_1")] - public static extern void CSharp_StopPlayingID__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopPlayingID__SWIG_2")] - public static extern void CSharp_StopPlayingID__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnPlayingID__SWIG_0")] - public static extern void CSharp_ExecuteActionOnPlayingID__SWIG_0(int jarg1, uint jarg2, int jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnPlayingID__SWIG_1")] - public static extern void CSharp_ExecuteActionOnPlayingID__SWIG_1(int jarg1, uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnPlayingID__SWIG_2")] - public static extern void CSharp_ExecuteActionOnPlayingID__SWIG_2(int jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRandomSeed")] - public static extern void CSharp_SetRandomSeed(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MuteBackgroundMusic")] - public static extern void CSharp_MuteBackgroundMusic(bool jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBackgroundMusicMute")] - public static extern bool CSharp_GetBackgroundMusicMute(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SendPluginCustomGameData")] - public static extern int CSharp_SendPluginCustomGameData(uint jarg1, ulong jarg2, int jarg3, uint jarg4, uint jarg5, global::System.IntPtr jarg6, uint jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnregisterAllGameObj")] - public static extern int CSharp_UnregisterAllGameObj(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_0")] - public static extern int CSharp_SetMultiplePositions__SWIG_0(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_1")] - public static extern int CSharp_SetMultiplePositions__SWIG_1(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_2")] - public static extern int CSharp_SetMultiplePositions__SWIG_2(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_3")] - public static extern int CSharp_SetMultiplePositions__SWIG_3(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetScalingFactor")] - public static extern int CSharp_SetScalingFactor(ulong jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearBanks")] - public static extern int CSharp_ClearBanks(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBankLoadIOSettings")] - public static extern int CSharp_SetBankLoadIOSettings(float jarg1, sbyte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_0")] - public static extern int CSharp_LoadBank__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_2")] - public static extern int CSharp_LoadBank__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryView__SWIG_0")] - public static extern int CSharp_LoadBankMemoryView__SWIG_0(global::System.IntPtr jarg1, uint jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryCopy__SWIG_0")] - public static extern int CSharp_LoadBankMemoryCopy__SWIG_0(global::System.IntPtr jarg1, uint jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_3")] - public static extern int CSharp_LoadBank__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, out uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_5")] - public static extern int CSharp_LoadBank__SWIG_5(uint jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryView__SWIG_1")] - public static extern int CSharp_LoadBankMemoryView__SWIG_1(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, out uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryCopy__SWIG_1")] - public static extern int CSharp_LoadBankMemoryCopy__SWIG_1(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, out uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_0")] - public static extern int CSharp_UnloadBank__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_2")] - public static extern int CSharp_UnloadBank__SWIG_2(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_3")] - public static extern int CSharp_UnloadBank__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_5")] - public static extern int CSharp_UnloadBank__SWIG_5(uint jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelBankCallbackCookie")] - public static extern void CSharp_CancelBankCallbackCookie(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_0")] - public static extern int CSharp_PrepareBank__SWIG_0(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_1")] - public static extern int CSharp_PrepareBank__SWIG_1(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_4")] - public static extern int CSharp_PrepareBank__SWIG_4(int jarg1, uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_5")] - public static extern int CSharp_PrepareBank__SWIG_5(int jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_6")] - public static extern int CSharp_PrepareBank__SWIG_6(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_7")] - public static extern int CSharp_PrepareBank__SWIG_7(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_10")] - public static extern int CSharp_PrepareBank__SWIG_10(int jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_11")] - public static extern int CSharp_PrepareBank__SWIG_11(int jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearPreparedEvents")] - public static extern int CSharp_ClearPreparedEvents(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_0")] - public static extern int CSharp_PrepareEvent__SWIG_0(int jarg1, global::System.IntPtr jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_1")] - public static extern int CSharp_PrepareEvent__SWIG_1(int jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_2")] - public static extern int CSharp_PrepareEvent__SWIG_2(int jarg1, global::System.IntPtr jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_3")] - public static extern int CSharp_PrepareEvent__SWIG_3(int jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMedia")] - public static extern int CSharp_SetMedia(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnsetMedia")] - public static extern int CSharp_UnsetMedia(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_0")] - public static extern int CSharp_PrepareGameSyncs__SWIG_0(int jarg1, int jarg2, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg3, global::System.IntPtr jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_1")] - public static extern int CSharp_PrepareGameSyncs__SWIG_1(int jarg1, int jarg2, uint jarg3, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_2")] - public static extern int CSharp_PrepareGameSyncs__SWIG_2(int jarg1, int jarg2, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg3, global::System.IntPtr jarg4, uint jarg5, global::System.IntPtr jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_3")] - public static extern int CSharp_PrepareGameSyncs__SWIG_3(int jarg1, int jarg2, uint jarg3, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg4, uint jarg5, global::System.IntPtr jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddListener")] - public static extern int CSharp_AddListener(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveListener")] - public static extern int CSharp_RemoveListener(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddDefaultListener")] - public static extern int CSharp_AddDefaultListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveDefaultListener")] - public static extern int CSharp_RemoveDefaultListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetListenersToDefault")] - public static extern int CSharp_ResetListenersToDefault(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetListenerSpatialization__SWIG_0")] - public static extern int CSharp_SetListenerSpatialization__SWIG_0(ulong jarg1, bool jarg2, global::System.IntPtr jarg3, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetListenerSpatialization__SWIG_1")] - public static extern int CSharp_SetListenerSpatialization__SWIG_1(ulong jarg1, bool jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_0")] - public static extern int CSharp_SetRTPCValue__SWIG_0(uint jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_1")] - public static extern int CSharp_SetRTPCValue__SWIG_1(uint jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_2")] - public static extern int CSharp_SetRTPCValue__SWIG_2(uint jarg1, float jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_3")] - public static extern int CSharp_SetRTPCValue__SWIG_3(uint jarg1, float jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_4")] - public static extern int CSharp_SetRTPCValue__SWIG_4(uint jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_5")] - public static extern int CSharp_SetRTPCValue__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_6")] - public static extern int CSharp_SetRTPCValue__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_7")] - public static extern int CSharp_SetRTPCValue__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_8")] - public static extern int CSharp_SetRTPCValue__SWIG_8([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_9")] - public static extern int CSharp_SetRTPCValue__SWIG_9([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_0")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_0(uint jarg1, float jarg2, uint jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_1")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_1(uint jarg1, float jarg2, uint jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_2")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_2(uint jarg1, float jarg2, uint jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_3")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_3(uint jarg1, float jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_4")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_5")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_6")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_7")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_0")] - public static extern int CSharp_ResetRTPCValue__SWIG_0(uint jarg1, ulong jarg2, int jarg3, int jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_1")] - public static extern int CSharp_ResetRTPCValue__SWIG_1(uint jarg1, ulong jarg2, int jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_2")] - public static extern int CSharp_ResetRTPCValue__SWIG_2(uint jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_3")] - public static extern int CSharp_ResetRTPCValue__SWIG_3(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_4")] - public static extern int CSharp_ResetRTPCValue__SWIG_4(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_5")] - public static extern int CSharp_ResetRTPCValue__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, int jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_6")] - public static extern int CSharp_ResetRTPCValue__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_7")] - public static extern int CSharp_ResetRTPCValue__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_8")] - public static extern int CSharp_ResetRTPCValue__SWIG_8([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_9")] - public static extern int CSharp_ResetRTPCValue__SWIG_9([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSwitch__SWIG_0")] - public static extern int CSharp_SetSwitch__SWIG_0(uint jarg1, uint jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSwitch__SWIG_1")] - public static extern int CSharp_SetSwitch__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostTrigger__SWIG_0")] - public static extern int CSharp_PostTrigger__SWIG_0(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostTrigger__SWIG_1")] - public static extern int CSharp_PostTrigger__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetState__SWIG_0")] - public static extern int CSharp_SetState__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetState__SWIG_1")] - public static extern int CSharp_SetState__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectAuxSendValues")] - public static extern int CSharp_SetGameObjectAuxSendValues(ulong jarg1, global::System.IntPtr jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectOutputBusVolume")] - public static extern int CSharp_SetGameObjectOutputBusVolume(ulong jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetActorMixerEffect")] - public static extern int CSharp_SetActorMixerEffect(uint jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusEffect__SWIG_0")] - public static extern int CSharp_SetBusEffect__SWIG_0(uint jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusEffect__SWIG_1")] - public static extern int CSharp_SetBusEffect__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetOutputDeviceEffect")] - public static extern int CSharp_SetOutputDeviceEffect(ulong jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMixer__SWIG_0")] - public static extern int CSharp_SetMixer__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMixer__SWIG_1")] - public static extern int CSharp_SetMixer__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusConfig__SWIG_0")] - public static extern int CSharp_SetBusConfig__SWIG_0(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusConfig__SWIG_1")] - public static extern int CSharp_SetBusConfig__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetObjectObstructionAndOcclusion")] - public static extern int CSharp_SetObjectObstructionAndOcclusion(ulong jarg1, ulong jarg2, float jarg3, float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultipleObstructionAndOcclusion")] - public static extern int CSharp_SetMultipleObstructionAndOcclusion(ulong jarg1, ulong jarg2, global::System.IntPtr jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StartOutputCapture")] - public static extern int CSharp_StartOutputCapture([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopOutputCapture")] - public static extern int CSharp_StopOutputCapture(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutputCaptureMarker")] - public static extern int CSharp_AddOutputCaptureMarker([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StartProfilerCapture")] - public static extern int CSharp_StartProfilerCapture([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopProfilerCapture")] - public static extern int CSharp_StopProfilerCapture(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveOutput")] - public static extern int CSharp_RemoveOutput(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ReplaceOutput__SWIG_0")] - public static extern int CSharp_ReplaceOutput__SWIG_0(global::System.IntPtr jarg1, ulong jarg2, out ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ReplaceOutput__SWIG_1")] - public static extern int CSharp_ReplaceOutput__SWIG_1(global::System.IntPtr jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetOutputID__SWIG_0")] - public static extern ulong CSharp_GetOutputID__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetOutputID__SWIG_1")] - public static extern ulong CSharp_GetOutputID__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusDevice__SWIG_0")] - public static extern int CSharp_SetBusDevice__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusDevice__SWIG_1")] - public static extern int CSharp_SetBusDevice__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceList__SWIG_0")] - public static extern int CSharp_GetDeviceList__SWIG_0(uint jarg1, uint jarg2, out uint jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceList__SWIG_1")] - public static extern int CSharp_GetDeviceList__SWIG_1(uint jarg1, out uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetOutputVolume")] - public static extern int CSharp_SetOutputVolume(ulong jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceSpatialAudioSupport")] - public static extern int CSharp_GetDeviceSpatialAudioSupport(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Suspend__SWIG_0")] - public static extern int CSharp_Suspend__SWIG_0(bool jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Suspend__SWIG_1")] - public static extern int CSharp_Suspend__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_WakeupFromSuspend")] - public static extern int CSharp_WakeupFromSuspend(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBufferTick")] - public static extern uint CSharp_GetBufferTick(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSampleTick")] - public static extern ulong CSharp_GetSampleTick(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iCurrentPosition_set")] - public static extern void CSharp_AkSegmentInfo_iCurrentPosition_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iCurrentPosition_get")] - public static extern int CSharp_AkSegmentInfo_iCurrentPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPreEntryDuration_set")] - public static extern void CSharp_AkSegmentInfo_iPreEntryDuration_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPreEntryDuration_get")] - public static extern int CSharp_AkSegmentInfo_iPreEntryDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iActiveDuration_set")] - public static extern void CSharp_AkSegmentInfo_iActiveDuration_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iActiveDuration_get")] - public static extern int CSharp_AkSegmentInfo_iActiveDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPostExitDuration_set")] - public static extern void CSharp_AkSegmentInfo_iPostExitDuration_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPostExitDuration_get")] - public static extern int CSharp_AkSegmentInfo_iPostExitDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iRemainingLookAheadTime_set")] - public static extern void CSharp_AkSegmentInfo_iRemainingLookAheadTime_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iRemainingLookAheadTime_get")] - public static extern int CSharp_AkSegmentInfo_iRemainingLookAheadTime_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBeatDuration_set")] - public static extern void CSharp_AkSegmentInfo_fBeatDuration_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBeatDuration_get")] - public static extern float CSharp_AkSegmentInfo_fBeatDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBarDuration_set")] - public static extern void CSharp_AkSegmentInfo_fBarDuration_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBarDuration_get")] - public static extern float CSharp_AkSegmentInfo_fBarDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridDuration_set")] - public static extern void CSharp_AkSegmentInfo_fGridDuration_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridDuration_get")] - public static extern float CSharp_AkSegmentInfo_fGridDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridOffset_set")] - public static extern void CSharp_AkSegmentInfo_fGridOffset_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridOffset_get")] - public static extern float CSharp_AkSegmentInfo_fGridOffset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSegmentInfo")] - public static extern global::System.IntPtr CSharp_new_AkSegmentInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSegmentInfo")] - public static extern void CSharp_delete_AkSegmentInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalCPU_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_totalCPU_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalCPU_get")] - public static extern float CSharp_AkResourceMonitorDataSummary_totalCPU_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_pluginCPU_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_pluginCPU_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_pluginCPU_get")] - public static extern float CSharp_AkResourceMonitorDataSummary_pluginCPU_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_physicalVoices_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_physicalVoices_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_physicalVoices_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_physicalVoices_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_virtualVoices_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_virtualVoices_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_virtualVoices_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_virtualVoices_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalVoices_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_totalVoices_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalVoices_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_totalVoices_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_nbActiveEvents_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_nbActiveEvents_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_nbActiveEvents_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_nbActiveEvents_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkResourceMonitorDataSummary")] - public static extern global::System.IntPtr CSharp_new_AkResourceMonitorDataSummary(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkResourceMonitorDataSummary")] - public static extern void CSharp_delete_AkResourceMonitorDataSummary(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_MIDI_CHANNEL_get")] - public static extern byte CSharp_AK_INVALID_MIDI_CHANNEL_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_MIDI_NOTE_get")] - public static extern byte CSharp_AK_INVALID_MIDI_NOTE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChan_set")] - public static extern void CSharp_AkMIDIEvent_byChan_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChan_get")] - public static extern byte CSharp_AkMIDIEvent_byChan_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam1_set")] - public static extern void CSharp_AkMIDIEvent_tGen_byParam1_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam1_get")] - public static extern byte CSharp_AkMIDIEvent_tGen_byParam1_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam2_set")] - public static extern void CSharp_AkMIDIEvent_tGen_byParam2_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam2_get")] - public static extern byte CSharp_AkMIDIEvent_tGen_byParam2_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tGen")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tGen(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tGen")] - public static extern void CSharp_delete_AkMIDIEvent_tGen(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byNote_set")] - public static extern void CSharp_AkMIDIEvent_tNoteOnOff_byNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byNote_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteOnOff_byNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_set")] - public static extern void CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tNoteOnOff")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tNoteOnOff(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tNoteOnOff")] - public static extern void CSharp_delete_AkMIDIEvent_tNoteOnOff(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byCc_set")] - public static extern void CSharp_AkMIDIEvent_tCc_byCc_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byCc_get")] - public static extern byte CSharp_AkMIDIEvent_tCc_byCc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byValue_set")] - public static extern void CSharp_AkMIDIEvent_tCc_byValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byValue_get")] - public static extern byte CSharp_AkMIDIEvent_tCc_byValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tCc")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tCc(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tCc")] - public static extern void CSharp_delete_AkMIDIEvent_tCc(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueLsb_set")] - public static extern void CSharp_AkMIDIEvent_tPitchBend_byValueLsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueLsb_get")] - public static extern byte CSharp_AkMIDIEvent_tPitchBend_byValueLsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueMsb_set")] - public static extern void CSharp_AkMIDIEvent_tPitchBend_byValueMsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueMsb_get")] - public static extern byte CSharp_AkMIDIEvent_tPitchBend_byValueMsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tPitchBend")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tPitchBend(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tPitchBend")] - public static extern void CSharp_delete_AkMIDIEvent_tPitchBend(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byNote_set")] - public static extern void CSharp_AkMIDIEvent_tNoteAftertouch_byNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byNote_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteAftertouch_byNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byValue_set")] - public static extern void CSharp_AkMIDIEvent_tNoteAftertouch_byValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byValue_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteAftertouch_byValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tNoteAftertouch")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tNoteAftertouch(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tNoteAftertouch")] - public static extern void CSharp_delete_AkMIDIEvent_tNoteAftertouch(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tChanAftertouch_byValue_set")] - public static extern void CSharp_AkMIDIEvent_tChanAftertouch_byValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tChanAftertouch_byValue_get")] - public static extern byte CSharp_AkMIDIEvent_tChanAftertouch_byValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tChanAftertouch")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tChanAftertouch(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tChanAftertouch")] - public static extern void CSharp_delete_AkMIDIEvent_tChanAftertouch(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tProgramChange_byProgramNum_set")] - public static extern void CSharp_AkMIDIEvent_tProgramChange_byProgramNum_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tProgramChange_byProgramNum_get")] - public static extern byte CSharp_AkMIDIEvent_tProgramChange_byProgramNum_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tProgramChange")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tProgramChange(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tProgramChange")] - public static extern void CSharp_delete_AkMIDIEvent_tProgramChange(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uCmd_set")] - public static extern void CSharp_AkMIDIEvent_tWwiseCmd_uCmd_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uCmd_get")] - public static extern ushort CSharp_AkMIDIEvent_tWwiseCmd_uCmd_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uArg_set")] - public static extern void CSharp_AkMIDIEvent_tWwiseCmd_uArg_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uArg_get")] - public static extern uint CSharp_AkMIDIEvent_tWwiseCmd_uArg_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tWwiseCmd")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tWwiseCmd(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tWwiseCmd")] - public static extern void CSharp_delete_AkMIDIEvent_tWwiseCmd(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Gen_set")] - public static extern void CSharp_AkMIDIEvent_Gen_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Gen_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_Gen_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Cc_set")] - public static extern void CSharp_AkMIDIEvent_Cc_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Cc_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_Cc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteOnOff_set")] - public static extern void CSharp_AkMIDIEvent_NoteOnOff_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteOnOff_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_NoteOnOff_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_PitchBend_set")] - public static extern void CSharp_AkMIDIEvent_PitchBend_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_PitchBend_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_PitchBend_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteAftertouch_set")] - public static extern void CSharp_AkMIDIEvent_NoteAftertouch_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteAftertouch_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_NoteAftertouch_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ChanAftertouch_set")] - public static extern void CSharp_AkMIDIEvent_ChanAftertouch_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ChanAftertouch_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_ChanAftertouch_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ProgramChange_set")] - public static extern void CSharp_AkMIDIEvent_ProgramChange_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ProgramChange_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_ProgramChange_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_WwiseCmd_set")] - public static extern void CSharp_AkMIDIEvent_WwiseCmd_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_WwiseCmd_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_WwiseCmd_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byType_set")] - public static extern void CSharp_AkMIDIEvent_byType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byType_get")] - public static extern int CSharp_AkMIDIEvent_byType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byOnOffNote_set")] - public static extern void CSharp_AkMIDIEvent_byOnOffNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byOnOffNote_get")] - public static extern byte CSharp_AkMIDIEvent_byOnOffNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byVelocity_set")] - public static extern void CSharp_AkMIDIEvent_byVelocity_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byVelocity_get")] - public static extern byte CSharp_AkMIDIEvent_byVelocity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCc_set")] - public static extern void CSharp_AkMIDIEvent_byCc_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCc_get")] - public static extern int CSharp_AkMIDIEvent_byCc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCcValue_set")] - public static extern void CSharp_AkMIDIEvent_byCcValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCcValue_get")] - public static extern byte CSharp_AkMIDIEvent_byCcValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueLsb_set")] - public static extern void CSharp_AkMIDIEvent_byValueLsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueLsb_get")] - public static extern byte CSharp_AkMIDIEvent_byValueLsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueMsb_set")] - public static extern void CSharp_AkMIDIEvent_byValueMsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueMsb_get")] - public static extern byte CSharp_AkMIDIEvent_byValueMsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byAftertouchNote_set")] - public static extern void CSharp_AkMIDIEvent_byAftertouchNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byAftertouchNote_get")] - public static extern byte CSharp_AkMIDIEvent_byAftertouchNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byNoteAftertouchValue_set")] - public static extern void CSharp_AkMIDIEvent_byNoteAftertouchValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byNoteAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEvent_byNoteAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChanAftertouchValue_set")] - public static extern void CSharp_AkMIDIEvent_byChanAftertouchValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChanAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEvent_byChanAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byProgramNum_set")] - public static extern void CSharp_AkMIDIEvent_byProgramNum_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byProgramNum_get")] - public static extern byte CSharp_AkMIDIEvent_byProgramNum_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uCmd_set")] - public static extern void CSharp_AkMIDIEvent_uCmd_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uCmd_get")] - public static extern ushort CSharp_AkMIDIEvent_uCmd_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uArg_set")] - public static extern void CSharp_AkMIDIEvent_uArg_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uArg_get")] - public static extern uint CSharp_AkMIDIEvent_uArg_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent")] - public static extern void CSharp_delete_AkMIDIEvent(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_uOffset_set")] - public static extern void CSharp_AkMIDIPost_uOffset_set(global::System.IntPtr jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_uOffset_get")] - public static extern ulong CSharp_AkMIDIPost_uOffset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_0")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_0(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_1")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_1(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_2")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_2(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_3")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_3(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8, uint jarg9); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_Clone")] - public static extern void CSharp_AkMIDIPost_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_GetSizeOf")] - public static extern int CSharp_AkMIDIPost_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIPost")] - public static extern global::System.IntPtr CSharp_new_AkMIDIPost(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIPost")] - public static extern void CSharp_delete_AkMIDIPost(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSettings_fStreamingLookAheadRatio_set")] - public static extern void CSharp_AkMusicSettings_fStreamingLookAheadRatio_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSettings_fStreamingLookAheadRatio_get")] - public static extern float CSharp_AkMusicSettings_fStreamingLookAheadRatio_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMusicSettings")] - public static extern void CSharp_delete_AkMusicSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPlayingSegmentInfo__SWIG_0")] - public static extern int CSharp_GetPlayingSegmentInfo__SWIG_0(uint jarg1, global::System.IntPtr jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPlayingSegmentInfo__SWIG_1")] - public static extern int CSharp_GetPlayingSegmentInfo__SWIG_1(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_pPackage_get")] - public static extern global::System.IntPtr CSharp_AkSerializedCallbackHeader_pPackage_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_eType_get")] - public static extern uint CSharp_AkSerializedCallbackHeader_eType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_GetData")] - public static extern global::System.IntPtr CSharp_AkSerializedCallbackHeader_GetData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_pNext_get")] - public static extern global::System.IntPtr CSharp_AkSerializedCallbackHeader_pNext_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSerializedCallbackHeader")] - public static extern global::System.IntPtr CSharp_new_AkSerializedCallbackHeader(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSerializedCallbackHeader")] - public static extern void CSharp_delete_AkSerializedCallbackHeader(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackInfo_pCookie_get")] - public static extern global::System.IntPtr CSharp_AkCallbackInfo_pCookie_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackInfo_gameObjID_get")] - public static extern ulong CSharp_AkCallbackInfo_gameObjID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkCallbackInfo")] - public static extern void CSharp_delete_AkCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkEventCallbackInfo_playingID_get")] - public static extern uint CSharp_AkEventCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkEventCallbackInfo_eventID_get")] - public static extern uint CSharp_AkEventCallbackInfo_eventID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkEventCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkEventCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkEventCallbackInfo")] - public static extern void CSharp_delete_AkEventCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byChan_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byChan_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byParam1_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byParam1_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byParam2_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byParam2_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byType_get")] - public static extern int CSharp_AkMIDIEventCallbackInfo_byType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byOnOffNote_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byOnOffNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byVelocity_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byVelocity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byCc_get")] - public static extern int CSharp_AkMIDIEventCallbackInfo_byCc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byCcValue_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byCcValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byValueLsb_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byValueLsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byValueMsb_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byValueMsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byAftertouchNote_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byAftertouchNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byNoteAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byNoteAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byChanAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byChanAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byProgramNum_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byProgramNum_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEventCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEventCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEventCallbackInfo")] - public static extern void CSharp_delete_AkMIDIEventCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_uIdentifier_get")] - public static extern uint CSharp_AkMarkerCallbackInfo_uIdentifier_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_uPosition_get")] - public static extern uint CSharp_AkMarkerCallbackInfo_uPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_strLabel_get")] - public static extern global::System.IntPtr CSharp_AkMarkerCallbackInfo_strLabel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMarkerCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMarkerCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMarkerCallbackInfo")] - public static extern void CSharp_delete_AkMarkerCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_fDuration_get")] - public static extern float CSharp_AkDurationCallbackInfo_fDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_fEstimatedDuration_get")] - public static extern float CSharp_AkDurationCallbackInfo_fEstimatedDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_audioNodeID_get")] - public static extern uint CSharp_AkDurationCallbackInfo_audioNodeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_mediaID_get")] - public static extern uint CSharp_AkDurationCallbackInfo_mediaID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_bStreaming_get")] - public static extern bool CSharp_AkDurationCallbackInfo_bStreaming_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDurationCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkDurationCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDurationCallbackInfo")] - public static extern void CSharp_delete_AkDurationCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_playingID_get")] - public static extern uint CSharp_AkDynamicSequenceItemCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_audioNodeID_get")] - public static extern uint CSharp_AkDynamicSequenceItemCallbackInfo_audioNodeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_pCustomInfo_get")] - public static extern global::System.IntPtr CSharp_AkDynamicSequenceItemCallbackInfo_pCustomInfo_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDynamicSequenceItemCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkDynamicSequenceItemCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDynamicSequenceItemCallbackInfo")] - public static extern void CSharp_delete_AkDynamicSequenceItemCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_playingID_get")] - public static extern uint CSharp_AkMusicSyncCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iCurrentPosition_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iCurrentPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPreEntryDuration_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPreEntryDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iActiveDuration_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iActiveDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPostExitDuration_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPostExitDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iRemainingLookAheadTime_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iRemainingLookAheadTime_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBeatDuration_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBeatDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBarDuration_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBarDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridDuration_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridOffset_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridOffset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_musicSyncType_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_musicSyncType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_userCueName_get")] - public static extern global::System.IntPtr CSharp_AkMusicSyncCallbackInfo_userCueName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMusicSyncCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMusicSyncCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMusicSyncCallbackInfo")] - public static extern void CSharp_delete_AkMusicSyncCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_playlistID_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_playlistID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_uNumPlaylistItems_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_uNumPlaylistItems_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_uPlaylistSelection_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_uPlaylistSelection_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_uPlaylistItemDone_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_uPlaylistItemDone_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMusicPlaylistCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMusicPlaylistCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMusicPlaylistCallbackInfo")] - public static extern void CSharp_delete_AkMusicPlaylistCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBankCallbackInfo_bankID_get")] - public static extern uint CSharp_AkBankCallbackInfo_bankID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBankCallbackInfo_inMemoryBankPtr_get")] - public static extern global::System.IntPtr CSharp_AkBankCallbackInfo_inMemoryBankPtr_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBankCallbackInfo_loadResult_get")] - public static extern int CSharp_AkBankCallbackInfo_loadResult_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkBankCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkBankCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkBankCallbackInfo")] - public static extern void CSharp_delete_AkBankCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_errorCode_get")] - public static extern int CSharp_AkMonitoringCallbackInfo_errorCode_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_errorLevel_get")] - public static extern int CSharp_AkMonitoringCallbackInfo_errorLevel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_playingID_get")] - public static extern uint CSharp_AkMonitoringCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_gameObjID_get")] - public static extern ulong CSharp_AkMonitoringCallbackInfo_gameObjID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_message_get")] - public static extern global::System.IntPtr CSharp_AkMonitoringCallbackInfo_message_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMonitoringCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMonitoringCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMonitoringCallbackInfo")] - public static extern void CSharp_delete_AkMonitoringCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioInterruptionCallbackInfo_bEnterInterruption_get")] - public static extern bool CSharp_AkAudioInterruptionCallbackInfo_bEnterInterruption_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioInterruptionCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkAudioInterruptionCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioInterruptionCallbackInfo")] - public static extern void CSharp_delete_AkAudioInterruptionCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSourceChangeCallbackInfo_bOtherAudioPlaying_get")] - public static extern bool CSharp_AkAudioSourceChangeCallbackInfo_bOtherAudioPlaying_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioSourceChangeCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkAudioSourceChangeCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioSourceChangeCallbackInfo")] - public static extern void CSharp_delete_AkAudioSourceChangeCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Init")] - public static extern int CSharp_AkCallbackSerializer_Init(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Term")] - public static extern void CSharp_AkCallbackSerializer_Term(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Lock")] - public static extern global::System.IntPtr CSharp_AkCallbackSerializer_Lock(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Unlock")] - public static extern void CSharp_AkCallbackSerializer_Unlock(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_SetLocalOutput")] - public static extern void CSharp_AkCallbackSerializer_SetLocalOutput(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc")] - public static extern int CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc(bool jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkCallbackSerializer")] - public static extern global::System.IntPtr CSharp_new_AkCallbackSerializer(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkCallbackSerializer")] - public static extern void CSharp_delete_AkCallbackSerializer(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_0")] - public static extern int CSharp_PostCode__SWIG_0(int jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_1")] - public static extern int CSharp_PostCode__SWIG_1(int jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_2")] - public static extern int CSharp_PostCode__SWIG_2(int jarg1, int jarg2, uint jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_3")] - public static extern int CSharp_PostCode__SWIG_3(int jarg1, int jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_4")] - public static extern int CSharp_PostCode__SWIG_4(int jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_0")] - public static extern int CSharp_PostString__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_1")] - public static extern int CSharp_PostString__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_2")] - public static extern int CSharp_PostString__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_3")] - public static extern int CSharp_PostString__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_4")] - public static extern int CSharp_PostString__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetTimeStamp")] - public static extern int CSharp_GetTimeStamp(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamMgrInit")] - public static extern void CSharp_MonitorStreamMgrInit(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamingDeviceInit")] - public static extern void CSharp_MonitorStreamingDeviceInit(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamingDeviceDestroyed")] - public static extern void CSharp_MonitorStreamingDeviceDestroyed(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamMgrTerm")] - public static extern void CSharp_MonitorStreamMgrTerm(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetNumNonZeroBits")] - public static extern uint CSharp_GetNumNonZeroBits(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetNextPowerOfTwo")] - public static extern uint CSharp_GetNextPowerOfTwo(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ROTL32")] - public static extern uint CSharp_ROTL32(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ROTL64")] - public static extern ulong CSharp_ROTL64(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkGetDefaultHighPriorityThreadProperties")] - public static extern void CSharp_AkGetDefaultHighPriorityThreadProperties(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResolveDialogueEvent__SWIG_0")] - public static extern uint CSharp_ResolveDialogueEvent__SWIG_0(uint jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResolveDialogueEvent__SWIG_1")] - public static extern uint CSharp_ResolveDialogueEvent__SWIG_1(uint jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDialogueEventCustomPropertyValue__SWIG_0")] - public static extern int CSharp_GetDialogueEventCustomPropertyValue__SWIG_0(uint jarg1, uint jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDialogueEventCustomPropertyValue__SWIG_1")] - public static extern int CSharp_GetDialogueEventCustomPropertyValue__SWIG_1(uint jarg1, uint jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fCenterPct_set")] - public static extern void CSharp_AkPositioningInfo_fCenterPct_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fCenterPct_get")] - public static extern float CSharp_AkPositioningInfo_fCenterPct_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_pannerType_set")] - public static extern void CSharp_AkPositioningInfo_pannerType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_pannerType_get")] - public static extern int CSharp_AkPositioningInfo_pannerType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3dPositioningType_set")] - public static extern void CSharp_AkPositioningInfo_e3dPositioningType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3dPositioningType_get")] - public static extern int CSharp_AkPositioningInfo_e3dPositioningType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_set")] - public static extern void CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_get")] - public static extern bool CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3DSpatializationMode_set")] - public static extern void CSharp_AkPositioningInfo_e3DSpatializationMode_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3DSpatializationMode_get")] - public static extern int CSharp_AkPositioningInfo_e3DSpatializationMode_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bEnableAttenuation_set")] - public static extern void CSharp_AkPositioningInfo_bEnableAttenuation_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bEnableAttenuation_get")] - public static extern bool CSharp_AkPositioningInfo_bEnableAttenuation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bUseConeAttenuation_set")] - public static extern void CSharp_AkPositioningInfo_bUseConeAttenuation_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bUseConeAttenuation_get")] - public static extern bool CSharp_AkPositioningInfo_bUseConeAttenuation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fInnerAngle_set")] - public static extern void CSharp_AkPositioningInfo_fInnerAngle_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fInnerAngle_get")] - public static extern float CSharp_AkPositioningInfo_fInnerAngle_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fOuterAngle_set")] - public static extern void CSharp_AkPositioningInfo_fOuterAngle_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fOuterAngle_get")] - public static extern float CSharp_AkPositioningInfo_fOuterAngle_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fConeMaxAttenuation_set")] - public static extern void CSharp_AkPositioningInfo_fConeMaxAttenuation_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fConeMaxAttenuation_get")] - public static extern float CSharp_AkPositioningInfo_fConeMaxAttenuation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFCone_set")] - public static extern void CSharp_AkPositioningInfo_LPFCone_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFCone_get")] - public static extern float CSharp_AkPositioningInfo_LPFCone_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFCone_set")] - public static extern void CSharp_AkPositioningInfo_HPFCone_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFCone_get")] - public static extern float CSharp_AkPositioningInfo_HPFCone_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fMaxDistance_set")] - public static extern void CSharp_AkPositioningInfo_fMaxDistance_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fMaxDistance_get")] - public static extern float CSharp_AkPositioningInfo_fMaxDistance_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolDryAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_fVolDryAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolDryAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_fVolDryAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFValueAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_LPFValueAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFValueAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_LPFValueAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFValueAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_HPFValueAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFValueAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_HPFValueAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPositioningInfo")] - public static extern global::System.IntPtr CSharp_new_AkPositioningInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPositioningInfo")] - public static extern void CSharp_delete_AkPositioningInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_objID_set")] - public static extern void CSharp_AkObjectInfo_objID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_objID_get")] - public static extern uint CSharp_AkObjectInfo_objID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_parentID_set")] - public static extern void CSharp_AkObjectInfo_parentID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_parentID_get")] - public static extern uint CSharp_AkObjectInfo_parentID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_iDepth_set")] - public static extern void CSharp_AkObjectInfo_iDepth_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_iDepth_get")] - public static extern int CSharp_AkObjectInfo_iDepth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_Clear")] - public static extern void CSharp_AkObjectInfo_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_GetSizeOf")] - public static extern int CSharp_AkObjectInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_Clone")] - public static extern void CSharp_AkObjectInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkObjectInfo")] - public static extern global::System.IntPtr CSharp_new_AkObjectInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkObjectInfo")] - public static extern void CSharp_delete_AkObjectInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPosition")] - public static extern int CSharp_GetPosition(ulong jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetListenerPosition")] - public static extern int CSharp_GetListenerPosition(ulong jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetRTPCValue__SWIG_0")] - public static extern int CSharp_GetRTPCValue__SWIG_0(uint jarg1, ulong jarg2, uint jarg3, out float jarg4, ref int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetRTPCValue__SWIG_1")] - public static extern int CSharp_GetRTPCValue__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, out float jarg4, ref int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSwitch__SWIG_0")] - public static extern int CSharp_GetSwitch__SWIG_0(uint jarg1, ulong jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSwitch__SWIG_1")] - public static extern int CSharp_GetSwitch__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetState__SWIG_0")] - public static extern int CSharp_GetState__SWIG_0(uint jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetState__SWIG_1")] - public static extern int CSharp_GetState__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetGameObjectAuxSendValues")] - public static extern int CSharp_GetGameObjectAuxSendValues(ulong jarg1, global::System.IntPtr jarg2, ref uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetGameObjectDryLevelValue")] - public static extern int CSharp_GetGameObjectDryLevelValue(ulong jarg1, ulong jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetObjectObstructionAndOcclusion")] - public static extern int CSharp_GetObjectObstructionAndOcclusion(ulong jarg1, ulong jarg2, out float jarg3, out float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryAudioObjectIDs__SWIG_0")] - public static extern int CSharp_QueryAudioObjectIDs__SWIG_0(uint jarg1, ref uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryAudioObjectIDs__SWIG_1")] - public static extern int CSharp_QueryAudioObjectIDs__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ref uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPositioningInfo")] - public static extern int CSharp_GetPositioningInfo(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetIsGameObjectActive")] - public static extern bool CSharp_GetIsGameObjectActive(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetMaxRadius")] - public static extern float CSharp_GetMaxRadius(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetEventIDFromPlayingID")] - public static extern uint CSharp_GetEventIDFromPlayingID(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetGameObjectFromPlayingID")] - public static extern ulong CSharp_GetGameObjectFromPlayingID(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPlayingIDsFromGameObject")] - public static extern int CSharp_GetPlayingIDsFromGameObject(ulong jarg1, ref uint jarg2, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetCustomPropertyValue__SWIG_0")] - public static extern int CSharp_GetCustomPropertyValue__SWIG_0(uint jarg1, uint jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetCustomPropertyValue__SWIG_1")] - public static extern int CSharp_GetCustomPropertyValue__SWIG_1(uint jarg1, uint jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER")] - public static extern void CSharp_AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER(ref uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE")] - public static extern void CSharp_AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE(ref uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED")] - public static extern void CSharp_AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED(ref uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ChannelMaskToNumChannels")] - public static extern byte CSharp_ChannelMaskToNumChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ChannelMaskFromNumChannels")] - public static extern uint CSharp_ChannelMaskFromNumChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ChannelBitToIndex")] - public static extern byte CSharp_ChannelBitToIndex(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasSurroundChannels")] - public static extern bool CSharp_HasSurroundChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasStrictlyOnePairOfSurroundChannels")] - public static extern bool CSharp_HasStrictlyOnePairOfSurroundChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasSideAndRearChannels")] - public static extern bool CSharp_HasSideAndRearChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasHeightChannels")] - public static extern bool CSharp_HasHeightChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_BackToSideChannels")] - public static extern uint CSharp_BackToSideChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StdChannelIndexToDisplayIndex")] - public static extern uint CSharp_StdChannelIndexToDisplayIndex(int jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uNumChannels_set")] - public static extern void CSharp_AkChannelConfig_uNumChannels_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uNumChannels_get")] - public static extern uint CSharp_AkChannelConfig_uNumChannels_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_eConfigType_set")] - public static extern void CSharp_AkChannelConfig_eConfigType_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_eConfigType_get")] - public static extern uint CSharp_AkChannelConfig_eConfigType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uChannelMask_set")] - public static extern void CSharp_AkChannelConfig_uChannelMask_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uChannelMask_get")] - public static extern uint CSharp_AkChannelConfig_uChannelMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkChannelConfig__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkChannelConfig__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkChannelConfig__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkChannelConfig__SWIG_1(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_Clear")] - public static extern void CSharp_AkChannelConfig_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetStandard")] - public static extern void CSharp_AkChannelConfig_SetStandard(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetStandardOrAnonymous")] - public static extern void CSharp_AkChannelConfig_SetStandardOrAnonymous(global::System.IntPtr jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetAnonymous")] - public static extern void CSharp_AkChannelConfig_SetAnonymous(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetAmbisonic")] - public static extern void CSharp_AkChannelConfig_SetAmbisonic(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetObject")] - public static extern void CSharp_AkChannelConfig_SetObject(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_IsValid")] - public static extern bool CSharp_AkChannelConfig_IsValid(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_Serialize")] - public static extern uint CSharp_AkChannelConfig_Serialize(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_Deserialize")] - public static extern void CSharp_AkChannelConfig_Deserialize(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_RemoveLFE")] - public static extern global::System.IntPtr CSharp_AkChannelConfig_RemoveLFE(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_RemoveCenter")] - public static extern global::System.IntPtr CSharp_AkChannelConfig_RemoveCenter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkChannelConfig")] - public static extern void CSharp_delete_AkChannelConfig(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceParams__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceParams__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceParams__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceParams__SWIG_1(UnityEngine.Vector3 jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_sourcePosition_set")] - public static extern void CSharp_AkImageSourceParams_sourcePosition_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_sourcePosition_get")] - public static extern UnityEngine.Vector3 CSharp_AkImageSourceParams_sourcePosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDistanceScalingFactor_set")] - public static extern void CSharp_AkImageSourceParams_fDistanceScalingFactor_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDistanceScalingFactor_get")] - public static extern float CSharp_AkImageSourceParams_fDistanceScalingFactor_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fLevel_set")] - public static extern void CSharp_AkImageSourceParams_fLevel_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fLevel_get")] - public static extern float CSharp_AkImageSourceParams_fLevel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDiffraction_set")] - public static extern void CSharp_AkImageSourceParams_fDiffraction_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDiffraction_get")] - public static extern float CSharp_AkImageSourceParams_fDiffraction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionEmitterSide_set")] - public static extern void CSharp_AkImageSourceParams_uDiffractionEmitterSide_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionEmitterSide_get")] - public static extern byte CSharp_AkImageSourceParams_uDiffractionEmitterSide_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionListenerSide_set")] - public static extern void CSharp_AkImageSourceParams_uDiffractionListenerSide_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionListenerSide_get")] - public static extern byte CSharp_AkImageSourceParams_uDiffractionListenerSide_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkImageSourceParams")] - public static extern void CSharp_delete_AkImageSourceParams(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDefaultMaxPathLength_get")] - public static extern float CSharp_kDefaultMaxPathLength_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDefaultDiffractionMaxEdges_get")] - public static extern uint CSharp_kDefaultDiffractionMaxEdges_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDefaultDiffractionMaxPaths_get")] - public static extern uint CSharp_kDefaultDiffractionMaxPaths_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kMaxDiffraction_get")] - public static extern float CSharp_kMaxDiffraction_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDiffractionMaxEdges_get")] - public static extern uint CSharp_kDiffractionMaxEdges_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDiffractionMaxPaths_get")] - public static extern uint CSharp_kDiffractionMaxPaths_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kPortalToPortalDiffractionMaxPaths_get")] - public static extern uint CSharp_kPortalToPortalDiffractionMaxPaths_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSpatialAudioInitSettings")] - public static extern global::System.IntPtr CSharp_new_AkSpatialAudioInitSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_get")] - public static extern uint CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMovementThreshold_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_fMovementThreshold_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMovementThreshold_get")] - public static extern float CSharp_AkSpatialAudioInitSettings_fMovementThreshold_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_get")] - public static extern uint CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_get")] - public static extern uint CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMaxPathLength_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_fMaxPathLength_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMaxPathLength_get")] - public static extern float CSharp_AkSpatialAudioInitSettings_fMaxPathLength_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_get")] - public static extern float CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseObstruction_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bUseObstruction_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseObstruction_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bUseObstruction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseOcclusion_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bUseOcclusion_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseOcclusion_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bUseOcclusion_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSpatialAudioInitSettings")] - public static extern void CSharp_delete_AkSpatialAudioInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceSettings__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceSettings__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceSettings__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceSettings__SWIG_1(UnityEngine.Vector3 jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkImageSourceSettings")] - public static extern void CSharp_delete_AkImageSourceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_SetOneTexture")] - public static extern void CSharp_AkImageSourceSettings_SetOneTexture(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_SetName")] - public static extern void CSharp_AkImageSourceSettings_SetName(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_params__set")] - public static extern void CSharp_AkImageSourceSettings_params__set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_params__get")] - public static extern global::System.IntPtr CSharp_AkImageSourceSettings_params__get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExtent__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkExtent__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExtent__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkExtent__SWIG_1(float jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfWidth_set")] - public static extern void CSharp_AkExtent_halfWidth_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfWidth_get")] - public static extern float CSharp_AkExtent_halfWidth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfHeight_set")] - public static extern void CSharp_AkExtent_halfHeight_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfHeight_get")] - public static extern float CSharp_AkExtent_halfHeight_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfDepth_set")] - public static extern void CSharp_AkExtent_halfDepth_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfDepth_get")] - public static extern float CSharp_AkExtent_halfDepth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkExtent")] - public static extern void CSharp_delete_AkExtent(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTriangle__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkTriangle__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTriangle__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkTriangle__SWIG_1(ushort jarg1, ushort jarg2, ushort jarg3, ushort jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point0_set")] - public static extern void CSharp_AkTriangle_point0_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point0_get")] - public static extern ushort CSharp_AkTriangle_point0_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point1_set")] - public static extern void CSharp_AkTriangle_point1_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point1_get")] - public static extern ushort CSharp_AkTriangle_point1_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point2_set")] - public static extern void CSharp_AkTriangle_point2_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point2_get")] - public static extern ushort CSharp_AkTriangle_point2_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_surface_set")] - public static extern void CSharp_AkTriangle_surface_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_surface_get")] - public static extern ushort CSharp_AkTriangle_surface_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_Clear")] - public static extern void CSharp_AkTriangle_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_GetSizeOf")] - public static extern int CSharp_AkTriangle_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_Clone")] - public static extern void CSharp_AkTriangle_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkTriangle")] - public static extern void CSharp_delete_AkTriangle(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAcousticSurface")] - public static extern global::System.IntPtr CSharp_new_AkAcousticSurface(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_textureID_set")] - public static extern void CSharp_AkAcousticSurface_textureID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_textureID_get")] - public static extern uint CSharp_AkAcousticSurface_textureID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_transmissionLoss_set")] - public static extern void CSharp_AkAcousticSurface_transmissionLoss_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_transmissionLoss_get")] - public static extern float CSharp_AkAcousticSurface_transmissionLoss_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_strName_set")] - public static extern void CSharp_AkAcousticSurface_strName_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_strName_get")] - public static extern global::System.IntPtr CSharp_AkAcousticSurface_strName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_Clear")] - public static extern void CSharp_AkAcousticSurface_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_DeleteName")] - public static extern void CSharp_AkAcousticSurface_DeleteName(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_GetSizeOf")] - public static extern int CSharp_AkAcousticSurface_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_Clone")] - public static extern void CSharp_AkAcousticSurface_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAcousticSurface")] - public static extern void CSharp_delete_AkAcousticSurface(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_imageSource_set")] - public static extern void CSharp_AkReflectionPathInfo_imageSource_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_imageSource_get")] - public static extern UnityEngine.Vector3 CSharp_AkReflectionPathInfo_imageSource_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numPathPoints_set")] - public static extern void CSharp_AkReflectionPathInfo_numPathPoints_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numPathPoints_get")] - public static extern uint CSharp_AkReflectionPathInfo_numPathPoints_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numReflections_set")] - public static extern void CSharp_AkReflectionPathInfo_numReflections_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numReflections_get")] - public static extern uint CSharp_AkReflectionPathInfo_numReflections_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_level_set")] - public static extern void CSharp_AkReflectionPathInfo_level_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_level_get")] - public static extern float CSharp_AkReflectionPathInfo_level_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_isOccluded_set")] - public static extern void CSharp_AkReflectionPathInfo_isOccluded_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_isOccluded_get")] - public static extern bool CSharp_AkReflectionPathInfo_isOccluded_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetSizeOf")] - public static extern int CSharp_AkReflectionPathInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetPathPoint")] - public static extern UnityEngine.Vector3 CSharp_AkReflectionPathInfo_GetPathPoint(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetAcousticSurface")] - public static extern global::System.IntPtr CSharp_AkReflectionPathInfo_GetAcousticSurface(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetDiffraction")] - public static extern float CSharp_AkReflectionPathInfo_GetDiffraction(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_Clone")] - public static extern void CSharp_AkReflectionPathInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkReflectionPathInfo")] - public static extern global::System.IntPtr CSharp_new_AkReflectionPathInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkReflectionPathInfo")] - public static extern void CSharp_delete_AkReflectionPathInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_emitterPos_set")] - public static extern void CSharp_AkDiffractionPathInfo_emitterPos_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_emitterPos_get")] - public static extern UnityEngine.Vector3 CSharp_AkDiffractionPathInfo_emitterPos_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_virtualPos_set")] - public static extern void CSharp_AkDiffractionPathInfo_virtualPos_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_virtualPos_get")] - public static extern global::System.IntPtr CSharp_AkDiffractionPathInfo_virtualPos_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_nodeCount_set")] - public static extern void CSharp_AkDiffractionPathInfo_nodeCount_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_nodeCount_get")] - public static extern uint CSharp_AkDiffractionPathInfo_nodeCount_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_diffraction_set")] - public static extern void CSharp_AkDiffractionPathInfo_diffraction_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_diffraction_get")] - public static extern float CSharp_AkDiffractionPathInfo_diffraction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_transmissionLoss_set")] - public static extern void CSharp_AkDiffractionPathInfo_transmissionLoss_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_transmissionLoss_get")] - public static extern float CSharp_AkDiffractionPathInfo_transmissionLoss_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_totLength_set")] - public static extern void CSharp_AkDiffractionPathInfo_totLength_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_totLength_get")] - public static extern float CSharp_AkDiffractionPathInfo_totLength_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_obstructionValue_set")] - public static extern void CSharp_AkDiffractionPathInfo_obstructionValue_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_obstructionValue_get")] - public static extern float CSharp_AkDiffractionPathInfo_obstructionValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetSizeOf")] - public static extern int CSharp_AkDiffractionPathInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetNodes")] - public static extern UnityEngine.Vector3 CSharp_AkDiffractionPathInfo_GetNodes(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetAngles")] - public static extern float CSharp_AkDiffractionPathInfo_GetAngles(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetPortals")] - public static extern ulong CSharp_AkDiffractionPathInfo_GetPortals(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetRooms")] - public static extern ulong CSharp_AkDiffractionPathInfo_GetRooms(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_Clone")] - public static extern void CSharp_AkDiffractionPathInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDiffractionPathInfo")] - public static extern global::System.IntPtr CSharp_new_AkDiffractionPathInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDiffractionPathInfo")] - public static extern void CSharp_delete_AkDiffractionPathInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRoomParams__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkRoomParams__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRoomParams__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkRoomParams__SWIG_1(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Front_set")] - public static extern void CSharp_AkRoomParams_Front_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Front_get")] - public static extern UnityEngine.Vector3 CSharp_AkRoomParams_Front_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Up_set")] - public static extern void CSharp_AkRoomParams_Up_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Up_get")] - public static extern UnityEngine.Vector3 CSharp_AkRoomParams_Up_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbAuxBus_set")] - public static extern void CSharp_AkRoomParams_ReverbAuxBus_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbAuxBus_get")] - public static extern uint CSharp_AkRoomParams_ReverbAuxBus_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbLevel_set")] - public static extern void CSharp_AkRoomParams_ReverbLevel_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbLevel_get")] - public static extern float CSharp_AkRoomParams_ReverbLevel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_TransmissionLoss_set")] - public static extern void CSharp_AkRoomParams_TransmissionLoss_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_TransmissionLoss_get")] - public static extern float CSharp_AkRoomParams_TransmissionLoss_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_set")] - public static extern void CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_get")] - public static extern float CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_KeepRegistered_set")] - public static extern void CSharp_AkRoomParams_RoomGameObj_KeepRegistered_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_KeepRegistered_get")] - public static extern bool CSharp_AkRoomParams_RoomGameObj_KeepRegistered_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkRoomParams")] - public static extern void CSharp_delete_AkRoomParams(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectRadius")] - public static extern int CSharp_SetGameObjectRadius(ulong jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetImageSource")] - public static extern int CSharp_SetImageSource(uint jarg1, global::System.IntPtr jarg2, uint jarg3, ulong jarg4, ulong jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveImageSource")] - public static extern int CSharp_RemoveImageSource(uint jarg1, uint jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearImageSources__SWIG_0")] - public static extern int CSharp_ClearImageSources__SWIG_0(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearImageSources__SWIG_1")] - public static extern int CSharp_ClearImageSources__SWIG_1(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearImageSources__SWIG_2")] - public static extern int CSharp_ClearImageSources__SWIG_2(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveGeometry")] - public static extern int CSharp_RemoveGeometry(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryReflectionPaths")] - public static extern int CSharp_QueryReflectionPaths(ulong jarg1, uint jarg2, ref UnityEngine.Vector3 jarg3, ref UnityEngine.Vector3 jarg4, global::System.IntPtr jarg5, out uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveRoom")] - public static extern int CSharp_RemoveRoom(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemovePortal")] - public static extern int CSharp_RemovePortal(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectInRoom")] - public static extern int CSharp_SetGameObjectInRoom(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetReflectionsOrder")] - public static extern int CSharp_SetReflectionsOrder(uint jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetNumberOfPrimaryRays")] - public static extern int CSharp_SetNumberOfPrimaryRays(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetEarlyReflectionsAuxSend")] - public static extern int CSharp_SetEarlyReflectionsAuxSend(ulong jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetEarlyReflectionsVolume")] - public static extern int CSharp_SetEarlyReflectionsVolume(ulong jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPortalObstructionAndOcclusion")] - public static extern int CSharp_SetPortalObstructionAndOcclusion(ulong jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectToPortalObstruction")] - public static extern int CSharp_SetGameObjectToPortalObstruction(ulong jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPortalToPortalObstruction")] - public static extern int CSharp_SetPortalToPortalObstruction(ulong jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryWetDiffraction")] - public static extern int CSharp_QueryWetDiffraction(ulong jarg1, out float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryDiffractionPaths")] - public static extern int CSharp_QueryDiffractionPaths(ulong jarg1, uint jarg2, ref UnityEngine.Vector3 jarg3, ref UnityEngine.Vector3 jarg4, global::System.IntPtr jarg5, out uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetStochasticEngine")] - public static extern int CSharp_ResetStochasticEngine(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadLEngine_set")] - public static extern void CSharp_AkPlatformInitSettings_threadLEngine_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadLEngine_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadLEngine_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadOutputMgr_set")] - public static extern void CSharp_AkPlatformInitSettings_threadOutputMgr_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadOutputMgr_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadOutputMgr_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadBankManager_set")] - public static extern void CSharp_AkPlatformInitSettings_threadBankManager_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadBankManager_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadBankManager_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadMonitor_set")] - public static extern void CSharp_AkPlatformInitSettings_threadMonitor_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadMonitor_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadMonitor_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uSampleRate_set")] - public static extern void CSharp_AkPlatformInitSettings_uSampleRate_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uSampleRate_get")] - public static extern uint CSharp_AkPlatformInitSettings_uSampleRate_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set")] - public static extern void CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get")] - public static extern ushort CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlatformInitSettings")] - public static extern void CSharp_delete_AkPlatformInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkStreamMgrSettings")] - public static extern void CSharp_delete_AkStreamMgrSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_pIOMemory_set")] - public static extern void CSharp_AkDeviceSettings_pIOMemory_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_pIOMemory_get")] - public static extern global::System.IntPtr CSharp_AkDeviceSettings_pIOMemory_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemorySize_set")] - public static extern void CSharp_AkDeviceSettings_uIOMemorySize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemorySize_get")] - public static extern uint CSharp_AkDeviceSettings_uIOMemorySize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemoryAlignment_set")] - public static extern void CSharp_AkDeviceSettings_uIOMemoryAlignment_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemoryAlignment_get")] - public static extern uint CSharp_AkDeviceSettings_uIOMemoryAlignment_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_ePoolAttributes_set")] - public static extern void CSharp_AkDeviceSettings_ePoolAttributes_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_ePoolAttributes_get")] - public static extern uint CSharp_AkDeviceSettings_ePoolAttributes_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uGranularity_set")] - public static extern void CSharp_AkDeviceSettings_uGranularity_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uGranularity_get")] - public static extern uint CSharp_AkDeviceSettings_uGranularity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uSchedulerTypeFlags_set")] - public static extern void CSharp_AkDeviceSettings_uSchedulerTypeFlags_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uSchedulerTypeFlags_get")] - public static extern uint CSharp_AkDeviceSettings_uSchedulerTypeFlags_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_threadProperties_set")] - public static extern void CSharp_AkDeviceSettings_threadProperties_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_threadProperties_get")] - public static extern global::System.IntPtr CSharp_AkDeviceSettings_threadProperties_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_set")] - public static extern void CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_get")] - public static extern float CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxConcurrentIO_set")] - public static extern void CSharp_AkDeviceSettings_uMaxConcurrentIO_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxConcurrentIO_get")] - public static extern uint CSharp_AkDeviceSettings_uMaxConcurrentIO_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_bUseStreamCache_set")] - public static extern void CSharp_AkDeviceSettings_bUseStreamCache_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_bUseStreamCache_get")] - public static extern bool CSharp_AkDeviceSettings_bUseStreamCache_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxCachePinnedBytes_set")] - public static extern void CSharp_AkDeviceSettings_uMaxCachePinnedBytes_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxCachePinnedBytes_get")] - public static extern uint CSharp_AkDeviceSettings_uMaxCachePinnedBytes_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDeviceSettings")] - public static extern void CSharp_delete_AkDeviceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_nPriority_set")] - public static extern void CSharp_AkThreadProperties_nPriority_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_nPriority_get")] - public static extern int CSharp_AkThreadProperties_nPriority_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_uStackSize_set")] - public static extern void CSharp_AkThreadProperties_uStackSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_uStackSize_get")] - public static extern uint CSharp_AkThreadProperties_uStackSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_uSchedPolicy_set")] - public static extern void CSharp_AkThreadProperties_uSchedPolicy_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_uSchedPolicy_get")] - public static extern int CSharp_AkThreadProperties_uSchedPolicy_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_dwAffinityMask_set")] - public static extern void CSharp_AkThreadProperties_dwAffinityMask_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_dwAffinityMask_get")] - public static extern uint CSharp_AkThreadProperties_dwAffinityMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkThreadProperties")] - public static extern global::System.IntPtr CSharp_new_AkThreadProperties(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkThreadProperties")] - public static extern void CSharp_delete_AkThreadProperties(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetErrorLogger__SWIG_0")] - public static extern void CSharp_SetErrorLogger__SWIG_0(AkLogger.ErrorLoggerInteropDelegate jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetErrorLogger__SWIG_1")] - public static extern void CSharp_SetErrorLogger__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetAudioInputCallbacks")] - public static extern void CSharp_SetAudioInputCallbacks(AkAudioInputManager.AudioSamplesInteropDelegate jarg1, AkAudioInputManager.AudioFormatInteropDelegate jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkUnityPlatformSpecificSettings")] - public static extern void CSharp_delete_AkUnityPlatformSpecificSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkCommunicationSettings")] - public static extern global::System.IntPtr CSharp_new_AkCommunicationSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uPoolSize_set")] - public static extern void CSharp_AkCommunicationSettings_uPoolSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uPoolSize_get")] - public static extern uint CSharp_AkCommunicationSettings_uPoolSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_set")] - public static extern void CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_get")] - public static extern ushort CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uCommandPort_set")] - public static extern void CSharp_AkCommunicationSettings_uCommandPort_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uCommandPort_get")] - public static extern ushort CSharp_AkCommunicationSettings_uCommandPort_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uNotificationPort_set")] - public static extern void CSharp_AkCommunicationSettings_uNotificationPort_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uNotificationPort_get")] - public static extern ushort CSharp_AkCommunicationSettings_uNotificationPort_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_commSystem_set")] - public static extern void CSharp_AkCommunicationSettings_commSystem_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_commSystem_get")] - public static extern int CSharp_AkCommunicationSettings_commSystem_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_bInitSystemLib_set")] - public static extern void CSharp_AkCommunicationSettings_bInitSystemLib_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_bInitSystemLib_get")] - public static extern bool CSharp_AkCommunicationSettings_bInitSystemLib_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_szAppNetworkName_set")] - public static extern void CSharp_AkCommunicationSettings_szAppNetworkName_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_szAppNetworkName_get")] - public static extern global::System.IntPtr CSharp_AkCommunicationSettings_szAppNetworkName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkCommunicationSettings")] - public static extern void CSharp_delete_AkCommunicationSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkInitializationSettings")] - public static extern global::System.IntPtr CSharp_new_AkInitializationSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkInitializationSettings")] - public static extern void CSharp_delete_AkInitializationSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_streamMgrSettings_set")] - public static extern void CSharp_AkInitializationSettings_streamMgrSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_streamMgrSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_streamMgrSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_deviceSettings_set")] - public static extern void CSharp_AkInitializationSettings_deviceSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_deviceSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_deviceSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_initSettings_set")] - public static extern void CSharp_AkInitializationSettings_initSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_initSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_initSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_platformSettings_set")] - public static extern void CSharp_AkInitializationSettings_platformSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_platformSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_platformSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_musicSettings_set")] - public static extern void CSharp_AkInitializationSettings_musicSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_musicSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_musicSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_unityPlatformSpecificSettings_set")] - public static extern void CSharp_AkInitializationSettings_unityPlatformSpecificSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_unityPlatformSpecificSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_unityPlatformSpecificSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_useAsyncOpen_set")] - public static extern void CSharp_AkInitializationSettings_useAsyncOpen_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_useAsyncOpen_get")] - public static extern bool CSharp_AkInitializationSettings_useAsyncOpen_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkExternalSourceInfo")] - public static extern void CSharp_delete_AkExternalSourceInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_1(global::System.IntPtr jarg1, uint jarg2, uint jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_2")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_3")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_3(uint jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_Clear")] - public static extern void CSharp_AkExternalSourceInfo_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_Clone")] - public static extern void CSharp_AkExternalSourceInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_GetSizeOf")] - public static extern int CSharp_AkExternalSourceInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_iExternalSrcCookie_set")] - public static extern void CSharp_AkExternalSourceInfo_iExternalSrcCookie_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_iExternalSrcCookie_get")] - public static extern uint CSharp_AkExternalSourceInfo_iExternalSrcCookie_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idCodec_set")] - public static extern void CSharp_AkExternalSourceInfo_idCodec_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idCodec_get")] - public static extern uint CSharp_AkExternalSourceInfo_idCodec_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_szFile_set")] - public static extern void CSharp_AkExternalSourceInfo_szFile_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_szFile_get")] - public static extern global::System.IntPtr CSharp_AkExternalSourceInfo_szFile_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_pInMemory_set")] - public static extern void CSharp_AkExternalSourceInfo_pInMemory_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_pInMemory_get")] - public static extern global::System.IntPtr CSharp_AkExternalSourceInfo_pInMemory_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_uiMemorySize_set")] - public static extern void CSharp_AkExternalSourceInfo_uiMemorySize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_uiMemorySize_get")] - public static extern uint CSharp_AkExternalSourceInfo_uiMemorySize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idFile_set")] - public static extern void CSharp_AkExternalSourceInfo_idFile_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idFile_get")] - public static extern uint CSharp_AkExternalSourceInfo_idFile_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Init")] - public static extern int CSharp_Init(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_InitSpatialAudio")] - public static extern int CSharp_InitSpatialAudio(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_InitCommunication")] - public static extern int CSharp_InitCommunication(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Term")] - public static extern void CSharp_Term(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterGameObjInternal")] - public static extern int CSharp_RegisterGameObjInternal(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnregisterGameObjInternal")] - public static extern int CSharp_UnregisterGameObjInternal(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterGameObjInternal_WithName")] - public static extern int CSharp_RegisterGameObjInternal_WithName(ulong jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBasePath")] - public static extern int CSharp_SetBasePath([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetCurrentLanguage")] - public static extern int CSharp_SetCurrentLanguage([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadFilePackage")] - public static extern int CSharp_LoadFilePackage([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddBasePath")] - public static extern int CSharp_AddBasePath([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameName")] - public static extern int CSharp_SetGameName([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetDecodedBankPath")] - public static extern int CSharp_SetDecodedBankPath([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadAndDecodeBank")] - public static extern int CSharp_LoadAndDecodeBank([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, bool jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadAndDecodeBankFromMemory")] - public static extern int CSharp_LoadAndDecodeBankFromMemory(global::System.IntPtr jarg1, uint jarg2, bool jarg3, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg4, bool jarg5, out uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_0")] - public static extern uint CSharp_PostEventOnRoom__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_1")] - public static extern uint CSharp_PostEventOnRoom__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_2")] - public static extern uint CSharp_PostEventOnRoom__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_3")] - public static extern uint CSharp_PostEventOnRoom__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetCurrentLanguage")] - public static extern global::System.IntPtr CSharp_GetCurrentLanguage(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadFilePackage")] - public static extern int CSharp_UnloadFilePackage(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadAllFilePackages")] - public static extern int CSharp_UnloadAllFilePackages(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetObjectPosition")] - public static extern int CSharp_SetObjectPosition(ulong jarg1, UnityEngine.Vector3 jarg2, UnityEngine.Vector3 jarg3, UnityEngine.Vector3 jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourceMultiplePlayPositions__SWIG_0")] - public static extern int CSharp_GetSourceMultiplePlayPositions__SWIG_0(uint jarg1, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg3, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]int[] jarg4, ref uint jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourceMultiplePlayPositions__SWIG_1")] - public static extern int CSharp_GetSourceMultiplePlayPositions__SWIG_1(uint jarg1, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg3, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]int[] jarg4, ref uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetListeners")] - public static extern int CSharp_SetListeners(ulong jarg1, ulong[] jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetDefaultListeners")] - public static extern int CSharp_SetDefaultListeners(ulong[] jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_0")] - public static extern int CSharp_AddOutput__SWIG_0(global::System.IntPtr jarg1, out ulong jarg2, ulong[] jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_1")] - public static extern int CSharp_AddOutput__SWIG_1(global::System.IntPtr jarg1, out ulong jarg2, ulong[] jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_2")] - public static extern int CSharp_AddOutput__SWIG_2(global::System.IntPtr jarg1, out ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_3")] - public static extern int CSharp_AddOutput__SWIG_3(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultStreamSettings")] - public static extern void CSharp_GetDefaultStreamSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultDeviceSettings")] - public static extern void CSharp_GetDefaultDeviceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultMusicSettings")] - public static extern void CSharp_GetDefaultMusicSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultInitSettings")] - public static extern void CSharp_GetDefaultInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultPlatformInitSettings")] - public static extern void CSharp_GetDefaultPlatformInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetMajorMinorVersion")] - public static extern uint CSharp_GetMajorMinorVersion(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSubminorBuildVersion")] - public static extern uint CSharp_GetSubminorBuildVersion(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StartResourceMonitoring")] - public static extern void CSharp_StartResourceMonitoring(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopResourceMonitoring")] - public static extern void CSharp_StopResourceMonitoring(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetResourceMonitorDataSummary")] - public static extern void CSharp_GetResourceMonitorDataSummary(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRoomPortal")] - public static extern int CSharp_SetRoomPortal(ulong jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, bool jarg4, ulong jarg5, ulong jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRoom")] - public static extern int CSharp_SetRoom(ulong jarg1, global::System.IntPtr jarg2, ulong jarg3, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterSpatialAudioListener")] - public static extern int CSharp_RegisterSpatialAudioListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnregisterSpatialAudioListener")] - public static extern int CSharp_UnregisterSpatialAudioListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGeometry")] - public static extern int CSharp_SetGeometry(ulong jarg1, global::System.IntPtr jarg2, uint jarg3, UnityEngine.Vector3[] jarg4, uint jarg5, global::System.IntPtr jarg6, uint jarg7, ulong jarg8, bool jarg9, bool jarg10, bool jarg11); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_4")] - public static extern uint CSharp_PostEventOnRoom__SWIG_4(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_5")] - public static extern uint CSharp_PostEventOnRoom__SWIG_5(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_6")] - public static extern uint CSharp_PostEventOnRoom__SWIG_6(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_7")] - public static extern uint CSharp_PostEventOnRoom__SWIG_7(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkPlaylist_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMIDIPost_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkEventCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkEventCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMIDIEventCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMarkerCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkDurationCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMusicSyncCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMusicPlaylistCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1);} -#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEnginePINVOKE_Mac.cs.meta b/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEnginePINVOKE_Mac.cs.meta deleted file mode 100644 index c463727dc..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEnginePINVOKE_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fd9a0f70dabeaf4449eb33e55564fa16 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEngine_Mac.cs b/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEngine_Mac.cs deleted file mode 100644 index decd95707..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEngine_Mac.cs +++ /dev/null @@ -1,1433 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public partial class AkSoundEngine { - public static uint AK_INVALID_PIPELINE_ID { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_PIPELINE_ID_get(); } - } - - public static ulong AK_INVALID_AUDIO_OBJECT_ID { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_AUDIO_OBJECT_ID_get(); } - } - - public static uint AK_SOUNDBANK_VERSION { get { return AkSoundEnginePINVOKE.CSharp_AK_SOUNDBANK_VERSION_get(); } - } - - public static ushort AK_INT { get { return AkSoundEnginePINVOKE.CSharp_AK_INT_get(); } - } - - public static ushort AK_FLOAT { get { return AkSoundEnginePINVOKE.CSharp_AK_FLOAT_get(); } - } - - public static byte AK_INTERLEAVED { get { return AkSoundEnginePINVOKE.CSharp_AK_INTERLEAVED_get(); } - } - - public static byte AK_NONINTERLEAVED { get { return AkSoundEnginePINVOKE.CSharp_AK_NONINTERLEAVED_get(); } - } - - public static uint AK_LE_NATIVE_BITSPERSAMPLE { get { return AkSoundEnginePINVOKE.CSharp_AK_LE_NATIVE_BITSPERSAMPLE_get(); } - } - - public static uint AK_LE_NATIVE_SAMPLETYPE { get { return AkSoundEnginePINVOKE.CSharp_AK_LE_NATIVE_SAMPLETYPE_get(); } - } - - public static uint AK_LE_NATIVE_INTERLEAVE { get { return AkSoundEnginePINVOKE.CSharp_AK_LE_NATIVE_INTERLEAVE_get(); } - } - - public static uint DynamicSequenceOpen(ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, AkDynamicSequenceType in_eDynamicSequenceType) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_0(in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_eDynamicSequenceType); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint DynamicSequenceOpen(ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_1(in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint DynamicSequenceOpen(ulong in_gameObjectID) { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_2(in_gameObjectID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static AKRESULT DynamicSequenceClose(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceClose(in_playingID); } - - public static AKRESULT DynamicSequencePlay(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePlay__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequencePlay(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePlay__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequencePlay(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePlay__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequencePause(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePause__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequencePause(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePause__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequencePause(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePause__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequenceResume(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceResume__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequenceResume(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceResume__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequenceResume(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceResume__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequenceStop(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceStop__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequenceStop(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceStop__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequenceStop(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceStop__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequenceBreak(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceBreak(in_playingID); } - - public static AKRESULT Seek(uint in_playingID, int in_iPosition, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Seek__SWIG_0(in_playingID, in_iPosition, in_bSeekToNearestMarker); } - - public static AKRESULT Seek(uint in_playingID, float in_fPercent, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Seek__SWIG_1(in_playingID, in_fPercent, in_bSeekToNearestMarker); } - - public static AKRESULT DynamicSequenceGetPauseTimes(uint in_playingID, out uint out_uTime, out uint out_uDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceGetPauseTimes(in_playingID, out out_uTime, out out_uDuration); } - - public static AkPlaylist DynamicSequenceLockPlaylist(uint in_playingID) { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_DynamicSequenceLockPlaylist(in_playingID); - AkPlaylist ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylist(cPtr, false); - return ret; - } - - public static AKRESULT DynamicSequenceUnlockPlaylist(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceUnlockPlaylist(in_playingID); } - - public static bool IsInitialized() { return AkSoundEnginePINVOKE.CSharp_IsInitialized(); } - - public static AKRESULT GetAudioSettings(AkAudioSettings out_audioSettings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetAudioSettings(AkAudioSettings.getCPtr(out_audioSettings)); } - - public static AkChannelConfig GetSpeakerConfiguration(ulong in_idOutput) { - AkChannelConfig ret = new AkChannelConfig(AkSoundEnginePINVOKE.CSharp_GetSpeakerConfiguration__SWIG_0(in_idOutput), true); - return ret; - } - - public static AkChannelConfig GetSpeakerConfiguration() { - AkChannelConfig ret = new AkChannelConfig(AkSoundEnginePINVOKE.CSharp_GetSpeakerConfiguration__SWIG_1(), true); - return ret; - } - - public static AKRESULT GetOutputDeviceConfiguration(ulong in_idOutput, AkChannelConfig io_channelConfig, Ak3DAudioSinkCapabilities io_capabilities) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetOutputDeviceConfiguration(in_idOutput, AkChannelConfig.getCPtr(io_channelConfig), Ak3DAudioSinkCapabilities.getCPtr(io_capabilities)); } - - public static AKRESULT GetPanningRule(out int out_ePanningRule, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPanningRule__SWIG_0(out out_ePanningRule, in_idOutput); } - - public static AKRESULT GetPanningRule(out int out_ePanningRule) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPanningRule__SWIG_1(out out_ePanningRule); } - - public static AKRESULT SetPanningRule(AkPanningRule in_ePanningRule, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPanningRule__SWIG_0((int)in_ePanningRule, in_idOutput); } - - public static AKRESULT SetPanningRule(AkPanningRule in_ePanningRule) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPanningRule__SWIG_1((int)in_ePanningRule); } - - public static AKRESULT GetSpeakerAngles(float[] io_pfSpeakerAngles, ref uint io_uNumAngles, out float out_fHeightAngle, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSpeakerAngles__SWIG_0(io_pfSpeakerAngles, ref io_uNumAngles, out out_fHeightAngle, in_idOutput); } - - public static AKRESULT GetSpeakerAngles(float[] io_pfSpeakerAngles, ref uint io_uNumAngles, out float out_fHeightAngle) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSpeakerAngles__SWIG_1(io_pfSpeakerAngles, ref io_uNumAngles, out out_fHeightAngle); } - - public static AKRESULT SetSpeakerAngles(float[] in_pfSpeakerAngles, uint in_uNumAngles, float in_fHeightAngle, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSpeakerAngles__SWIG_0(in_pfSpeakerAngles, in_uNumAngles, in_fHeightAngle, in_idOutput); } - - public static AKRESULT SetSpeakerAngles(float[] in_pfSpeakerAngles, uint in_uNumAngles, float in_fHeightAngle) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSpeakerAngles__SWIG_1(in_pfSpeakerAngles, in_uNumAngles, in_fHeightAngle); } - - public static AKRESULT SetVolumeThreshold(float in_fVolumeThresholdDB) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetVolumeThreshold(in_fVolumeThresholdDB); } - - public static AKRESULT SetMaxNumVoicesLimit(ushort in_maxNumberVoices) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMaxNumVoicesLimit(in_maxNumberVoices); } - - public static AKRESULT RenderAudio(bool in_bAllowSyncRender) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RenderAudio__SWIG_0(in_bAllowSyncRender); } - - public static AKRESULT RenderAudio() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RenderAudio__SWIG_1(); } - - public static AKRESULT RegisterPluginDLL(string in_DllName, string in_DllPath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterPluginDLL__SWIG_0(in_DllName, in_DllPath); } - - public static AKRESULT RegisterPluginDLL(string in_DllName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterPluginDLL__SWIG_1(in_DllName); } - - public static uint GetIDFromString(string in_pszString) { return AkSoundEnginePINVOKE.CSharp_GetIDFromString__SWIG_0(in_pszString); } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_0(in_eventID, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_1(in_eventID, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_2(in_eventID, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_3(in_eventID, in_gameObjectID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_4(in_pszEventName, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_5(in_pszEventName, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_6(in_pszEventName, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_7(in_pszEventName, in_gameObjectID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_0(in_eventID, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_1(in_eventID, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_2(in_eventID, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_3(in_eventID, (int)in_ActionType, in_gameObjectID); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_4(in_eventID, (int)in_ActionType); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_5(in_pszEventName, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_6(in_pszEventName, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_7(in_pszEventName, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_8(in_pszEventName, (int)in_ActionType, in_gameObjectID); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_9(in_pszEventName, (int)in_ActionType); } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_playingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_0(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_playingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_1(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts, bool in_bAbsoluteOffsets) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_2(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts, in_bAbsoluteOffsets); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_3(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_0(in_eventID, in_gameObjectID, in_playingID); } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_1(in_eventID, in_gameObjectID); } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_2(in_eventID); } - - public static AKRESULT StopMIDIOnEvent() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_3(); } - - public static AKRESULT PinEventInStreamCache(uint in_eventID, sbyte in_uActivePriority, sbyte in_uInactivePriority) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PinEventInStreamCache__SWIG_0(in_eventID, in_uActivePriority, in_uInactivePriority); } - - public static AKRESULT PinEventInStreamCache(string in_pszEventName, sbyte in_uActivePriority, sbyte in_uInactivePriority) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PinEventInStreamCache__SWIG_1(in_pszEventName, in_uActivePriority, in_uInactivePriority); } - - public static AKRESULT UnpinEventInStreamCache(uint in_eventID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnpinEventInStreamCache__SWIG_0(in_eventID); } - - public static AKRESULT UnpinEventInStreamCache(string in_pszEventName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnpinEventInStreamCache__SWIG_1(in_pszEventName); } - - public static AKRESULT GetBufferStatusForPinnedEvent(uint in_eventID, out float out_fPercentBuffered, out int out_bCachePinnedMemoryFull) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetBufferStatusForPinnedEvent__SWIG_0(in_eventID, out out_fPercentBuffered, out out_bCachePinnedMemoryFull); } - - public static AKRESULT GetBufferStatusForPinnedEvent(string in_pszEventName, out float out_fPercentBuffered, out int out_bCachePinnedMemoryFull) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetBufferStatusForPinnedEvent__SWIG_1(in_pszEventName, out out_fPercentBuffered, out out_bCachePinnedMemoryFull); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_0(in_eventID, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_1(in_eventID, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, int in_iPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_2(in_eventID, in_gameObjectID, in_iPosition); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_3(in_pszEventName, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_4(in_pszEventName, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, int in_iPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_5(in_pszEventName, in_gameObjectID, in_iPosition); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_9(in_eventID, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_10(in_eventID, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, float in_fPercent) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_11(in_eventID, in_gameObjectID, in_fPercent); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_12(in_pszEventName, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_13(in_pszEventName, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, float in_fPercent) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_14(in_pszEventName, in_gameObjectID, in_fPercent); } - - public static void CancelEventCallbackCookie(object in_pCookie) { - AkCallbackManager.RemoveEventCallbackCookie(in_pCookie); - } - - public static void CancelEventCallbackGameObject(ulong in_gameObjectID) { AkSoundEnginePINVOKE.CSharp_CancelEventCallbackGameObject(in_gameObjectID); } - - public static void CancelEventCallback(uint in_playingID) { - AkCallbackManager.RemoveEventCallback(in_playingID); - } - - public static AKRESULT GetSourcePlayPosition(uint in_PlayingID, out int out_puPosition, bool in_bExtrapolate) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourcePlayPosition__SWIG_0(in_PlayingID, out out_puPosition, in_bExtrapolate); } - - public static AKRESULT GetSourcePlayPosition(uint in_PlayingID, out int out_puPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourcePlayPosition__SWIG_1(in_PlayingID, out out_puPosition); } - - public static AKRESULT GetSourceStreamBuffering(uint in_PlayingID, out int out_buffering, out int out_bIsBuffering) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourceStreamBuffering(in_PlayingID, out out_buffering, out out_bIsBuffering); } - - public static void StopAll(ulong in_gameObjectID) { AkSoundEnginePINVOKE.CSharp_StopAll__SWIG_0(in_gameObjectID); } - - public static void StopAll() { AkSoundEnginePINVOKE.CSharp_StopAll__SWIG_1(); } - - public static void StopPlayingID(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { AkSoundEnginePINVOKE.CSharp_StopPlayingID__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static void StopPlayingID(uint in_playingID, int in_uTransitionDuration) { AkSoundEnginePINVOKE.CSharp_StopPlayingID__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static void StopPlayingID(uint in_playingID) { AkSoundEnginePINVOKE.CSharp_StopPlayingID__SWIG_2(in_playingID); } - - public static void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { AkSoundEnginePINVOKE.CSharp_ExecuteActionOnPlayingID__SWIG_0((int)in_ActionType, in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, uint in_playingID, int in_uTransitionDuration) { AkSoundEnginePINVOKE.CSharp_ExecuteActionOnPlayingID__SWIG_1((int)in_ActionType, in_playingID, in_uTransitionDuration); } - - public static void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, uint in_playingID) { AkSoundEnginePINVOKE.CSharp_ExecuteActionOnPlayingID__SWIG_2((int)in_ActionType, in_playingID); } - - public static void SetRandomSeed(uint in_uSeed) { AkSoundEnginePINVOKE.CSharp_SetRandomSeed(in_uSeed); } - - public static void MuteBackgroundMusic(bool in_bMute) { AkSoundEnginePINVOKE.CSharp_MuteBackgroundMusic(in_bMute); } - - public static bool GetBackgroundMusicMute() { return AkSoundEnginePINVOKE.CSharp_GetBackgroundMusicMute(); } - - public static AKRESULT SendPluginCustomGameData(uint in_busID, ulong in_busObjectID, AkPluginType in_eType, uint in_uCompanyID, uint in_uPluginID, global::System.IntPtr in_pData, uint in_uSizeInBytes) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SendPluginCustomGameData(in_busID, in_busObjectID, (int)in_eType, in_uCompanyID, in_uPluginID, in_pData, in_uSizeInBytes); } - - public static AKRESULT UnregisterAllGameObj() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterAllGameObj(); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions, AkMultiPositionType in_eMultiPositionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_0(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions, (int)in_eMultiPositionType); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_1(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkChannelEmitterArray in_pPositions, ushort in_NumPositions, AkMultiPositionType in_eMultiPositionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_2(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions, (int)in_eMultiPositionType); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkChannelEmitterArray in_pPositions, ushort in_NumPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_3(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions); } - - public static AKRESULT SetScalingFactor(ulong in_GameObjectID, float in_fAttenuationScalingFactor) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetScalingFactor(in_GameObjectID, in_fAttenuationScalingFactor); } - - public static AKRESULT ClearBanks() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearBanks(); } - - public static AKRESULT SetBankLoadIOSettings(float in_fThroughput, sbyte in_priority) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBankLoadIOSettings(in_fThroughput, in_priority); } - - public static AKRESULT LoadBank(string in_pszString, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_0(in_pszString, out out_bankID); } - - public static AKRESULT LoadBank(uint in_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_2(in_bankID); } - - public static AKRESULT LoadBankMemoryView(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryView__SWIG_0(in_pInMemoryBankPtr, in_uInMemoryBankSize, out out_bankID); } - - public static AKRESULT LoadBankMemoryCopy(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryCopy__SWIG_0(in_pInMemoryBankPtr, in_uInMemoryBankSize, out out_bankID); } - - public static AKRESULT LoadBank(string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_3(in_pszString, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, out out_bankID); } - } - - public static AKRESULT LoadBank(uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_5(in_bankID, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT LoadBankMemoryView(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryView__SWIG_1(in_pInMemoryBankPtr, in_uInMemoryBankSize, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, out out_bankID); } - } - - public static AKRESULT LoadBankMemoryCopy(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryCopy__SWIG_1(in_pInMemoryBankPtr, in_uInMemoryBankSize, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, out out_bankID); } - } - - public static AKRESULT UnloadBank(string in_pszString, global::System.IntPtr in_pInMemoryBankPtr) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_0(in_pszString, in_pInMemoryBankPtr); } - - public static AKRESULT UnloadBank(uint in_bankID, global::System.IntPtr in_pInMemoryBankPtr) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_2(in_bankID, in_pInMemoryBankPtr); } - - public static AKRESULT UnloadBank(string in_pszString, global::System.IntPtr in_pInMemoryBankPtr, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_3(in_pszString, in_pInMemoryBankPtr, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT UnloadBank(uint in_bankID, global::System.IntPtr in_pInMemoryBankPtr, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_5(in_bankID, in_pInMemoryBankPtr, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static void CancelBankCallbackCookie(object in_pCookie) { - AkCallbackManager.RemoveBankCallback(in_pCookie); - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString, AkBankContent in_uFlags) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_0((int)in_PreparationType, in_pszString, (int)in_uFlags); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_1((int)in_PreparationType, in_pszString); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID, AkBankContent in_uFlags) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_4((int)in_PreparationType, in_bankID, (int)in_uFlags); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_5((int)in_PreparationType, in_bankID); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, AkBankContent in_uFlags) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_6((int)in_PreparationType, in_pszString, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_uFlags); } - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_7((int)in_PreparationType, in_pszString, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, AkBankContent in_uFlags) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_10((int)in_PreparationType, in_bankID, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_uFlags); } - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_11((int)in_PreparationType, in_bankID, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT ClearPreparedEvents() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearPreparedEvents(); } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, string [] in_ppszString, uint in_uNumEvent) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszString) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszString.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszString) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_0((int)in_PreparationType, pMem, in_uNumEvent); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, uint[] in_pEventID, uint in_uNumEvent) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_1((int)in_PreparationType, in_pEventID, in_uNumEvent); } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, string [] in_ppszString, uint in_uNumEvent, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszString) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszString.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszString) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_2((int)in_PreparationType, pMem, in_uNumEvent, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, uint[] in_pEventID, uint in_uNumEvent, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_3((int)in_PreparationType, in_pEventID, in_uNumEvent, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT SetMedia(AkSourceSettingsArray in_pSourceSettings, uint in_uNumSourceSettings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMedia(in_pSourceSettings.GetBuffer(), in_uNumSourceSettings); } - - public static AKRESULT UnsetMedia(AkSourceSettingsArray in_pSourceSettings, uint in_uNumSourceSettings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnsetMedia(in_pSourceSettings.GetBuffer(), in_uNumSourceSettings); } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, string in_pszGroupName, string [] in_ppszGameSyncName, uint in_uNumGameSyncs) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszGameSyncName) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszGameSyncName.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszGameSyncName) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_0((int)in_PreparationType, (int)in_eGameSyncType, in_pszGroupName, pMem, in_uNumGameSyncs); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, uint in_GroupID, uint[] in_paGameSyncID, uint in_uNumGameSyncs) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_1((int)in_PreparationType, (int)in_eGameSyncType, in_GroupID, in_paGameSyncID, in_uNumGameSyncs); } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, string in_pszGroupName, string [] in_ppszGameSyncName, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszGameSyncName) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszGameSyncName.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszGameSyncName) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_2((int)in_PreparationType, (int)in_eGameSyncType, in_pszGroupName, pMem, in_uNumGameSyncs, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, uint in_GroupID, uint[] in_paGameSyncID, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_3((int)in_PreparationType, (int)in_eGameSyncType, in_GroupID, in_paGameSyncID, in_uNumGameSyncs, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT AddListener(ulong in_emitterGameObj, ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddListener(in_emitterGameObj, in_listenerGameObj); } - - public static AKRESULT RemoveListener(ulong in_emitterGameObj, ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveListener(in_emitterGameObj, in_listenerGameObj); } - - public static AKRESULT AddDefaultListener(ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddDefaultListener(in_listenerGameObj); } - - public static AKRESULT RemoveDefaultListener(ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveDefaultListener(in_listenerGameObj); } - - public static AKRESULT ResetListenersToDefault(ulong in_emitterGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetListenersToDefault(in_emitterGameObj); } - - public static AKRESULT SetListenerSpatialization(ulong in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig, float[] in_pVolumeOffsets) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerSpatialization__SWIG_0(in_uListenerID, in_bSpatialized, AkChannelConfig.getCPtr(in_channelConfig), in_pVolumeOffsets); } - - public static AKRESULT SetListenerSpatialization(ulong in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerSpatialization__SWIG_1(in_uListenerID, in_bSpatialized, AkChannelConfig.getCPtr(in_channelConfig)); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_0(in_rtpcID, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_1(in_rtpcID, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_2(in_rtpcID, in_value, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_3(in_rtpcID, in_value, in_gameObjectID); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_4(in_rtpcID, in_value); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_5(in_pszRtpcName, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_6(in_pszRtpcName, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_7(in_pszRtpcName, in_value, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_8(in_pszRtpcName, in_value, in_gameObjectID); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_9(in_pszRtpcName, in_value); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_0(in_rtpcID, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_1(in_rtpcID, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_2(in_rtpcID, in_value, in_playingID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_3(in_rtpcID, in_value, in_playingID); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_4(in_pszRtpcName, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_5(in_pszRtpcName, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_6(in_pszRtpcName, in_value, in_playingID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_7(in_pszRtpcName, in_value, in_playingID); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_0(in_rtpcID, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_1(in_rtpcID, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_2(in_rtpcID, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_3(in_rtpcID, in_gameObjectID); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_4(in_rtpcID); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_5(in_pszRtpcName, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_6(in_pszRtpcName, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_7(in_pszRtpcName, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_8(in_pszRtpcName, in_gameObjectID); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_9(in_pszRtpcName); } - - public static AKRESULT SetSwitch(uint in_switchGroup, uint in_switchState, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_0(in_switchGroup, in_switchState, in_gameObjectID); } - - public static AKRESULT SetSwitch(string in_pszSwitchGroup, string in_pszSwitchState, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_1(in_pszSwitchGroup, in_pszSwitchState, in_gameObjectID); } - - public static AKRESULT PostTrigger(uint in_triggerID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_0(in_triggerID, in_gameObjectID); } - - public static AKRESULT PostTrigger(string in_pszTrigger, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_1(in_pszTrigger, in_gameObjectID); } - - public static AKRESULT SetState(uint in_stateGroup, uint in_state) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetState__SWIG_0(in_stateGroup, in_state); } - - public static AKRESULT SetState(string in_pszStateGroup, string in_pszState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetState__SWIG_1(in_pszStateGroup, in_pszState); } - - public static AKRESULT SetGameObjectAuxSendValues(ulong in_gameObjectID, AkAuxSendArray in_aAuxSendValues, uint in_uNumSendValues) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectAuxSendValues(in_gameObjectID, in_aAuxSendValues.GetBuffer(), in_uNumSendValues); } - - public static AKRESULT SetGameObjectOutputBusVolume(ulong in_emitterObjID, ulong in_listenerObjID, float in_fControlValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectOutputBusVolume(in_emitterObjID, in_listenerObjID, in_fControlValue); } - - public static AKRESULT SetActorMixerEffect(uint in_audioNodeID, uint in_uFXIndex, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetActorMixerEffect(in_audioNodeID, in_uFXIndex, in_shareSetID); } - - public static AKRESULT SetBusEffect(uint in_audioNodeID, uint in_uFXIndex, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusEffect__SWIG_0(in_audioNodeID, in_uFXIndex, in_shareSetID); } - - public static AKRESULT SetBusEffect(string in_pszBusName, uint in_uFXIndex, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusEffect__SWIG_1(in_pszBusName, in_uFXIndex, in_shareSetID); } - - public static AKRESULT SetOutputDeviceEffect(ulong in_outputDeviceID, uint in_uFXIndex, uint in_FXShareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetOutputDeviceEffect(in_outputDeviceID, in_uFXIndex, in_FXShareSetID); } - - public static AKRESULT SetMixer(uint in_audioNodeID, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMixer__SWIG_0(in_audioNodeID, in_shareSetID); } - - public static AKRESULT SetMixer(string in_pszBusName, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMixer__SWIG_1(in_pszBusName, in_shareSetID); } - - public static AKRESULT SetBusConfig(uint in_audioNodeID, AkChannelConfig in_channelConfig) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusConfig__SWIG_0(in_audioNodeID, AkChannelConfig.getCPtr(in_channelConfig)); } - - public static AKRESULT SetBusConfig(string in_pszBusName, AkChannelConfig in_channelConfig) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusConfig__SWIG_1(in_pszBusName, AkChannelConfig.getCPtr(in_channelConfig)); } - - public static AKRESULT SetObjectObstructionAndOcclusion(ulong in_EmitterID, ulong in_ListenerID, float in_fObstructionLevel, float in_fOcclusionLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectObstructionAndOcclusion(in_EmitterID, in_ListenerID, in_fObstructionLevel, in_fOcclusionLevel); } - - public static AKRESULT SetMultipleObstructionAndOcclusion(ulong in_EmitterID, ulong in_uListenerID, AkObstructionOcclusionValuesArray in_fObstructionOcclusionValues, uint in_uNumOcclusionObstruction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultipleObstructionAndOcclusion(in_EmitterID, in_uListenerID, in_fObstructionOcclusionValues.GetBuffer(), in_uNumOcclusionObstruction); } - - public static AKRESULT StartOutputCapture(string in_CaptureFileName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StartOutputCapture(in_CaptureFileName); } - - public static AKRESULT StopOutputCapture() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopOutputCapture(); } - - public static AKRESULT AddOutputCaptureMarker(string in_MarkerText) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutputCaptureMarker(in_MarkerText); } - - public static AKRESULT StartProfilerCapture(string in_CaptureFileName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StartProfilerCapture(in_CaptureFileName); } - - public static AKRESULT StopProfilerCapture() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopProfilerCapture(); } - - public static AKRESULT RemoveOutput(ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveOutput(in_idOutput); } - - public static AKRESULT ReplaceOutput(AkOutputSettings in_Settings, ulong in_outputDeviceId, out ulong out_pOutputDeviceId) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ReplaceOutput__SWIG_0(AkOutputSettings.getCPtr(in_Settings), in_outputDeviceId, out out_pOutputDeviceId); } - - public static AKRESULT ReplaceOutput(AkOutputSettings in_Settings, ulong in_outputDeviceId) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ReplaceOutput__SWIG_1(AkOutputSettings.getCPtr(in_Settings), in_outputDeviceId); } - - public static ulong GetOutputID(uint in_idShareset, uint in_idDevice) { return AkSoundEnginePINVOKE.CSharp_GetOutputID__SWIG_0(in_idShareset, in_idDevice); } - - public static ulong GetOutputID(string in_szShareSet, uint in_idDevice) { return AkSoundEnginePINVOKE.CSharp_GetOutputID__SWIG_1(in_szShareSet, in_idDevice); } - - public static AKRESULT SetBusDevice(uint in_idBus, uint in_idNewDevice) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusDevice__SWIG_0(in_idBus, in_idNewDevice); } - - public static AKRESULT SetBusDevice(string in_BusName, string in_DeviceName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusDevice__SWIG_1(in_BusName, in_DeviceName); } - - public static AKRESULT GetDeviceList(uint in_ulCompanyID, uint in_ulPluginID, out uint io_maxNumDevices, AkDeviceDescriptionArray out_deviceDescriptions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDeviceList__SWIG_0(in_ulCompanyID, in_ulPluginID, out io_maxNumDevices, out_deviceDescriptions.GetBuffer()); } - - public static AKRESULT GetDeviceList(uint in_audioDeviceShareSetID, out uint io_maxNumDevices, AkDeviceDescriptionArray out_deviceDescriptions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDeviceList__SWIG_1(in_audioDeviceShareSetID, out io_maxNumDevices, out_deviceDescriptions.GetBuffer()); } - - public static AKRESULT SetOutputVolume(ulong in_idOutput, float in_fVolume) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetOutputVolume(in_idOutput, in_fVolume); } - - public static AKRESULT GetDeviceSpatialAudioSupport(uint in_idDevice) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDeviceSpatialAudioSupport(in_idDevice); } - - public static AKRESULT Suspend(bool in_bRenderAnyway) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Suspend__SWIG_0(in_bRenderAnyway); } - - public static AKRESULT Suspend() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Suspend__SWIG_1(); } - - public static AKRESULT WakeupFromSuspend() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_WakeupFromSuspend(); } - - public static uint GetBufferTick() { return AkSoundEnginePINVOKE.CSharp_GetBufferTick(); } - - public static ulong GetSampleTick() { return AkSoundEnginePINVOKE.CSharp_GetSampleTick(); } - - public static byte AK_INVALID_MIDI_CHANNEL { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_MIDI_CHANNEL_get(); } - } - - public static byte AK_INVALID_MIDI_NOTE { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_MIDI_NOTE_get(); } - } - - public static AKRESULT GetPlayingSegmentInfo(uint in_PlayingID, AkSegmentInfo out_segmentInfo, bool in_bExtrapolate) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingSegmentInfo__SWIG_0(in_PlayingID, AkSegmentInfo.getCPtr(out_segmentInfo), in_bExtrapolate); } - - public static AKRESULT GetPlayingSegmentInfo(uint in_PlayingID, AkSegmentInfo out_segmentInfo) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingSegmentInfo__SWIG_1(in_PlayingID, AkSegmentInfo.getCPtr(out_segmentInfo)); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID, bool in_bIsBus) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_0((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID, in_bIsBus); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_1((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_2((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_3((int)in_eError, (int)in_eErrorLevel, in_playingID); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_4((int)in_eError, (int)in_eErrorLevel); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID, bool in_bIsBus) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_0(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID, in_bIsBus); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_1(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_2(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_3(in_pszError, (int)in_eErrorLevel, in_playingID); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_4(in_pszError, (int)in_eErrorLevel); } - - public static int GetTimeStamp() { return AkSoundEnginePINVOKE.CSharp_GetTimeStamp(); } - - public static void MonitorStreamMgrInit(AkStreamMgrSettings in_streamMgrSettings) { AkSoundEnginePINVOKE.CSharp_MonitorStreamMgrInit(AkStreamMgrSettings.getCPtr(in_streamMgrSettings)); } - - public static void MonitorStreamingDeviceInit(uint in_deviceID, AkDeviceSettings in_deviceSettings) { AkSoundEnginePINVOKE.CSharp_MonitorStreamingDeviceInit(in_deviceID, AkDeviceSettings.getCPtr(in_deviceSettings)); } - - public static void MonitorStreamingDeviceDestroyed(uint in_deviceID) { AkSoundEnginePINVOKE.CSharp_MonitorStreamingDeviceDestroyed(in_deviceID); } - - public static void MonitorStreamMgrTerm() { AkSoundEnginePINVOKE.CSharp_MonitorStreamMgrTerm(); } - - public static uint GetNumNonZeroBits(uint in_uWord) { return AkSoundEnginePINVOKE.CSharp_GetNumNonZeroBits(in_uWord); } - - public static uint GetNextPowerOfTwo(uint in_uValue) { return AkSoundEnginePINVOKE.CSharp_GetNextPowerOfTwo(in_uValue); } - - public static uint ROTL32(uint x, uint r) { return AkSoundEnginePINVOKE.CSharp_ROTL32(x, r); } - - public static ulong ROTL64(ulong x, ulong r) { return AkSoundEnginePINVOKE.CSharp_ROTL64(x, r); } - - public static void AkGetDefaultHighPriorityThreadProperties(AkThreadProperties out_threadProperties) { AkSoundEnginePINVOKE.CSharp_AkGetDefaultHighPriorityThreadProperties(AkThreadProperties.getCPtr(out_threadProperties)); } - - public static uint ResolveDialogueEvent(uint in_eventID, uint[] in_aArgumentValues, uint in_uNumArguments, uint in_idSequence) { return AkSoundEnginePINVOKE.CSharp_ResolveDialogueEvent__SWIG_0(in_eventID, in_aArgumentValues, in_uNumArguments, in_idSequence); } - - public static uint ResolveDialogueEvent(uint in_eventID, uint[] in_aArgumentValues, uint in_uNumArguments) { return AkSoundEnginePINVOKE.CSharp_ResolveDialogueEvent__SWIG_1(in_eventID, in_aArgumentValues, in_uNumArguments); } - - public static AKRESULT GetDialogueEventCustomPropertyValue(uint in_eventID, uint in_uPropID, out int out_iValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDialogueEventCustomPropertyValue__SWIG_0(in_eventID, in_uPropID, out out_iValue); } - - public static AKRESULT GetDialogueEventCustomPropertyValue(uint in_eventID, uint in_uPropID, out float out_fValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDialogueEventCustomPropertyValue__SWIG_1(in_eventID, in_uPropID, out out_fValue); } - - public static AKRESULT GetPosition(ulong in_GameObjectID, AkTransform out_rPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPosition(in_GameObjectID, AkTransform.getCPtr(out_rPosition)); } - - public static AKRESULT GetListenerPosition(ulong in_uIndex, AkTransform out_rPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetListenerPosition(in_uIndex, AkTransform.getCPtr(out_rPosition)); } - - public static AKRESULT GetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, uint in_playingID, out float out_rValue, ref int io_rValueType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_0(in_rtpcID, in_gameObjectID, in_playingID, out out_rValue, ref io_rValueType); } - - public static AKRESULT GetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, uint in_playingID, out float out_rValue, ref int io_rValueType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_1(in_pszRtpcName, in_gameObjectID, in_playingID, out out_rValue, ref io_rValueType); } - - public static AKRESULT GetSwitch(uint in_switchGroup, ulong in_gameObjectID, out uint out_rSwitchState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_0(in_switchGroup, in_gameObjectID, out out_rSwitchState); } - - public static AKRESULT GetSwitch(string in_pstrSwitchGroupName, ulong in_GameObj, out uint out_rSwitchState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_1(in_pstrSwitchGroupName, in_GameObj, out out_rSwitchState); } - - public static AKRESULT GetState(uint in_stateGroup, out uint out_rState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetState__SWIG_0(in_stateGroup, out out_rState); } - - public static AKRESULT GetState(string in_pstrStateGroupName, out uint out_rState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetState__SWIG_1(in_pstrStateGroupName, out out_rState); } - - public static AKRESULT GetGameObjectAuxSendValues(ulong in_gameObjectID, AkAuxSendArray out_paAuxSendValues, ref uint io_ruNumSendValues) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectAuxSendValues(in_gameObjectID, out_paAuxSendValues.GetBuffer(), ref io_ruNumSendValues); } - - public static AKRESULT GetGameObjectDryLevelValue(ulong in_EmitterID, ulong in_ListenerID, out float out_rfControlValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectDryLevelValue(in_EmitterID, in_ListenerID, out out_rfControlValue); } - - public static AKRESULT GetObjectObstructionAndOcclusion(ulong in_EmitterID, ulong in_ListenerID, out float out_rfObstructionLevel, out float out_rfOcclusionLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetObjectObstructionAndOcclusion(in_EmitterID, in_ListenerID, out out_rfObstructionLevel, out out_rfOcclusionLevel); } - - public static AKRESULT QueryAudioObjectIDs(uint in_eventID, ref uint io_ruNumItems, AkObjectInfoArray out_aObjectInfos) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryAudioObjectIDs__SWIG_0(in_eventID, ref io_ruNumItems, out_aObjectInfos.GetBuffer()); } - - public static AKRESULT QueryAudioObjectIDs(string in_pszEventName, ref uint io_ruNumItems, AkObjectInfoArray out_aObjectInfos) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryAudioObjectIDs__SWIG_1(in_pszEventName, ref io_ruNumItems, out_aObjectInfos.GetBuffer()); } - - public static AKRESULT GetPositioningInfo(uint in_ObjectID, AkPositioningInfo out_rPositioningInfo) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPositioningInfo(in_ObjectID, AkPositioningInfo.getCPtr(out_rPositioningInfo)); } - - public static bool GetIsGameObjectActive(ulong in_GameObjId) { return AkSoundEnginePINVOKE.CSharp_GetIsGameObjectActive(in_GameObjId); } - - public static float GetMaxRadius(ulong in_GameObjId) { return AkSoundEnginePINVOKE.CSharp_GetMaxRadius(in_GameObjId); } - - public static uint GetEventIDFromPlayingID(uint in_playingID) { return AkSoundEnginePINVOKE.CSharp_GetEventIDFromPlayingID(in_playingID); } - - public static ulong GetGameObjectFromPlayingID(uint in_playingID) { return AkSoundEnginePINVOKE.CSharp_GetGameObjectFromPlayingID(in_playingID); } - - public static AKRESULT GetPlayingIDsFromGameObject(ulong in_GameObjId, ref uint io_ruNumIDs, uint[] out_aPlayingIDs) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingIDsFromGameObject(in_GameObjId, ref io_ruNumIDs, out_aPlayingIDs); } - - public static AKRESULT GetCustomPropertyValue(uint in_ObjectID, uint in_uPropID, out int out_iValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetCustomPropertyValue__SWIG_0(in_ObjectID, in_uPropID, out out_iValue); } - - public static AKRESULT GetCustomPropertyValue(uint in_ObjectID, uint in_uPropID, out float out_fValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetCustomPropertyValue__SWIG_1(in_ObjectID, in_uPropID, out out_fValue); } - - public static void AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER(ref uint io_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER(ref io_uChannelMask); } - - public static void AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE(ref uint io_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE(ref io_uChannelMask); } - - public static void AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED(ref uint io_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED(ref io_uChannelMask); } - - public static byte ChannelMaskToNumChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_ChannelMaskToNumChannels(in_uChannelMask); } - - public static uint ChannelMaskFromNumChannels(uint in_uNumChannels) { return AkSoundEnginePINVOKE.CSharp_ChannelMaskFromNumChannels(in_uNumChannels); } - - public static byte ChannelBitToIndex(uint in_uChannelBit, uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_ChannelBitToIndex(in_uChannelBit, in_uChannelMask); } - - public static bool HasSurroundChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasSurroundChannels(in_uChannelMask); } - - public static bool HasStrictlyOnePairOfSurroundChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasStrictlyOnePairOfSurroundChannels(in_uChannelMask); } - - public static bool HasSideAndRearChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasSideAndRearChannels(in_uChannelMask); } - - public static bool HasHeightChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasHeightChannels(in_uChannelMask); } - - public static uint BackToSideChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_BackToSideChannels(in_uChannelMask); } - - public static uint StdChannelIndexToDisplayIndex(AkChannelOrdering in_eOrdering, uint in_uChannelMask, uint in_uChannelIdx) { return AkSoundEnginePINVOKE.CSharp_StdChannelIndexToDisplayIndex((int)in_eOrdering, in_uChannelMask, in_uChannelIdx); } - - public static float kDefaultMaxPathLength { get { return AkSoundEnginePINVOKE.CSharp_kDefaultMaxPathLength_get(); } - } - - public static uint kDefaultDiffractionMaxEdges { get { return AkSoundEnginePINVOKE.CSharp_kDefaultDiffractionMaxEdges_get(); } - } - - public static uint kDefaultDiffractionMaxPaths { get { return AkSoundEnginePINVOKE.CSharp_kDefaultDiffractionMaxPaths_get(); } - } - - public static float kMaxDiffraction { get { return AkSoundEnginePINVOKE.CSharp_kMaxDiffraction_get(); } - } - - public static uint kDiffractionMaxEdges { get { return AkSoundEnginePINVOKE.CSharp_kDiffractionMaxEdges_get(); } - } - - public static uint kDiffractionMaxPaths { get { return AkSoundEnginePINVOKE.CSharp_kDiffractionMaxPaths_get(); } - } - - public static uint kPortalToPortalDiffractionMaxPaths { get { return AkSoundEnginePINVOKE.CSharp_kPortalToPortalDiffractionMaxPaths_get(); } - } - - public static AKRESULT SetGameObjectRadius(ulong in_gameObjectID, float in_outerRadius, float in_innerRadius) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectRadius(in_gameObjectID, in_outerRadius, in_innerRadius); } - - public static AKRESULT SetImageSource(uint in_srcID, AkImageSourceSettings in_info, uint in_AuxBusID, ulong in_roomID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetImageSource(in_srcID, AkImageSourceSettings.getCPtr(in_info), in_AuxBusID, in_roomID, in_gameObjectID); } - - public static AKRESULT RemoveImageSource(uint in_srcID, uint in_AuxBusID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveImageSource(in_srcID, in_AuxBusID, in_gameObjectID); } - - public static AKRESULT ClearImageSources(uint in_AuxBusID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_0(in_AuxBusID, in_gameObjectID); } - - public static AKRESULT ClearImageSources(uint in_AuxBusID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_1(in_AuxBusID); } - - public static AKRESULT ClearImageSources() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_2(); } - - public static AKRESULT RemoveGeometry(ulong in_SetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveGeometry(in_SetID); } - - public static AKRESULT QueryReflectionPaths(ulong in_gameObjectID, uint in_positionIndex, ref UnityEngine.Vector3 out_listenerPos, ref UnityEngine.Vector3 out_emitterPos, AkReflectionPathInfoArray out_aPaths, out uint io_uArraySize) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryReflectionPaths(in_gameObjectID, in_positionIndex, ref out_listenerPos, ref out_emitterPos, out_aPaths.GetBuffer(), out io_uArraySize); } - - public static AKRESULT RemoveRoom(ulong in_RoomID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveRoom(in_RoomID); } - - public static AKRESULT RemovePortal(ulong in_PortalID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemovePortal(in_PortalID); } - - public static AKRESULT SetGameObjectInRoom(ulong in_gameObjectID, ulong in_CurrentRoomID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectInRoom(in_gameObjectID, in_CurrentRoomID); } - - public static AKRESULT SetReflectionsOrder(uint in_uReflectionsOrder, bool in_bUpdatePaths) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetReflectionsOrder(in_uReflectionsOrder, in_bUpdatePaths); } - - public static AKRESULT SetNumberOfPrimaryRays(uint in_uNbPrimaryRays) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetNumberOfPrimaryRays(in_uNbPrimaryRays); } - - public static AKRESULT SetEarlyReflectionsAuxSend(ulong in_gameObjectID, uint in_auxBusID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetEarlyReflectionsAuxSend(in_gameObjectID, in_auxBusID); } - - public static AKRESULT SetEarlyReflectionsVolume(ulong in_gameObjectID, float in_fSendVolume) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetEarlyReflectionsVolume(in_gameObjectID, in_fSendVolume); } - - public static AKRESULT SetPortalObstructionAndOcclusion(ulong in_PortalID, float in_fObstruction, float in_fOcclusion) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPortalObstructionAndOcclusion(in_PortalID, in_fObstruction, in_fOcclusion); } - - public static AKRESULT SetGameObjectToPortalObstruction(ulong in_gameObjectID, ulong in_PortalID, float in_fObstruction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectToPortalObstruction(in_gameObjectID, in_PortalID, in_fObstruction); } - - public static AKRESULT SetPortalToPortalObstruction(ulong in_PortalID0, ulong in_PortalID1, float in_fObstruction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPortalToPortalObstruction(in_PortalID0, in_PortalID1, in_fObstruction); } - - public static AKRESULT QueryWetDiffraction(ulong in_portal, out float out_wetDiffraction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryWetDiffraction(in_portal, out out_wetDiffraction); } - - public static AKRESULT QueryDiffractionPaths(ulong in_gameObjectID, uint in_positionIndex, ref UnityEngine.Vector3 out_listenerPos, ref UnityEngine.Vector3 out_emitterPos, AkDiffractionPathInfoArray out_aPaths, out uint io_uArraySize) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryDiffractionPaths(in_gameObjectID, in_positionIndex, ref out_listenerPos, ref out_emitterPos, out_aPaths.GetBuffer(), out io_uArraySize); } - - public static AKRESULT ResetStochasticEngine() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetStochasticEngine(); } - - public static void SetErrorLogger(AkLogger.ErrorLoggerInteropDelegate logger) { AkSoundEnginePINVOKE.CSharp_SetErrorLogger__SWIG_0(logger); } - - public static void SetErrorLogger() { AkSoundEnginePINVOKE.CSharp_SetErrorLogger__SWIG_1(); } - - public static void SetAudioInputCallbacks(AkAudioInputManager.AudioSamplesInteropDelegate getAudioSamples, AkAudioInputManager.AudioFormatInteropDelegate getAudioFormat) { AkSoundEnginePINVOKE.CSharp_SetAudioInputCallbacks(getAudioSamples, getAudioFormat); } - - public static AKRESULT Init(AkInitializationSettings settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Init(AkInitializationSettings.getCPtr(settings)); } - - public static AKRESULT InitSpatialAudio(AkSpatialAudioInitSettings settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_InitSpatialAudio(AkSpatialAudioInitSettings.getCPtr(settings)); } - - public static AKRESULT InitCommunication(AkCommunicationSettings settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_InitCommunication(AkCommunicationSettings.getCPtr(settings)); } - - public static void Term() { AkSoundEnginePINVOKE.CSharp_Term(); } - - public static AKRESULT RegisterGameObjInternal(ulong in_GameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal(in_GameObj); } - - public static AKRESULT UnregisterGameObjInternal(ulong in_GameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterGameObjInternal(in_GameObj); } - - public static AKRESULT RegisterGameObjInternal_WithName(ulong in_GameObj, string in_pszObjName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal_WithName(in_GameObj, in_pszObjName); } - - public static AKRESULT SetBasePath(string in_pszBasePath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBasePath(in_pszBasePath); } - - public static AKRESULT SetCurrentLanguage(string in_pszAudioSrcPath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetCurrentLanguage(in_pszAudioSrcPath); } - - public static AKRESULT LoadFilePackage(string in_pszFilePackageName, out uint out_uPackageID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadFilePackage(in_pszFilePackageName, out out_uPackageID); } - - public static AKRESULT AddBasePath(string in_pszBasePath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddBasePath(in_pszBasePath); } - - public static AKRESULT SetGameName(string in_GameName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameName(in_GameName); } - - public static AKRESULT SetDecodedBankPath(string in_DecodedPath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetDecodedBankPath(in_DecodedPath); } - - public static AKRESULT LoadAndDecodeBank(string in_pszString, bool in_bSaveDecodedBank, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadAndDecodeBank(in_pszString, in_bSaveDecodedBank, out out_bankID); } - - public static AKRESULT LoadAndDecodeBankFromMemory(global::System.IntPtr in_BankData, uint in_BankDataSize, bool in_bSaveDecodedBank, string in_DecodedBankName, bool in_bIsLanguageSpecific, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadAndDecodeBankFromMemory(in_BankData, in_BankDataSize, in_bSaveDecodedBank, in_DecodedBankName, in_bIsLanguageSpecific, out out_bankID); } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_0(in_pszEventName, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_1(in_pszEventName, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_2(in_pszEventName, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_3(in_pszEventName, in_roomID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static string GetCurrentLanguage() { return AkSoundEngine.StringFromIntPtrOSString(AkSoundEnginePINVOKE.CSharp_GetCurrentLanguage()); } - - public static AKRESULT UnloadFilePackage(uint in_uPackageID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadFilePackage(in_uPackageID); } - - public static AKRESULT UnloadAllFilePackages() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadAllFilePackages(); } - - public static AKRESULT SetObjectPosition(ulong in_GameObjectID, UnityEngine.Vector3 Pos, UnityEngine.Vector3 Front, UnityEngine.Vector3 Top) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectPosition(in_GameObjectID, Pos, Front, Top); } - - public static AKRESULT GetSourceMultiplePlayPositions(uint in_PlayingID, uint[] out_audioNodeID, uint[] out_mediaID, int[] out_msTime, ref uint io_pcPositions, bool in_bExtrapolate) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourceMultiplePlayPositions__SWIG_0(in_PlayingID, out_audioNodeID, out_mediaID, out_msTime, ref io_pcPositions, in_bExtrapolate); } - - public static AKRESULT GetSourceMultiplePlayPositions(uint in_PlayingID, uint[] out_audioNodeID, uint[] out_mediaID, int[] out_msTime, ref uint io_pcPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourceMultiplePlayPositions__SWIG_1(in_PlayingID, out_audioNodeID, out_mediaID, out_msTime, ref io_pcPositions); } - - public static AKRESULT SetListeners(ulong in_emitterGameObj, ulong[] in_pListenerGameObjs, uint in_uNumListeners) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListeners(in_emitterGameObj, in_pListenerGameObjs, in_uNumListeners); } - - public static AKRESULT SetDefaultListeners(ulong[] in_pListenerObjs, uint in_uNumListeners) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetDefaultListeners(in_pListenerObjs, in_uNumListeners); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings, out ulong out_pDeviceID, ulong[] in_pListenerIDs, uint in_uNumListeners) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_0(AkOutputSettings.getCPtr(in_Settings), out out_pDeviceID, in_pListenerIDs, in_uNumListeners); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings, out ulong out_pDeviceID, ulong[] in_pListenerIDs) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_1(AkOutputSettings.getCPtr(in_Settings), out out_pDeviceID, in_pListenerIDs); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings, out ulong out_pDeviceID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_2(AkOutputSettings.getCPtr(in_Settings), out out_pDeviceID); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_3(AkOutputSettings.getCPtr(in_Settings)); } - - public static void GetDefaultStreamSettings(AkStreamMgrSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultStreamSettings(AkStreamMgrSettings.getCPtr(out_settings)); } - - public static void GetDefaultDeviceSettings(AkDeviceSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultDeviceSettings(AkDeviceSettings.getCPtr(out_settings)); } - - public static void GetDefaultMusicSettings(AkMusicSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultMusicSettings(AkMusicSettings.getCPtr(out_settings)); } - - public static void GetDefaultInitSettings(AkInitSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultInitSettings(AkInitSettings.getCPtr(out_settings)); } - - public static void GetDefaultPlatformInitSettings(AkPlatformInitSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultPlatformInitSettings(AkPlatformInitSettings.getCPtr(out_settings)); } - - public static uint GetMajorMinorVersion() { return AkSoundEnginePINVOKE.CSharp_GetMajorMinorVersion(); } - - public static uint GetSubminorBuildVersion() { return AkSoundEnginePINVOKE.CSharp_GetSubminorBuildVersion(); } - - public static void StartResourceMonitoring() { AkSoundEnginePINVOKE.CSharp_StartResourceMonitoring(); } - - public static void StopResourceMonitoring() { AkSoundEnginePINVOKE.CSharp_StopResourceMonitoring(); } - - public static void GetResourceMonitorDataSummary(AkResourceMonitorDataSummary resourceMonitorDataSummary) { AkSoundEnginePINVOKE.CSharp_GetResourceMonitorDataSummary(AkResourceMonitorDataSummary.getCPtr(resourceMonitorDataSummary)); } - - public static AKRESULT SetRoomPortal(ulong in_PortalID, AkTransform Transform, AkExtent Extent, bool bEnabled, ulong FrontRoom, ulong BackRoom) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRoomPortal(in_PortalID, AkTransform.getCPtr(Transform), AkExtent.getCPtr(Extent), bEnabled, FrontRoom, BackRoom); } - - public static AKRESULT SetRoom(ulong in_RoomID, AkRoomParams in_roomParams, ulong GeometryID, string in_pName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRoom(in_RoomID, AkRoomParams.getCPtr(in_roomParams), GeometryID, in_pName); } - - public static AKRESULT RegisterSpatialAudioListener(ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterSpatialAudioListener(in_gameObjectID); } - - public static AKRESULT UnregisterSpatialAudioListener(ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterSpatialAudioListener(in_gameObjectID); } - - public static AKRESULT SetGeometry(ulong in_GeomSetID, AkTriangleArray Triangles, uint NumTriangles, UnityEngine.Vector3[] Vertices, uint NumVertices, AkAcousticSurfaceArray Surfaces, uint NumSurfaces, ulong RoomID, bool EnableDiffraction, bool EnableDiffractionOnBoundaryEdges, bool EnableTriangles) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGeometry(in_GeomSetID, Triangles.GetBuffer(), NumTriangles, Vertices, NumVertices, Surfaces.GetBuffer(), NumSurfaces, RoomID, EnableDiffraction, EnableDiffractionOnBoundaryEdges, EnableTriangles); } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_4(in_eventID, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_5(in_eventID, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_6(in_eventID, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_7(in_eventID, in_roomID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public const int AK_SIMD_ALIGNMENT = 16; - public const int AK_BUFFER_ALIGNMENT = 16; - public const int AK_MAX_PATH = 260; - public const int AK_BANK_PLATFORM_DATA_ALIGNMENT = (16); - public const string AK_OSCHAR_FMT = "%s"; - public const uint AK_INVALID_PLUGINID = unchecked((uint)(-1)); - public const ulong AK_INVALID_GAME_OBJECT = unchecked((ulong)(-1)); - public const uint AK_INVALID_UNIQUE_ID = 0; - public const uint AK_INVALID_RTPC_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_INVALID_LISTENER_INDEX = unchecked((uint)(-1)); - public const uint AK_INVALID_PLAYING_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_DEFAULT_SWITCH_STATE = 0; - public const int AK_INVALID_POOL_ID = -1; - public const int AK_DEFAULT_POOL_ID = -1; - public const uint AK_INVALID_AUX_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_INVALID_FILE_ID = unchecked((uint)(-1)); - public const uint AK_INVALID_DEVICE_ID = unchecked((uint)(-1)); - public const uint AK_INVALID_BANK_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_FALLBACK_ARGUMENTVALUE_ID = 0; - public const uint AK_INVALID_CHANNELMASK = 0; - public const uint AK_INVALID_OUTPUT_DEVICE_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_MIXER_FX_SLOT = unchecked((uint)(-1)); - public const ulong AK_DEFAULT_LISTENER_OBJ = 0; - public const uint AK_DEFAULT_PRIORITY = 50; - public const uint AK_MIN_PRIORITY = 0; - public const uint AK_MAX_PRIORITY = 100; - public const uint AK_DEFAULT_BANK_IO_PRIORITY = AK_DEFAULT_PRIORITY; - public const double AK_DEFAULT_BANK_THROUGHPUT = 1*1024*1024/1000.0; - public const uint AKCOMPANYID_AUDIOKINETIC = 0; - public const uint AK_LISTENERS_MASK_ALL = 0xFFFFFFFF; - public const int NULL = 0; - public const int AKCURVEINTERPOLATION_NUM_STORAGE_BIT = 5; - public const int AK_MAX_LANGUAGE_NAME_SIZE = (32); - public const int AKCOMPANYID_PLUGINDEV_MIN = (64); - public const int AKCOMPANYID_PLUGINDEV_MAX = (255); - public const int AKCOMPANYID_AUDIOKINETIC_EXTERNAL = (1); - public const int AKCOMPANYID_MCDSP = (256); - public const int AKCOMPANYID_WAVEARTS = (257); - public const int AKCOMPANYID_PHONETICARTS = (258); - public const int AKCOMPANYID_IZOTOPE = (259); - public const int AKCOMPANYID_CRANKCASEAUDIO = (261); - public const int AKCOMPANYID_IOSONO = (262); - public const int AKCOMPANYID_AUROTECHNOLOGIES = (263); - public const int AKCOMPANYID_DOLBY = (264); - public const int AKCOMPANYID_TWOBIGEARS = (265); - public const int AKCOMPANYID_OCULUS = (266); - public const int AKCOMPANYID_BLUERIPPLESOUND = (267); - public const int AKCOMPANYID_ENZIEN = (268); - public const int AKCOMPANYID_KROTOS = (269); - public const int AKCOMPANYID_NURULIZE = (270); - public const int AKCOMPANYID_SUPERPOWERED = (271); - public const int AKCOMPANYID_GOOGLE = (272); - public const int AKCOMPANYID_VISISONICS = (277); - public const int AKCODECID_BANK = (0); - public const int AKCODECID_PCM = (1); - public const int AKCODECID_ADPCM = (2); - public const int AKCODECID_XMA = (3); - public const int AKCODECID_VORBIS = (4); - public const int AKCODECID_WIIADPCM = (5); - public const int AKCODECID_PCMEX = (7); - public const int AKCODECID_EXTERNAL_SOURCE = (8); - public const int AKCODECID_XWMA = (9); - public const int AKCODECID_AAC = (10); - public const int AKCODECID_FILE_PACKAGE = (11); - public const int AKCODECID_ATRAC9 = (12); - public const int AKCODECID_VAG = (13); - public const int AKCODECID_PROFILERCAPTURE = (14); - public const int AKCODECID_ANALYSISFILE = (15); - public const int AKCODECID_MIDI = (16); - public const int AKCODECID_OPUSNX = (17); - public const int AKCODECID_CAF = (18); - public const int AKCODECID_AKOPUS = (19); - public const int AKCODECID_AKOPUS_WEM = (20); - public const int AKCODECID_MEMORYMGR_DUMP = (21); - public const int AKPLUGINID_METER = (129); - public const int AKPLUGINID_RECORDER = (132); - public const int AKPLUGINID_SYSTEM_OUTPUT_META = (900); - public const int AKEXTENSIONID_SPATIALAUDIO = (800); - public const int AKEXTENSIONID_INTERACTIVEMUSIC = (801); - public const int AKEXTENSIONID_EVENTMGRTHREAD = (900); - public const int AK_WAVE_FORMAT_VAG = 0xFFFB; - public const int AK_WAVE_FORMAT_AT9 = 0xFFFC; - public const int AK_WAVE_FORMAT_VORBIS = 0xFFFF; - public const int AK_WAVE_FORMAT_AAC = 0xAAC0; - public const int AK_WAVE_FORMAT_OPUSNX = 0x3039; - public const int AK_WAVE_FORMAT_OPUS = 0x3040; - public const int AK_WAVE_FORMAT_OPUS_WEM = 0x3041; - public const int WAVE_FORMAT_XMA2 = 0x166; - public const int AK_PANNER_NUM_STORAGE_BITS = 3; - public const int AK_POSSOURCE_NUM_STORAGE_BITS = 3; - public const int AK_SPAT_NUM_STORAGE_BITS = 3; - public const int AK_MAX_BITS_METERING_FLAGS = (5); - public const bool AK_ASYNC_OPEN_DEFAULT = (false); - public const int AK_COMM_DEFAULT_DISCOVERY_PORT = 24024; - public const double AK_DEFAULT_LISTENER_POSITION_X = (0.0); - public const double AK_DEFAULT_LISTENER_POSITION_Y = (0.0); - public const double AK_DEFAULT_LISTENER_POSITION_Z = (0.0); - public const double AK_DEFAULT_LISTENER_FRONT_X = (0.0); - public const double AK_DEFAULT_LISTENER_FRONT_Y = (0.0); - public const double AK_DEFAULT_LISTENER_FRONT_Z = (1.0); - public const double AK_DEFAULT_TOP_X = (0.0); - public const double AK_DEFAULT_TOP_Y = (1.0); - public const double AK_DEFAULT_TOP_Z = (0.0); - public const int AK_MIDI_EVENT_TYPE_INVALID = 0x00; - public const int AK_MIDI_EVENT_TYPE_NOTE_OFF = 0x80; - public const int AK_MIDI_EVENT_TYPE_NOTE_ON = 0x90; - public const int AK_MIDI_EVENT_TYPE_NOTE_AFTERTOUCH = 0xa0; - public const int AK_MIDI_EVENT_TYPE_CONTROLLER = 0xb0; - public const int AK_MIDI_EVENT_TYPE_PROGRAM_CHANGE = 0xc0; - public const int AK_MIDI_EVENT_TYPE_CHANNEL_AFTERTOUCH = 0xd0; - public const int AK_MIDI_EVENT_TYPE_PITCH_BEND = 0xe0; - public const int AK_MIDI_EVENT_TYPE_SYSEX = 0xf0; - public const int AK_MIDI_EVENT_TYPE_ESCAPE = 0xf7; - public const int AK_MIDI_EVENT_TYPE_WWISE_CMD = 0xfe; - public const int AK_MIDI_EVENT_TYPE_META = 0xff; - public const int AK_MIDI_CC_BANK_SELECT_COARSE = 0; - public const int AK_MIDI_CC_MOD_WHEEL_COARSE = 1; - public const int AK_MIDI_CC_BREATH_CTRL_COARSE = 2; - public const int AK_MIDI_CC_CTRL_3_COARSE = 3; - public const int AK_MIDI_CC_FOOT_PEDAL_COARSE = 4; - public const int AK_MIDI_CC_PORTAMENTO_COARSE = 5; - public const int AK_MIDI_CC_DATA_ENTRY_COARSE = 6; - public const int AK_MIDI_CC_VOLUME_COARSE = 7; - public const int AK_MIDI_CC_BALANCE_COARSE = 8; - public const int AK_MIDI_CC_CTRL_9_COARSE = 9; - public const int AK_MIDI_CC_PAN_POSITION_COARSE = 10; - public const int AK_MIDI_CC_EXPRESSION_COARSE = 11; - public const int AK_MIDI_CC_EFFECT_CTRL_1_COARSE = 12; - public const int AK_MIDI_CC_EFFECT_CTRL_2_COARSE = 13; - public const int AK_MIDI_CC_CTRL_14_COARSE = 14; - public const int AK_MIDI_CC_CTRL_15_COARSE = 15; - public const int AK_MIDI_CC_GEN_SLIDER_1 = 16; - public const int AK_MIDI_CC_GEN_SLIDER_2 = 17; - public const int AK_MIDI_CC_GEN_SLIDER_3 = 18; - public const int AK_MIDI_CC_GEN_SLIDER_4 = 19; - public const int AK_MIDI_CC_CTRL_20_COARSE = 20; - public const int AK_MIDI_CC_CTRL_21_COARSE = 21; - public const int AK_MIDI_CC_CTRL_22_COARSE = 22; - public const int AK_MIDI_CC_CTRL_23_COARSE = 23; - public const int AK_MIDI_CC_CTRL_24_COARSE = 24; - public const int AK_MIDI_CC_CTRL_25_COARSE = 25; - public const int AK_MIDI_CC_CTRL_26_COARSE = 26; - public const int AK_MIDI_CC_CTRL_27_COARSE = 27; - public const int AK_MIDI_CC_CTRL_28_COARSE = 28; - public const int AK_MIDI_CC_CTRL_29_COARSE = 29; - public const int AK_MIDI_CC_CTRL_30_COARSE = 30; - public const int AK_MIDI_CC_CTRL_31_COARSE = 31; - public const int AK_MIDI_CC_BANK_SELECT_FINE = 32; - public const int AK_MIDI_CC_MOD_WHEEL_FINE = 33; - public const int AK_MIDI_CC_BREATH_CTRL_FINE = 34; - public const int AK_MIDI_CC_CTRL_3_FINE = 35; - public const int AK_MIDI_CC_FOOT_PEDAL_FINE = 36; - public const int AK_MIDI_CC_PORTAMENTO_FINE = 37; - public const int AK_MIDI_CC_DATA_ENTRY_FINE = 38; - public const int AK_MIDI_CC_VOLUME_FINE = 39; - public const int AK_MIDI_CC_BALANCE_FINE = 40; - public const int AK_MIDI_CC_CTRL_9_FINE = 41; - public const int AK_MIDI_CC_PAN_POSITION_FINE = 42; - public const int AK_MIDI_CC_EXPRESSION_FINE = 43; - public const int AK_MIDI_CC_EFFECT_CTRL_1_FINE = 44; - public const int AK_MIDI_CC_EFFECT_CTRL_2_FINE = 45; - public const int AK_MIDI_CC_CTRL_14_FINE = 46; - public const int AK_MIDI_CC_CTRL_15_FINE = 47; - public const int AK_MIDI_CC_CTRL_20_FINE = 52; - public const int AK_MIDI_CC_CTRL_21_FINE = 53; - public const int AK_MIDI_CC_CTRL_22_FINE = 54; - public const int AK_MIDI_CC_CTRL_23_FINE = 55; - public const int AK_MIDI_CC_CTRL_24_FINE = 56; - public const int AK_MIDI_CC_CTRL_25_FINE = 57; - public const int AK_MIDI_CC_CTRL_26_FINE = 58; - public const int AK_MIDI_CC_CTRL_27_FINE = 59; - public const int AK_MIDI_CC_CTRL_28_FINE = 60; - public const int AK_MIDI_CC_CTRL_29_FINE = 61; - public const int AK_MIDI_CC_CTRL_30_FINE = 62; - public const int AK_MIDI_CC_CTRL_31_FINE = 63; - public const int AK_MIDI_CC_HOLD_PEDAL = 64; - public const int AK_MIDI_CC_PORTAMENTO_ON_OFF = 65; - public const int AK_MIDI_CC_SUSTENUTO_PEDAL = 66; - public const int AK_MIDI_CC_SOFT_PEDAL = 67; - public const int AK_MIDI_CC_LEGATO_PEDAL = 68; - public const int AK_MIDI_CC_HOLD_PEDAL_2 = 69; - public const int AK_MIDI_CC_SOUND_VARIATION = 70; - public const int AK_MIDI_CC_SOUND_TIMBRE = 71; - public const int AK_MIDI_CC_SOUND_RELEASE_TIME = 72; - public const int AK_MIDI_CC_SOUND_ATTACK_TIME = 73; - public const int AK_MIDI_CC_SOUND_BRIGHTNESS = 74; - public const int AK_MIDI_CC_SOUND_CTRL_6 = 75; - public const int AK_MIDI_CC_SOUND_CTRL_7 = 76; - public const int AK_MIDI_CC_SOUND_CTRL_8 = 77; - public const int AK_MIDI_CC_SOUND_CTRL_9 = 78; - public const int AK_MIDI_CC_SOUND_CTRL_10 = 79; - public const int AK_MIDI_CC_GENERAL_BUTTON_1 = 80; - public const int AK_MIDI_CC_GENERAL_BUTTON_2 = 81; - public const int AK_MIDI_CC_GENERAL_BUTTON_3 = 82; - public const int AK_MIDI_CC_GENERAL_BUTTON_4 = 83; - public const int AK_MIDI_CC_REVERB_LEVEL = 91; - public const int AK_MIDI_CC_TREMOLO_LEVEL = 92; - public const int AK_MIDI_CC_CHORUS_LEVEL = 93; - public const int AK_MIDI_CC_CELESTE_LEVEL = 94; - public const int AK_MIDI_CC_PHASER_LEVEL = 95; - public const int AK_MIDI_CC_DATA_BUTTON_P1 = 96; - public const int AK_MIDI_CC_DATA_BUTTON_M1 = 97; - public const int AK_MIDI_CC_NON_REGISTER_COARSE = 98; - public const int AK_MIDI_CC_NON_REGISTER_FINE = 99; - public const int AK_MIDI_CC_ALL_SOUND_OFF = 120; - public const int AK_MIDI_CC_ALL_CONTROLLERS_OFF = 121; - public const int AK_MIDI_CC_LOCAL_KEYBOARD = 122; - public const int AK_MIDI_CC_ALL_NOTES_OFF = 123; - public const int AK_MIDI_CC_OMNI_MODE_OFF = 124; - public const int AK_MIDI_CC_OMNI_MODE_ON = 125; - public const int AK_MIDI_CC_OMNI_MONOPHONIC_ON = 126; - public const int AK_MIDI_CC_OMNI_POLYPHONIC_ON = 127; - public const int AK_MIDI_WWISE_CMD_PLAY = 0; - public const int AK_MIDI_WWISE_CMD_STOP = 1; - public const int AK_MIDI_WWISE_CMD_PAUSE = 2; - public const int AK_MIDI_WWISE_CMD_RESUME = 3; - public const int AK_MIDI_WWISE_CMD_SEEK_MS = 4; - public const int AK_MIDI_WWISE_CMD_SEEK_SAMPLES = 5; - public const int AK_SPEAKER_FRONT_LEFT = 0x1; - public const int AK_SPEAKER_FRONT_RIGHT = 0x2; - public const int AK_SPEAKER_FRONT_CENTER = 0x4; - public const int AK_SPEAKER_LOW_FREQUENCY = 0x8; - public const int AK_SPEAKER_BACK_LEFT = 0x10; - public const int AK_SPEAKER_BACK_RIGHT = 0x20; - public const int AK_SPEAKER_BACK_CENTER = 0x100; - public const int AK_SPEAKER_SIDE_LEFT = 0x200; - public const int AK_SPEAKER_SIDE_RIGHT = 0x400; - public const int AK_SPEAKER_TOP = 0x800; - public const int AK_SPEAKER_HEIGHT_FRONT_LEFT = 0x1000; - public const int AK_SPEAKER_HEIGHT_FRONT_CENTER = 0x2000; - public const int AK_SPEAKER_HEIGHT_FRONT_RIGHT = 0x4000; - public const int AK_SPEAKER_HEIGHT_BACK_LEFT = 0x8000; - public const int AK_SPEAKER_HEIGHT_BACK_CENTER = 0x10000; - public const int AK_SPEAKER_HEIGHT_BACK_RIGHT = 0x20000; - public const int AK_SPEAKER_SETUP_MONO = 0x4; - public const int AK_SPEAKER_SETUP_0POINT1 = 0x8; - public const int AK_SPEAKER_SETUP_1POINT1 = (0x4|0x8); - public const int AK_SPEAKER_SETUP_STEREO = (0x1|0x2); - public const int AK_SPEAKER_SETUP_2POINT1 = ((0x1|0x2)|0x8); - public const int AK_SPEAKER_SETUP_3STEREO = ((0x1|0x2)|0x4); - public const int AK_SPEAKER_SETUP_3POINT1 = (((0x1|0x2)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_4 = ((0x1|0x2)|0x200|0x400); - public const int AK_SPEAKER_SETUP_4POINT1 = (((0x1|0x2)|0x200|0x400)|0x8); - public const int AK_SPEAKER_SETUP_5 = (((0x1|0x2)|0x200|0x400)|0x4); - public const int AK_SPEAKER_SETUP_5POINT1 = ((((0x1|0x2)|0x200|0x400)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_6 = (((0x1|0x2)|0x200|0x400)|0x10|0x20); - public const int AK_SPEAKER_SETUP_6POINT1 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x8); - public const int AK_SPEAKER_SETUP_7 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4); - public const int AK_SPEAKER_SETUP_7POINT1 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_SURROUND = ((0x1|0x2)|0x100); - public const int AK_SPEAKER_SETUP_DPL2 = (((0x1|0x2)|0x200|0x400)); - public const int AK_SPEAKER_SETUP_HEIGHT_2 = (0x1000|0x4000); - public const int AK_SPEAKER_SETUP_HEIGHT_4 = ((0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_HEIGHT_5 = (((0x1000|0x4000)|0x8000|0x20000)|0x2000); - public const int AK_SPEAKER_SETUP_HEIGHT_ALL = ((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x10000); - public const int AK_SPEAKER_SETUP_HEIGHT_4_TOP = (((0x1000|0x4000)|0x8000|0x20000)|0x800); - public const int AK_SPEAKER_SETUP_HEIGHT_5_TOP = ((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x800); - public const int AK_SPEAKER_SETUP_AURO_222 = (((0x1|0x2)|0x200|0x400)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_AURO_8 = ((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_AURO_9 = (((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4); - public const int AK_SPEAKER_SETUP_AURO_9POINT1 = ((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_AURO_10 = ((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800); - public const int AK_SPEAKER_SETUP_AURO_10POINT1 = (((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800)|0x8); - public const int AK_SPEAKER_SETUP_AURO_11 = (((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800)|0x2000); - public const int AK_SPEAKER_SETUP_AURO_11POINT1 = ((((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800)|0x2000)|0x8); - public const int AK_SPEAKER_SETUP_AURO_11_740 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|((0x1000|0x4000)|0x8000|0x20000)); - public const int AK_SPEAKER_SETUP_AURO_11POINT1_740 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|((0x1000|0x4000)|0x8000|0x20000))|0x8); - public const int AK_SPEAKER_SETUP_AURO_13_751 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|(((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x800); - public const int AK_SPEAKER_SETUP_AURO_13POINT1_751 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|(((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x800)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_5_0_2 = ((((0x1|0x2)|0x200|0x400)|0x4)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_DOLBY_5_1_2 = (((((0x1|0x2)|0x200|0x400)|0x4)|0x1000|0x4000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_6_0_2 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_DOLBY_6_1_2 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_6_0_4 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_DOLBY_6_1_4 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000)|0x8000|0x20000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_7_0_2 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_DOLBY_7_1_2 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_7_0_4 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_DOLBY_7_1_4 = (((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000)|0x8000|0x20000)|0x8); - public const int AK_SPEAKER_SETUP_ALL_SPEAKERS = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)|0x100|((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x10000)|0x800); - public const int AK_IDX_SETUP_FRONT_LEFT = (0); - public const int AK_IDX_SETUP_FRONT_RIGHT = (1); - public const int AK_IDX_SETUP_CENTER = (2); - public const int AK_IDX_SETUP_NOCENTER_BACK_LEFT = (2); - public const int AK_IDX_SETUP_NOCENTER_BACK_RIGHT = (3); - public const int AK_IDX_SETUP_NOCENTER_SIDE_LEFT = (4); - public const int AK_IDX_SETUP_NOCENTER_SIDE_RIGHT = (5); - public const int AK_IDX_SETUP_WITHCENTER_BACK_LEFT = (3); - public const int AK_IDX_SETUP_WITHCENTER_BACK_RIGHT = (4); - public const int AK_IDX_SETUP_WITHCENTER_SIDE_LEFT = (5); - public const int AK_IDX_SETUP_WITHCENTER_SIDE_RIGHT = (6); - public const int AK_IDX_SETUP_0_LFE = (0); - public const int AK_IDX_SETUP_1_CENTER = (0); - public const int AK_IDX_SETUP_1_LFE = (1); - public const int AK_IDX_SETUP_2_LEFT = (0); - public const int AK_IDX_SETUP_2_RIGHT = (1); - public const int AK_IDX_SETUP_2_LFE = (2); - public const int AK_IDX_SETUP_3_LEFT = (0); - public const int AK_IDX_SETUP_3_RIGHT = (1); - public const int AK_IDX_SETUP_3_CENTER = (2); - public const int AK_IDX_SETUP_3_LFE = (3); - public const int AK_IDX_SETUP_4_FRONTLEFT = (0); - public const int AK_IDX_SETUP_4_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_4_REARLEFT = (2); - public const int AK_IDX_SETUP_4_REARRIGHT = (3); - public const int AK_IDX_SETUP_4_LFE = (4); - public const int AK_IDX_SETUP_5_FRONTLEFT = (0); - public const int AK_IDX_SETUP_5_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_5_CENTER = (2); - public const int AK_IDX_SETUP_5_REARLEFT = (3); - public const int AK_IDX_SETUP_5_REARRIGHT = (4); - public const int AK_IDX_SETUP_5_LFE = (5); - public const int AK_IDX_SETUP_6_FRONTLEFT = (0); - public const int AK_IDX_SETUP_6_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_6_REARLEFT = (2); - public const int AK_IDX_SETUP_6_REARRIGHT = (3); - public const int AK_IDX_SETUP_6_SIDELEFT = (4); - public const int AK_IDX_SETUP_6_SIDERIGHT = (5); - public const int AK_IDX_SETUP_6_LFE = (6); - public const int AK_IDX_SETUP_7_FRONTLEFT = (0); - public const int AK_IDX_SETUP_7_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_7_CENTER = (2); - public const int AK_IDX_SETUP_7_REARLEFT = (3); - public const int AK_IDX_SETUP_7_REARRIGHT = (4); - public const int AK_IDX_SETUP_7_SIDELEFT = (5); - public const int AK_IDX_SETUP_7_SIDERIGHT = (6); - public const int AK_IDX_SETUP_7_LFE = (7); - public const int AK_SPEAKER_SETUP_0_1 = (0x8); - public const int AK_SPEAKER_SETUP_1_0_CENTER = (0x4); - public const int AK_SPEAKER_SETUP_1_1_CENTER = (0x4|0x8); - public const int AK_SPEAKER_SETUP_2_0 = (0x1|0x2); - public const int AK_SPEAKER_SETUP_2_1 = (0x1|0x2|0x8); - public const int AK_SPEAKER_SETUP_3_0 = (0x1|0x2|0x4); - public const int AK_SPEAKER_SETUP_3_1 = ((0x1|0x2|0x4)|0x8); - public const int AK_SPEAKER_SETUP_FRONT = ((0x1|0x2|0x4)); - public const int AK_SPEAKER_SETUP_4_0 = (((0x1|0x2)|0x200|0x400)); - public const int AK_SPEAKER_SETUP_4_1 = ((((0x1|0x2)|0x200|0x400)|0x8)); - public const int AK_SPEAKER_SETUP_5_0 = ((((0x1|0x2)|0x200|0x400)|0x4)); - public const int AK_SPEAKER_SETUP_5_1 = (((((0x1|0x2)|0x200|0x400)|0x4)|0x8)); - public const int AK_SPEAKER_SETUP_6_0 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)); - public const int AK_SPEAKER_SETUP_6_1 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x8)); - public const int AK_SPEAKER_SETUP_7_0 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)); - public const int AK_SPEAKER_SETUP_7_1 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)); - public const int AK_SPEAKER_SETUP_DEFAULT_PLANE = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)); - public const int AK_SUPPORTED_STANDARD_CHANNEL_MASK = (((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)|0x100|((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x10000)|0x800)); - public const int AK_STANDARD_MAX_NUM_CHANNELS = (8); - public const int AK_MAX_AMBISONICS_ORDER = (5); - public const int AK_MAX_NUM_TEXTURE = 4; - public const int AK_MAX_REFLECT_ORDER = 4; - public const int AK_MAX_REFLECTION_PATH_LENGTH = (4+4); - public const int AK_MAX_SOUND_PROPAGATION_DEPTH = 8; - public const double AK_DEFAULT_DIFFR_SHADOW_DEGREES = (30.0); - public const double AK_DEFAULT_DIFFR_SHADOW_ATTEN = (1.0); - public const double AK_DEFAULT_MOVEMENT_THRESHOLD = (1.0); - public const int AK_DEFAULT_REFLECTIONS_ORDER = (1); - public const double AK_SA_EPSILON = (0.001); - public const double AK_SA_DIFFRACTION_EPSILON = (0.002); - public const double AK_SA_DIFFRACTION_DOT_EPSILON = (0.000002); - public const double AK_SA_PLANE_THICKNESS_RATIO = (0.005); - public const double AK_SA_MIN_ENVIRONMENT_ABSORPTION = (0.1); - public const double AK_SA_MIN_ENVIRONMENT_SURFACE_AREA = (1.0); -} -#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEngine_Mac.cs.meta b/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEngine_Mac.cs.meta deleted file mode 100644 index f53c8a800..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkSoundEngine_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b7ed7cc5039b41c4bacc954e88cc6ebe -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkThreadProperties_Mac.cs b/Assets/Wwise/API/Runtime/Generated/Mac/AkThreadProperties_Mac.cs deleted file mode 100644 index 15c0368f0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkThreadProperties_Mac.cs +++ /dev/null @@ -1,64 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkThreadProperties : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkThreadProperties(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkThreadProperties obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkThreadProperties() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkThreadProperties(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public int nPriority { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_nPriority_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_nPriority_get(swigCPtr); } - } - - public uint uStackSize { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_uStackSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_uStackSize_get(swigCPtr); } - } - - public int uSchedPolicy { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_uSchedPolicy_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_uSchedPolicy_get(swigCPtr); } - } - - public uint dwAffinityMask { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_dwAffinityMask_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_dwAffinityMask_get(swigCPtr); } - } - - public AkThreadProperties() : this(AkSoundEnginePINVOKE.CSharp_new_AkThreadProperties(), true) { - } - -} -#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkThreadProperties_Mac.cs.meta b/Assets/Wwise/API/Runtime/Generated/Mac/AkThreadProperties_Mac.cs.meta deleted file mode 100644 index a6dd03a81..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkThreadProperties_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: abc0cb35c7eb3cb44b63f3c0437019a5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkUnityPlatformSpecificSettings_Mac.cs b/Assets/Wwise/API/Runtime/Generated/Mac/AkUnityPlatformSpecificSettings_Mac.cs deleted file mode 100644 index 3345c4ca9..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkUnityPlatformSpecificSettings_Mac.cs +++ /dev/null @@ -1,49 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkUnityPlatformSpecificSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkUnityPlatformSpecificSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkUnityPlatformSpecificSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkUnityPlatformSpecificSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkUnityPlatformSpecificSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - -} -#endif // #if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Mac/AkUnityPlatformSpecificSettings_Mac.cs.meta b/Assets/Wwise/API/Runtime/Generated/Mac/AkUnityPlatformSpecificSettings_Mac.cs.meta deleted file mode 100644 index b51db1000..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Mac/AkUnityPlatformSpecificSettings_Mac.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7edf6503efe98df42aa62c6c66bbeeed -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows.meta b/Assets/Wwise/API/Runtime/Generated/Windows.meta deleted file mode 100644 index 76f858778..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e67bc33b3d8d9b6448a908060f9707b9 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkCommunicationSettings_Windows.cs b/Assets/Wwise/API/Runtime/Generated/Windows/AkCommunicationSettings_Windows.cs deleted file mode 100644 index b72f54a03..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkCommunicationSettings_Windows.cs +++ /dev/null @@ -1,78 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkCommunicationSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkCommunicationSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkCommunicationSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkCommunicationSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkCommunicationSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkCommunicationSettings() : this(AkSoundEnginePINVOKE.CSharp_new_AkCommunicationSettings(), true) { - } - - public uint uPoolSize { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uPoolSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uPoolSize_get(swigCPtr); } - } - - public ushort uDiscoveryBroadcastPort { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_get(swigCPtr); } - } - - public ushort uCommandPort { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uCommandPort_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uCommandPort_get(swigCPtr); } - } - - public ushort uNotificationPort { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uNotificationPort_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_uNotificationPort_get(swigCPtr); } - } - - public AkCommunicationSettings.AkCommSystem commSystem { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_commSystem_set(swigCPtr, (int)value); } get { return (AkCommunicationSettings.AkCommSystem)AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_commSystem_get(swigCPtr); } - } - - public bool bInitSystemLib { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_bInitSystemLib_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_bInitSystemLib_get(swigCPtr); } - } - - public string szAppNetworkName { set { AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_szAppNetworkName_set(swigCPtr, value); } get { return AkSoundEngine.StringFromIntPtrString(AkSoundEnginePINVOKE.CSharp_AkCommunicationSettings_szAppNetworkName_get(swigCPtr)); } - } - - public enum AkCommSystem { - AkCommSystem_Socket, - AkCommSystem_HTCS - } - -} -#endif // #if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkCommunicationSettings_Windows.cs.meta b/Assets/Wwise/API/Runtime/Generated/Windows/AkCommunicationSettings_Windows.cs.meta deleted file mode 100644 index f6c3c6afc..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkCommunicationSettings_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 34bb853ff179af24b894a927dc65a527 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkPlatformInitSettings_Windows.cs b/Assets/Wwise/API/Runtime/Generated/Windows/AkPlatformInitSettings_Windows.cs deleted file mode 100644 index aef1fb996..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkPlatformInitSettings_Windows.cs +++ /dev/null @@ -1,93 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkPlatformInitSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkPlatformInitSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkPlatformInitSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkPlatformInitSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkPlatformInitSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public AkThreadProperties threadLEngine { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadLEngine_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadLEngine_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public AkThreadProperties threadOutputMgr { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadOutputMgr_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadOutputMgr_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public AkThreadProperties threadBankManager { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadBankManager_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadBankManager_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public AkThreadProperties threadMonitor { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadMonitor_set(swigCPtr, AkThreadProperties.getCPtr(value)); } - get { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_threadMonitor_get(swigCPtr); - AkThreadProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkThreadProperties(cPtr, false); - return ret; - } - } - - public ushort uNumRefillsInVoice { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get(swigCPtr); } - } - - public uint uSampleRate { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uSampleRate_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uSampleRate_get(swigCPtr); } - } - - public bool bEnableAvxSupport { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_bEnableAvxSupport_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_bEnableAvxSupport_get(swigCPtr); } - } - - public uint uMaxSystemAudioObjects { set { AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uMaxSystemAudioObjects_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkPlatformInitSettings_uMaxSystemAudioObjects_get(swigCPtr); } - } - -} -#endif // #if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkPlatformInitSettings_Windows.cs.meta b/Assets/Wwise/API/Runtime/Generated/Windows/AkPlatformInitSettings_Windows.cs.meta deleted file mode 100644 index 6daa138bd..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkPlatformInitSettings_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 201f83774a5ee9241adf920e841bbacb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs b/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs deleted file mode 100644 index 66e003e2d..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs +++ /dev/null @@ -1,2359 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -class AkSoundEnginePINVOKE { - - static AkSoundEnginePINVOKE() { - } - - - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_PIPELINE_ID_get")] - public static extern uint CSharp_AK_INVALID_PIPELINE_ID_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_AUDIO_OBJECT_ID_get")] - public static extern ulong CSharp_AK_INVALID_AUDIO_OBJECT_ID_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SOUNDBANK_VERSION_get")] - public static extern uint CSharp_AK_SOUNDBANK_VERSION_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerFrame_set")] - public static extern void CSharp_AkAudioSettings_uNumSamplesPerFrame_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerFrame_get")] - public static extern uint CSharp_AkAudioSettings_uNumSamplesPerFrame_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerSecond_set")] - public static extern void CSharp_AkAudioSettings_uNumSamplesPerSecond_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSettings_uNumSamplesPerSecond_get")] - public static extern uint CSharp_AkAudioSettings_uNumSamplesPerSecond_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioSettings")] - public static extern global::System.IntPtr CSharp_new_AkAudioSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioSettings")] - public static extern void CSharp_delete_AkAudioSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_idDevice_set")] - public static extern void CSharp_AkDeviceDescription_idDevice_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_idDevice_get")] - public static extern uint CSharp_AkDeviceDescription_idDevice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceName_set")] - public static extern void CSharp_AkDeviceDescription_deviceName_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceName_get")] - public static extern global::System.IntPtr CSharp_AkDeviceDescription_deviceName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceStateMask_set")] - public static extern void CSharp_AkDeviceDescription_deviceStateMask_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_deviceStateMask_get")] - public static extern int CSharp_AkDeviceDescription_deviceStateMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_isDefaultDevice_set")] - public static extern void CSharp_AkDeviceDescription_isDefaultDevice_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_isDefaultDevice_get")] - public static extern bool CSharp_AkDeviceDescription_isDefaultDevice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_Clear")] - public static extern void CSharp_AkDeviceDescription_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_GetSizeOf")] - public static extern int CSharp_AkDeviceDescription_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceDescription_Clone")] - public static extern void CSharp_AkDeviceDescription_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDeviceDescription")] - public static extern global::System.IntPtr CSharp_new_AkDeviceDescription(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDeviceDescription")] - public static extern void CSharp_delete_AkDeviceDescription(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_Position")] - public static extern UnityEngine.Vector3 CSharp_AkTransform_Position(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_OrientationFront")] - public static extern UnityEngine.Vector3 CSharp_AkTransform_OrientationFront(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_OrientationTop")] - public static extern UnityEngine.Vector3 CSharp_AkTransform_OrientationTop(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_Set__SWIG_0")] - public static extern void CSharp_AkTransform_Set__SWIG_0(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2, UnityEngine.Vector3 jarg3, UnityEngine.Vector3 jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_Set__SWIG_1")] - public static extern void CSharp_AkTransform_Set__SWIG_1(global::System.IntPtr jarg1, float jarg2, float jarg3, float jarg4, float jarg5, float jarg6, float jarg7, float jarg8, float jarg9, float jarg10); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetPosition__SWIG_0")] - public static extern void CSharp_AkTransform_SetPosition__SWIG_0(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetPosition__SWIG_1")] - public static extern void CSharp_AkTransform_SetPosition__SWIG_1(global::System.IntPtr jarg1, float jarg2, float jarg3, float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetOrientation__SWIG_0")] - public static extern void CSharp_AkTransform_SetOrientation__SWIG_0(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2, UnityEngine.Vector3 jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTransform_SetOrientation__SWIG_1")] - public static extern void CSharp_AkTransform_SetOrientation__SWIG_1(global::System.IntPtr jarg1, float jarg2, float jarg3, float jarg4, float jarg5, float jarg6, float jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTransform")] - public static extern global::System.IntPtr CSharp_new_AkTransform(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkTransform")] - public static extern void CSharp_delete_AkTransform(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_occlusion_set")] - public static extern void CSharp_AkObstructionOcclusionValues_occlusion_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_occlusion_get")] - public static extern float CSharp_AkObstructionOcclusionValues_occlusion_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_obstruction_set")] - public static extern void CSharp_AkObstructionOcclusionValues_obstruction_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_obstruction_get")] - public static extern float CSharp_AkObstructionOcclusionValues_obstruction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_Clear")] - public static extern void CSharp_AkObstructionOcclusionValues_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_GetSizeOf")] - public static extern int CSharp_AkObstructionOcclusionValues_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObstructionOcclusionValues_Clone")] - public static extern void CSharp_AkObstructionOcclusionValues_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkObstructionOcclusionValues")] - public static extern global::System.IntPtr CSharp_new_AkObstructionOcclusionValues(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkObstructionOcclusionValues")] - public static extern void CSharp_delete_AkObstructionOcclusionValues(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_position_set")] - public static extern void CSharp_AkChannelEmitter_position_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_position_get")] - public static extern global::System.IntPtr CSharp_AkChannelEmitter_position_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_uInputChannels_set")] - public static extern void CSharp_AkChannelEmitter_uInputChannels_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelEmitter_uInputChannels_get")] - public static extern uint CSharp_AkChannelEmitter_uInputChannels_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkChannelEmitter")] - public static extern void CSharp_delete_AkChannelEmitter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_listenerID_set")] - public static extern void CSharp_AkAuxSendValue_listenerID_set(global::System.IntPtr jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_listenerID_get")] - public static extern ulong CSharp_AkAuxSendValue_listenerID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_auxBusID_set")] - public static extern void CSharp_AkAuxSendValue_auxBusID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_auxBusID_get")] - public static extern uint CSharp_AkAuxSendValue_auxBusID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_fControlValue_set")] - public static extern void CSharp_AkAuxSendValue_fControlValue_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_fControlValue_get")] - public static extern float CSharp_AkAuxSendValue_fControlValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_Set")] - public static extern void CSharp_AkAuxSendValue_Set(global::System.IntPtr jarg1, ulong jarg2, uint jarg3, float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_IsSame")] - public static extern bool CSharp_AkAuxSendValue_IsSame(global::System.IntPtr jarg1, ulong jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAuxSendValue_GetSizeOf")] - public static extern int CSharp_AkAuxSendValue_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAuxSendValue")] - public static extern void CSharp_delete_AkAuxSendValue(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRamp__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkRamp__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRamp__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkRamp__SWIG_1(float jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fPrev_set")] - public static extern void CSharp_AkRamp_fPrev_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fPrev_get")] - public static extern float CSharp_AkRamp_fPrev_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fNext_set")] - public static extern void CSharp_AkRamp_fNext_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRamp_fNext_get")] - public static extern float CSharp_AkRamp_fNext_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkRamp")] - public static extern void CSharp_delete_AkRamp(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INT_get")] - public static extern ushort CSharp_AK_INT_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_FLOAT_get")] - public static extern ushort CSharp_AK_FLOAT_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INTERLEAVED_get")] - public static extern byte CSharp_AK_INTERLEAVED_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_NONINTERLEAVED_get")] - public static extern byte CSharp_AK_NONINTERLEAVED_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_LE_NATIVE_BITSPERSAMPLE_get")] - public static extern uint CSharp_AK_LE_NATIVE_BITSPERSAMPLE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_LE_NATIVE_SAMPLETYPE_get")] - public static extern uint CSharp_AK_LE_NATIVE_SAMPLETYPE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_LE_NATIVE_INTERLEAVE_get")] - public static extern uint CSharp_AK_LE_NATIVE_INTERLEAVE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uSampleRate_set")] - public static extern void CSharp_AkAudioFormat_uSampleRate_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uSampleRate_get")] - public static extern uint CSharp_AkAudioFormat_uSampleRate_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_channelConfig_set")] - public static extern void CSharp_AkAudioFormat_channelConfig_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_channelConfig_get")] - public static extern global::System.IntPtr CSharp_AkAudioFormat_channelConfig_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBitsPerSample_set")] - public static extern void CSharp_AkAudioFormat_uBitsPerSample_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBitsPerSample_get")] - public static extern uint CSharp_AkAudioFormat_uBitsPerSample_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBlockAlign_set")] - public static extern void CSharp_AkAudioFormat_uBlockAlign_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uBlockAlign_get")] - public static extern uint CSharp_AkAudioFormat_uBlockAlign_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uTypeID_set")] - public static extern void CSharp_AkAudioFormat_uTypeID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uTypeID_get")] - public static extern uint CSharp_AkAudioFormat_uTypeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uInterleaveID_set")] - public static extern void CSharp_AkAudioFormat_uInterleaveID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_uInterleaveID_get")] - public static extern uint CSharp_AkAudioFormat_uInterleaveID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetNumChannels")] - public static extern uint CSharp_AkAudioFormat_GetNumChannels(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetBitsPerSample")] - public static extern uint CSharp_AkAudioFormat_GetBitsPerSample(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetBlockAlign")] - public static extern uint CSharp_AkAudioFormat_GetBlockAlign(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetTypeID")] - public static extern uint CSharp_AkAudioFormat_GetTypeID(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_GetInterleaveID")] - public static extern uint CSharp_AkAudioFormat_GetInterleaveID(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioFormat_SetAll")] - public static extern void CSharp_AkAudioFormat_SetAll(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3, uint jarg4, uint jarg5, uint jarg6, uint jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioFormat")] - public static extern global::System.IntPtr CSharp_new_AkAudioFormat(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioFormat")] - public static extern void CSharp_delete_AkAudioFormat(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_Ak3dData")] - public static extern global::System.IntPtr CSharp_new_Ak3dData(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_xform_set")] - public static extern void CSharp_Ak3dData_xform_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_xform_get")] - public static extern global::System.IntPtr CSharp_Ak3dData_xform_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_spread_set")] - public static extern void CSharp_Ak3dData_spread_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_spread_get")] - public static extern float CSharp_Ak3dData_spread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_focus_set")] - public static extern void CSharp_Ak3dData_focus_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_focus_get")] - public static extern float CSharp_Ak3dData_focus_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_uEmitterChannelMask_set")] - public static extern void CSharp_Ak3dData_uEmitterChannelMask_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3dData_uEmitterChannelMask_get")] - public static extern uint CSharp_Ak3dData_uEmitterChannelMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_Ak3dData")] - public static extern void CSharp_delete_Ak3dData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkBehavioralPositioningData")] - public static extern global::System.IntPtr CSharp_new_AkBehavioralPositioningData(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_center_set")] - public static extern void CSharp_AkBehavioralPositioningData_center_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_center_get")] - public static extern float CSharp_AkBehavioralPositioningData_center_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panLR_set")] - public static extern void CSharp_AkBehavioralPositioningData_panLR_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panLR_get")] - public static extern float CSharp_AkBehavioralPositioningData_panLR_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panBF_set")] - public static extern void CSharp_AkBehavioralPositioningData_panBF_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panBF_get")] - public static extern float CSharp_AkBehavioralPositioningData_panBF_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panDU_set")] - public static extern void CSharp_AkBehavioralPositioningData_panDU_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panDU_get")] - public static extern float CSharp_AkBehavioralPositioningData_panDU_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panSpatMix_set")] - public static extern void CSharp_AkBehavioralPositioningData_panSpatMix_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panSpatMix_get")] - public static extern float CSharp_AkBehavioralPositioningData_panSpatMix_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_spatMode_set")] - public static extern void CSharp_AkBehavioralPositioningData_spatMode_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_spatMode_get")] - public static extern int CSharp_AkBehavioralPositioningData_spatMode_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panType_set")] - public static extern void CSharp_AkBehavioralPositioningData_panType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_panType_get")] - public static extern int CSharp_AkBehavioralPositioningData_panType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_enableHeightSpread_set")] - public static extern void CSharp_AkBehavioralPositioningData_enableHeightSpread_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBehavioralPositioningData_enableHeightSpread_get")] - public static extern bool CSharp_AkBehavioralPositioningData_enableHeightSpread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkBehavioralPositioningData")] - public static extern void CSharp_delete_AkBehavioralPositioningData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_threeD_set")] - public static extern void CSharp_AkPositioningData_threeD_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_threeD_get")] - public static extern global::System.IntPtr CSharp_AkPositioningData_threeD_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_behavioral_set")] - public static extern void CSharp_AkPositioningData_behavioral_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningData_behavioral_get")] - public static extern global::System.IntPtr CSharp_AkPositioningData_behavioral_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPositioningData")] - public static extern global::System.IntPtr CSharp_new_AkPositioningData(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPositioningData")] - public static extern void CSharp_delete_AkPositioningData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_channelConfig_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_channelConfig_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_channelConfig_get")] - public static extern global::System.IntPtr CSharp_Ak3DAudioSinkCapabilities_channelConfig_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_get")] - public static extern uint CSharp_Ak3DAudioSinkCapabilities_uMaxSystemAudioObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_get")] - public static extern uint CSharp_Ak3DAudioSinkCapabilities_uAvailableSystemAudioObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bPassthrough_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_bPassthrough_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bPassthrough_get")] - public static extern bool CSharp_Ak3DAudioSinkCapabilities_bPassthrough_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_set")] - public static extern void CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_get")] - public static extern bool CSharp_Ak3DAudioSinkCapabilities_bMultiChannelObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_Ak3DAudioSinkCapabilities")] - public static extern global::System.IntPtr CSharp_new_Ak3DAudioSinkCapabilities(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_Ak3DAudioSinkCapabilities")] - public static extern void CSharp_delete_Ak3DAudioSinkCapabilities(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_pItem_set")] - public static extern void CSharp_AkIterator_pItem_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_pItem_get")] - public static extern global::System.IntPtr CSharp_AkIterator_pItem_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_NextIter")] - public static extern global::System.IntPtr CSharp_AkIterator_NextIter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_PrevIter")] - public static extern global::System.IntPtr CSharp_AkIterator_PrevIter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_GetItem")] - public static extern global::System.IntPtr CSharp_AkIterator_GetItem(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_IsEqualTo")] - public static extern bool CSharp_AkIterator_IsEqualTo(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkIterator_IsDifferentFrom")] - public static extern bool CSharp_AkIterator_IsDifferentFrom(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkIterator")] - public static extern global::System.IntPtr CSharp_new_AkIterator(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkIterator")] - public static extern void CSharp_delete_AkIterator(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylistItem__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkPlaylistItem__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylistItem__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkPlaylistItem__SWIG_1(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlaylistItem")] - public static extern void CSharp_delete_AkPlaylistItem(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_Assign")] - public static extern global::System.IntPtr CSharp_AkPlaylistItem_Assign(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_IsEqualTo")] - public static extern bool CSharp_AkPlaylistItem_IsEqualTo(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_SetExternalSources")] - public static extern int CSharp_AkPlaylistItem_SetExternalSources(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_audioNodeID_set")] - public static extern void CSharp_AkPlaylistItem_audioNodeID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_audioNodeID_get")] - public static extern uint CSharp_AkPlaylistItem_audioNodeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_msDelay_set")] - public static extern void CSharp_AkPlaylistItem_msDelay_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_msDelay_get")] - public static extern int CSharp_AkPlaylistItem_msDelay_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_pCustomInfo_set")] - public static extern void CSharp_AkPlaylistItem_pCustomInfo_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistItem_pCustomInfo_get")] - public static extern global::System.IntPtr CSharp_AkPlaylistItem_pCustomInfo_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylistArray")] - public static extern global::System.IntPtr CSharp_new_AkPlaylistArray(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlaylistArray")] - public static extern void CSharp_delete_AkPlaylistArray(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Begin")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Begin(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_End")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_End(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_FindEx")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_FindEx(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Erase__SWIG_0")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Erase__SWIG_0(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Erase__SWIG_1")] - public static extern void CSharp_AkPlaylistArray_Erase__SWIG_1(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_EraseSwap__SWIG_0")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_EraseSwap__SWIG_0(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_EraseSwap__SWIG_1")] - public static extern void CSharp_AkPlaylistArray_EraseSwap__SWIG_1(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_IsGrowingAllowed")] - public static extern bool CSharp_AkPlaylistArray_IsGrowingAllowed(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Reserve")] - public static extern int CSharp_AkPlaylistArray_Reserve(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Reserved")] - public static extern uint CSharp_AkPlaylistArray_Reserved(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Term")] - public static extern void CSharp_AkPlaylistArray_Term(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Length")] - public static extern uint CSharp_AkPlaylistArray_Length(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Data")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Data(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_IsEmpty")] - public static extern bool CSharp_AkPlaylistArray_IsEmpty(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Exists")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Exists(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_AddLast__SWIG_0")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_AddLast__SWIG_0(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_AddLast__SWIG_1")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_AddLast__SWIG_1(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Last")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Last(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_RemoveLast")] - public static extern void CSharp_AkPlaylistArray_RemoveLast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Remove")] - public static extern int CSharp_AkPlaylistArray_Remove(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_RemoveSwap")] - public static extern int CSharp_AkPlaylistArray_RemoveSwap(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_RemoveAll")] - public static extern void CSharp_AkPlaylistArray_RemoveAll(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_ItemAtIndex")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_ItemAtIndex(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Insert")] - public static extern global::System.IntPtr CSharp_AkPlaylistArray_Insert(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_GrowArray__SWIG_0")] - public static extern bool CSharp_AkPlaylistArray_GrowArray__SWIG_0(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_GrowArray__SWIG_1")] - public static extern bool CSharp_AkPlaylistArray_GrowArray__SWIG_1(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Resize")] - public static extern bool CSharp_AkPlaylistArray_Resize(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Transfer")] - public static extern void CSharp_AkPlaylistArray_Transfer(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylistArray_Copy")] - public static extern int CSharp_AkPlaylistArray_Copy(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_0")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_0(global::System.IntPtr jarg1, uint jarg2, int jarg3, global::System.IntPtr jarg4, uint jarg5, global::System.IntPtr jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_1")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_1(global::System.IntPtr jarg1, uint jarg2, int jarg3, global::System.IntPtr jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_2")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_2(global::System.IntPtr jarg1, uint jarg2, int jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_3")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_3(global::System.IntPtr jarg1, uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_Enqueue__SWIG_4")] - public static extern int CSharp_AkPlaylist_Enqueue__SWIG_4(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPlaylist")] - public static extern global::System.IntPtr CSharp_new_AkPlaylist(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlaylist")] - public static extern void CSharp_delete_AkPlaylist(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceOpen__SWIG_0")] - public static extern uint CSharp_DynamicSequenceOpen__SWIG_0(ulong jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceOpen__SWIG_1")] - public static extern uint CSharp_DynamicSequenceOpen__SWIG_1(ulong jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceOpen__SWIG_2")] - public static extern uint CSharp_DynamicSequenceOpen__SWIG_2(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceClose")] - public static extern int CSharp_DynamicSequenceClose(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePlay__SWIG_0")] - public static extern int CSharp_DynamicSequencePlay__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePlay__SWIG_1")] - public static extern int CSharp_DynamicSequencePlay__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePlay__SWIG_2")] - public static extern int CSharp_DynamicSequencePlay__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePause__SWIG_0")] - public static extern int CSharp_DynamicSequencePause__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePause__SWIG_1")] - public static extern int CSharp_DynamicSequencePause__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequencePause__SWIG_2")] - public static extern int CSharp_DynamicSequencePause__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceResume__SWIG_0")] - public static extern int CSharp_DynamicSequenceResume__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceResume__SWIG_1")] - public static extern int CSharp_DynamicSequenceResume__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceResume__SWIG_2")] - public static extern int CSharp_DynamicSequenceResume__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceStop__SWIG_0")] - public static extern int CSharp_DynamicSequenceStop__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceStop__SWIG_1")] - public static extern int CSharp_DynamicSequenceStop__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceStop__SWIG_2")] - public static extern int CSharp_DynamicSequenceStop__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceBreak")] - public static extern int CSharp_DynamicSequenceBreak(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Seek__SWIG_0")] - public static extern int CSharp_Seek__SWIG_0(uint jarg1, int jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Seek__SWIG_1")] - public static extern int CSharp_Seek__SWIG_1(uint jarg1, float jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceGetPauseTimes")] - public static extern int CSharp_DynamicSequenceGetPauseTimes(uint jarg1, out uint jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceLockPlaylist")] - public static extern global::System.IntPtr CSharp_DynamicSequenceLockPlaylist(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_DynamicSequenceUnlockPlaylist")] - public static extern int CSharp_DynamicSequenceUnlockPlaylist(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2, global::System.IntPtr jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_2")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_3")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkOutputSettings__SWIG_4")] - public static extern global::System.IntPtr CSharp_new_AkOutputSettings__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_audioDeviceShareset_set")] - public static extern void CSharp_AkOutputSettings_audioDeviceShareset_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_audioDeviceShareset_get")] - public static extern uint CSharp_AkOutputSettings_audioDeviceShareset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_idDevice_set")] - public static extern void CSharp_AkOutputSettings_idDevice_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_idDevice_get")] - public static extern uint CSharp_AkOutputSettings_idDevice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_ePanningRule_set")] - public static extern void CSharp_AkOutputSettings_ePanningRule_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_ePanningRule_get")] - public static extern int CSharp_AkOutputSettings_ePanningRule_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_channelConfig_set")] - public static extern void CSharp_AkOutputSettings_channelConfig_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkOutputSettings_channelConfig_get")] - public static extern global::System.IntPtr CSharp_AkOutputSettings_channelConfig_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkOutputSettings")] - public static extern void CSharp_delete_AkOutputSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTaskContext_uIdxThread_set")] - public static extern void CSharp_AkTaskContext_uIdxThread_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTaskContext_uIdxThread_get")] - public static extern uint CSharp_AkTaskContext_uIdxThread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTaskContext")] - public static extern global::System.IntPtr CSharp_new_AkTaskContext(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkTaskContext")] - public static extern void CSharp_delete_AkTaskContext(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxNumPaths_set")] - public static extern void CSharp_AkInitSettings_uMaxNumPaths_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxNumPaths_get")] - public static extern uint CSharp_AkInitSettings_uMaxNumPaths_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uCommandQueueSize_set")] - public static extern void CSharp_AkInitSettings_uCommandQueueSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uCommandQueueSize_get")] - public static extern uint CSharp_AkInitSettings_uCommandQueueSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bEnableGameSyncPreparation_set")] - public static extern void CSharp_AkInitSettings_bEnableGameSyncPreparation_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bEnableGameSyncPreparation_get")] - public static extern bool CSharp_AkInitSettings_bEnableGameSyncPreparation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uContinuousPlaybackLookAhead_set")] - public static extern void CSharp_AkInitSettings_uContinuousPlaybackLookAhead_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uContinuousPlaybackLookAhead_get")] - public static extern uint CSharp_AkInitSettings_uContinuousPlaybackLookAhead_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uNumSamplesPerFrame_set")] - public static extern void CSharp_AkInitSettings_uNumSamplesPerFrame_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uNumSamplesPerFrame_get")] - public static extern uint CSharp_AkInitSettings_uNumSamplesPerFrame_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMonitorQueuePoolSize_set")] - public static extern void CSharp_AkInitSettings_uMonitorQueuePoolSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMonitorQueuePoolSize_get")] - public static extern uint CSharp_AkInitSettings_uMonitorQueuePoolSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_settingsMainOutput_set")] - public static extern void CSharp_AkInitSettings_settingsMainOutput_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_settingsMainOutput_get")] - public static extern global::System.IntPtr CSharp_AkInitSettings_settingsMainOutput_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxHardwareTimeoutMs_set")] - public static extern void CSharp_AkInitSettings_uMaxHardwareTimeoutMs_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uMaxHardwareTimeoutMs_get")] - public static extern uint CSharp_AkInitSettings_uMaxHardwareTimeoutMs_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseSoundBankMgrThread_set")] - public static extern void CSharp_AkInitSettings_bUseSoundBankMgrThread_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseSoundBankMgrThread_get")] - public static extern bool CSharp_AkInitSettings_bUseSoundBankMgrThread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseLEngineThread_set")] - public static extern void CSharp_AkInitSettings_bUseLEngineThread_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bUseLEngineThread_get")] - public static extern bool CSharp_AkInitSettings_bUseLEngineThread_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_szPluginDLLPath_set")] - public static extern void CSharp_AkInitSettings_szPluginDLLPath_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_szPluginDLLPath_get")] - public static extern global::System.IntPtr CSharp_AkInitSettings_szPluginDLLPath_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_eFloorPlane_set")] - public static extern void CSharp_AkInitSettings_eFloorPlane_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_eFloorPlane_get")] - public static extern int CSharp_AkInitSettings_eFloorPlane_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fGameUnitsToMeters_set")] - public static extern void CSharp_AkInitSettings_fGameUnitsToMeters_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fGameUnitsToMeters_get")] - public static extern float CSharp_AkInitSettings_fGameUnitsToMeters_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uBankReadBufferSize_set")] - public static extern void CSharp_AkInitSettings_uBankReadBufferSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_uBankReadBufferSize_get")] - public static extern uint CSharp_AkInitSettings_uBankReadBufferSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fDebugOutOfRangeLimit_set")] - public static extern void CSharp_AkInitSettings_fDebugOutOfRangeLimit_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_fDebugOutOfRangeLimit_get")] - public static extern float CSharp_AkInitSettings_fDebugOutOfRangeLimit_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_set")] - public static extern void CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_get")] - public static extern bool CSharp_AkInitSettings_bDebugOutOfRangeCheckEnabled_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkInitSettings")] - public static extern void CSharp_delete_AkInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_sourceID_set")] - public static extern void CSharp_AkSourceSettings_sourceID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_sourceID_get")] - public static extern uint CSharp_AkSourceSettings_sourceID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_pMediaMemory_set")] - public static extern void CSharp_AkSourceSettings_pMediaMemory_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_pMediaMemory_get")] - public static extern global::System.IntPtr CSharp_AkSourceSettings_pMediaMemory_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_uMediaSize_set")] - public static extern void CSharp_AkSourceSettings_uMediaSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_uMediaSize_get")] - public static extern uint CSharp_AkSourceSettings_uMediaSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_Clear")] - public static extern void CSharp_AkSourceSettings_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_GetSizeOf")] - public static extern int CSharp_AkSourceSettings_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSourceSettings_Clone")] - public static extern void CSharp_AkSourceSettings_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSourceSettings")] - public static extern global::System.IntPtr CSharp_new_AkSourceSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSourceSettings")] - public static extern void CSharp_delete_AkSourceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_IsInitialized")] - public static extern bool CSharp_IsInitialized(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetAudioSettings")] - public static extern int CSharp_GetAudioSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerConfiguration__SWIG_0")] - public static extern global::System.IntPtr CSharp_GetSpeakerConfiguration__SWIG_0(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerConfiguration__SWIG_1")] - public static extern global::System.IntPtr CSharp_GetSpeakerConfiguration__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetOutputDeviceConfiguration")] - public static extern int CSharp_GetOutputDeviceConfiguration(ulong jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPanningRule__SWIG_0")] - public static extern int CSharp_GetPanningRule__SWIG_0(out int jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPanningRule__SWIG_1")] - public static extern int CSharp_GetPanningRule__SWIG_1(out int jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPanningRule__SWIG_0")] - public static extern int CSharp_SetPanningRule__SWIG_0(int jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPanningRule__SWIG_1")] - public static extern int CSharp_SetPanningRule__SWIG_1(int jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerAngles__SWIG_0")] - public static extern int CSharp_GetSpeakerAngles__SWIG_0([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, ref uint jarg2, out float jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSpeakerAngles__SWIG_1")] - public static extern int CSharp_GetSpeakerAngles__SWIG_1([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, ref uint jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSpeakerAngles__SWIG_0")] - public static extern int CSharp_SetSpeakerAngles__SWIG_0([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, uint jarg2, float jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSpeakerAngles__SWIG_1")] - public static extern int CSharp_SetSpeakerAngles__SWIG_1([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg1, uint jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetVolumeThreshold")] - public static extern int CSharp_SetVolumeThreshold(float jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMaxNumVoicesLimit")] - public static extern int CSharp_SetMaxNumVoicesLimit(ushort jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RenderAudio__SWIG_0")] - public static extern int CSharp_RenderAudio__SWIG_0(bool jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RenderAudio__SWIG_1")] - public static extern int CSharp_RenderAudio__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterPluginDLL__SWIG_0")] - public static extern int CSharp_RegisterPluginDLL__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterPluginDLL__SWIG_1")] - public static extern int CSharp_RegisterPluginDLL__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetIDFromString__SWIG_0")] - public static extern uint CSharp_GetIDFromString__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_0")] - public static extern uint CSharp_PostEvent__SWIG_0(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_1")] - public static extern uint CSharp_PostEvent__SWIG_1(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_2")] - public static extern uint CSharp_PostEvent__SWIG_2(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_3")] - public static extern uint CSharp_PostEvent__SWIG_3(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_4")] - public static extern uint CSharp_PostEvent__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_5")] - public static extern uint CSharp_PostEvent__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_6")] - public static extern uint CSharp_PostEvent__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEvent__SWIG_7")] - public static extern uint CSharp_PostEvent__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_0")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_0(uint jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5, uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_1")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_1(uint jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_2")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_2(uint jarg1, int jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_3")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_3(uint jarg1, int jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_4")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_4(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_5")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5, uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_6")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_7")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_8")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_8([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnEvent__SWIG_9")] - public static extern int CSharp_ExecuteActionOnEvent__SWIG_9([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_0")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_0(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8, uint jarg9); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_1")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_1(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_2")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_2(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostMIDIOnEvent__SWIG_3")] - public static extern uint CSharp_PostMIDIOnEvent__SWIG_3(uint jarg1, ulong jarg2, global::System.IntPtr jarg3, ushort jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_0")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_0(uint jarg1, ulong jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_1")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_1(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_2")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopMIDIOnEvent__SWIG_3")] - public static extern int CSharp_StopMIDIOnEvent__SWIG_3(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PinEventInStreamCache__SWIG_0")] - public static extern int CSharp_PinEventInStreamCache__SWIG_0(uint jarg1, sbyte jarg2, sbyte jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PinEventInStreamCache__SWIG_1")] - public static extern int CSharp_PinEventInStreamCache__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, sbyte jarg2, sbyte jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnpinEventInStreamCache__SWIG_0")] - public static extern int CSharp_UnpinEventInStreamCache__SWIG_0(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnpinEventInStreamCache__SWIG_1")] - public static extern int CSharp_UnpinEventInStreamCache__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBufferStatusForPinnedEvent__SWIG_0")] - public static extern int CSharp_GetBufferStatusForPinnedEvent__SWIG_0(uint jarg1, out float jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBufferStatusForPinnedEvent__SWIG_1")] - public static extern int CSharp_GetBufferStatusForPinnedEvent__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, out float jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_0")] - public static extern int CSharp_SeekOnEvent__SWIG_0(uint jarg1, ulong jarg2, int jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_1")] - public static extern int CSharp_SeekOnEvent__SWIG_1(uint jarg1, ulong jarg2, int jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_2")] - public static extern int CSharp_SeekOnEvent__SWIG_2(uint jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_3")] - public static extern int CSharp_SeekOnEvent__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_4")] - public static extern int CSharp_SeekOnEvent__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_5")] - public static extern int CSharp_SeekOnEvent__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_9")] - public static extern int CSharp_SeekOnEvent__SWIG_9(uint jarg1, ulong jarg2, float jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_10")] - public static extern int CSharp_SeekOnEvent__SWIG_10(uint jarg1, ulong jarg2, float jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_11")] - public static extern int CSharp_SeekOnEvent__SWIG_11(uint jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_12")] - public static extern int CSharp_SeekOnEvent__SWIG_12([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, float jarg3, bool jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_13")] - public static extern int CSharp_SeekOnEvent__SWIG_13([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, float jarg3, bool jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SeekOnEvent__SWIG_14")] - public static extern int CSharp_SeekOnEvent__SWIG_14([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelEventCallbackCookie")] - public static extern void CSharp_CancelEventCallbackCookie(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelEventCallbackGameObject")] - public static extern void CSharp_CancelEventCallbackGameObject(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelEventCallback")] - public static extern void CSharp_CancelEventCallback(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourcePlayPosition__SWIG_0")] - public static extern int CSharp_GetSourcePlayPosition__SWIG_0(uint jarg1, out int jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourcePlayPosition__SWIG_1")] - public static extern int CSharp_GetSourcePlayPosition__SWIG_1(uint jarg1, out int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourceStreamBuffering")] - public static extern int CSharp_GetSourceStreamBuffering(uint jarg1, out int jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopAll__SWIG_0")] - public static extern void CSharp_StopAll__SWIG_0(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopAll__SWIG_1")] - public static extern void CSharp_StopAll__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopPlayingID__SWIG_0")] - public static extern void CSharp_StopPlayingID__SWIG_0(uint jarg1, int jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopPlayingID__SWIG_1")] - public static extern void CSharp_StopPlayingID__SWIG_1(uint jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopPlayingID__SWIG_2")] - public static extern void CSharp_StopPlayingID__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnPlayingID__SWIG_0")] - public static extern void CSharp_ExecuteActionOnPlayingID__SWIG_0(int jarg1, uint jarg2, int jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnPlayingID__SWIG_1")] - public static extern void CSharp_ExecuteActionOnPlayingID__SWIG_1(int jarg1, uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ExecuteActionOnPlayingID__SWIG_2")] - public static extern void CSharp_ExecuteActionOnPlayingID__SWIG_2(int jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRandomSeed")] - public static extern void CSharp_SetRandomSeed(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MuteBackgroundMusic")] - public static extern void CSharp_MuteBackgroundMusic(bool jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBackgroundMusicMute")] - public static extern bool CSharp_GetBackgroundMusicMute(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SendPluginCustomGameData")] - public static extern int CSharp_SendPluginCustomGameData(uint jarg1, ulong jarg2, int jarg3, uint jarg4, uint jarg5, global::System.IntPtr jarg6, uint jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnregisterAllGameObj")] - public static extern int CSharp_UnregisterAllGameObj(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_0")] - public static extern int CSharp_SetMultiplePositions__SWIG_0(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_1")] - public static extern int CSharp_SetMultiplePositions__SWIG_1(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_2")] - public static extern int CSharp_SetMultiplePositions__SWIG_2(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultiplePositions__SWIG_3")] - public static extern int CSharp_SetMultiplePositions__SWIG_3(ulong jarg1, global::System.IntPtr jarg2, ushort jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetScalingFactor")] - public static extern int CSharp_SetScalingFactor(ulong jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearBanks")] - public static extern int CSharp_ClearBanks(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBankLoadIOSettings")] - public static extern int CSharp_SetBankLoadIOSettings(float jarg1, sbyte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_0")] - public static extern int CSharp_LoadBank__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_2")] - public static extern int CSharp_LoadBank__SWIG_2(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryView__SWIG_0")] - public static extern int CSharp_LoadBankMemoryView__SWIG_0(global::System.IntPtr jarg1, uint jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryCopy__SWIG_0")] - public static extern int CSharp_LoadBankMemoryCopy__SWIG_0(global::System.IntPtr jarg1, uint jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_3")] - public static extern int CSharp_LoadBank__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, out uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBank__SWIG_5")] - public static extern int CSharp_LoadBank__SWIG_5(uint jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryView__SWIG_1")] - public static extern int CSharp_LoadBankMemoryView__SWIG_1(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, out uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadBankMemoryCopy__SWIG_1")] - public static extern int CSharp_LoadBankMemoryCopy__SWIG_1(global::System.IntPtr jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, out uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_0")] - public static extern int CSharp_UnloadBank__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_2")] - public static extern int CSharp_UnloadBank__SWIG_2(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_3")] - public static extern int CSharp_UnloadBank__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadBank__SWIG_5")] - public static extern int CSharp_UnloadBank__SWIG_5(uint jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_CancelBankCallbackCookie")] - public static extern void CSharp_CancelBankCallbackCookie(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_0")] - public static extern int CSharp_PrepareBank__SWIG_0(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_1")] - public static extern int CSharp_PrepareBank__SWIG_1(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_4")] - public static extern int CSharp_PrepareBank__SWIG_4(int jarg1, uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_5")] - public static extern int CSharp_PrepareBank__SWIG_5(int jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_6")] - public static extern int CSharp_PrepareBank__SWIG_6(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_7")] - public static extern int CSharp_PrepareBank__SWIG_7(int jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_10")] - public static extern int CSharp_PrepareBank__SWIG_10(int jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareBank__SWIG_11")] - public static extern int CSharp_PrepareBank__SWIG_11(int jarg1, uint jarg2, global::System.IntPtr jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearPreparedEvents")] - public static extern int CSharp_ClearPreparedEvents(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_0")] - public static extern int CSharp_PrepareEvent__SWIG_0(int jarg1, global::System.IntPtr jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_1")] - public static extern int CSharp_PrepareEvent__SWIG_1(int jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_2")] - public static extern int CSharp_PrepareEvent__SWIG_2(int jarg1, global::System.IntPtr jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareEvent__SWIG_3")] - public static extern int CSharp_PrepareEvent__SWIG_3(int jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMedia")] - public static extern int CSharp_SetMedia(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnsetMedia")] - public static extern int CSharp_UnsetMedia(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_0")] - public static extern int CSharp_PrepareGameSyncs__SWIG_0(int jarg1, int jarg2, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg3, global::System.IntPtr jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_1")] - public static extern int CSharp_PrepareGameSyncs__SWIG_1(int jarg1, int jarg2, uint jarg3, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_2")] - public static extern int CSharp_PrepareGameSyncs__SWIG_2(int jarg1, int jarg2, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg3, global::System.IntPtr jarg4, uint jarg5, global::System.IntPtr jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PrepareGameSyncs__SWIG_3")] - public static extern int CSharp_PrepareGameSyncs__SWIG_3(int jarg1, int jarg2, uint jarg3, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg4, uint jarg5, global::System.IntPtr jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddListener")] - public static extern int CSharp_AddListener(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveListener")] - public static extern int CSharp_RemoveListener(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddDefaultListener")] - public static extern int CSharp_AddDefaultListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveDefaultListener")] - public static extern int CSharp_RemoveDefaultListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetListenersToDefault")] - public static extern int CSharp_ResetListenersToDefault(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetListenerSpatialization__SWIG_0")] - public static extern int CSharp_SetListenerSpatialization__SWIG_0(ulong jarg1, bool jarg2, global::System.IntPtr jarg3, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]float[] jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetListenerSpatialization__SWIG_1")] - public static extern int CSharp_SetListenerSpatialization__SWIG_1(ulong jarg1, bool jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_0")] - public static extern int CSharp_SetRTPCValue__SWIG_0(uint jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_1")] - public static extern int CSharp_SetRTPCValue__SWIG_1(uint jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_2")] - public static extern int CSharp_SetRTPCValue__SWIG_2(uint jarg1, float jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_3")] - public static extern int CSharp_SetRTPCValue__SWIG_3(uint jarg1, float jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_4")] - public static extern int CSharp_SetRTPCValue__SWIG_4(uint jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_5")] - public static extern int CSharp_SetRTPCValue__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_6")] - public static extern int CSharp_SetRTPCValue__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_7")] - public static extern int CSharp_SetRTPCValue__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_8")] - public static extern int CSharp_SetRTPCValue__SWIG_8([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValue__SWIG_9")] - public static extern int CSharp_SetRTPCValue__SWIG_9([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_0")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_0(uint jarg1, float jarg2, uint jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_1")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_1(uint jarg1, float jarg2, uint jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_2")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_2(uint jarg1, float jarg2, uint jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_3")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_3(uint jarg1, float jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_4")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3, int jarg4, int jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_5")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3, int jarg4, int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_6")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRTPCValueByPlayingID__SWIG_7")] - public static extern int CSharp_SetRTPCValueByPlayingID__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, float jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_0")] - public static extern int CSharp_ResetRTPCValue__SWIG_0(uint jarg1, ulong jarg2, int jarg3, int jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_1")] - public static extern int CSharp_ResetRTPCValue__SWIG_1(uint jarg1, ulong jarg2, int jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_2")] - public static extern int CSharp_ResetRTPCValue__SWIG_2(uint jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_3")] - public static extern int CSharp_ResetRTPCValue__SWIG_3(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_4")] - public static extern int CSharp_ResetRTPCValue__SWIG_4(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_5")] - public static extern int CSharp_ResetRTPCValue__SWIG_5([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, int jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_6")] - public static extern int CSharp_ResetRTPCValue__SWIG_6([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3, int jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_7")] - public static extern int CSharp_ResetRTPCValue__SWIG_7([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_8")] - public static extern int CSharp_ResetRTPCValue__SWIG_8([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetRTPCValue__SWIG_9")] - public static extern int CSharp_ResetRTPCValue__SWIG_9([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSwitch__SWIG_0")] - public static extern int CSharp_SetSwitch__SWIG_0(uint jarg1, uint jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetSwitch__SWIG_1")] - public static extern int CSharp_SetSwitch__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostTrigger__SWIG_0")] - public static extern int CSharp_PostTrigger__SWIG_0(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostTrigger__SWIG_1")] - public static extern int CSharp_PostTrigger__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetState__SWIG_0")] - public static extern int CSharp_SetState__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetState__SWIG_1")] - public static extern int CSharp_SetState__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectAuxSendValues")] - public static extern int CSharp_SetGameObjectAuxSendValues(ulong jarg1, global::System.IntPtr jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectOutputBusVolume")] - public static extern int CSharp_SetGameObjectOutputBusVolume(ulong jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetActorMixerEffect")] - public static extern int CSharp_SetActorMixerEffect(uint jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusEffect__SWIG_0")] - public static extern int CSharp_SetBusEffect__SWIG_0(uint jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusEffect__SWIG_1")] - public static extern int CSharp_SetBusEffect__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetOutputDeviceEffect")] - public static extern int CSharp_SetOutputDeviceEffect(ulong jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMixer__SWIG_0")] - public static extern int CSharp_SetMixer__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMixer__SWIG_1")] - public static extern int CSharp_SetMixer__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusConfig__SWIG_0")] - public static extern int CSharp_SetBusConfig__SWIG_0(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusConfig__SWIG_1")] - public static extern int CSharp_SetBusConfig__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetObjectObstructionAndOcclusion")] - public static extern int CSharp_SetObjectObstructionAndOcclusion(ulong jarg1, ulong jarg2, float jarg3, float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetMultipleObstructionAndOcclusion")] - public static extern int CSharp_SetMultipleObstructionAndOcclusion(ulong jarg1, ulong jarg2, global::System.IntPtr jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StartOutputCapture")] - public static extern int CSharp_StartOutputCapture([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopOutputCapture")] - public static extern int CSharp_StopOutputCapture(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutputCaptureMarker")] - public static extern int CSharp_AddOutputCaptureMarker([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StartProfilerCapture")] - public static extern int CSharp_StartProfilerCapture([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopProfilerCapture")] - public static extern int CSharp_StopProfilerCapture(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveOutput")] - public static extern int CSharp_RemoveOutput(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ReplaceOutput__SWIG_0")] - public static extern int CSharp_ReplaceOutput__SWIG_0(global::System.IntPtr jarg1, ulong jarg2, out ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ReplaceOutput__SWIG_1")] - public static extern int CSharp_ReplaceOutput__SWIG_1(global::System.IntPtr jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetOutputID__SWIG_0")] - public static extern ulong CSharp_GetOutputID__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetOutputID__SWIG_1")] - public static extern ulong CSharp_GetOutputID__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusDevice__SWIG_0")] - public static extern int CSharp_SetBusDevice__SWIG_0(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBusDevice__SWIG_1")] - public static extern int CSharp_SetBusDevice__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceList__SWIG_0")] - public static extern int CSharp_GetDeviceList__SWIG_0(uint jarg1, uint jarg2, out uint jarg3, global::System.IntPtr jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceList__SWIG_1")] - public static extern int CSharp_GetDeviceList__SWIG_1(uint jarg1, out uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetOutputVolume")] - public static extern int CSharp_SetOutputVolume(ulong jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceSpatialAudioSupport")] - public static extern int CSharp_GetDeviceSpatialAudioSupport(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Suspend__SWIG_0")] - public static extern int CSharp_Suspend__SWIG_0(bool jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Suspend__SWIG_1")] - public static extern int CSharp_Suspend__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_WakeupFromSuspend")] - public static extern int CSharp_WakeupFromSuspend(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetBufferTick")] - public static extern uint CSharp_GetBufferTick(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSampleTick")] - public static extern ulong CSharp_GetSampleTick(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iCurrentPosition_set")] - public static extern void CSharp_AkSegmentInfo_iCurrentPosition_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iCurrentPosition_get")] - public static extern int CSharp_AkSegmentInfo_iCurrentPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPreEntryDuration_set")] - public static extern void CSharp_AkSegmentInfo_iPreEntryDuration_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPreEntryDuration_get")] - public static extern int CSharp_AkSegmentInfo_iPreEntryDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iActiveDuration_set")] - public static extern void CSharp_AkSegmentInfo_iActiveDuration_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iActiveDuration_get")] - public static extern int CSharp_AkSegmentInfo_iActiveDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPostExitDuration_set")] - public static extern void CSharp_AkSegmentInfo_iPostExitDuration_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iPostExitDuration_get")] - public static extern int CSharp_AkSegmentInfo_iPostExitDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iRemainingLookAheadTime_set")] - public static extern void CSharp_AkSegmentInfo_iRemainingLookAheadTime_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_iRemainingLookAheadTime_get")] - public static extern int CSharp_AkSegmentInfo_iRemainingLookAheadTime_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBeatDuration_set")] - public static extern void CSharp_AkSegmentInfo_fBeatDuration_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBeatDuration_get")] - public static extern float CSharp_AkSegmentInfo_fBeatDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBarDuration_set")] - public static extern void CSharp_AkSegmentInfo_fBarDuration_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fBarDuration_get")] - public static extern float CSharp_AkSegmentInfo_fBarDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridDuration_set")] - public static extern void CSharp_AkSegmentInfo_fGridDuration_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridDuration_get")] - public static extern float CSharp_AkSegmentInfo_fGridDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridOffset_set")] - public static extern void CSharp_AkSegmentInfo_fGridOffset_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSegmentInfo_fGridOffset_get")] - public static extern float CSharp_AkSegmentInfo_fGridOffset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSegmentInfo")] - public static extern global::System.IntPtr CSharp_new_AkSegmentInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSegmentInfo")] - public static extern void CSharp_delete_AkSegmentInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalCPU_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_totalCPU_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalCPU_get")] - public static extern float CSharp_AkResourceMonitorDataSummary_totalCPU_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_pluginCPU_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_pluginCPU_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_pluginCPU_get")] - public static extern float CSharp_AkResourceMonitorDataSummary_pluginCPU_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_physicalVoices_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_physicalVoices_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_physicalVoices_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_physicalVoices_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_virtualVoices_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_virtualVoices_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_virtualVoices_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_virtualVoices_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalVoices_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_totalVoices_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_totalVoices_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_totalVoices_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_nbActiveEvents_set")] - public static extern void CSharp_AkResourceMonitorDataSummary_nbActiveEvents_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkResourceMonitorDataSummary_nbActiveEvents_get")] - public static extern uint CSharp_AkResourceMonitorDataSummary_nbActiveEvents_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkResourceMonitorDataSummary")] - public static extern global::System.IntPtr CSharp_new_AkResourceMonitorDataSummary(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkResourceMonitorDataSummary")] - public static extern void CSharp_delete_AkResourceMonitorDataSummary(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_MIDI_CHANNEL_get")] - public static extern byte CSharp_AK_INVALID_MIDI_CHANNEL_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_INVALID_MIDI_NOTE_get")] - public static extern byte CSharp_AK_INVALID_MIDI_NOTE_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChan_set")] - public static extern void CSharp_AkMIDIEvent_byChan_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChan_get")] - public static extern byte CSharp_AkMIDIEvent_byChan_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam1_set")] - public static extern void CSharp_AkMIDIEvent_tGen_byParam1_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam1_get")] - public static extern byte CSharp_AkMIDIEvent_tGen_byParam1_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam2_set")] - public static extern void CSharp_AkMIDIEvent_tGen_byParam2_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tGen_byParam2_get")] - public static extern byte CSharp_AkMIDIEvent_tGen_byParam2_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tGen")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tGen(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tGen")] - public static extern void CSharp_delete_AkMIDIEvent_tGen(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byNote_set")] - public static extern void CSharp_AkMIDIEvent_tNoteOnOff_byNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byNote_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteOnOff_byNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_set")] - public static extern void CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteOnOff_byVelocity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tNoteOnOff")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tNoteOnOff(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tNoteOnOff")] - public static extern void CSharp_delete_AkMIDIEvent_tNoteOnOff(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byCc_set")] - public static extern void CSharp_AkMIDIEvent_tCc_byCc_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byCc_get")] - public static extern byte CSharp_AkMIDIEvent_tCc_byCc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byValue_set")] - public static extern void CSharp_AkMIDIEvent_tCc_byValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tCc_byValue_get")] - public static extern byte CSharp_AkMIDIEvent_tCc_byValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tCc")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tCc(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tCc")] - public static extern void CSharp_delete_AkMIDIEvent_tCc(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueLsb_set")] - public static extern void CSharp_AkMIDIEvent_tPitchBend_byValueLsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueLsb_get")] - public static extern byte CSharp_AkMIDIEvent_tPitchBend_byValueLsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueMsb_set")] - public static extern void CSharp_AkMIDIEvent_tPitchBend_byValueMsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tPitchBend_byValueMsb_get")] - public static extern byte CSharp_AkMIDIEvent_tPitchBend_byValueMsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tPitchBend")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tPitchBend(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tPitchBend")] - public static extern void CSharp_delete_AkMIDIEvent_tPitchBend(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byNote_set")] - public static extern void CSharp_AkMIDIEvent_tNoteAftertouch_byNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byNote_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteAftertouch_byNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byValue_set")] - public static extern void CSharp_AkMIDIEvent_tNoteAftertouch_byValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tNoteAftertouch_byValue_get")] - public static extern byte CSharp_AkMIDIEvent_tNoteAftertouch_byValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tNoteAftertouch")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tNoteAftertouch(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tNoteAftertouch")] - public static extern void CSharp_delete_AkMIDIEvent_tNoteAftertouch(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tChanAftertouch_byValue_set")] - public static extern void CSharp_AkMIDIEvent_tChanAftertouch_byValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tChanAftertouch_byValue_get")] - public static extern byte CSharp_AkMIDIEvent_tChanAftertouch_byValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tChanAftertouch")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tChanAftertouch(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tChanAftertouch")] - public static extern void CSharp_delete_AkMIDIEvent_tChanAftertouch(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tProgramChange_byProgramNum_set")] - public static extern void CSharp_AkMIDIEvent_tProgramChange_byProgramNum_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tProgramChange_byProgramNum_get")] - public static extern byte CSharp_AkMIDIEvent_tProgramChange_byProgramNum_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tProgramChange")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tProgramChange(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tProgramChange")] - public static extern void CSharp_delete_AkMIDIEvent_tProgramChange(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uCmd_set")] - public static extern void CSharp_AkMIDIEvent_tWwiseCmd_uCmd_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uCmd_get")] - public static extern ushort CSharp_AkMIDIEvent_tWwiseCmd_uCmd_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uArg_set")] - public static extern void CSharp_AkMIDIEvent_tWwiseCmd_uArg_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_tWwiseCmd_uArg_get")] - public static extern uint CSharp_AkMIDIEvent_tWwiseCmd_uArg_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent_tWwiseCmd")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent_tWwiseCmd(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent_tWwiseCmd")] - public static extern void CSharp_delete_AkMIDIEvent_tWwiseCmd(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Gen_set")] - public static extern void CSharp_AkMIDIEvent_Gen_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Gen_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_Gen_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Cc_set")] - public static extern void CSharp_AkMIDIEvent_Cc_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_Cc_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_Cc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteOnOff_set")] - public static extern void CSharp_AkMIDIEvent_NoteOnOff_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteOnOff_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_NoteOnOff_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_PitchBend_set")] - public static extern void CSharp_AkMIDIEvent_PitchBend_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_PitchBend_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_PitchBend_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteAftertouch_set")] - public static extern void CSharp_AkMIDIEvent_NoteAftertouch_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_NoteAftertouch_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_NoteAftertouch_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ChanAftertouch_set")] - public static extern void CSharp_AkMIDIEvent_ChanAftertouch_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ChanAftertouch_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_ChanAftertouch_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ProgramChange_set")] - public static extern void CSharp_AkMIDIEvent_ProgramChange_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_ProgramChange_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_ProgramChange_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_WwiseCmd_set")] - public static extern void CSharp_AkMIDIEvent_WwiseCmd_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_WwiseCmd_get")] - public static extern global::System.IntPtr CSharp_AkMIDIEvent_WwiseCmd_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byType_set")] - public static extern void CSharp_AkMIDIEvent_byType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byType_get")] - public static extern int CSharp_AkMIDIEvent_byType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byOnOffNote_set")] - public static extern void CSharp_AkMIDIEvent_byOnOffNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byOnOffNote_get")] - public static extern byte CSharp_AkMIDIEvent_byOnOffNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byVelocity_set")] - public static extern void CSharp_AkMIDIEvent_byVelocity_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byVelocity_get")] - public static extern byte CSharp_AkMIDIEvent_byVelocity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCc_set")] - public static extern void CSharp_AkMIDIEvent_byCc_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCc_get")] - public static extern int CSharp_AkMIDIEvent_byCc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCcValue_set")] - public static extern void CSharp_AkMIDIEvent_byCcValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byCcValue_get")] - public static extern byte CSharp_AkMIDIEvent_byCcValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueLsb_set")] - public static extern void CSharp_AkMIDIEvent_byValueLsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueLsb_get")] - public static extern byte CSharp_AkMIDIEvent_byValueLsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueMsb_set")] - public static extern void CSharp_AkMIDIEvent_byValueMsb_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byValueMsb_get")] - public static extern byte CSharp_AkMIDIEvent_byValueMsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byAftertouchNote_set")] - public static extern void CSharp_AkMIDIEvent_byAftertouchNote_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byAftertouchNote_get")] - public static extern byte CSharp_AkMIDIEvent_byAftertouchNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byNoteAftertouchValue_set")] - public static extern void CSharp_AkMIDIEvent_byNoteAftertouchValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byNoteAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEvent_byNoteAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChanAftertouchValue_set")] - public static extern void CSharp_AkMIDIEvent_byChanAftertouchValue_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byChanAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEvent_byChanAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byProgramNum_set")] - public static extern void CSharp_AkMIDIEvent_byProgramNum_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_byProgramNum_get")] - public static extern byte CSharp_AkMIDIEvent_byProgramNum_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uCmd_set")] - public static extern void CSharp_AkMIDIEvent_uCmd_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uCmd_get")] - public static extern ushort CSharp_AkMIDIEvent_uCmd_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uArg_set")] - public static extern void CSharp_AkMIDIEvent_uArg_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEvent_uArg_get")] - public static extern uint CSharp_AkMIDIEvent_uArg_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEvent")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEvent(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEvent")] - public static extern void CSharp_delete_AkMIDIEvent(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_uOffset_set")] - public static extern void CSharp_AkMIDIPost_uOffset_set(global::System.IntPtr jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_uOffset_get")] - public static extern ulong CSharp_AkMIDIPost_uOffset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_0")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_0(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_1")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_1(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4, bool jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_2")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_2(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_PostOnEvent__SWIG_3")] - public static extern uint CSharp_AkMIDIPost_PostOnEvent__SWIG_3(global::System.IntPtr jarg1, uint jarg2, ulong jarg3, uint jarg4, bool jarg5, uint jarg6, global::System.IntPtr jarg7, global::System.IntPtr jarg8, uint jarg9); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_Clone")] - public static extern void CSharp_AkMIDIPost_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_GetSizeOf")] - public static extern int CSharp_AkMIDIPost_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIPost")] - public static extern global::System.IntPtr CSharp_new_AkMIDIPost(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIPost")] - public static extern void CSharp_delete_AkMIDIPost(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSettings_fStreamingLookAheadRatio_set")] - public static extern void CSharp_AkMusicSettings_fStreamingLookAheadRatio_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSettings_fStreamingLookAheadRatio_get")] - public static extern float CSharp_AkMusicSettings_fStreamingLookAheadRatio_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMusicSettings")] - public static extern void CSharp_delete_AkMusicSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPlayingSegmentInfo__SWIG_0")] - public static extern int CSharp_GetPlayingSegmentInfo__SWIG_0(uint jarg1, global::System.IntPtr jarg2, bool jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPlayingSegmentInfo__SWIG_1")] - public static extern int CSharp_GetPlayingSegmentInfo__SWIG_1(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_pPackage_get")] - public static extern global::System.IntPtr CSharp_AkSerializedCallbackHeader_pPackage_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_eType_get")] - public static extern uint CSharp_AkSerializedCallbackHeader_eType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_GetData")] - public static extern global::System.IntPtr CSharp_AkSerializedCallbackHeader_GetData(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSerializedCallbackHeader_pNext_get")] - public static extern global::System.IntPtr CSharp_AkSerializedCallbackHeader_pNext_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSerializedCallbackHeader")] - public static extern global::System.IntPtr CSharp_new_AkSerializedCallbackHeader(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSerializedCallbackHeader")] - public static extern void CSharp_delete_AkSerializedCallbackHeader(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackInfo_pCookie_get")] - public static extern global::System.IntPtr CSharp_AkCallbackInfo_pCookie_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackInfo_gameObjID_get")] - public static extern ulong CSharp_AkCallbackInfo_gameObjID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkCallbackInfo")] - public static extern void CSharp_delete_AkCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkEventCallbackInfo_playingID_get")] - public static extern uint CSharp_AkEventCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkEventCallbackInfo_eventID_get")] - public static extern uint CSharp_AkEventCallbackInfo_eventID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkEventCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkEventCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkEventCallbackInfo")] - public static extern void CSharp_delete_AkEventCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byChan_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byChan_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byParam1_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byParam1_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byParam2_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byParam2_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byType_get")] - public static extern int CSharp_AkMIDIEventCallbackInfo_byType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byOnOffNote_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byOnOffNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byVelocity_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byVelocity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byCc_get")] - public static extern int CSharp_AkMIDIEventCallbackInfo_byCc_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byCcValue_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byCcValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byValueLsb_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byValueLsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byValueMsb_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byValueMsb_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byAftertouchNote_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byAftertouchNote_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byNoteAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byNoteAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byChanAftertouchValue_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byChanAftertouchValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_byProgramNum_get")] - public static extern byte CSharp_AkMIDIEventCallbackInfo_byProgramNum_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMIDIEventCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMIDIEventCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMIDIEventCallbackInfo")] - public static extern void CSharp_delete_AkMIDIEventCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_uIdentifier_get")] - public static extern uint CSharp_AkMarkerCallbackInfo_uIdentifier_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_uPosition_get")] - public static extern uint CSharp_AkMarkerCallbackInfo_uPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_strLabel_get")] - public static extern global::System.IntPtr CSharp_AkMarkerCallbackInfo_strLabel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMarkerCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMarkerCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMarkerCallbackInfo")] - public static extern void CSharp_delete_AkMarkerCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_fDuration_get")] - public static extern float CSharp_AkDurationCallbackInfo_fDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_fEstimatedDuration_get")] - public static extern float CSharp_AkDurationCallbackInfo_fEstimatedDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_audioNodeID_get")] - public static extern uint CSharp_AkDurationCallbackInfo_audioNodeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_mediaID_get")] - public static extern uint CSharp_AkDurationCallbackInfo_mediaID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_bStreaming_get")] - public static extern bool CSharp_AkDurationCallbackInfo_bStreaming_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDurationCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkDurationCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDurationCallbackInfo")] - public static extern void CSharp_delete_AkDurationCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_playingID_get")] - public static extern uint CSharp_AkDynamicSequenceItemCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_audioNodeID_get")] - public static extern uint CSharp_AkDynamicSequenceItemCallbackInfo_audioNodeID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_pCustomInfo_get")] - public static extern global::System.IntPtr CSharp_AkDynamicSequenceItemCallbackInfo_pCustomInfo_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDynamicSequenceItemCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkDynamicSequenceItemCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDynamicSequenceItemCallbackInfo")] - public static extern void CSharp_delete_AkDynamicSequenceItemCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_playingID_get")] - public static extern uint CSharp_AkMusicSyncCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iCurrentPosition_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iCurrentPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPreEntryDuration_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPreEntryDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iActiveDuration_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iActiveDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPostExitDuration_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iPostExitDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_iRemainingLookAheadTime_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_segmentInfo_iRemainingLookAheadTime_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBeatDuration_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBeatDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBarDuration_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fBarDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridDuration_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridDuration_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridOffset_get")] - public static extern float CSharp_AkMusicSyncCallbackInfo_segmentInfo_fGridOffset_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_musicSyncType_get")] - public static extern int CSharp_AkMusicSyncCallbackInfo_musicSyncType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_userCueName_get")] - public static extern global::System.IntPtr CSharp_AkMusicSyncCallbackInfo_userCueName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMusicSyncCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMusicSyncCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMusicSyncCallbackInfo")] - public static extern void CSharp_delete_AkMusicSyncCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_playlistID_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_playlistID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_uNumPlaylistItems_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_uNumPlaylistItems_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_uPlaylistSelection_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_uPlaylistSelection_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_uPlaylistItemDone_get")] - public static extern uint CSharp_AkMusicPlaylistCallbackInfo_uPlaylistItemDone_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMusicPlaylistCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMusicPlaylistCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMusicPlaylistCallbackInfo")] - public static extern void CSharp_delete_AkMusicPlaylistCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBankCallbackInfo_bankID_get")] - public static extern uint CSharp_AkBankCallbackInfo_bankID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBankCallbackInfo_inMemoryBankPtr_get")] - public static extern global::System.IntPtr CSharp_AkBankCallbackInfo_inMemoryBankPtr_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkBankCallbackInfo_loadResult_get")] - public static extern int CSharp_AkBankCallbackInfo_loadResult_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkBankCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkBankCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkBankCallbackInfo")] - public static extern void CSharp_delete_AkBankCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_errorCode_get")] - public static extern int CSharp_AkMonitoringCallbackInfo_errorCode_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_errorLevel_get")] - public static extern int CSharp_AkMonitoringCallbackInfo_errorLevel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_playingID_get")] - public static extern uint CSharp_AkMonitoringCallbackInfo_playingID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_gameObjID_get")] - public static extern ulong CSharp_AkMonitoringCallbackInfo_gameObjID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMonitoringCallbackInfo_message_get")] - public static extern global::System.IntPtr CSharp_AkMonitoringCallbackInfo_message_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkMonitoringCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkMonitoringCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkMonitoringCallbackInfo")] - public static extern void CSharp_delete_AkMonitoringCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioInterruptionCallbackInfo_bEnterInterruption_get")] - public static extern bool CSharp_AkAudioInterruptionCallbackInfo_bEnterInterruption_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioInterruptionCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkAudioInterruptionCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioInterruptionCallbackInfo")] - public static extern void CSharp_delete_AkAudioInterruptionCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAudioSourceChangeCallbackInfo_bOtherAudioPlaying_get")] - public static extern bool CSharp_AkAudioSourceChangeCallbackInfo_bOtherAudioPlaying_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAudioSourceChangeCallbackInfo")] - public static extern global::System.IntPtr CSharp_new_AkAudioSourceChangeCallbackInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAudioSourceChangeCallbackInfo")] - public static extern void CSharp_delete_AkAudioSourceChangeCallbackInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Init")] - public static extern int CSharp_AkCallbackSerializer_Init(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Term")] - public static extern void CSharp_AkCallbackSerializer_Term(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Lock")] - public static extern global::System.IntPtr CSharp_AkCallbackSerializer_Lock(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_Unlock")] - public static extern void CSharp_AkCallbackSerializer_Unlock(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_SetLocalOutput")] - public static extern void CSharp_AkCallbackSerializer_SetLocalOutput(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc")] - public static extern int CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc(bool jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkCallbackSerializer")] - public static extern global::System.IntPtr CSharp_new_AkCallbackSerializer(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkCallbackSerializer")] - public static extern void CSharp_delete_AkCallbackSerializer(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_0")] - public static extern int CSharp_PostCode__SWIG_0(int jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_1")] - public static extern int CSharp_PostCode__SWIG_1(int jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_2")] - public static extern int CSharp_PostCode__SWIG_2(int jarg1, int jarg2, uint jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_3")] - public static extern int CSharp_PostCode__SWIG_3(int jarg1, int jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostCode__SWIG_4")] - public static extern int CSharp_PostCode__SWIG_4(int jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_0")] - public static extern int CSharp_PostString__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_1")] - public static extern int CSharp_PostString__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3, ulong jarg4, uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_2")] - public static extern int CSharp_PostString__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_3")] - public static extern int CSharp_PostString__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostString__SWIG_4")] - public static extern int CSharp_PostString__SWIG_4([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetTimeStamp")] - public static extern int CSharp_GetTimeStamp(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamMgrInit")] - public static extern void CSharp_MonitorStreamMgrInit(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamingDeviceInit")] - public static extern void CSharp_MonitorStreamingDeviceInit(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamingDeviceDestroyed")] - public static extern void CSharp_MonitorStreamingDeviceDestroyed(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_MonitorStreamMgrTerm")] - public static extern void CSharp_MonitorStreamMgrTerm(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetNumNonZeroBits")] - public static extern uint CSharp_GetNumNonZeroBits(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetNextPowerOfTwo")] - public static extern uint CSharp_GetNextPowerOfTwo(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ROTL32")] - public static extern uint CSharp_ROTL32(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ROTL64")] - public static extern ulong CSharp_ROTL64(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkGetDefaultHighPriorityThreadProperties")] - public static extern void CSharp_AkGetDefaultHighPriorityThreadProperties(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResolveDialogueEvent__SWIG_0")] - public static extern uint CSharp_ResolveDialogueEvent__SWIG_0(uint jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResolveDialogueEvent__SWIG_1")] - public static extern uint CSharp_ResolveDialogueEvent__SWIG_1(uint jarg1, [global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDialogueEventCustomPropertyValue__SWIG_0")] - public static extern int CSharp_GetDialogueEventCustomPropertyValue__SWIG_0(uint jarg1, uint jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDialogueEventCustomPropertyValue__SWIG_1")] - public static extern int CSharp_GetDialogueEventCustomPropertyValue__SWIG_1(uint jarg1, uint jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fCenterPct_set")] - public static extern void CSharp_AkPositioningInfo_fCenterPct_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fCenterPct_get")] - public static extern float CSharp_AkPositioningInfo_fCenterPct_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_pannerType_set")] - public static extern void CSharp_AkPositioningInfo_pannerType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_pannerType_get")] - public static extern int CSharp_AkPositioningInfo_pannerType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3dPositioningType_set")] - public static extern void CSharp_AkPositioningInfo_e3dPositioningType_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3dPositioningType_get")] - public static extern int CSharp_AkPositioningInfo_e3dPositioningType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_set")] - public static extern void CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_get")] - public static extern bool CSharp_AkPositioningInfo_bHoldEmitterPosAndOrient_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3DSpatializationMode_set")] - public static extern void CSharp_AkPositioningInfo_e3DSpatializationMode_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_e3DSpatializationMode_get")] - public static extern int CSharp_AkPositioningInfo_e3DSpatializationMode_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bEnableAttenuation_set")] - public static extern void CSharp_AkPositioningInfo_bEnableAttenuation_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bEnableAttenuation_get")] - public static extern bool CSharp_AkPositioningInfo_bEnableAttenuation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bUseConeAttenuation_set")] - public static extern void CSharp_AkPositioningInfo_bUseConeAttenuation_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_bUseConeAttenuation_get")] - public static extern bool CSharp_AkPositioningInfo_bUseConeAttenuation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fInnerAngle_set")] - public static extern void CSharp_AkPositioningInfo_fInnerAngle_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fInnerAngle_get")] - public static extern float CSharp_AkPositioningInfo_fInnerAngle_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fOuterAngle_set")] - public static extern void CSharp_AkPositioningInfo_fOuterAngle_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fOuterAngle_get")] - public static extern float CSharp_AkPositioningInfo_fOuterAngle_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fConeMaxAttenuation_set")] - public static extern void CSharp_AkPositioningInfo_fConeMaxAttenuation_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fConeMaxAttenuation_get")] - public static extern float CSharp_AkPositioningInfo_fConeMaxAttenuation_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFCone_set")] - public static extern void CSharp_AkPositioningInfo_LPFCone_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFCone_get")] - public static extern float CSharp_AkPositioningInfo_LPFCone_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFCone_set")] - public static extern void CSharp_AkPositioningInfo_HPFCone_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFCone_get")] - public static extern float CSharp_AkPositioningInfo_HPFCone_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fMaxDistance_set")] - public static extern void CSharp_AkPositioningInfo_fMaxDistance_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fMaxDistance_get")] - public static extern float CSharp_AkPositioningInfo_fMaxDistance_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolDryAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_fVolDryAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolDryAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_fVolDryAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_fVolAuxGameDefAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_fVolAuxUserDefAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFValueAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_LPFValueAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_LPFValueAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_LPFValueAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFValueAtMaxDist_set")] - public static extern void CSharp_AkPositioningInfo_HPFValueAtMaxDist_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPositioningInfo_HPFValueAtMaxDist_get")] - public static extern float CSharp_AkPositioningInfo_HPFValueAtMaxDist_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkPositioningInfo")] - public static extern global::System.IntPtr CSharp_new_AkPositioningInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPositioningInfo")] - public static extern void CSharp_delete_AkPositioningInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_objID_set")] - public static extern void CSharp_AkObjectInfo_objID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_objID_get")] - public static extern uint CSharp_AkObjectInfo_objID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_parentID_set")] - public static extern void CSharp_AkObjectInfo_parentID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_parentID_get")] - public static extern uint CSharp_AkObjectInfo_parentID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_iDepth_set")] - public static extern void CSharp_AkObjectInfo_iDepth_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_iDepth_get")] - public static extern int CSharp_AkObjectInfo_iDepth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_Clear")] - public static extern void CSharp_AkObjectInfo_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_GetSizeOf")] - public static extern int CSharp_AkObjectInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkObjectInfo_Clone")] - public static extern void CSharp_AkObjectInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkObjectInfo")] - public static extern global::System.IntPtr CSharp_new_AkObjectInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkObjectInfo")] - public static extern void CSharp_delete_AkObjectInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPosition")] - public static extern int CSharp_GetPosition(ulong jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetListenerPosition")] - public static extern int CSharp_GetListenerPosition(ulong jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetRTPCValue__SWIG_0")] - public static extern int CSharp_GetRTPCValue__SWIG_0(uint jarg1, ulong jarg2, uint jarg3, out float jarg4, ref int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetRTPCValue__SWIG_1")] - public static extern int CSharp_GetRTPCValue__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, out float jarg4, ref int jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSwitch__SWIG_0")] - public static extern int CSharp_GetSwitch__SWIG_0(uint jarg1, ulong jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSwitch__SWIG_1")] - public static extern int CSharp_GetSwitch__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetState__SWIG_0")] - public static extern int CSharp_GetState__SWIG_0(uint jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetState__SWIG_1")] - public static extern int CSharp_GetState__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetGameObjectAuxSendValues")] - public static extern int CSharp_GetGameObjectAuxSendValues(ulong jarg1, global::System.IntPtr jarg2, ref uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetGameObjectDryLevelValue")] - public static extern int CSharp_GetGameObjectDryLevelValue(ulong jarg1, ulong jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetObjectObstructionAndOcclusion")] - public static extern int CSharp_GetObjectObstructionAndOcclusion(ulong jarg1, ulong jarg2, out float jarg3, out float jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryAudioObjectIDs__SWIG_0")] - public static extern int CSharp_QueryAudioObjectIDs__SWIG_0(uint jarg1, ref uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryAudioObjectIDs__SWIG_1")] - public static extern int CSharp_QueryAudioObjectIDs__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ref uint jarg2, global::System.IntPtr jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPositioningInfo")] - public static extern int CSharp_GetPositioningInfo(uint jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetIsGameObjectActive")] - public static extern bool CSharp_GetIsGameObjectActive(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetMaxRadius")] - public static extern float CSharp_GetMaxRadius(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetEventIDFromPlayingID")] - public static extern uint CSharp_GetEventIDFromPlayingID(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetGameObjectFromPlayingID")] - public static extern ulong CSharp_GetGameObjectFromPlayingID(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetPlayingIDsFromGameObject")] - public static extern int CSharp_GetPlayingIDsFromGameObject(ulong jarg1, ref uint jarg2, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetCustomPropertyValue__SWIG_0")] - public static extern int CSharp_GetCustomPropertyValue__SWIG_0(uint jarg1, uint jarg2, out int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetCustomPropertyValue__SWIG_1")] - public static extern int CSharp_GetCustomPropertyValue__SWIG_1(uint jarg1, uint jarg2, out float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER")] - public static extern void CSharp_AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER(ref uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE")] - public static extern void CSharp_AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE(ref uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED")] - public static extern void CSharp_AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED(ref uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ChannelMaskToNumChannels")] - public static extern byte CSharp_ChannelMaskToNumChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ChannelMaskFromNumChannels")] - public static extern uint CSharp_ChannelMaskFromNumChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ChannelBitToIndex")] - public static extern byte CSharp_ChannelBitToIndex(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasSurroundChannels")] - public static extern bool CSharp_HasSurroundChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasStrictlyOnePairOfSurroundChannels")] - public static extern bool CSharp_HasStrictlyOnePairOfSurroundChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasSideAndRearChannels")] - public static extern bool CSharp_HasSideAndRearChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_HasHeightChannels")] - public static extern bool CSharp_HasHeightChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_BackToSideChannels")] - public static extern uint CSharp_BackToSideChannels(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StdChannelIndexToDisplayIndex")] - public static extern uint CSharp_StdChannelIndexToDisplayIndex(int jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uNumChannels_set")] - public static extern void CSharp_AkChannelConfig_uNumChannels_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uNumChannels_get")] - public static extern uint CSharp_AkChannelConfig_uNumChannels_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_eConfigType_set")] - public static extern void CSharp_AkChannelConfig_eConfigType_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_eConfigType_get")] - public static extern uint CSharp_AkChannelConfig_eConfigType_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uChannelMask_set")] - public static extern void CSharp_AkChannelConfig_uChannelMask_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_uChannelMask_get")] - public static extern uint CSharp_AkChannelConfig_uChannelMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkChannelConfig__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkChannelConfig__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkChannelConfig__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkChannelConfig__SWIG_1(uint jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_Clear")] - public static extern void CSharp_AkChannelConfig_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetStandard")] - public static extern void CSharp_AkChannelConfig_SetStandard(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetStandardOrAnonymous")] - public static extern void CSharp_AkChannelConfig_SetStandardOrAnonymous(global::System.IntPtr jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetAnonymous")] - public static extern void CSharp_AkChannelConfig_SetAnonymous(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetAmbisonic")] - public static extern void CSharp_AkChannelConfig_SetAmbisonic(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_SetObject")] - public static extern void CSharp_AkChannelConfig_SetObject(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_IsValid")] - public static extern bool CSharp_AkChannelConfig_IsValid(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_Serialize")] - public static extern uint CSharp_AkChannelConfig_Serialize(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_Deserialize")] - public static extern void CSharp_AkChannelConfig_Deserialize(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_RemoveLFE")] - public static extern global::System.IntPtr CSharp_AkChannelConfig_RemoveLFE(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkChannelConfig_RemoveCenter")] - public static extern global::System.IntPtr CSharp_AkChannelConfig_RemoveCenter(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkChannelConfig")] - public static extern void CSharp_delete_AkChannelConfig(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceParams__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceParams__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceParams__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceParams__SWIG_1(UnityEngine.Vector3 jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_sourcePosition_set")] - public static extern void CSharp_AkImageSourceParams_sourcePosition_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_sourcePosition_get")] - public static extern UnityEngine.Vector3 CSharp_AkImageSourceParams_sourcePosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDistanceScalingFactor_set")] - public static extern void CSharp_AkImageSourceParams_fDistanceScalingFactor_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDistanceScalingFactor_get")] - public static extern float CSharp_AkImageSourceParams_fDistanceScalingFactor_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fLevel_set")] - public static extern void CSharp_AkImageSourceParams_fLevel_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fLevel_get")] - public static extern float CSharp_AkImageSourceParams_fLevel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDiffraction_set")] - public static extern void CSharp_AkImageSourceParams_fDiffraction_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_fDiffraction_get")] - public static extern float CSharp_AkImageSourceParams_fDiffraction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionEmitterSide_set")] - public static extern void CSharp_AkImageSourceParams_uDiffractionEmitterSide_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionEmitterSide_get")] - public static extern byte CSharp_AkImageSourceParams_uDiffractionEmitterSide_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionListenerSide_set")] - public static extern void CSharp_AkImageSourceParams_uDiffractionListenerSide_set(global::System.IntPtr jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceParams_uDiffractionListenerSide_get")] - public static extern byte CSharp_AkImageSourceParams_uDiffractionListenerSide_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkImageSourceParams")] - public static extern void CSharp_delete_AkImageSourceParams(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDefaultMaxPathLength_get")] - public static extern float CSharp_kDefaultMaxPathLength_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDefaultDiffractionMaxEdges_get")] - public static extern uint CSharp_kDefaultDiffractionMaxEdges_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDefaultDiffractionMaxPaths_get")] - public static extern uint CSharp_kDefaultDiffractionMaxPaths_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kMaxDiffraction_get")] - public static extern float CSharp_kMaxDiffraction_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDiffractionMaxEdges_get")] - public static extern uint CSharp_kDiffractionMaxEdges_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kDiffractionMaxPaths_get")] - public static extern uint CSharp_kDiffractionMaxPaths_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_kPortalToPortalDiffractionMaxPaths_get")] - public static extern uint CSharp_kPortalToPortalDiffractionMaxPaths_get(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkSpatialAudioInitSettings")] - public static extern global::System.IntPtr CSharp_new_AkSpatialAudioInitSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_get")] - public static extern uint CSharp_AkSpatialAudioInitSettings_uMaxSoundPropagationDepth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMovementThreshold_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_fMovementThreshold_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMovementThreshold_get")] - public static extern float CSharp_AkSpatialAudioInitSettings_fMovementThreshold_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_get")] - public static extern uint CSharp_AkSpatialAudioInitSettings_uNumberOfPrimaryRays_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_get")] - public static extern uint CSharp_AkSpatialAudioInitSettings_uMaxReflectionOrder_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMaxPathLength_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_fMaxPathLength_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fMaxPathLength_get")] - public static extern float CSharp_AkSpatialAudioInitSettings_fMaxPathLength_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_get")] - public static extern float CSharp_AkSpatialAudioInitSettings_fCPULimitPercentage_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bEnableDiffractionOnReflection_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bEnableGeometricDiffractionAndTransmission_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bCalcEmitterVirtualPosition_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseObstruction_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bUseObstruction_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseObstruction_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bUseObstruction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseOcclusion_set")] - public static extern void CSharp_AkSpatialAudioInitSettings_bUseOcclusion_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkSpatialAudioInitSettings_bUseOcclusion_get")] - public static extern bool CSharp_AkSpatialAudioInitSettings_bUseOcclusion_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkSpatialAudioInitSettings")] - public static extern void CSharp_delete_AkSpatialAudioInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceSettings__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceSettings__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkImageSourceSettings__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkImageSourceSettings__SWIG_1(UnityEngine.Vector3 jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkImageSourceSettings")] - public static extern void CSharp_delete_AkImageSourceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_SetOneTexture")] - public static extern void CSharp_AkImageSourceSettings_SetOneTexture(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_SetName")] - public static extern void CSharp_AkImageSourceSettings_SetName(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_params__set")] - public static extern void CSharp_AkImageSourceSettings_params__set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkImageSourceSettings_params__get")] - public static extern global::System.IntPtr CSharp_AkImageSourceSettings_params__get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExtent__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkExtent__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExtent__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkExtent__SWIG_1(float jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfWidth_set")] - public static extern void CSharp_AkExtent_halfWidth_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfWidth_get")] - public static extern float CSharp_AkExtent_halfWidth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfHeight_set")] - public static extern void CSharp_AkExtent_halfHeight_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfHeight_get")] - public static extern float CSharp_AkExtent_halfHeight_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfDepth_set")] - public static extern void CSharp_AkExtent_halfDepth_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExtent_halfDepth_get")] - public static extern float CSharp_AkExtent_halfDepth_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkExtent")] - public static extern void CSharp_delete_AkExtent(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTriangle__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkTriangle__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkTriangle__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkTriangle__SWIG_1(ushort jarg1, ushort jarg2, ushort jarg3, ushort jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point0_set")] - public static extern void CSharp_AkTriangle_point0_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point0_get")] - public static extern ushort CSharp_AkTriangle_point0_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point1_set")] - public static extern void CSharp_AkTriangle_point1_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point1_get")] - public static extern ushort CSharp_AkTriangle_point1_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point2_set")] - public static extern void CSharp_AkTriangle_point2_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_point2_get")] - public static extern ushort CSharp_AkTriangle_point2_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_surface_set")] - public static extern void CSharp_AkTriangle_surface_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_surface_get")] - public static extern ushort CSharp_AkTriangle_surface_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_Clear")] - public static extern void CSharp_AkTriangle_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_GetSizeOf")] - public static extern int CSharp_AkTriangle_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkTriangle_Clone")] - public static extern void CSharp_AkTriangle_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkTriangle")] - public static extern void CSharp_delete_AkTriangle(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkAcousticSurface")] - public static extern global::System.IntPtr CSharp_new_AkAcousticSurface(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_textureID_set")] - public static extern void CSharp_AkAcousticSurface_textureID_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_textureID_get")] - public static extern uint CSharp_AkAcousticSurface_textureID_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_transmissionLoss_set")] - public static extern void CSharp_AkAcousticSurface_transmissionLoss_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_transmissionLoss_get")] - public static extern float CSharp_AkAcousticSurface_transmissionLoss_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_strName_set")] - public static extern void CSharp_AkAcousticSurface_strName_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_strName_get")] - public static extern global::System.IntPtr CSharp_AkAcousticSurface_strName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_Clear")] - public static extern void CSharp_AkAcousticSurface_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_DeleteName")] - public static extern void CSharp_AkAcousticSurface_DeleteName(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_GetSizeOf")] - public static extern int CSharp_AkAcousticSurface_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkAcousticSurface_Clone")] - public static extern void CSharp_AkAcousticSurface_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkAcousticSurface")] - public static extern void CSharp_delete_AkAcousticSurface(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_imageSource_set")] - public static extern void CSharp_AkReflectionPathInfo_imageSource_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_imageSource_get")] - public static extern UnityEngine.Vector3 CSharp_AkReflectionPathInfo_imageSource_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numPathPoints_set")] - public static extern void CSharp_AkReflectionPathInfo_numPathPoints_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numPathPoints_get")] - public static extern uint CSharp_AkReflectionPathInfo_numPathPoints_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numReflections_set")] - public static extern void CSharp_AkReflectionPathInfo_numReflections_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_numReflections_get")] - public static extern uint CSharp_AkReflectionPathInfo_numReflections_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_level_set")] - public static extern void CSharp_AkReflectionPathInfo_level_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_level_get")] - public static extern float CSharp_AkReflectionPathInfo_level_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_isOccluded_set")] - public static extern void CSharp_AkReflectionPathInfo_isOccluded_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_isOccluded_get")] - public static extern bool CSharp_AkReflectionPathInfo_isOccluded_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetSizeOf")] - public static extern int CSharp_AkReflectionPathInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetPathPoint")] - public static extern UnityEngine.Vector3 CSharp_AkReflectionPathInfo_GetPathPoint(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetAcousticSurface")] - public static extern global::System.IntPtr CSharp_AkReflectionPathInfo_GetAcousticSurface(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_GetDiffraction")] - public static extern float CSharp_AkReflectionPathInfo_GetDiffraction(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkReflectionPathInfo_Clone")] - public static extern void CSharp_AkReflectionPathInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkReflectionPathInfo")] - public static extern global::System.IntPtr CSharp_new_AkReflectionPathInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkReflectionPathInfo")] - public static extern void CSharp_delete_AkReflectionPathInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_emitterPos_set")] - public static extern void CSharp_AkDiffractionPathInfo_emitterPos_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_emitterPos_get")] - public static extern UnityEngine.Vector3 CSharp_AkDiffractionPathInfo_emitterPos_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_virtualPos_set")] - public static extern void CSharp_AkDiffractionPathInfo_virtualPos_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_virtualPos_get")] - public static extern global::System.IntPtr CSharp_AkDiffractionPathInfo_virtualPos_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_nodeCount_set")] - public static extern void CSharp_AkDiffractionPathInfo_nodeCount_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_nodeCount_get")] - public static extern uint CSharp_AkDiffractionPathInfo_nodeCount_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_diffraction_set")] - public static extern void CSharp_AkDiffractionPathInfo_diffraction_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_diffraction_get")] - public static extern float CSharp_AkDiffractionPathInfo_diffraction_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_transmissionLoss_set")] - public static extern void CSharp_AkDiffractionPathInfo_transmissionLoss_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_transmissionLoss_get")] - public static extern float CSharp_AkDiffractionPathInfo_transmissionLoss_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_totLength_set")] - public static extern void CSharp_AkDiffractionPathInfo_totLength_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_totLength_get")] - public static extern float CSharp_AkDiffractionPathInfo_totLength_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_obstructionValue_set")] - public static extern void CSharp_AkDiffractionPathInfo_obstructionValue_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_obstructionValue_get")] - public static extern float CSharp_AkDiffractionPathInfo_obstructionValue_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetSizeOf")] - public static extern int CSharp_AkDiffractionPathInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetNodes")] - public static extern UnityEngine.Vector3 CSharp_AkDiffractionPathInfo_GetNodes(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetAngles")] - public static extern float CSharp_AkDiffractionPathInfo_GetAngles(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetPortals")] - public static extern ulong CSharp_AkDiffractionPathInfo_GetPortals(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_GetRooms")] - public static extern ulong CSharp_AkDiffractionPathInfo_GetRooms(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDiffractionPathInfo_Clone")] - public static extern void CSharp_AkDiffractionPathInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkDiffractionPathInfo")] - public static extern global::System.IntPtr CSharp_new_AkDiffractionPathInfo(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDiffractionPathInfo")] - public static extern void CSharp_delete_AkDiffractionPathInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRoomParams__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkRoomParams__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkRoomParams__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkRoomParams__SWIG_1(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Front_set")] - public static extern void CSharp_AkRoomParams_Front_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Front_get")] - public static extern UnityEngine.Vector3 CSharp_AkRoomParams_Front_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Up_set")] - public static extern void CSharp_AkRoomParams_Up_set(global::System.IntPtr jarg1, UnityEngine.Vector3 jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_Up_get")] - public static extern UnityEngine.Vector3 CSharp_AkRoomParams_Up_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbAuxBus_set")] - public static extern void CSharp_AkRoomParams_ReverbAuxBus_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbAuxBus_get")] - public static extern uint CSharp_AkRoomParams_ReverbAuxBus_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbLevel_set")] - public static extern void CSharp_AkRoomParams_ReverbLevel_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_ReverbLevel_get")] - public static extern float CSharp_AkRoomParams_ReverbLevel_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_TransmissionLoss_set")] - public static extern void CSharp_AkRoomParams_TransmissionLoss_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_TransmissionLoss_get")] - public static extern float CSharp_AkRoomParams_TransmissionLoss_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_set")] - public static extern void CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_get")] - public static extern float CSharp_AkRoomParams_RoomGameObj_AuxSendLevelToSelf_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_KeepRegistered_set")] - public static extern void CSharp_AkRoomParams_RoomGameObj_KeepRegistered_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkRoomParams_RoomGameObj_KeepRegistered_get")] - public static extern bool CSharp_AkRoomParams_RoomGameObj_KeepRegistered_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkRoomParams")] - public static extern void CSharp_delete_AkRoomParams(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectRadius")] - public static extern int CSharp_SetGameObjectRadius(ulong jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetImageSource")] - public static extern int CSharp_SetImageSource(uint jarg1, global::System.IntPtr jarg2, uint jarg3, ulong jarg4, ulong jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveImageSource")] - public static extern int CSharp_RemoveImageSource(uint jarg1, uint jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearImageSources__SWIG_0")] - public static extern int CSharp_ClearImageSources__SWIG_0(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearImageSources__SWIG_1")] - public static extern int CSharp_ClearImageSources__SWIG_1(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ClearImageSources__SWIG_2")] - public static extern int CSharp_ClearImageSources__SWIG_2(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveGeometry")] - public static extern int CSharp_RemoveGeometry(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryReflectionPaths")] - public static extern int CSharp_QueryReflectionPaths(ulong jarg1, uint jarg2, ref UnityEngine.Vector3 jarg3, ref UnityEngine.Vector3 jarg4, global::System.IntPtr jarg5, out uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemoveRoom")] - public static extern int CSharp_RemoveRoom(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RemovePortal")] - public static extern int CSharp_RemovePortal(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectInRoom")] - public static extern int CSharp_SetGameObjectInRoom(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetReflectionsOrder")] - public static extern int CSharp_SetReflectionsOrder(uint jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetNumberOfPrimaryRays")] - public static extern int CSharp_SetNumberOfPrimaryRays(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetEarlyReflectionsAuxSend")] - public static extern int CSharp_SetEarlyReflectionsAuxSend(ulong jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetEarlyReflectionsVolume")] - public static extern int CSharp_SetEarlyReflectionsVolume(ulong jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPortalObstructionAndOcclusion")] - public static extern int CSharp_SetPortalObstructionAndOcclusion(ulong jarg1, float jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameObjectToPortalObstruction")] - public static extern int CSharp_SetGameObjectToPortalObstruction(ulong jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetPortalToPortalObstruction")] - public static extern int CSharp_SetPortalToPortalObstruction(ulong jarg1, ulong jarg2, float jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryWetDiffraction")] - public static extern int CSharp_QueryWetDiffraction(ulong jarg1, out float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_QueryDiffractionPaths")] - public static extern int CSharp_QueryDiffractionPaths(ulong jarg1, uint jarg2, ref UnityEngine.Vector3 jarg3, ref UnityEngine.Vector3 jarg4, global::System.IntPtr jarg5, out uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_ResetStochasticEngine")] - public static extern int CSharp_ResetStochasticEngine(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadLEngine_set")] - public static extern void CSharp_AkPlatformInitSettings_threadLEngine_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadLEngine_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadLEngine_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadOutputMgr_set")] - public static extern void CSharp_AkPlatformInitSettings_threadOutputMgr_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadOutputMgr_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadOutputMgr_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadBankManager_set")] - public static extern void CSharp_AkPlatformInitSettings_threadBankManager_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadBankManager_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadBankManager_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadMonitor_set")] - public static extern void CSharp_AkPlatformInitSettings_threadMonitor_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_threadMonitor_get")] - public static extern global::System.IntPtr CSharp_AkPlatformInitSettings_threadMonitor_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set")] - public static extern void CSharp_AkPlatformInitSettings_uNumRefillsInVoice_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get")] - public static extern ushort CSharp_AkPlatformInitSettings_uNumRefillsInVoice_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uSampleRate_set")] - public static extern void CSharp_AkPlatformInitSettings_uSampleRate_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uSampleRate_get")] - public static extern uint CSharp_AkPlatformInitSettings_uSampleRate_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_bEnableAvxSupport_set")] - public static extern void CSharp_AkPlatformInitSettings_bEnableAvxSupport_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_bEnableAvxSupport_get")] - public static extern bool CSharp_AkPlatformInitSettings_bEnableAvxSupport_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uMaxSystemAudioObjects_set")] - public static extern void CSharp_AkPlatformInitSettings_uMaxSystemAudioObjects_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlatformInitSettings_uMaxSystemAudioObjects_get")] - public static extern uint CSharp_AkPlatformInitSettings_uMaxSystemAudioObjects_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkPlatformInitSettings")] - public static extern void CSharp_delete_AkPlatformInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDeviceIDFromName")] - public static extern uint CSharp_GetDeviceIDFromName([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetWindowsDeviceName__SWIG_0")] - public static extern global::System.IntPtr CSharp_GetWindowsDeviceName__SWIG_0(int jarg1, out uint jarg2, int jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetWindowsDeviceName__SWIG_1")] - public static extern global::System.IntPtr CSharp_GetWindowsDeviceName__SWIG_1(int jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetWindowsDeviceCount__SWIG_0")] - public static extern uint CSharp_GetWindowsDeviceCount__SWIG_0(int jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetWindowsDeviceCount__SWIG_1")] - public static extern uint CSharp_GetWindowsDeviceCount__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkStreamMgrSettings")] - public static extern void CSharp_delete_AkStreamMgrSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_pIOMemory_set")] - public static extern void CSharp_AkDeviceSettings_pIOMemory_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_pIOMemory_get")] - public static extern global::System.IntPtr CSharp_AkDeviceSettings_pIOMemory_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemorySize_set")] - public static extern void CSharp_AkDeviceSettings_uIOMemorySize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemorySize_get")] - public static extern uint CSharp_AkDeviceSettings_uIOMemorySize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemoryAlignment_set")] - public static extern void CSharp_AkDeviceSettings_uIOMemoryAlignment_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uIOMemoryAlignment_get")] - public static extern uint CSharp_AkDeviceSettings_uIOMemoryAlignment_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_ePoolAttributes_set")] - public static extern void CSharp_AkDeviceSettings_ePoolAttributes_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_ePoolAttributes_get")] - public static extern uint CSharp_AkDeviceSettings_ePoolAttributes_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uGranularity_set")] - public static extern void CSharp_AkDeviceSettings_uGranularity_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uGranularity_get")] - public static extern uint CSharp_AkDeviceSettings_uGranularity_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uSchedulerTypeFlags_set")] - public static extern void CSharp_AkDeviceSettings_uSchedulerTypeFlags_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uSchedulerTypeFlags_get")] - public static extern uint CSharp_AkDeviceSettings_uSchedulerTypeFlags_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_threadProperties_set")] - public static extern void CSharp_AkDeviceSettings_threadProperties_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_threadProperties_get")] - public static extern global::System.IntPtr CSharp_AkDeviceSettings_threadProperties_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_set")] - public static extern void CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_set(global::System.IntPtr jarg1, float jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_get")] - public static extern float CSharp_AkDeviceSettings_fTargetAutoStmBufferLength_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxConcurrentIO_set")] - public static extern void CSharp_AkDeviceSettings_uMaxConcurrentIO_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxConcurrentIO_get")] - public static extern uint CSharp_AkDeviceSettings_uMaxConcurrentIO_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_bUseStreamCache_set")] - public static extern void CSharp_AkDeviceSettings_bUseStreamCache_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_bUseStreamCache_get")] - public static extern bool CSharp_AkDeviceSettings_bUseStreamCache_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxCachePinnedBytes_set")] - public static extern void CSharp_AkDeviceSettings_uMaxCachePinnedBytes_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDeviceSettings_uMaxCachePinnedBytes_get")] - public static extern uint CSharp_AkDeviceSettings_uMaxCachePinnedBytes_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkDeviceSettings")] - public static extern void CSharp_delete_AkDeviceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_nPriority_set")] - public static extern void CSharp_AkThreadProperties_nPriority_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_nPriority_get")] - public static extern int CSharp_AkThreadProperties_nPriority_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_dwAffinityMask_set")] - public static extern void CSharp_AkThreadProperties_dwAffinityMask_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_dwAffinityMask_get")] - public static extern uint CSharp_AkThreadProperties_dwAffinityMask_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_uStackSize_set")] - public static extern void CSharp_AkThreadProperties_uStackSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkThreadProperties_uStackSize_get")] - public static extern uint CSharp_AkThreadProperties_uStackSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkThreadProperties")] - public static extern global::System.IntPtr CSharp_new_AkThreadProperties(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkThreadProperties")] - public static extern void CSharp_delete_AkThreadProperties(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetErrorLogger__SWIG_0")] - public static extern void CSharp_SetErrorLogger__SWIG_0(AkLogger.ErrorLoggerInteropDelegate jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetErrorLogger__SWIG_1")] - public static extern void CSharp_SetErrorLogger__SWIG_1(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetAudioInputCallbacks")] - public static extern void CSharp_SetAudioInputCallbacks(AkAudioInputManager.AudioSamplesInteropDelegate jarg1, AkAudioInputManager.AudioFormatInteropDelegate jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkUnityPlatformSpecificSettings")] - public static extern void CSharp_delete_AkUnityPlatformSpecificSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkCommunicationSettings")] - public static extern global::System.IntPtr CSharp_new_AkCommunicationSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uPoolSize_set")] - public static extern void CSharp_AkCommunicationSettings_uPoolSize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uPoolSize_get")] - public static extern uint CSharp_AkCommunicationSettings_uPoolSize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_set")] - public static extern void CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_get")] - public static extern ushort CSharp_AkCommunicationSettings_uDiscoveryBroadcastPort_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uCommandPort_set")] - public static extern void CSharp_AkCommunicationSettings_uCommandPort_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uCommandPort_get")] - public static extern ushort CSharp_AkCommunicationSettings_uCommandPort_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uNotificationPort_set")] - public static extern void CSharp_AkCommunicationSettings_uNotificationPort_set(global::System.IntPtr jarg1, ushort jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_uNotificationPort_get")] - public static extern ushort CSharp_AkCommunicationSettings_uNotificationPort_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_commSystem_set")] - public static extern void CSharp_AkCommunicationSettings_commSystem_set(global::System.IntPtr jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_commSystem_get")] - public static extern int CSharp_AkCommunicationSettings_commSystem_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_bInitSystemLib_set")] - public static extern void CSharp_AkCommunicationSettings_bInitSystemLib_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_bInitSystemLib_get")] - public static extern bool CSharp_AkCommunicationSettings_bInitSystemLib_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_szAppNetworkName_set")] - public static extern void CSharp_AkCommunicationSettings_szAppNetworkName_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkCommunicationSettings_szAppNetworkName_get")] - public static extern global::System.IntPtr CSharp_AkCommunicationSettings_szAppNetworkName_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkCommunicationSettings")] - public static extern void CSharp_delete_AkCommunicationSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkInitializationSettings")] - public static extern global::System.IntPtr CSharp_new_AkInitializationSettings(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkInitializationSettings")] - public static extern void CSharp_delete_AkInitializationSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_streamMgrSettings_set")] - public static extern void CSharp_AkInitializationSettings_streamMgrSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_streamMgrSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_streamMgrSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_deviceSettings_set")] - public static extern void CSharp_AkInitializationSettings_deviceSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_deviceSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_deviceSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_initSettings_set")] - public static extern void CSharp_AkInitializationSettings_initSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_initSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_initSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_platformSettings_set")] - public static extern void CSharp_AkInitializationSettings_platformSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_platformSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_platformSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_musicSettings_set")] - public static extern void CSharp_AkInitializationSettings_musicSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_musicSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_musicSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_unityPlatformSpecificSettings_set")] - public static extern void CSharp_AkInitializationSettings_unityPlatformSpecificSettings_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_unityPlatformSpecificSettings_get")] - public static extern global::System.IntPtr CSharp_AkInitializationSettings_unityPlatformSpecificSettings_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_useAsyncOpen_set")] - public static extern void CSharp_AkInitializationSettings_useAsyncOpen_set(global::System.IntPtr jarg1, bool jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkInitializationSettings_useAsyncOpen_get")] - public static extern bool CSharp_AkInitializationSettings_useAsyncOpen_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_0")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_0(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_delete_AkExternalSourceInfo")] - public static extern void CSharp_delete_AkExternalSourceInfo(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_1")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_1(global::System.IntPtr jarg1, uint jarg2, uint jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_2")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_new_AkExternalSourceInfo__SWIG_3")] - public static extern global::System.IntPtr CSharp_new_AkExternalSourceInfo__SWIG_3(uint jarg1, uint jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_Clear")] - public static extern void CSharp_AkExternalSourceInfo_Clear(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_Clone")] - public static extern void CSharp_AkExternalSourceInfo_Clone(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_GetSizeOf")] - public static extern int CSharp_AkExternalSourceInfo_GetSizeOf(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_iExternalSrcCookie_set")] - public static extern void CSharp_AkExternalSourceInfo_iExternalSrcCookie_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_iExternalSrcCookie_get")] - public static extern uint CSharp_AkExternalSourceInfo_iExternalSrcCookie_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idCodec_set")] - public static extern void CSharp_AkExternalSourceInfo_idCodec_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idCodec_get")] - public static extern uint CSharp_AkExternalSourceInfo_idCodec_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_szFile_set")] - public static extern void CSharp_AkExternalSourceInfo_szFile_set(global::System.IntPtr jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_szFile_get")] - public static extern global::System.IntPtr CSharp_AkExternalSourceInfo_szFile_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_pInMemory_set")] - public static extern void CSharp_AkExternalSourceInfo_pInMemory_set(global::System.IntPtr jarg1, global::System.IntPtr jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_pInMemory_get")] - public static extern global::System.IntPtr CSharp_AkExternalSourceInfo_pInMemory_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_uiMemorySize_set")] - public static extern void CSharp_AkExternalSourceInfo_uiMemorySize_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_uiMemorySize_get")] - public static extern uint CSharp_AkExternalSourceInfo_uiMemorySize_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idFile_set")] - public static extern void CSharp_AkExternalSourceInfo_idFile_set(global::System.IntPtr jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkExternalSourceInfo_idFile_get")] - public static extern uint CSharp_AkExternalSourceInfo_idFile_get(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Init")] - public static extern int CSharp_Init(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_InitSpatialAudio")] - public static extern int CSharp_InitSpatialAudio(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_InitCommunication")] - public static extern int CSharp_InitCommunication(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_Term")] - public static extern void CSharp_Term(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterGameObjInternal")] - public static extern int CSharp_RegisterGameObjInternal(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnregisterGameObjInternal")] - public static extern int CSharp_UnregisterGameObjInternal(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterGameObjInternal_WithName")] - public static extern int CSharp_RegisterGameObjInternal_WithName(ulong jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetBasePath")] - public static extern int CSharp_SetBasePath([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetCurrentLanguage")] - public static extern int CSharp_SetCurrentLanguage([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadFilePackage")] - public static extern int CSharp_LoadFilePackage([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, out uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddBasePath")] - public static extern int CSharp_AddBasePath([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGameName")] - public static extern int CSharp_SetGameName([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetDecodedBankPath")] - public static extern int CSharp_SetDecodedBankPath([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadAndDecodeBank")] - public static extern int CSharp_LoadAndDecodeBank([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, bool jarg2, out uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_LoadAndDecodeBankFromMemory")] - public static extern int CSharp_LoadAndDecodeBankFromMemory(global::System.IntPtr jarg1, uint jarg2, bool jarg3, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg4, bool jarg5, out uint jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_0")] - public static extern uint CSharp_PostEventOnRoom__SWIG_0([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_1")] - public static extern uint CSharp_PostEventOnRoom__SWIG_1([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_2")] - public static extern uint CSharp_PostEventOnRoom__SWIG_2([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_3")] - public static extern uint CSharp_PostEventOnRoom__SWIG_3([global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPWStr)]string jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetCurrentLanguage")] - public static extern global::System.IntPtr CSharp_GetCurrentLanguage(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadFilePackage")] - public static extern int CSharp_UnloadFilePackage(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnloadAllFilePackages")] - public static extern int CSharp_UnloadAllFilePackages(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetObjectPosition")] - public static extern int CSharp_SetObjectPosition(ulong jarg1, UnityEngine.Vector3 jarg2, UnityEngine.Vector3 jarg3, UnityEngine.Vector3 jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourceMultiplePlayPositions__SWIG_0")] - public static extern int CSharp_GetSourceMultiplePlayPositions__SWIG_0(uint jarg1, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg3, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]int[] jarg4, ref uint jarg5, bool jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSourceMultiplePlayPositions__SWIG_1")] - public static extern int CSharp_GetSourceMultiplePlayPositions__SWIG_1(uint jarg1, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg2, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]uint[] jarg3, [global::System.Runtime.InteropServices.Out, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)]int[] jarg4, ref uint jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetListeners")] - public static extern int CSharp_SetListeners(ulong jarg1, ulong[] jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetDefaultListeners")] - public static extern int CSharp_SetDefaultListeners(ulong[] jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_0")] - public static extern int CSharp_AddOutput__SWIG_0(global::System.IntPtr jarg1, out ulong jarg2, ulong[] jarg3, uint jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_1")] - public static extern int CSharp_AddOutput__SWIG_1(global::System.IntPtr jarg1, out ulong jarg2, ulong[] jarg3); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_2")] - public static extern int CSharp_AddOutput__SWIG_2(global::System.IntPtr jarg1, out ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AddOutput__SWIG_3")] - public static extern int CSharp_AddOutput__SWIG_3(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultStreamSettings")] - public static extern void CSharp_GetDefaultStreamSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultDeviceSettings")] - public static extern void CSharp_GetDefaultDeviceSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultMusicSettings")] - public static extern void CSharp_GetDefaultMusicSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultInitSettings")] - public static extern void CSharp_GetDefaultInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetDefaultPlatformInitSettings")] - public static extern void CSharp_GetDefaultPlatformInitSettings(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetMajorMinorVersion")] - public static extern uint CSharp_GetMajorMinorVersion(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetSubminorBuildVersion")] - public static extern uint CSharp_GetSubminorBuildVersion(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StartResourceMonitoring")] - public static extern void CSharp_StartResourceMonitoring(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_StopResourceMonitoring")] - public static extern void CSharp_StopResourceMonitoring(); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_GetResourceMonitorDataSummary")] - public static extern void CSharp_GetResourceMonitorDataSummary(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRoomPortal")] - public static extern int CSharp_SetRoomPortal(ulong jarg1, global::System.IntPtr jarg2, global::System.IntPtr jarg3, bool jarg4, ulong jarg5, ulong jarg6); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetRoom")] - public static extern int CSharp_SetRoom(ulong jarg1, global::System.IntPtr jarg2, ulong jarg3, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg4); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_RegisterSpatialAudioListener")] - public static extern int CSharp_RegisterSpatialAudioListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_UnregisterSpatialAudioListener")] - public static extern int CSharp_UnregisterSpatialAudioListener(ulong jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_SetGeometry")] - public static extern int CSharp_SetGeometry(ulong jarg1, global::System.IntPtr jarg2, uint jarg3, UnityEngine.Vector3[] jarg4, uint jarg5, global::System.IntPtr jarg6, uint jarg7, ulong jarg8, bool jarg9, bool jarg10, bool jarg11); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_4")] - public static extern uint CSharp_PostEventOnRoom__SWIG_4(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7, uint jarg8); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_5")] - public static extern uint CSharp_PostEventOnRoom__SWIG_5(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5, uint jarg6, global::System.IntPtr jarg7); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_6")] - public static extern uint CSharp_PostEventOnRoom__SWIG_6(uint jarg1, ulong jarg2, uint jarg3, global::System.IntPtr jarg4, global::System.IntPtr jarg5); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_PostEventOnRoom__SWIG_7")] - public static extern uint CSharp_PostEventOnRoom__SWIG_7(uint jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkPlaylist_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkPlaylist_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIPost_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMIDIPost_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkEventCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkEventCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMIDIEventCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMIDIEventCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMarkerCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMarkerCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDurationCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkDurationCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkDynamicSequenceItemCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicSyncCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMusicSyncCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("AkSoundEngine", EntryPoint="CSharp_AkMusicPlaylistCallbackInfo_SWIGUpcast")] - public static extern global::System.IntPtr CSharp_AkMusicPlaylistCallbackInfo_SWIGUpcast(global::System.IntPtr jarg1);} -#endif // #if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs.meta b/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs.meta deleted file mode 100644 index de24761d5..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9eb1d3b297ae3784d9ab6503adfd6127 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEngine_Windows.cs b/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEngine_Windows.cs deleted file mode 100644 index 08b10807c..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEngine_Windows.cs +++ /dev/null @@ -1,1445 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public partial class AkSoundEngine { - public static uint AK_INVALID_PIPELINE_ID { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_PIPELINE_ID_get(); } - } - - public static ulong AK_INVALID_AUDIO_OBJECT_ID { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_AUDIO_OBJECT_ID_get(); } - } - - public static uint AK_SOUNDBANK_VERSION { get { return AkSoundEnginePINVOKE.CSharp_AK_SOUNDBANK_VERSION_get(); } - } - - public static ushort AK_INT { get { return AkSoundEnginePINVOKE.CSharp_AK_INT_get(); } - } - - public static ushort AK_FLOAT { get { return AkSoundEnginePINVOKE.CSharp_AK_FLOAT_get(); } - } - - public static byte AK_INTERLEAVED { get { return AkSoundEnginePINVOKE.CSharp_AK_INTERLEAVED_get(); } - } - - public static byte AK_NONINTERLEAVED { get { return AkSoundEnginePINVOKE.CSharp_AK_NONINTERLEAVED_get(); } - } - - public static uint AK_LE_NATIVE_BITSPERSAMPLE { get { return AkSoundEnginePINVOKE.CSharp_AK_LE_NATIVE_BITSPERSAMPLE_get(); } - } - - public static uint AK_LE_NATIVE_SAMPLETYPE { get { return AkSoundEnginePINVOKE.CSharp_AK_LE_NATIVE_SAMPLETYPE_get(); } - } - - public static uint AK_LE_NATIVE_INTERLEAVE { get { return AkSoundEnginePINVOKE.CSharp_AK_LE_NATIVE_INTERLEAVE_get(); } - } - - public static uint DynamicSequenceOpen(ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, AkDynamicSequenceType in_eDynamicSequenceType) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_0(in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_eDynamicSequenceType); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint DynamicSequenceOpen(ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_1(in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint DynamicSequenceOpen(ulong in_gameObjectID) { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_2(in_gameObjectID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static AKRESULT DynamicSequenceClose(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceClose(in_playingID); } - - public static AKRESULT DynamicSequencePlay(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePlay__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequencePlay(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePlay__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequencePlay(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePlay__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequencePause(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePause__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequencePause(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePause__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequencePause(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequencePause__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequenceResume(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceResume__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequenceResume(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceResume__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequenceResume(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceResume__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequenceStop(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceStop__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT DynamicSequenceStop(uint in_playingID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceStop__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static AKRESULT DynamicSequenceStop(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceStop__SWIG_2(in_playingID); } - - public static AKRESULT DynamicSequenceBreak(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceBreak(in_playingID); } - - public static AKRESULT Seek(uint in_playingID, int in_iPosition, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Seek__SWIG_0(in_playingID, in_iPosition, in_bSeekToNearestMarker); } - - public static AKRESULT Seek(uint in_playingID, float in_fPercent, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Seek__SWIG_1(in_playingID, in_fPercent, in_bSeekToNearestMarker); } - - public static AKRESULT DynamicSequenceGetPauseTimes(uint in_playingID, out uint out_uTime, out uint out_uDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceGetPauseTimes(in_playingID, out out_uTime, out out_uDuration); } - - public static AkPlaylist DynamicSequenceLockPlaylist(uint in_playingID) { - global::System.IntPtr cPtr = AkSoundEnginePINVOKE.CSharp_DynamicSequenceLockPlaylist(in_playingID); - AkPlaylist ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkPlaylist(cPtr, false); - return ret; - } - - public static AKRESULT DynamicSequenceUnlockPlaylist(uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_DynamicSequenceUnlockPlaylist(in_playingID); } - - public static bool IsInitialized() { return AkSoundEnginePINVOKE.CSharp_IsInitialized(); } - - public static AKRESULT GetAudioSettings(AkAudioSettings out_audioSettings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetAudioSettings(AkAudioSettings.getCPtr(out_audioSettings)); } - - public static AkChannelConfig GetSpeakerConfiguration(ulong in_idOutput) { - AkChannelConfig ret = new AkChannelConfig(AkSoundEnginePINVOKE.CSharp_GetSpeakerConfiguration__SWIG_0(in_idOutput), true); - return ret; - } - - public static AkChannelConfig GetSpeakerConfiguration() { - AkChannelConfig ret = new AkChannelConfig(AkSoundEnginePINVOKE.CSharp_GetSpeakerConfiguration__SWIG_1(), true); - return ret; - } - - public static AKRESULT GetOutputDeviceConfiguration(ulong in_idOutput, AkChannelConfig io_channelConfig, Ak3DAudioSinkCapabilities io_capabilities) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetOutputDeviceConfiguration(in_idOutput, AkChannelConfig.getCPtr(io_channelConfig), Ak3DAudioSinkCapabilities.getCPtr(io_capabilities)); } - - public static AKRESULT GetPanningRule(out int out_ePanningRule, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPanningRule__SWIG_0(out out_ePanningRule, in_idOutput); } - - public static AKRESULT GetPanningRule(out int out_ePanningRule) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPanningRule__SWIG_1(out out_ePanningRule); } - - public static AKRESULT SetPanningRule(AkPanningRule in_ePanningRule, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPanningRule__SWIG_0((int)in_ePanningRule, in_idOutput); } - - public static AKRESULT SetPanningRule(AkPanningRule in_ePanningRule) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPanningRule__SWIG_1((int)in_ePanningRule); } - - public static AKRESULT GetSpeakerAngles(float[] io_pfSpeakerAngles, ref uint io_uNumAngles, out float out_fHeightAngle, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSpeakerAngles__SWIG_0(io_pfSpeakerAngles, ref io_uNumAngles, out out_fHeightAngle, in_idOutput); } - - public static AKRESULT GetSpeakerAngles(float[] io_pfSpeakerAngles, ref uint io_uNumAngles, out float out_fHeightAngle) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSpeakerAngles__SWIG_1(io_pfSpeakerAngles, ref io_uNumAngles, out out_fHeightAngle); } - - public static AKRESULT SetSpeakerAngles(float[] in_pfSpeakerAngles, uint in_uNumAngles, float in_fHeightAngle, ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSpeakerAngles__SWIG_0(in_pfSpeakerAngles, in_uNumAngles, in_fHeightAngle, in_idOutput); } - - public static AKRESULT SetSpeakerAngles(float[] in_pfSpeakerAngles, uint in_uNumAngles, float in_fHeightAngle) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSpeakerAngles__SWIG_1(in_pfSpeakerAngles, in_uNumAngles, in_fHeightAngle); } - - public static AKRESULT SetVolumeThreshold(float in_fVolumeThresholdDB) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetVolumeThreshold(in_fVolumeThresholdDB); } - - public static AKRESULT SetMaxNumVoicesLimit(ushort in_maxNumberVoices) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMaxNumVoicesLimit(in_maxNumberVoices); } - - public static AKRESULT RenderAudio(bool in_bAllowSyncRender) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RenderAudio__SWIG_0(in_bAllowSyncRender); } - - public static AKRESULT RenderAudio() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RenderAudio__SWIG_1(); } - - public static AKRESULT RegisterPluginDLL(string in_DllName, string in_DllPath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterPluginDLL__SWIG_0(in_DllName, in_DllPath); } - - public static AKRESULT RegisterPluginDLL(string in_DllName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterPluginDLL__SWIG_1(in_DllName); } - - public static uint GetIDFromString(string in_pszString) { return AkSoundEnginePINVOKE.CSharp_GetIDFromString__SWIG_0(in_pszString); } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_0(in_eventID, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_1(in_eventID, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_2(in_eventID, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, ulong in_gameObjectID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_3(in_eventID, in_gameObjectID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_4(in_pszEventName, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_5(in_pszEventName, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_6(in_pszEventName, in_gameObjectID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, ulong in_gameObjectID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_7(in_pszEventName, in_gameObjectID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_0(in_eventID, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_1(in_eventID, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_2(in_eventID, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_3(in_eventID, (int)in_ActionType, in_gameObjectID); } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_4(in_eventID, (int)in_ActionType); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_5(in_pszEventName, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_6(in_pszEventName, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID, int in_uTransitionDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_7(in_pszEventName, (int)in_ActionType, in_gameObjectID, in_uTransitionDuration); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_8(in_pszEventName, (int)in_ActionType, in_gameObjectID); } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_9(in_pszEventName, (int)in_ActionType); } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_playingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_0(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_playingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts, bool in_bAbsoluteOffsets, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_1(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts, in_bAbsoluteOffsets, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts, bool in_bAbsoluteOffsets) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_2(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts, in_bAbsoluteOffsets); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static uint PostMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_3(in_eventID, in_gameObjectID, in_pPosts.GetBuffer(), in_uNumPosts); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID, ulong in_gameObjectID, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_0(in_eventID, in_gameObjectID, in_playingID); } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_1(in_eventID, in_gameObjectID); } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_2(in_eventID); } - - public static AKRESULT StopMIDIOnEvent() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_3(); } - - public static AKRESULT PinEventInStreamCache(uint in_eventID, sbyte in_uActivePriority, sbyte in_uInactivePriority) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PinEventInStreamCache__SWIG_0(in_eventID, in_uActivePriority, in_uInactivePriority); } - - public static AKRESULT PinEventInStreamCache(string in_pszEventName, sbyte in_uActivePriority, sbyte in_uInactivePriority) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PinEventInStreamCache__SWIG_1(in_pszEventName, in_uActivePriority, in_uInactivePriority); } - - public static AKRESULT UnpinEventInStreamCache(uint in_eventID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnpinEventInStreamCache__SWIG_0(in_eventID); } - - public static AKRESULT UnpinEventInStreamCache(string in_pszEventName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnpinEventInStreamCache__SWIG_1(in_pszEventName); } - - public static AKRESULT GetBufferStatusForPinnedEvent(uint in_eventID, out float out_fPercentBuffered, out int out_bCachePinnedMemoryFull) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetBufferStatusForPinnedEvent__SWIG_0(in_eventID, out out_fPercentBuffered, out out_bCachePinnedMemoryFull); } - - public static AKRESULT GetBufferStatusForPinnedEvent(string in_pszEventName, out float out_fPercentBuffered, out int out_bCachePinnedMemoryFull) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetBufferStatusForPinnedEvent__SWIG_1(in_pszEventName, out out_fPercentBuffered, out out_bCachePinnedMemoryFull); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_0(in_eventID, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_1(in_eventID, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, int in_iPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_2(in_eventID, in_gameObjectID, in_iPosition); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_3(in_pszEventName, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_4(in_pszEventName, in_gameObjectID, in_iPosition, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, int in_iPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_5(in_pszEventName, in_gameObjectID, in_iPosition); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_9(in_eventID, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_10(in_eventID, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(uint in_eventID, ulong in_gameObjectID, float in_fPercent) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_11(in_eventID, in_gameObjectID, in_fPercent); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker, uint in_PlayingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_12(in_pszEventName, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_13(in_pszEventName, in_gameObjectID, in_fPercent, in_bSeekToNearestMarker); } - - public static AKRESULT SeekOnEvent(string in_pszEventName, ulong in_gameObjectID, float in_fPercent) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_14(in_pszEventName, in_gameObjectID, in_fPercent); } - - public static void CancelEventCallbackCookie(object in_pCookie) { - AkCallbackManager.RemoveEventCallbackCookie(in_pCookie); - } - - public static void CancelEventCallbackGameObject(ulong in_gameObjectID) { AkSoundEnginePINVOKE.CSharp_CancelEventCallbackGameObject(in_gameObjectID); } - - public static void CancelEventCallback(uint in_playingID) { - AkCallbackManager.RemoveEventCallback(in_playingID); - } - - public static AKRESULT GetSourcePlayPosition(uint in_PlayingID, out int out_puPosition, bool in_bExtrapolate) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourcePlayPosition__SWIG_0(in_PlayingID, out out_puPosition, in_bExtrapolate); } - - public static AKRESULT GetSourcePlayPosition(uint in_PlayingID, out int out_puPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourcePlayPosition__SWIG_1(in_PlayingID, out out_puPosition); } - - public static AKRESULT GetSourceStreamBuffering(uint in_PlayingID, out int out_buffering, out int out_bIsBuffering) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourceStreamBuffering(in_PlayingID, out out_buffering, out out_bIsBuffering); } - - public static void StopAll(ulong in_gameObjectID) { AkSoundEnginePINVOKE.CSharp_StopAll__SWIG_0(in_gameObjectID); } - - public static void StopAll() { AkSoundEnginePINVOKE.CSharp_StopAll__SWIG_1(); } - - public static void StopPlayingID(uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { AkSoundEnginePINVOKE.CSharp_StopPlayingID__SWIG_0(in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static void StopPlayingID(uint in_playingID, int in_uTransitionDuration) { AkSoundEnginePINVOKE.CSharp_StopPlayingID__SWIG_1(in_playingID, in_uTransitionDuration); } - - public static void StopPlayingID(uint in_playingID) { AkSoundEnginePINVOKE.CSharp_StopPlayingID__SWIG_2(in_playingID); } - - public static void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, uint in_playingID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) { AkSoundEnginePINVOKE.CSharp_ExecuteActionOnPlayingID__SWIG_0((int)in_ActionType, in_playingID, in_uTransitionDuration, (int)in_eFadeCurve); } - - public static void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, uint in_playingID, int in_uTransitionDuration) { AkSoundEnginePINVOKE.CSharp_ExecuteActionOnPlayingID__SWIG_1((int)in_ActionType, in_playingID, in_uTransitionDuration); } - - public static void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, uint in_playingID) { AkSoundEnginePINVOKE.CSharp_ExecuteActionOnPlayingID__SWIG_2((int)in_ActionType, in_playingID); } - - public static void SetRandomSeed(uint in_uSeed) { AkSoundEnginePINVOKE.CSharp_SetRandomSeed(in_uSeed); } - - public static void MuteBackgroundMusic(bool in_bMute) { AkSoundEnginePINVOKE.CSharp_MuteBackgroundMusic(in_bMute); } - - public static bool GetBackgroundMusicMute() { return AkSoundEnginePINVOKE.CSharp_GetBackgroundMusicMute(); } - - public static AKRESULT SendPluginCustomGameData(uint in_busID, ulong in_busObjectID, AkPluginType in_eType, uint in_uCompanyID, uint in_uPluginID, global::System.IntPtr in_pData, uint in_uSizeInBytes) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SendPluginCustomGameData(in_busID, in_busObjectID, (int)in_eType, in_uCompanyID, in_uPluginID, in_pData, in_uSizeInBytes); } - - public static AKRESULT UnregisterAllGameObj() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterAllGameObj(); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions, AkMultiPositionType in_eMultiPositionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_0(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions, (int)in_eMultiPositionType); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_1(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkChannelEmitterArray in_pPositions, ushort in_NumPositions, AkMultiPositionType in_eMultiPositionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_2(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions, (int)in_eMultiPositionType); } - - public static AKRESULT SetMultiplePositions(ulong in_GameObjectID, AkChannelEmitterArray in_pPositions, ushort in_NumPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_3(in_GameObjectID, in_pPositions.m_Buffer, in_NumPositions); } - - public static AKRESULT SetScalingFactor(ulong in_GameObjectID, float in_fAttenuationScalingFactor) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetScalingFactor(in_GameObjectID, in_fAttenuationScalingFactor); } - - public static AKRESULT ClearBanks() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearBanks(); } - - public static AKRESULT SetBankLoadIOSettings(float in_fThroughput, sbyte in_priority) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBankLoadIOSettings(in_fThroughput, in_priority); } - - public static AKRESULT LoadBank(string in_pszString, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_0(in_pszString, out out_bankID); } - - public static AKRESULT LoadBank(uint in_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_2(in_bankID); } - - public static AKRESULT LoadBankMemoryView(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryView__SWIG_0(in_pInMemoryBankPtr, in_uInMemoryBankSize, out out_bankID); } - - public static AKRESULT LoadBankMemoryCopy(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryCopy__SWIG_0(in_pInMemoryBankPtr, in_uInMemoryBankSize, out out_bankID); } - - public static AKRESULT LoadBank(string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_3(in_pszString, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, out out_bankID); } - } - - public static AKRESULT LoadBank(uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBank__SWIG_5(in_bankID, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT LoadBankMemoryView(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryView__SWIG_1(in_pInMemoryBankPtr, in_uInMemoryBankSize, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, out out_bankID); } - } - - public static AKRESULT LoadBankMemoryCopy(global::System.IntPtr in_pInMemoryBankPtr, uint in_uInMemoryBankSize, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, out uint out_bankID) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadBankMemoryCopy__SWIG_1(in_pInMemoryBankPtr, in_uInMemoryBankSize, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, out out_bankID); } - } - - public static AKRESULT UnloadBank(string in_pszString, global::System.IntPtr in_pInMemoryBankPtr) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_0(in_pszString, in_pInMemoryBankPtr); } - - public static AKRESULT UnloadBank(uint in_bankID, global::System.IntPtr in_pInMemoryBankPtr) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_2(in_bankID, in_pInMemoryBankPtr); } - - public static AKRESULT UnloadBank(string in_pszString, global::System.IntPtr in_pInMemoryBankPtr, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_3(in_pszString, in_pInMemoryBankPtr, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT UnloadBank(uint in_bankID, global::System.IntPtr in_pInMemoryBankPtr, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadBank__SWIG_5(in_bankID, in_pInMemoryBankPtr, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static void CancelBankCallbackCookie(object in_pCookie) { - AkCallbackManager.RemoveBankCallback(in_pCookie); - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString, AkBankContent in_uFlags) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_0((int)in_PreparationType, in_pszString, (int)in_uFlags); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_1((int)in_PreparationType, in_pszString); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID, AkBankContent in_uFlags) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_4((int)in_PreparationType, in_bankID, (int)in_uFlags); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_5((int)in_PreparationType, in_bankID); } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, AkBankContent in_uFlags) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_6((int)in_PreparationType, in_pszString, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_uFlags); } - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, string in_pszString, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_7((int)in_PreparationType, in_pszString, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, AkBankContent in_uFlags) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_10((int)in_PreparationType, in_bankID, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_uFlags); } - } - - public static AKRESULT PrepareBank(AkPreparationType in_PreparationType, uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_11((int)in_PreparationType, in_bankID, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT ClearPreparedEvents() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearPreparedEvents(); } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, string [] in_ppszString, uint in_uNumEvent) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszString) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszString.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszString) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_0((int)in_PreparationType, pMem, in_uNumEvent); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, uint[] in_pEventID, uint in_uNumEvent) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_1((int)in_PreparationType, in_pEventID, in_uNumEvent); } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, string [] in_ppszString, uint in_uNumEvent, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszString) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszString.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszString) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_2((int)in_PreparationType, pMem, in_uNumEvent, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareEvent(AkPreparationType in_PreparationType, uint[] in_pEventID, uint in_uNumEvent, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_3((int)in_PreparationType, in_pEventID, in_uNumEvent, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT SetMedia(AkSourceSettingsArray in_pSourceSettings, uint in_uNumSourceSettings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMedia(in_pSourceSettings.GetBuffer(), in_uNumSourceSettings); } - - public static AKRESULT UnsetMedia(AkSourceSettingsArray in_pSourceSettings, uint in_uNumSourceSettings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnsetMedia(in_pSourceSettings.GetBuffer(), in_uNumSourceSettings); } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, string in_pszGroupName, string [] in_ppszGameSyncName, uint in_uNumGameSyncs) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszGameSyncName) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszGameSyncName.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszGameSyncName) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_0((int)in_PreparationType, (int)in_eGameSyncType, in_pszGroupName, pMem, in_uNumGameSyncs); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, uint in_GroupID, uint[] in_paGameSyncID, uint in_uNumGameSyncs) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_1((int)in_PreparationType, (int)in_eGameSyncType, in_GroupID, in_paGameSyncID, in_uNumGameSyncs); } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, string in_pszGroupName, string [] in_ppszGameSyncName, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - - //Find the required size - int size = 0; - foreach(string s in in_ppszGameSyncName) - size += s.Length + 1; - - int sizeofChar = 2; //Unicode - global::System.IntPtr pMem = global::System.Runtime.InteropServices.Marshal.AllocHGlobal(size * sizeofChar + 2); - - //Write the length of array - global::System.Runtime.InteropServices.Marshal.WriteInt16(pMem, (short)in_ppszGameSyncName.Length); - global::System.IntPtr pCurrent = (global::System.IntPtr)(pMem.ToInt64() + sizeofChar); - - //Copy the strings one after the other. - foreach(string s in in_ppszGameSyncName) - { - global::System.Runtime.InteropServices.Marshal.Copy(s.ToCharArray(), 0, pCurrent, s.Length); - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar * s.Length); - global::System.Runtime.InteropServices.Marshal.WriteInt16(pCurrent, 0); //Null-terminated string - pCurrent = (global::System.IntPtr)(pCurrent.ToInt64() + sizeofChar); - } - - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - try { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_2((int)in_PreparationType, (int)in_eGameSyncType, in_pszGroupName, pMem, in_uNumGameSyncs, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } finally { - global::System.Runtime.InteropServices.Marshal.FreeHGlobal(pMem); - } - } - - public static AKRESULT PrepareGameSyncs(AkPreparationType in_PreparationType, AkGroupType in_eGameSyncType, uint in_GroupID, uint[] in_paGameSyncID, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) { - in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie); - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_3((int)in_PreparationType, (int)in_eGameSyncType, in_GroupID, in_paGameSyncID, in_uNumGameSyncs, global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); } - } - - public static AKRESULT AddListener(ulong in_emitterGameObj, ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddListener(in_emitterGameObj, in_listenerGameObj); } - - public static AKRESULT RemoveListener(ulong in_emitterGameObj, ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveListener(in_emitterGameObj, in_listenerGameObj); } - - public static AKRESULT AddDefaultListener(ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddDefaultListener(in_listenerGameObj); } - - public static AKRESULT RemoveDefaultListener(ulong in_listenerGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveDefaultListener(in_listenerGameObj); } - - public static AKRESULT ResetListenersToDefault(ulong in_emitterGameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetListenersToDefault(in_emitterGameObj); } - - public static AKRESULT SetListenerSpatialization(ulong in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig, float[] in_pVolumeOffsets) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerSpatialization__SWIG_0(in_uListenerID, in_bSpatialized, AkChannelConfig.getCPtr(in_channelConfig), in_pVolumeOffsets); } - - public static AKRESULT SetListenerSpatialization(ulong in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerSpatialization__SWIG_1(in_uListenerID, in_bSpatialized, AkChannelConfig.getCPtr(in_channelConfig)); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_0(in_rtpcID, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_1(in_rtpcID, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_2(in_rtpcID, in_value, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_3(in_rtpcID, in_value, in_gameObjectID); } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_4(in_rtpcID, in_value); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_5(in_pszRtpcName, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_6(in_pszRtpcName, in_value, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_7(in_pszRtpcName, in_value, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_8(in_pszRtpcName, in_value, in_gameObjectID); } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_9(in_pszRtpcName, in_value); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_0(in_rtpcID, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_1(in_rtpcID, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_2(in_rtpcID, in_value, in_playingID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValueByPlayingID(uint in_rtpcID, float in_value, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_3(in_rtpcID, in_value, in_playingID); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_4(in_pszRtpcName, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_5(in_pszRtpcName, in_value, in_playingID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_6(in_pszRtpcName, in_value, in_playingID, in_uValueChangeDuration); } - - public static AKRESULT SetRTPCValueByPlayingID(string in_pszRtpcName, float in_value, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValueByPlayingID__SWIG_7(in_pszRtpcName, in_value, in_playingID); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_0(in_rtpcID, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_1(in_rtpcID, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_2(in_rtpcID, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_3(in_rtpcID, in_gameObjectID); } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_4(in_rtpcID); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_5(in_pszRtpcName, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_6(in_pszRtpcName, in_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, int in_uValueChangeDuration) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_7(in_pszRtpcName, in_gameObjectID, in_uValueChangeDuration); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_8(in_pszRtpcName, in_gameObjectID); } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_9(in_pszRtpcName); } - - public static AKRESULT SetSwitch(uint in_switchGroup, uint in_switchState, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_0(in_switchGroup, in_switchState, in_gameObjectID); } - - public static AKRESULT SetSwitch(string in_pszSwitchGroup, string in_pszSwitchState, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_1(in_pszSwitchGroup, in_pszSwitchState, in_gameObjectID); } - - public static AKRESULT PostTrigger(uint in_triggerID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_0(in_triggerID, in_gameObjectID); } - - public static AKRESULT PostTrigger(string in_pszTrigger, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_1(in_pszTrigger, in_gameObjectID); } - - public static AKRESULT SetState(uint in_stateGroup, uint in_state) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetState__SWIG_0(in_stateGroup, in_state); } - - public static AKRESULT SetState(string in_pszStateGroup, string in_pszState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetState__SWIG_1(in_pszStateGroup, in_pszState); } - - public static AKRESULT SetGameObjectAuxSendValues(ulong in_gameObjectID, AkAuxSendArray in_aAuxSendValues, uint in_uNumSendValues) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectAuxSendValues(in_gameObjectID, in_aAuxSendValues.GetBuffer(), in_uNumSendValues); } - - public static AKRESULT SetGameObjectOutputBusVolume(ulong in_emitterObjID, ulong in_listenerObjID, float in_fControlValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectOutputBusVolume(in_emitterObjID, in_listenerObjID, in_fControlValue); } - - public static AKRESULT SetActorMixerEffect(uint in_audioNodeID, uint in_uFXIndex, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetActorMixerEffect(in_audioNodeID, in_uFXIndex, in_shareSetID); } - - public static AKRESULT SetBusEffect(uint in_audioNodeID, uint in_uFXIndex, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusEffect__SWIG_0(in_audioNodeID, in_uFXIndex, in_shareSetID); } - - public static AKRESULT SetBusEffect(string in_pszBusName, uint in_uFXIndex, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusEffect__SWIG_1(in_pszBusName, in_uFXIndex, in_shareSetID); } - - public static AKRESULT SetOutputDeviceEffect(ulong in_outputDeviceID, uint in_uFXIndex, uint in_FXShareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetOutputDeviceEffect(in_outputDeviceID, in_uFXIndex, in_FXShareSetID); } - - public static AKRESULT SetMixer(uint in_audioNodeID, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMixer__SWIG_0(in_audioNodeID, in_shareSetID); } - - public static AKRESULT SetMixer(string in_pszBusName, uint in_shareSetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMixer__SWIG_1(in_pszBusName, in_shareSetID); } - - public static AKRESULT SetBusConfig(uint in_audioNodeID, AkChannelConfig in_channelConfig) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusConfig__SWIG_0(in_audioNodeID, AkChannelConfig.getCPtr(in_channelConfig)); } - - public static AKRESULT SetBusConfig(string in_pszBusName, AkChannelConfig in_channelConfig) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusConfig__SWIG_1(in_pszBusName, AkChannelConfig.getCPtr(in_channelConfig)); } - - public static AKRESULT SetObjectObstructionAndOcclusion(ulong in_EmitterID, ulong in_ListenerID, float in_fObstructionLevel, float in_fOcclusionLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectObstructionAndOcclusion(in_EmitterID, in_ListenerID, in_fObstructionLevel, in_fOcclusionLevel); } - - public static AKRESULT SetMultipleObstructionAndOcclusion(ulong in_EmitterID, ulong in_uListenerID, AkObstructionOcclusionValuesArray in_fObstructionOcclusionValues, uint in_uNumOcclusionObstruction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultipleObstructionAndOcclusion(in_EmitterID, in_uListenerID, in_fObstructionOcclusionValues.GetBuffer(), in_uNumOcclusionObstruction); } - - public static AKRESULT StartOutputCapture(string in_CaptureFileName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StartOutputCapture(in_CaptureFileName); } - - public static AKRESULT StopOutputCapture() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopOutputCapture(); } - - public static AKRESULT AddOutputCaptureMarker(string in_MarkerText) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutputCaptureMarker(in_MarkerText); } - - public static AKRESULT StartProfilerCapture(string in_CaptureFileName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StartProfilerCapture(in_CaptureFileName); } - - public static AKRESULT StopProfilerCapture() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopProfilerCapture(); } - - public static AKRESULT RemoveOutput(ulong in_idOutput) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveOutput(in_idOutput); } - - public static AKRESULT ReplaceOutput(AkOutputSettings in_Settings, ulong in_outputDeviceId, out ulong out_pOutputDeviceId) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ReplaceOutput__SWIG_0(AkOutputSettings.getCPtr(in_Settings), in_outputDeviceId, out out_pOutputDeviceId); } - - public static AKRESULT ReplaceOutput(AkOutputSettings in_Settings, ulong in_outputDeviceId) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ReplaceOutput__SWIG_1(AkOutputSettings.getCPtr(in_Settings), in_outputDeviceId); } - - public static ulong GetOutputID(uint in_idShareset, uint in_idDevice) { return AkSoundEnginePINVOKE.CSharp_GetOutputID__SWIG_0(in_idShareset, in_idDevice); } - - public static ulong GetOutputID(string in_szShareSet, uint in_idDevice) { return AkSoundEnginePINVOKE.CSharp_GetOutputID__SWIG_1(in_szShareSet, in_idDevice); } - - public static AKRESULT SetBusDevice(uint in_idBus, uint in_idNewDevice) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusDevice__SWIG_0(in_idBus, in_idNewDevice); } - - public static AKRESULT SetBusDevice(string in_BusName, string in_DeviceName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBusDevice__SWIG_1(in_BusName, in_DeviceName); } - - public static AKRESULT GetDeviceList(uint in_ulCompanyID, uint in_ulPluginID, out uint io_maxNumDevices, AkDeviceDescriptionArray out_deviceDescriptions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDeviceList__SWIG_0(in_ulCompanyID, in_ulPluginID, out io_maxNumDevices, out_deviceDescriptions.GetBuffer()); } - - public static AKRESULT GetDeviceList(uint in_audioDeviceShareSetID, out uint io_maxNumDevices, AkDeviceDescriptionArray out_deviceDescriptions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDeviceList__SWIG_1(in_audioDeviceShareSetID, out io_maxNumDevices, out_deviceDescriptions.GetBuffer()); } - - public static AKRESULT SetOutputVolume(ulong in_idOutput, float in_fVolume) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetOutputVolume(in_idOutput, in_fVolume); } - - public static AKRESULT GetDeviceSpatialAudioSupport(uint in_idDevice) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDeviceSpatialAudioSupport(in_idDevice); } - - public static AKRESULT Suspend(bool in_bRenderAnyway) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Suspend__SWIG_0(in_bRenderAnyway); } - - public static AKRESULT Suspend() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Suspend__SWIG_1(); } - - public static AKRESULT WakeupFromSuspend() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_WakeupFromSuspend(); } - - public static uint GetBufferTick() { return AkSoundEnginePINVOKE.CSharp_GetBufferTick(); } - - public static ulong GetSampleTick() { return AkSoundEnginePINVOKE.CSharp_GetSampleTick(); } - - public static byte AK_INVALID_MIDI_CHANNEL { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_MIDI_CHANNEL_get(); } - } - - public static byte AK_INVALID_MIDI_NOTE { get { return AkSoundEnginePINVOKE.CSharp_AK_INVALID_MIDI_NOTE_get(); } - } - - public static AKRESULT GetPlayingSegmentInfo(uint in_PlayingID, AkSegmentInfo out_segmentInfo, bool in_bExtrapolate) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingSegmentInfo__SWIG_0(in_PlayingID, AkSegmentInfo.getCPtr(out_segmentInfo), in_bExtrapolate); } - - public static AKRESULT GetPlayingSegmentInfo(uint in_PlayingID, AkSegmentInfo out_segmentInfo) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingSegmentInfo__SWIG_1(in_PlayingID, AkSegmentInfo.getCPtr(out_segmentInfo)); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID, bool in_bIsBus) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_0((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID, in_bIsBus); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_1((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_2((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_3((int)in_eError, (int)in_eErrorLevel, in_playingID); } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_4((int)in_eError, (int)in_eErrorLevel); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID, bool in_bIsBus) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_0(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID, in_bIsBus); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID, uint in_audioNodeID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_1(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID, in_audioNodeID); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, ulong in_gameObjID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_2(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_3(in_pszError, (int)in_eErrorLevel, in_playingID); } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_4(in_pszError, (int)in_eErrorLevel); } - - public static int GetTimeStamp() { return AkSoundEnginePINVOKE.CSharp_GetTimeStamp(); } - - public static void MonitorStreamMgrInit(AkStreamMgrSettings in_streamMgrSettings) { AkSoundEnginePINVOKE.CSharp_MonitorStreamMgrInit(AkStreamMgrSettings.getCPtr(in_streamMgrSettings)); } - - public static void MonitorStreamingDeviceInit(uint in_deviceID, AkDeviceSettings in_deviceSettings) { AkSoundEnginePINVOKE.CSharp_MonitorStreamingDeviceInit(in_deviceID, AkDeviceSettings.getCPtr(in_deviceSettings)); } - - public static void MonitorStreamingDeviceDestroyed(uint in_deviceID) { AkSoundEnginePINVOKE.CSharp_MonitorStreamingDeviceDestroyed(in_deviceID); } - - public static void MonitorStreamMgrTerm() { AkSoundEnginePINVOKE.CSharp_MonitorStreamMgrTerm(); } - - public static uint GetNumNonZeroBits(uint in_uWord) { return AkSoundEnginePINVOKE.CSharp_GetNumNonZeroBits(in_uWord); } - - public static uint GetNextPowerOfTwo(uint in_uValue) { return AkSoundEnginePINVOKE.CSharp_GetNextPowerOfTwo(in_uValue); } - - public static uint ROTL32(uint x, uint r) { return AkSoundEnginePINVOKE.CSharp_ROTL32(x, r); } - - public static ulong ROTL64(ulong x, ulong r) { return AkSoundEnginePINVOKE.CSharp_ROTL64(x, r); } - - public static void AkGetDefaultHighPriorityThreadProperties(AkThreadProperties out_threadProperties) { AkSoundEnginePINVOKE.CSharp_AkGetDefaultHighPriorityThreadProperties(AkThreadProperties.getCPtr(out_threadProperties)); } - - public static uint ResolveDialogueEvent(uint in_eventID, uint[] in_aArgumentValues, uint in_uNumArguments, uint in_idSequence) { return AkSoundEnginePINVOKE.CSharp_ResolveDialogueEvent__SWIG_0(in_eventID, in_aArgumentValues, in_uNumArguments, in_idSequence); } - - public static uint ResolveDialogueEvent(uint in_eventID, uint[] in_aArgumentValues, uint in_uNumArguments) { return AkSoundEnginePINVOKE.CSharp_ResolveDialogueEvent__SWIG_1(in_eventID, in_aArgumentValues, in_uNumArguments); } - - public static AKRESULT GetDialogueEventCustomPropertyValue(uint in_eventID, uint in_uPropID, out int out_iValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDialogueEventCustomPropertyValue__SWIG_0(in_eventID, in_uPropID, out out_iValue); } - - public static AKRESULT GetDialogueEventCustomPropertyValue(uint in_eventID, uint in_uPropID, out float out_fValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetDialogueEventCustomPropertyValue__SWIG_1(in_eventID, in_uPropID, out out_fValue); } - - public static AKRESULT GetPosition(ulong in_GameObjectID, AkTransform out_rPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPosition(in_GameObjectID, AkTransform.getCPtr(out_rPosition)); } - - public static AKRESULT GetListenerPosition(ulong in_uIndex, AkTransform out_rPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetListenerPosition(in_uIndex, AkTransform.getCPtr(out_rPosition)); } - - public static AKRESULT GetRTPCValue(uint in_rtpcID, ulong in_gameObjectID, uint in_playingID, out float out_rValue, ref int io_rValueType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_0(in_rtpcID, in_gameObjectID, in_playingID, out out_rValue, ref io_rValueType); } - - public static AKRESULT GetRTPCValue(string in_pszRtpcName, ulong in_gameObjectID, uint in_playingID, out float out_rValue, ref int io_rValueType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_1(in_pszRtpcName, in_gameObjectID, in_playingID, out out_rValue, ref io_rValueType); } - - public static AKRESULT GetSwitch(uint in_switchGroup, ulong in_gameObjectID, out uint out_rSwitchState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_0(in_switchGroup, in_gameObjectID, out out_rSwitchState); } - - public static AKRESULT GetSwitch(string in_pstrSwitchGroupName, ulong in_GameObj, out uint out_rSwitchState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_1(in_pstrSwitchGroupName, in_GameObj, out out_rSwitchState); } - - public static AKRESULT GetState(uint in_stateGroup, out uint out_rState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetState__SWIG_0(in_stateGroup, out out_rState); } - - public static AKRESULT GetState(string in_pstrStateGroupName, out uint out_rState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetState__SWIG_1(in_pstrStateGroupName, out out_rState); } - - public static AKRESULT GetGameObjectAuxSendValues(ulong in_gameObjectID, AkAuxSendArray out_paAuxSendValues, ref uint io_ruNumSendValues) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectAuxSendValues(in_gameObjectID, out_paAuxSendValues.GetBuffer(), ref io_ruNumSendValues); } - - public static AKRESULT GetGameObjectDryLevelValue(ulong in_EmitterID, ulong in_ListenerID, out float out_rfControlValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectDryLevelValue(in_EmitterID, in_ListenerID, out out_rfControlValue); } - - public static AKRESULT GetObjectObstructionAndOcclusion(ulong in_EmitterID, ulong in_ListenerID, out float out_rfObstructionLevel, out float out_rfOcclusionLevel) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetObjectObstructionAndOcclusion(in_EmitterID, in_ListenerID, out out_rfObstructionLevel, out out_rfOcclusionLevel); } - - public static AKRESULT QueryAudioObjectIDs(uint in_eventID, ref uint io_ruNumItems, AkObjectInfoArray out_aObjectInfos) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryAudioObjectIDs__SWIG_0(in_eventID, ref io_ruNumItems, out_aObjectInfos.GetBuffer()); } - - public static AKRESULT QueryAudioObjectIDs(string in_pszEventName, ref uint io_ruNumItems, AkObjectInfoArray out_aObjectInfos) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryAudioObjectIDs__SWIG_1(in_pszEventName, ref io_ruNumItems, out_aObjectInfos.GetBuffer()); } - - public static AKRESULT GetPositioningInfo(uint in_ObjectID, AkPositioningInfo out_rPositioningInfo) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPositioningInfo(in_ObjectID, AkPositioningInfo.getCPtr(out_rPositioningInfo)); } - - public static bool GetIsGameObjectActive(ulong in_GameObjId) { return AkSoundEnginePINVOKE.CSharp_GetIsGameObjectActive(in_GameObjId); } - - public static float GetMaxRadius(ulong in_GameObjId) { return AkSoundEnginePINVOKE.CSharp_GetMaxRadius(in_GameObjId); } - - public static uint GetEventIDFromPlayingID(uint in_playingID) { return AkSoundEnginePINVOKE.CSharp_GetEventIDFromPlayingID(in_playingID); } - - public static ulong GetGameObjectFromPlayingID(uint in_playingID) { return AkSoundEnginePINVOKE.CSharp_GetGameObjectFromPlayingID(in_playingID); } - - public static AKRESULT GetPlayingIDsFromGameObject(ulong in_GameObjId, ref uint io_ruNumIDs, uint[] out_aPlayingIDs) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingIDsFromGameObject(in_GameObjId, ref io_ruNumIDs, out_aPlayingIDs); } - - public static AKRESULT GetCustomPropertyValue(uint in_ObjectID, uint in_uPropID, out int out_iValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetCustomPropertyValue__SWIG_0(in_ObjectID, in_uPropID, out out_iValue); } - - public static AKRESULT GetCustomPropertyValue(uint in_ObjectID, uint in_uPropID, out float out_fValue) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetCustomPropertyValue__SWIG_1(in_ObjectID, in_uPropID, out out_fValue); } - - public static void AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER(ref uint io_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AK_SPEAKER_SETUP_FIX_LEFT_TO_CENTER(ref io_uChannelMask); } - - public static void AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE(ref uint io_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AK_SPEAKER_SETUP_FIX_REAR_TO_SIDE(ref io_uChannelMask); } - - public static void AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED(ref uint io_uChannelMask) { AkSoundEnginePINVOKE.CSharp_AK_SPEAKER_SETUP_CONVERT_TO_SUPPORTED(ref io_uChannelMask); } - - public static byte ChannelMaskToNumChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_ChannelMaskToNumChannels(in_uChannelMask); } - - public static uint ChannelMaskFromNumChannels(uint in_uNumChannels) { return AkSoundEnginePINVOKE.CSharp_ChannelMaskFromNumChannels(in_uNumChannels); } - - public static byte ChannelBitToIndex(uint in_uChannelBit, uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_ChannelBitToIndex(in_uChannelBit, in_uChannelMask); } - - public static bool HasSurroundChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasSurroundChannels(in_uChannelMask); } - - public static bool HasStrictlyOnePairOfSurroundChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasStrictlyOnePairOfSurroundChannels(in_uChannelMask); } - - public static bool HasSideAndRearChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasSideAndRearChannels(in_uChannelMask); } - - public static bool HasHeightChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_HasHeightChannels(in_uChannelMask); } - - public static uint BackToSideChannels(uint in_uChannelMask) { return AkSoundEnginePINVOKE.CSharp_BackToSideChannels(in_uChannelMask); } - - public static uint StdChannelIndexToDisplayIndex(AkChannelOrdering in_eOrdering, uint in_uChannelMask, uint in_uChannelIdx) { return AkSoundEnginePINVOKE.CSharp_StdChannelIndexToDisplayIndex((int)in_eOrdering, in_uChannelMask, in_uChannelIdx); } - - public static float kDefaultMaxPathLength { get { return AkSoundEnginePINVOKE.CSharp_kDefaultMaxPathLength_get(); } - } - - public static uint kDefaultDiffractionMaxEdges { get { return AkSoundEnginePINVOKE.CSharp_kDefaultDiffractionMaxEdges_get(); } - } - - public static uint kDefaultDiffractionMaxPaths { get { return AkSoundEnginePINVOKE.CSharp_kDefaultDiffractionMaxPaths_get(); } - } - - public static float kMaxDiffraction { get { return AkSoundEnginePINVOKE.CSharp_kMaxDiffraction_get(); } - } - - public static uint kDiffractionMaxEdges { get { return AkSoundEnginePINVOKE.CSharp_kDiffractionMaxEdges_get(); } - } - - public static uint kDiffractionMaxPaths { get { return AkSoundEnginePINVOKE.CSharp_kDiffractionMaxPaths_get(); } - } - - public static uint kPortalToPortalDiffractionMaxPaths { get { return AkSoundEnginePINVOKE.CSharp_kPortalToPortalDiffractionMaxPaths_get(); } - } - - public static AKRESULT SetGameObjectRadius(ulong in_gameObjectID, float in_outerRadius, float in_innerRadius) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectRadius(in_gameObjectID, in_outerRadius, in_innerRadius); } - - public static AKRESULT SetImageSource(uint in_srcID, AkImageSourceSettings in_info, uint in_AuxBusID, ulong in_roomID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetImageSource(in_srcID, AkImageSourceSettings.getCPtr(in_info), in_AuxBusID, in_roomID, in_gameObjectID); } - - public static AKRESULT RemoveImageSource(uint in_srcID, uint in_AuxBusID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveImageSource(in_srcID, in_AuxBusID, in_gameObjectID); } - - public static AKRESULT ClearImageSources(uint in_AuxBusID, ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_0(in_AuxBusID, in_gameObjectID); } - - public static AKRESULT ClearImageSources(uint in_AuxBusID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_1(in_AuxBusID); } - - public static AKRESULT ClearImageSources() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_2(); } - - public static AKRESULT RemoveGeometry(ulong in_SetID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveGeometry(in_SetID); } - - public static AKRESULT QueryReflectionPaths(ulong in_gameObjectID, uint in_positionIndex, ref UnityEngine.Vector3 out_listenerPos, ref UnityEngine.Vector3 out_emitterPos, AkReflectionPathInfoArray out_aPaths, out uint io_uArraySize) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryReflectionPaths(in_gameObjectID, in_positionIndex, ref out_listenerPos, ref out_emitterPos, out_aPaths.GetBuffer(), out io_uArraySize); } - - public static AKRESULT RemoveRoom(ulong in_RoomID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveRoom(in_RoomID); } - - public static AKRESULT RemovePortal(ulong in_PortalID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemovePortal(in_PortalID); } - - public static AKRESULT SetGameObjectInRoom(ulong in_gameObjectID, ulong in_CurrentRoomID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectInRoom(in_gameObjectID, in_CurrentRoomID); } - - public static AKRESULT SetReflectionsOrder(uint in_uReflectionsOrder, bool in_bUpdatePaths) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetReflectionsOrder(in_uReflectionsOrder, in_bUpdatePaths); } - - public static AKRESULT SetNumberOfPrimaryRays(uint in_uNbPrimaryRays) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetNumberOfPrimaryRays(in_uNbPrimaryRays); } - - public static AKRESULT SetEarlyReflectionsAuxSend(ulong in_gameObjectID, uint in_auxBusID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetEarlyReflectionsAuxSend(in_gameObjectID, in_auxBusID); } - - public static AKRESULT SetEarlyReflectionsVolume(ulong in_gameObjectID, float in_fSendVolume) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetEarlyReflectionsVolume(in_gameObjectID, in_fSendVolume); } - - public static AKRESULT SetPortalObstructionAndOcclusion(ulong in_PortalID, float in_fObstruction, float in_fOcclusion) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPortalObstructionAndOcclusion(in_PortalID, in_fObstruction, in_fOcclusion); } - - public static AKRESULT SetGameObjectToPortalObstruction(ulong in_gameObjectID, ulong in_PortalID, float in_fObstruction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectToPortalObstruction(in_gameObjectID, in_PortalID, in_fObstruction); } - - public static AKRESULT SetPortalToPortalObstruction(ulong in_PortalID0, ulong in_PortalID1, float in_fObstruction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetPortalToPortalObstruction(in_PortalID0, in_PortalID1, in_fObstruction); } - - public static AKRESULT QueryWetDiffraction(ulong in_portal, out float out_wetDiffraction) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryWetDiffraction(in_portal, out out_wetDiffraction); } - - public static AKRESULT QueryDiffractionPaths(ulong in_gameObjectID, uint in_positionIndex, ref UnityEngine.Vector3 out_listenerPos, ref UnityEngine.Vector3 out_emitterPos, AkDiffractionPathInfoArray out_aPaths, out uint io_uArraySize) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryDiffractionPaths(in_gameObjectID, in_positionIndex, ref out_listenerPos, ref out_emitterPos, out_aPaths.GetBuffer(), out io_uArraySize); } - - public static AKRESULT ResetStochasticEngine() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetStochasticEngine(); } - - public static uint GetDeviceIDFromName(string in_szToken) { return AkSoundEnginePINVOKE.CSharp_GetDeviceIDFromName(in_szToken); } - - public static string GetWindowsDeviceName(int index, out uint out_uDeviceID, AkAudioDeviceState uDeviceStateMask) { return AkSoundEngine.StringFromIntPtrWString(AkSoundEnginePINVOKE.CSharp_GetWindowsDeviceName__SWIG_0(index, out out_uDeviceID, (int)uDeviceStateMask)); } - - public static string GetWindowsDeviceName(int index, out uint out_uDeviceID) { return AkSoundEngine.StringFromIntPtrWString(AkSoundEnginePINVOKE.CSharp_GetWindowsDeviceName__SWIG_1(index, out out_uDeviceID)); } - - public static uint GetWindowsDeviceCount(AkAudioDeviceState uDeviceStateMask) { return AkSoundEnginePINVOKE.CSharp_GetWindowsDeviceCount__SWIG_0((int)uDeviceStateMask); } - - public static uint GetWindowsDeviceCount() { return AkSoundEnginePINVOKE.CSharp_GetWindowsDeviceCount__SWIG_1(); } - - public static void SetErrorLogger(AkLogger.ErrorLoggerInteropDelegate logger) { AkSoundEnginePINVOKE.CSharp_SetErrorLogger__SWIG_0(logger); } - - public static void SetErrorLogger() { AkSoundEnginePINVOKE.CSharp_SetErrorLogger__SWIG_1(); } - - public static void SetAudioInputCallbacks(AkAudioInputManager.AudioSamplesInteropDelegate getAudioSamples, AkAudioInputManager.AudioFormatInteropDelegate getAudioFormat) { AkSoundEnginePINVOKE.CSharp_SetAudioInputCallbacks(getAudioSamples, getAudioFormat); } - - public static AKRESULT Init(AkInitializationSettings settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_Init(AkInitializationSettings.getCPtr(settings)); } - - public static AKRESULT InitSpatialAudio(AkSpatialAudioInitSettings settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_InitSpatialAudio(AkSpatialAudioInitSettings.getCPtr(settings)); } - - public static AKRESULT InitCommunication(AkCommunicationSettings settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_InitCommunication(AkCommunicationSettings.getCPtr(settings)); } - - public static void Term() { AkSoundEnginePINVOKE.CSharp_Term(); } - - public static AKRESULT RegisterGameObjInternal(ulong in_GameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal(in_GameObj); } - - public static AKRESULT UnregisterGameObjInternal(ulong in_GameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterGameObjInternal(in_GameObj); } - - public static AKRESULT RegisterGameObjInternal_WithName(ulong in_GameObj, string in_pszObjName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal_WithName(in_GameObj, in_pszObjName); } - - public static AKRESULT SetBasePath(string in_pszBasePath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetBasePath(in_pszBasePath); } - - public static AKRESULT SetCurrentLanguage(string in_pszAudioSrcPath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetCurrentLanguage(in_pszAudioSrcPath); } - - public static AKRESULT LoadFilePackage(string in_pszFilePackageName, out uint out_uPackageID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadFilePackage(in_pszFilePackageName, out out_uPackageID); } - - public static AKRESULT AddBasePath(string in_pszBasePath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddBasePath(in_pszBasePath); } - - public static AKRESULT SetGameName(string in_GameName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameName(in_GameName); } - - public static AKRESULT SetDecodedBankPath(string in_DecodedPath) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetDecodedBankPath(in_DecodedPath); } - - public static AKRESULT LoadAndDecodeBank(string in_pszString, bool in_bSaveDecodedBank, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadAndDecodeBank(in_pszString, in_bSaveDecodedBank, out out_bankID); } - - public static AKRESULT LoadAndDecodeBankFromMemory(global::System.IntPtr in_BankData, uint in_BankDataSize, bool in_bSaveDecodedBank, string in_DecodedBankName, bool in_bIsLanguageSpecific, out uint out_bankID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_LoadAndDecodeBankFromMemory(in_BankData, in_BankDataSize, in_bSaveDecodedBank, in_DecodedBankName, in_bIsLanguageSpecific, out out_bankID); } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_0(in_pszEventName, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_1(in_pszEventName, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_2(in_pszEventName, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(string in_pszEventName, ulong in_roomID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_3(in_pszEventName, in_roomID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public static string GetCurrentLanguage() { return AkSoundEngine.StringFromIntPtrOSString(AkSoundEnginePINVOKE.CSharp_GetCurrentLanguage()); } - - public static AKRESULT UnloadFilePackage(uint in_uPackageID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadFilePackage(in_uPackageID); } - - public static AKRESULT UnloadAllFilePackages() { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnloadAllFilePackages(); } - - public static AKRESULT SetObjectPosition(ulong in_GameObjectID, UnityEngine.Vector3 Pos, UnityEngine.Vector3 Front, UnityEngine.Vector3 Top) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectPosition(in_GameObjectID, Pos, Front, Top); } - - public static AKRESULT GetSourceMultiplePlayPositions(uint in_PlayingID, uint[] out_audioNodeID, uint[] out_mediaID, int[] out_msTime, ref uint io_pcPositions, bool in_bExtrapolate) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourceMultiplePlayPositions__SWIG_0(in_PlayingID, out_audioNodeID, out_mediaID, out_msTime, ref io_pcPositions, in_bExtrapolate); } - - public static AKRESULT GetSourceMultiplePlayPositions(uint in_PlayingID, uint[] out_audioNodeID, uint[] out_mediaID, int[] out_msTime, ref uint io_pcPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSourceMultiplePlayPositions__SWIG_1(in_PlayingID, out_audioNodeID, out_mediaID, out_msTime, ref io_pcPositions); } - - public static AKRESULT SetListeners(ulong in_emitterGameObj, ulong[] in_pListenerGameObjs, uint in_uNumListeners) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListeners(in_emitterGameObj, in_pListenerGameObjs, in_uNumListeners); } - - public static AKRESULT SetDefaultListeners(ulong[] in_pListenerObjs, uint in_uNumListeners) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetDefaultListeners(in_pListenerObjs, in_uNumListeners); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings, out ulong out_pDeviceID, ulong[] in_pListenerIDs, uint in_uNumListeners) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_0(AkOutputSettings.getCPtr(in_Settings), out out_pDeviceID, in_pListenerIDs, in_uNumListeners); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings, out ulong out_pDeviceID, ulong[] in_pListenerIDs) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_1(AkOutputSettings.getCPtr(in_Settings), out out_pDeviceID, in_pListenerIDs); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings, out ulong out_pDeviceID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_2(AkOutputSettings.getCPtr(in_Settings), out out_pDeviceID); } - - public static AKRESULT AddOutput(AkOutputSettings in_Settings) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddOutput__SWIG_3(AkOutputSettings.getCPtr(in_Settings)); } - - public static void GetDefaultStreamSettings(AkStreamMgrSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultStreamSettings(AkStreamMgrSettings.getCPtr(out_settings)); } - - public static void GetDefaultDeviceSettings(AkDeviceSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultDeviceSettings(AkDeviceSettings.getCPtr(out_settings)); } - - public static void GetDefaultMusicSettings(AkMusicSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultMusicSettings(AkMusicSettings.getCPtr(out_settings)); } - - public static void GetDefaultInitSettings(AkInitSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultInitSettings(AkInitSettings.getCPtr(out_settings)); } - - public static void GetDefaultPlatformInitSettings(AkPlatformInitSettings out_settings) { AkSoundEnginePINVOKE.CSharp_GetDefaultPlatformInitSettings(AkPlatformInitSettings.getCPtr(out_settings)); } - - public static uint GetMajorMinorVersion() { return AkSoundEnginePINVOKE.CSharp_GetMajorMinorVersion(); } - - public static uint GetSubminorBuildVersion() { return AkSoundEnginePINVOKE.CSharp_GetSubminorBuildVersion(); } - - public static void StartResourceMonitoring() { AkSoundEnginePINVOKE.CSharp_StartResourceMonitoring(); } - - public static void StopResourceMonitoring() { AkSoundEnginePINVOKE.CSharp_StopResourceMonitoring(); } - - public static void GetResourceMonitorDataSummary(AkResourceMonitorDataSummary resourceMonitorDataSummary) { AkSoundEnginePINVOKE.CSharp_GetResourceMonitorDataSummary(AkResourceMonitorDataSummary.getCPtr(resourceMonitorDataSummary)); } - - public static AKRESULT SetRoomPortal(ulong in_PortalID, AkTransform Transform, AkExtent Extent, bool bEnabled, ulong FrontRoom, ulong BackRoom) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRoomPortal(in_PortalID, AkTransform.getCPtr(Transform), AkExtent.getCPtr(Extent), bEnabled, FrontRoom, BackRoom); } - - public static AKRESULT SetRoom(ulong in_RoomID, AkRoomParams in_roomParams, ulong GeometryID, string in_pName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRoom(in_RoomID, AkRoomParams.getCPtr(in_roomParams), GeometryID, in_pName); } - - public static AKRESULT RegisterSpatialAudioListener(ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterSpatialAudioListener(in_gameObjectID); } - - public static AKRESULT UnregisterSpatialAudioListener(ulong in_gameObjectID) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterSpatialAudioListener(in_gameObjectID); } - - public static AKRESULT SetGeometry(ulong in_GeomSetID, AkTriangleArray Triangles, uint NumTriangles, UnityEngine.Vector3[] Vertices, uint NumVertices, AkAcousticSurfaceArray Surfaces, uint NumSurfaces, ulong RoomID, bool EnableDiffraction, bool EnableDiffractionOnBoundaryEdges, bool EnableTriangles) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGeometry(in_GeomSetID, Triangles.GetBuffer(), NumTriangles, Vertices, NumVertices, Surfaces.GetBuffer(), NumSurfaces, RoomID, EnableDiffraction, EnableDiffractionOnBoundaryEdges, EnableTriangles); } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_4(in_eventID, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_5(in_eventID, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) { - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_6(in_eventID, in_roomID, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEventOnRoom(uint in_eventID, ulong in_roomID) { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEventOnRoom__SWIG_7(in_eventID, in_roomID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - - public const int _WIN32_WINNT = 0x0602; - public const int AK_SIMD_ALIGNMENT = 16; - public const int AK_BUFFER_ALIGNMENT = 16; - public const int AK_XAUDIO2_FLAGS = 0; - public const int AK_MAX_PATH = 260; - public const int AK_BANK_PLATFORM_DATA_ALIGNMENT = (16); - public const string AK_OSCHAR_FMT = "%ls"; - public const uint AK_INVALID_PLUGINID = unchecked((uint)(-1)); - public const ulong AK_INVALID_GAME_OBJECT = unchecked((ulong)(-1)); - public const uint AK_INVALID_UNIQUE_ID = 0; - public const uint AK_INVALID_RTPC_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_INVALID_LISTENER_INDEX = unchecked((uint)(-1)); - public const uint AK_INVALID_PLAYING_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_DEFAULT_SWITCH_STATE = 0; - public const int AK_INVALID_POOL_ID = -1; - public const int AK_DEFAULT_POOL_ID = -1; - public const uint AK_INVALID_AUX_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_INVALID_FILE_ID = unchecked((uint)(-1)); - public const uint AK_INVALID_DEVICE_ID = unchecked((uint)(-1)); - public const uint AK_INVALID_BANK_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_FALLBACK_ARGUMENTVALUE_ID = 0; - public const uint AK_INVALID_CHANNELMASK = 0; - public const uint AK_INVALID_OUTPUT_DEVICE_ID = AK_INVALID_UNIQUE_ID; - public const uint AK_MIXER_FX_SLOT = unchecked((uint)(-1)); - public const ulong AK_DEFAULT_LISTENER_OBJ = 0; - public const uint AK_DEFAULT_PRIORITY = 50; - public const uint AK_MIN_PRIORITY = 0; - public const uint AK_MAX_PRIORITY = 100; - public const uint AK_DEFAULT_BANK_IO_PRIORITY = AK_DEFAULT_PRIORITY; - public const double AK_DEFAULT_BANK_THROUGHPUT = 1*1024*1024/1000.0; - public const uint AKCOMPANYID_AUDIOKINETIC = 0; - public const uint AK_LISTENERS_MASK_ALL = 0xFFFFFFFF; - public const int NULL = 0; - public const int AKCURVEINTERPOLATION_NUM_STORAGE_BIT = 5; - public const int AK_MAX_LANGUAGE_NAME_SIZE = (32); - public const int AKCOMPANYID_PLUGINDEV_MIN = (64); - public const int AKCOMPANYID_PLUGINDEV_MAX = (255); - public const int AKCOMPANYID_AUDIOKINETIC_EXTERNAL = (1); - public const int AKCOMPANYID_MCDSP = (256); - public const int AKCOMPANYID_WAVEARTS = (257); - public const int AKCOMPANYID_PHONETICARTS = (258); - public const int AKCOMPANYID_IZOTOPE = (259); - public const int AKCOMPANYID_CRANKCASEAUDIO = (261); - public const int AKCOMPANYID_IOSONO = (262); - public const int AKCOMPANYID_AUROTECHNOLOGIES = (263); - public const int AKCOMPANYID_DOLBY = (264); - public const int AKCOMPANYID_TWOBIGEARS = (265); - public const int AKCOMPANYID_OCULUS = (266); - public const int AKCOMPANYID_BLUERIPPLESOUND = (267); - public const int AKCOMPANYID_ENZIEN = (268); - public const int AKCOMPANYID_KROTOS = (269); - public const int AKCOMPANYID_NURULIZE = (270); - public const int AKCOMPANYID_SUPERPOWERED = (271); - public const int AKCOMPANYID_GOOGLE = (272); - public const int AKCOMPANYID_VISISONICS = (277); - public const int AKCODECID_BANK = (0); - public const int AKCODECID_PCM = (1); - public const int AKCODECID_ADPCM = (2); - public const int AKCODECID_XMA = (3); - public const int AKCODECID_VORBIS = (4); - public const int AKCODECID_WIIADPCM = (5); - public const int AKCODECID_PCMEX = (7); - public const int AKCODECID_EXTERNAL_SOURCE = (8); - public const int AKCODECID_XWMA = (9); - public const int AKCODECID_AAC = (10); - public const int AKCODECID_FILE_PACKAGE = (11); - public const int AKCODECID_ATRAC9 = (12); - public const int AKCODECID_VAG = (13); - public const int AKCODECID_PROFILERCAPTURE = (14); - public const int AKCODECID_ANALYSISFILE = (15); - public const int AKCODECID_MIDI = (16); - public const int AKCODECID_OPUSNX = (17); - public const int AKCODECID_CAF = (18); - public const int AKCODECID_AKOPUS = (19); - public const int AKCODECID_AKOPUS_WEM = (20); - public const int AKCODECID_MEMORYMGR_DUMP = (21); - public const int AKPLUGINID_METER = (129); - public const int AKPLUGINID_RECORDER = (132); - public const int AKPLUGINID_SYSTEM_OUTPUT_META = (900); - public const int AKEXTENSIONID_SPATIALAUDIO = (800); - public const int AKEXTENSIONID_INTERACTIVEMUSIC = (801); - public const int AKEXTENSIONID_EVENTMGRTHREAD = (900); - public const int AK_WAVE_FORMAT_VAG = 0xFFFB; - public const int AK_WAVE_FORMAT_AT9 = 0xFFFC; - public const int AK_WAVE_FORMAT_VORBIS = 0xFFFF; - public const int AK_WAVE_FORMAT_AAC = 0xAAC0; - public const int AK_WAVE_FORMAT_OPUSNX = 0x3039; - public const int AK_WAVE_FORMAT_OPUS = 0x3040; - public const int AK_WAVE_FORMAT_OPUS_WEM = 0x3041; - public const int WAVE_FORMAT_XMA2 = 0x166; - public const int AK_PANNER_NUM_STORAGE_BITS = 3; - public const int AK_POSSOURCE_NUM_STORAGE_BITS = 3; - public const int AK_SPAT_NUM_STORAGE_BITS = 3; - public const int AK_MAX_BITS_METERING_FLAGS = (5); - public const bool AK_ASYNC_OPEN_DEFAULT = (false); - public const int AK_COMM_DEFAULT_DISCOVERY_PORT = 24024; - public const double AK_DEFAULT_LISTENER_POSITION_X = (0.0); - public const double AK_DEFAULT_LISTENER_POSITION_Y = (0.0); - public const double AK_DEFAULT_LISTENER_POSITION_Z = (0.0); - public const double AK_DEFAULT_LISTENER_FRONT_X = (0.0); - public const double AK_DEFAULT_LISTENER_FRONT_Y = (0.0); - public const double AK_DEFAULT_LISTENER_FRONT_Z = (1.0); - public const double AK_DEFAULT_TOP_X = (0.0); - public const double AK_DEFAULT_TOP_Y = (1.0); - public const double AK_DEFAULT_TOP_Z = (0.0); - public const int AK_MIDI_EVENT_TYPE_INVALID = 0x00; - public const int AK_MIDI_EVENT_TYPE_NOTE_OFF = 0x80; - public const int AK_MIDI_EVENT_TYPE_NOTE_ON = 0x90; - public const int AK_MIDI_EVENT_TYPE_NOTE_AFTERTOUCH = 0xa0; - public const int AK_MIDI_EVENT_TYPE_CONTROLLER = 0xb0; - public const int AK_MIDI_EVENT_TYPE_PROGRAM_CHANGE = 0xc0; - public const int AK_MIDI_EVENT_TYPE_CHANNEL_AFTERTOUCH = 0xd0; - public const int AK_MIDI_EVENT_TYPE_PITCH_BEND = 0xe0; - public const int AK_MIDI_EVENT_TYPE_SYSEX = 0xf0; - public const int AK_MIDI_EVENT_TYPE_ESCAPE = 0xf7; - public const int AK_MIDI_EVENT_TYPE_WWISE_CMD = 0xfe; - public const int AK_MIDI_EVENT_TYPE_META = 0xff; - public const int AK_MIDI_CC_BANK_SELECT_COARSE = 0; - public const int AK_MIDI_CC_MOD_WHEEL_COARSE = 1; - public const int AK_MIDI_CC_BREATH_CTRL_COARSE = 2; - public const int AK_MIDI_CC_CTRL_3_COARSE = 3; - public const int AK_MIDI_CC_FOOT_PEDAL_COARSE = 4; - public const int AK_MIDI_CC_PORTAMENTO_COARSE = 5; - public const int AK_MIDI_CC_DATA_ENTRY_COARSE = 6; - public const int AK_MIDI_CC_VOLUME_COARSE = 7; - public const int AK_MIDI_CC_BALANCE_COARSE = 8; - public const int AK_MIDI_CC_CTRL_9_COARSE = 9; - public const int AK_MIDI_CC_PAN_POSITION_COARSE = 10; - public const int AK_MIDI_CC_EXPRESSION_COARSE = 11; - public const int AK_MIDI_CC_EFFECT_CTRL_1_COARSE = 12; - public const int AK_MIDI_CC_EFFECT_CTRL_2_COARSE = 13; - public const int AK_MIDI_CC_CTRL_14_COARSE = 14; - public const int AK_MIDI_CC_CTRL_15_COARSE = 15; - public const int AK_MIDI_CC_GEN_SLIDER_1 = 16; - public const int AK_MIDI_CC_GEN_SLIDER_2 = 17; - public const int AK_MIDI_CC_GEN_SLIDER_3 = 18; - public const int AK_MIDI_CC_GEN_SLIDER_4 = 19; - public const int AK_MIDI_CC_CTRL_20_COARSE = 20; - public const int AK_MIDI_CC_CTRL_21_COARSE = 21; - public const int AK_MIDI_CC_CTRL_22_COARSE = 22; - public const int AK_MIDI_CC_CTRL_23_COARSE = 23; - public const int AK_MIDI_CC_CTRL_24_COARSE = 24; - public const int AK_MIDI_CC_CTRL_25_COARSE = 25; - public const int AK_MIDI_CC_CTRL_26_COARSE = 26; - public const int AK_MIDI_CC_CTRL_27_COARSE = 27; - public const int AK_MIDI_CC_CTRL_28_COARSE = 28; - public const int AK_MIDI_CC_CTRL_29_COARSE = 29; - public const int AK_MIDI_CC_CTRL_30_COARSE = 30; - public const int AK_MIDI_CC_CTRL_31_COARSE = 31; - public const int AK_MIDI_CC_BANK_SELECT_FINE = 32; - public const int AK_MIDI_CC_MOD_WHEEL_FINE = 33; - public const int AK_MIDI_CC_BREATH_CTRL_FINE = 34; - public const int AK_MIDI_CC_CTRL_3_FINE = 35; - public const int AK_MIDI_CC_FOOT_PEDAL_FINE = 36; - public const int AK_MIDI_CC_PORTAMENTO_FINE = 37; - public const int AK_MIDI_CC_DATA_ENTRY_FINE = 38; - public const int AK_MIDI_CC_VOLUME_FINE = 39; - public const int AK_MIDI_CC_BALANCE_FINE = 40; - public const int AK_MIDI_CC_CTRL_9_FINE = 41; - public const int AK_MIDI_CC_PAN_POSITION_FINE = 42; - public const int AK_MIDI_CC_EXPRESSION_FINE = 43; - public const int AK_MIDI_CC_EFFECT_CTRL_1_FINE = 44; - public const int AK_MIDI_CC_EFFECT_CTRL_2_FINE = 45; - public const int AK_MIDI_CC_CTRL_14_FINE = 46; - public const int AK_MIDI_CC_CTRL_15_FINE = 47; - public const int AK_MIDI_CC_CTRL_20_FINE = 52; - public const int AK_MIDI_CC_CTRL_21_FINE = 53; - public const int AK_MIDI_CC_CTRL_22_FINE = 54; - public const int AK_MIDI_CC_CTRL_23_FINE = 55; - public const int AK_MIDI_CC_CTRL_24_FINE = 56; - public const int AK_MIDI_CC_CTRL_25_FINE = 57; - public const int AK_MIDI_CC_CTRL_26_FINE = 58; - public const int AK_MIDI_CC_CTRL_27_FINE = 59; - public const int AK_MIDI_CC_CTRL_28_FINE = 60; - public const int AK_MIDI_CC_CTRL_29_FINE = 61; - public const int AK_MIDI_CC_CTRL_30_FINE = 62; - public const int AK_MIDI_CC_CTRL_31_FINE = 63; - public const int AK_MIDI_CC_HOLD_PEDAL = 64; - public const int AK_MIDI_CC_PORTAMENTO_ON_OFF = 65; - public const int AK_MIDI_CC_SUSTENUTO_PEDAL = 66; - public const int AK_MIDI_CC_SOFT_PEDAL = 67; - public const int AK_MIDI_CC_LEGATO_PEDAL = 68; - public const int AK_MIDI_CC_HOLD_PEDAL_2 = 69; - public const int AK_MIDI_CC_SOUND_VARIATION = 70; - public const int AK_MIDI_CC_SOUND_TIMBRE = 71; - public const int AK_MIDI_CC_SOUND_RELEASE_TIME = 72; - public const int AK_MIDI_CC_SOUND_ATTACK_TIME = 73; - public const int AK_MIDI_CC_SOUND_BRIGHTNESS = 74; - public const int AK_MIDI_CC_SOUND_CTRL_6 = 75; - public const int AK_MIDI_CC_SOUND_CTRL_7 = 76; - public const int AK_MIDI_CC_SOUND_CTRL_8 = 77; - public const int AK_MIDI_CC_SOUND_CTRL_9 = 78; - public const int AK_MIDI_CC_SOUND_CTRL_10 = 79; - public const int AK_MIDI_CC_GENERAL_BUTTON_1 = 80; - public const int AK_MIDI_CC_GENERAL_BUTTON_2 = 81; - public const int AK_MIDI_CC_GENERAL_BUTTON_3 = 82; - public const int AK_MIDI_CC_GENERAL_BUTTON_4 = 83; - public const int AK_MIDI_CC_REVERB_LEVEL = 91; - public const int AK_MIDI_CC_TREMOLO_LEVEL = 92; - public const int AK_MIDI_CC_CHORUS_LEVEL = 93; - public const int AK_MIDI_CC_CELESTE_LEVEL = 94; - public const int AK_MIDI_CC_PHASER_LEVEL = 95; - public const int AK_MIDI_CC_DATA_BUTTON_P1 = 96; - public const int AK_MIDI_CC_DATA_BUTTON_M1 = 97; - public const int AK_MIDI_CC_NON_REGISTER_COARSE = 98; - public const int AK_MIDI_CC_NON_REGISTER_FINE = 99; - public const int AK_MIDI_CC_ALL_SOUND_OFF = 120; - public const int AK_MIDI_CC_ALL_CONTROLLERS_OFF = 121; - public const int AK_MIDI_CC_LOCAL_KEYBOARD = 122; - public const int AK_MIDI_CC_ALL_NOTES_OFF = 123; - public const int AK_MIDI_CC_OMNI_MODE_OFF = 124; - public const int AK_MIDI_CC_OMNI_MODE_ON = 125; - public const int AK_MIDI_CC_OMNI_MONOPHONIC_ON = 126; - public const int AK_MIDI_CC_OMNI_POLYPHONIC_ON = 127; - public const int AK_MIDI_WWISE_CMD_PLAY = 0; - public const int AK_MIDI_WWISE_CMD_STOP = 1; - public const int AK_MIDI_WWISE_CMD_PAUSE = 2; - public const int AK_MIDI_WWISE_CMD_RESUME = 3; - public const int AK_MIDI_WWISE_CMD_SEEK_MS = 4; - public const int AK_MIDI_WWISE_CMD_SEEK_SAMPLES = 5; - public const int AK_SPEAKER_FRONT_LEFT = 0x1; - public const int AK_SPEAKER_FRONT_RIGHT = 0x2; - public const int AK_SPEAKER_FRONT_CENTER = 0x4; - public const int AK_SPEAKER_LOW_FREQUENCY = 0x8; - public const int AK_SPEAKER_BACK_LEFT = 0x10; - public const int AK_SPEAKER_BACK_RIGHT = 0x20; - public const int AK_SPEAKER_BACK_CENTER = 0x100; - public const int AK_SPEAKER_SIDE_LEFT = 0x200; - public const int AK_SPEAKER_SIDE_RIGHT = 0x400; - public const int AK_SPEAKER_TOP = 0x800; - public const int AK_SPEAKER_HEIGHT_FRONT_LEFT = 0x1000; - public const int AK_SPEAKER_HEIGHT_FRONT_CENTER = 0x2000; - public const int AK_SPEAKER_HEIGHT_FRONT_RIGHT = 0x4000; - public const int AK_SPEAKER_HEIGHT_BACK_LEFT = 0x8000; - public const int AK_SPEAKER_HEIGHT_BACK_CENTER = 0x10000; - public const int AK_SPEAKER_HEIGHT_BACK_RIGHT = 0x20000; - public const int AK_SPEAKER_SETUP_MONO = 0x4; - public const int AK_SPEAKER_SETUP_0POINT1 = 0x8; - public const int AK_SPEAKER_SETUP_1POINT1 = (0x4|0x8); - public const int AK_SPEAKER_SETUP_STEREO = (0x1|0x2); - public const int AK_SPEAKER_SETUP_2POINT1 = ((0x1|0x2)|0x8); - public const int AK_SPEAKER_SETUP_3STEREO = ((0x1|0x2)|0x4); - public const int AK_SPEAKER_SETUP_3POINT1 = (((0x1|0x2)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_4 = ((0x1|0x2)|0x200|0x400); - public const int AK_SPEAKER_SETUP_4POINT1 = (((0x1|0x2)|0x200|0x400)|0x8); - public const int AK_SPEAKER_SETUP_5 = (((0x1|0x2)|0x200|0x400)|0x4); - public const int AK_SPEAKER_SETUP_5POINT1 = ((((0x1|0x2)|0x200|0x400)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_6 = (((0x1|0x2)|0x200|0x400)|0x10|0x20); - public const int AK_SPEAKER_SETUP_6POINT1 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x8); - public const int AK_SPEAKER_SETUP_7 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4); - public const int AK_SPEAKER_SETUP_7POINT1 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_SURROUND = ((0x1|0x2)|0x100); - public const int AK_SPEAKER_SETUP_DPL2 = (((0x1|0x2)|0x200|0x400)); - public const int AK_SPEAKER_SETUP_HEIGHT_2 = (0x1000|0x4000); - public const int AK_SPEAKER_SETUP_HEIGHT_4 = ((0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_HEIGHT_5 = (((0x1000|0x4000)|0x8000|0x20000)|0x2000); - public const int AK_SPEAKER_SETUP_HEIGHT_ALL = ((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x10000); - public const int AK_SPEAKER_SETUP_HEIGHT_4_TOP = (((0x1000|0x4000)|0x8000|0x20000)|0x800); - public const int AK_SPEAKER_SETUP_HEIGHT_5_TOP = ((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x800); - public const int AK_SPEAKER_SETUP_AURO_222 = (((0x1|0x2)|0x200|0x400)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_AURO_8 = ((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_AURO_9 = (((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4); - public const int AK_SPEAKER_SETUP_AURO_9POINT1 = ((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x8); - public const int AK_SPEAKER_SETUP_AURO_10 = ((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800); - public const int AK_SPEAKER_SETUP_AURO_10POINT1 = (((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800)|0x8); - public const int AK_SPEAKER_SETUP_AURO_11 = (((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800)|0x2000); - public const int AK_SPEAKER_SETUP_AURO_11POINT1 = ((((((((0x1|0x2)|0x200|0x400)|0x1000|0x4000)|0x8000|0x20000)|0x4)|0x800)|0x2000)|0x8); - public const int AK_SPEAKER_SETUP_AURO_11_740 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|((0x1000|0x4000)|0x8000|0x20000)); - public const int AK_SPEAKER_SETUP_AURO_11POINT1_740 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|((0x1000|0x4000)|0x8000|0x20000))|0x8); - public const int AK_SPEAKER_SETUP_AURO_13_751 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|(((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x800); - public const int AK_SPEAKER_SETUP_AURO_13POINT1_751 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|(((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x800)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_5_0_2 = ((((0x1|0x2)|0x200|0x400)|0x4)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_DOLBY_5_1_2 = (((((0x1|0x2)|0x200|0x400)|0x4)|0x1000|0x4000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_6_0_2 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_DOLBY_6_1_2 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_6_0_4 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_DOLBY_6_1_4 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x1000|0x4000)|0x8000|0x20000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_7_0_2 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000); - public const int AK_SPEAKER_SETUP_DOLBY_7_1_2 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000)|0x8); - public const int AK_SPEAKER_SETUP_DOLBY_7_0_4 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000)|0x8000|0x20000); - public const int AK_SPEAKER_SETUP_DOLBY_7_1_4 = (((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x1000|0x4000)|0x8000|0x20000)|0x8); - public const int AK_SPEAKER_SETUP_ALL_SPEAKERS = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)|0x100|((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x10000)|0x800); - public const int AK_IDX_SETUP_FRONT_LEFT = (0); - public const int AK_IDX_SETUP_FRONT_RIGHT = (1); - public const int AK_IDX_SETUP_CENTER = (2); - public const int AK_IDX_SETUP_NOCENTER_BACK_LEFT = (2); - public const int AK_IDX_SETUP_NOCENTER_BACK_RIGHT = (3); - public const int AK_IDX_SETUP_NOCENTER_SIDE_LEFT = (4); - public const int AK_IDX_SETUP_NOCENTER_SIDE_RIGHT = (5); - public const int AK_IDX_SETUP_WITHCENTER_BACK_LEFT = (3); - public const int AK_IDX_SETUP_WITHCENTER_BACK_RIGHT = (4); - public const int AK_IDX_SETUP_WITHCENTER_SIDE_LEFT = (5); - public const int AK_IDX_SETUP_WITHCENTER_SIDE_RIGHT = (6); - public const int AK_IDX_SETUP_0_LFE = (0); - public const int AK_IDX_SETUP_1_CENTER = (0); - public const int AK_IDX_SETUP_1_LFE = (1); - public const int AK_IDX_SETUP_2_LEFT = (0); - public const int AK_IDX_SETUP_2_RIGHT = (1); - public const int AK_IDX_SETUP_2_LFE = (2); - public const int AK_IDX_SETUP_3_LEFT = (0); - public const int AK_IDX_SETUP_3_RIGHT = (1); - public const int AK_IDX_SETUP_3_CENTER = (2); - public const int AK_IDX_SETUP_3_LFE = (3); - public const int AK_IDX_SETUP_4_FRONTLEFT = (0); - public const int AK_IDX_SETUP_4_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_4_REARLEFT = (2); - public const int AK_IDX_SETUP_4_REARRIGHT = (3); - public const int AK_IDX_SETUP_4_LFE = (4); - public const int AK_IDX_SETUP_5_FRONTLEFT = (0); - public const int AK_IDX_SETUP_5_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_5_CENTER = (2); - public const int AK_IDX_SETUP_5_REARLEFT = (3); - public const int AK_IDX_SETUP_5_REARRIGHT = (4); - public const int AK_IDX_SETUP_5_LFE = (5); - public const int AK_IDX_SETUP_6_FRONTLEFT = (0); - public const int AK_IDX_SETUP_6_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_6_REARLEFT = (2); - public const int AK_IDX_SETUP_6_REARRIGHT = (3); - public const int AK_IDX_SETUP_6_SIDELEFT = (4); - public const int AK_IDX_SETUP_6_SIDERIGHT = (5); - public const int AK_IDX_SETUP_6_LFE = (6); - public const int AK_IDX_SETUP_7_FRONTLEFT = (0); - public const int AK_IDX_SETUP_7_FRONTRIGHT = (1); - public const int AK_IDX_SETUP_7_CENTER = (2); - public const int AK_IDX_SETUP_7_REARLEFT = (3); - public const int AK_IDX_SETUP_7_REARRIGHT = (4); - public const int AK_IDX_SETUP_7_SIDELEFT = (5); - public const int AK_IDX_SETUP_7_SIDERIGHT = (6); - public const int AK_IDX_SETUP_7_LFE = (7); - public const int AK_SPEAKER_SETUP_0_1 = (0x8); - public const int AK_SPEAKER_SETUP_1_0_CENTER = (0x4); - public const int AK_SPEAKER_SETUP_1_1_CENTER = (0x4|0x8); - public const int AK_SPEAKER_SETUP_2_0 = (0x1|0x2); - public const int AK_SPEAKER_SETUP_2_1 = (0x1|0x2|0x8); - public const int AK_SPEAKER_SETUP_3_0 = (0x1|0x2|0x4); - public const int AK_SPEAKER_SETUP_3_1 = ((0x1|0x2|0x4)|0x8); - public const int AK_SPEAKER_SETUP_FRONT = ((0x1|0x2|0x4)); - public const int AK_SPEAKER_SETUP_4_0 = (((0x1|0x2)|0x200|0x400)); - public const int AK_SPEAKER_SETUP_4_1 = ((((0x1|0x2)|0x200|0x400)|0x8)); - public const int AK_SPEAKER_SETUP_5_0 = ((((0x1|0x2)|0x200|0x400)|0x4)); - public const int AK_SPEAKER_SETUP_5_1 = (((((0x1|0x2)|0x200|0x400)|0x4)|0x8)); - public const int AK_SPEAKER_SETUP_6_0 = ((((0x1|0x2)|0x200|0x400)|0x10|0x20)); - public const int AK_SPEAKER_SETUP_6_1 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x8)); - public const int AK_SPEAKER_SETUP_7_0 = (((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)); - public const int AK_SPEAKER_SETUP_7_1 = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)); - public const int AK_SPEAKER_SETUP_DEFAULT_PLANE = ((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)); - public const int AK_SUPPORTED_STANDARD_CHANNEL_MASK = (((((((0x1|0x2)|0x200|0x400)|0x10|0x20)|0x4)|0x8)|0x100|((((0x1000|0x4000)|0x8000|0x20000)|0x2000)|0x10000)|0x800)); - public const int AK_STANDARD_MAX_NUM_CHANNELS = (8); - public const int AK_MAX_AMBISONICS_ORDER = (5); - public const int AK_MAX_NUM_TEXTURE = 4; - public const int AK_MAX_REFLECT_ORDER = 4; - public const int AK_MAX_REFLECTION_PATH_LENGTH = (4+4); - public const int AK_MAX_SOUND_PROPAGATION_DEPTH = 8; - public const double AK_DEFAULT_DIFFR_SHADOW_DEGREES = (30.0); - public const double AK_DEFAULT_DIFFR_SHADOW_ATTEN = (1.0); - public const double AK_DEFAULT_MOVEMENT_THRESHOLD = (1.0); - public const int AK_DEFAULT_REFLECTIONS_ORDER = (1); - public const double AK_SA_EPSILON = (0.001); - public const double AK_SA_DIFFRACTION_EPSILON = (0.002); - public const double AK_SA_DIFFRACTION_DOT_EPSILON = (0.000002); - public const double AK_SA_PLANE_THICKNESS_RATIO = (0.005); - public const double AK_SA_MIN_ENVIRONMENT_ABSORPTION = (0.1); - public const double AK_SA_MIN_ENVIRONMENT_SURFACE_AREA = (1.0); -} -#endif // #if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEngine_Windows.cs.meta b/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEngine_Windows.cs.meta deleted file mode 100644 index 705e49f73..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkSoundEngine_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d4ec5cfa5dad5af428a77fe27d904a7c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkThreadProperties_Windows.cs b/Assets/Wwise/API/Runtime/Generated/Windows/AkThreadProperties_Windows.cs deleted file mode 100644 index a5b51b796..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkThreadProperties_Windows.cs +++ /dev/null @@ -1,61 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkThreadProperties : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkThreadProperties(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkThreadProperties obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkThreadProperties() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkThreadProperties(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - - public int nPriority { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_nPriority_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_nPriority_get(swigCPtr); } - } - - public uint dwAffinityMask { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_dwAffinityMask_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_dwAffinityMask_get(swigCPtr); } - } - - public uint uStackSize { set { AkSoundEnginePINVOKE.CSharp_AkThreadProperties_uStackSize_set(swigCPtr, value); } get { return AkSoundEnginePINVOKE.CSharp_AkThreadProperties_uStackSize_get(swigCPtr); } - } - - public AkThreadProperties() : this(AkSoundEnginePINVOKE.CSharp_new_AkThreadProperties(), true) { - } - -} -#endif // #if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkThreadProperties_Windows.cs.meta b/Assets/Wwise/API/Runtime/Generated/Windows/AkThreadProperties_Windows.cs.meta deleted file mode 100644 index 2b313dfa7..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkThreadProperties_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 815763e64a5b5df479d2fe99e0fccbec -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkUnityPlatformSpecificSettings_Windows.cs b/Assets/Wwise/API/Runtime/Generated/Windows/AkUnityPlatformSpecificSettings_Windows.cs deleted file mode 100644 index 8d6023f0f..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkUnityPlatformSpecificSettings_Windows.cs +++ /dev/null @@ -1,49 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - - -public class AkUnityPlatformSpecificSettings : global::System.IDisposable { - private global::System.IntPtr swigCPtr; - protected bool swigCMemOwn; - - internal AkUnityPlatformSpecificSettings(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - internal static global::System.IntPtr getCPtr(AkUnityPlatformSpecificSettings obj) { - return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr; - } - - internal virtual void setCPtr(global::System.IntPtr cPtr) { - Dispose(); - swigCPtr = cPtr; - } - - ~AkUnityPlatformSpecificSettings() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - AkSoundEnginePINVOKE.CSharp_delete_AkUnityPlatformSpecificSettings(swigCPtr); - } - swigCPtr = global::System.IntPtr.Zero; - } - global::System.GC.SuppressFinalize(this); - } - } - -} -#endif // #if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Generated/Windows/AkUnityPlatformSpecificSettings_Windows.cs.meta b/Assets/Wwise/API/Runtime/Generated/Windows/AkUnityPlatformSpecificSettings_Windows.cs.meta deleted file mode 100644 index 41a2084b0..000000000 --- a/Assets/Wwise/API/Runtime/Generated/Windows/AkUnityPlatformSpecificSettings_Windows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fec924c8bda3c8348b3a82d6483d52f6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten.meta b/Assets/Wwise/API/Runtime/Handwritten.meta deleted file mode 100644 index 66900dbf6..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ed3809022d2bf5d46883e501ea795f34 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common.meta b/Assets/Wwise/API/Runtime/Handwritten/Common.meta deleted file mode 100644 index d48dd0d1a..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7e1359370a1b4b148a1e2c46a4b5d67a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkAudioInputManager.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkAudioInputManager.cs deleted file mode 100644 index d0defb828..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkAudioInputManager.cs +++ /dev/null @@ -1,147 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -/// -/// This class represents an example audio input manager and is responsible for managing the audio sample and format -/// callbacks provided to the Wwise Audio Input plug-in. -/// -public static class AkAudioInputManager -{ - /// - /// Sanitized audio format delegate to be used by classes that implement audio input plug-ins. The samples are ALWAYS - /// set to be non-interleaved 32-bit float. - /// - /// The playingID of a sound that uses the audio input plug-in. - /// The C# analog of the C++ AkAudioFormat class. - public delegate void AudioFormatDelegate(uint playingID, AkAudioFormat format); - - /// - /// Audio format delegate that is sent to C++. - /// - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - public delegate void AudioFormatInteropDelegate(uint playingID, System.IntPtr format); - - /// - /// Sanitized audio sample delegate to be used by classes that implement audio input plug-ins. For every event posted, - /// this delegate is called once per audio frame for each channel until the delegates for all the channels associated - /// with this event return false. - /// - /// The playingID of a sound that uses the audio input plug-in. - /// The number of the channel associated with this specific invocation of the delegate. - /// The sample array that MUST be filled even when returning false. - /// Return true when more sample frames are require and false when complete. - public delegate bool AudioSamplesDelegate(uint playingID, uint channelIndex, float[] samples); - - /// - /// Audio sample delegate that is sent to C++. - /// - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - public delegate bool AudioSamplesInteropDelegate(uint playingID, - [System.Runtime.InteropServices.In] - [System.Runtime.InteropServices.Out] - [System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPArray, SizeParamIndex = 3)] - float[] samples, uint channelIndex, uint frames); - - private static bool initialized; - - private static readonly System.Collections.Generic.Dictionary audioSamplesDelegates = - new System.Collections.Generic.Dictionary(); - - private static readonly System.Collections.Generic.Dictionary audioFormatDelegates = - new System.Collections.Generic.Dictionary(); - - private static readonly AkAudioFormat audioFormat = new AkAudioFormat(); - private static readonly AudioSamplesInteropDelegate audioSamplesDelegate = InternalAudioSamplesDelegate; - private static readonly AudioFormatInteropDelegate audioFormatDelegate = InternalAudioFormatDelegate; - - /// - /// This method is used to post events that use the Wwise Audio Input plug-in. - /// - /// The ID of the event to post. - /// The GameObject that the event will be posted on. - /// The C# audio sample delegate. - /// - /// The C# audio format delegate. If not specified, defaults to a mono source running at the - /// sample rate of the sound engine. - /// - /// The playingID of the newly instantiated sound associated with the posted event. - public static uint PostAudioInputEvent(uint akEventID, UnityEngine.GameObject gameObject, - AudioSamplesDelegate sampleDelegate, AudioFormatDelegate formatDelegate = null) - { - TryInitialize(); - var playingID = - AkSoundEngine.PostEvent(akEventID, gameObject, (uint) AkCallbackType.AK_EndOfEvent, EventCallback, null); - AddPlayingID(playingID, sampleDelegate, formatDelegate); - return playingID; - } - - /// - /// This method is used to post events that use the Wwise Audio Input plug-in. - /// - /// The name of the event to post. - /// The GameObject that the event will be posted on. - /// The C# audio sample delegate. - /// - /// The C# audio format delegate. If not specified, defaults to a mono source running at the - /// sample rate of the sound engine. - /// - /// The playingID of the newly instantiated sound associated with the posted event. - public static uint PostAudioInputEvent(string akEventName, UnityEngine.GameObject gameObject, - AudioSamplesDelegate sampleDelegate, AudioFormatDelegate formatDelegate = null) - { - TryInitialize(); - var playingID = - AkSoundEngine.PostEvent(akEventName, gameObject, (uint) AkCallbackType.AK_EndOfEvent, EventCallback, null); - AddPlayingID(playingID, sampleDelegate, formatDelegate); - return playingID; - } - - [AOT.MonoPInvokeCallback(typeof(AudioSamplesInteropDelegate))] - private static bool InternalAudioSamplesDelegate(uint playingID, float[] samples, uint channelIndex, uint frames) - { - return audioSamplesDelegates.ContainsKey(playingID) && - audioSamplesDelegates[playingID](playingID, channelIndex, samples); - } - - [AOT.MonoPInvokeCallback(typeof(AudioFormatInteropDelegate))] - private static void InternalAudioFormatDelegate(uint playingID, System.IntPtr format) - { - if (audioFormatDelegates.ContainsKey(playingID)) - { - audioFormat.setCPtr(format); - audioFormatDelegates[playingID](playingID, audioFormat); - } - } - - private static void TryInitialize() - { - if (!initialized) - { - initialized = true; - AkSoundEngine.SetAudioInputCallbacks(audioSamplesDelegate, audioFormatDelegate); - } - } - - private static void AddPlayingID(uint playingID, AudioSamplesDelegate sampleDelegate, - AudioFormatDelegate formatDelegate) - { - if (playingID == AkSoundEngine.AK_INVALID_PLAYING_ID || sampleDelegate == null) - return; - - audioSamplesDelegates.Add(playingID, sampleDelegate); - if (formatDelegate != null) - audioFormatDelegates.Add(playingID, formatDelegate); - } - - private static void EventCallback(object cookie, AkCallbackType type, AkCallbackInfo callbackInfo) - { - if (type == AkCallbackType.AK_EndOfEvent) - { - var info = callbackInfo as AkEventCallbackInfo; - if (info != null) - { - audioSamplesDelegates.Remove(info.playingID); - audioFormatDelegates.Remove(info.playingID); - } - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkAudioInputManager.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkAudioInputManager.cs.meta deleted file mode 100644 index 4f341d931..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkAudioInputManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 768c61a617a373d41b89433be181773c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBankManager.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkBankManager.cs deleted file mode 100644 index 4799fb835..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBankManager.cs +++ /dev/null @@ -1,304 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Maintains the list of loaded SoundBanks loaded. This is currently used only with AkAmbient objects. -public static class AkBankManager -{ - private static readonly System.Collections.Generic.Dictionary m_BankHandles = - new System.Collections.Generic.Dictionary(); - - private static readonly System.Collections.Generic.List BanksToUnload = - new System.Collections.Generic.List(); - - public static void DoUnloadBanks() - { - var count = BanksToUnload.Count; - for (var i = 0; i < count; ++i) - BanksToUnload[i].UnloadBank(); - - BanksToUnload.Clear(); - } - - internal static void Reset() - { - m_BankHandles.Clear(); - BanksToUnload.Clear(); - } - - public static void ReloadAllBanks() - { - lock (m_BankHandles) - { - foreach (var bankHandle in m_BankHandles.Values) - { - if (bankHandle != null) - { - bankHandle.UnloadBank(false); - } - } - - UnloadInitBank(); - LoadInitBank(false); - - foreach (var bankHandle in m_BankHandles.Values) - { - if (bankHandle != null) - { - bankHandle.DoLoadBank(); - } - } - } - } - - public static void LoadInitBank(bool doReset = true) - { - if (doReset) - { - Reset(); - } - - uint BankID; - var result = AkSoundEngine.LoadBank("Init.bnk", out BankID); - if (result != AKRESULT.AK_Success) - { - UnityEngine.Debug.LogError("WwiseUnity: Failed load Init.bnk with result: " + result); - } - } - - public static void UnloadInitBank() - { - AkSoundEngine.UnloadBank("Init.bnk", System.IntPtr.Zero); - } - - /// Loads a SoundBank. This version blocks until the bank is loaded. See AK::SoundEngine::LoadBank for more information. - public static void LoadBank(string name, bool decodeBank, bool saveDecodedBank) - { - BankHandle handle = null; - lock (m_BankHandles) - { - if (m_BankHandles.TryGetValue(name, out handle)) - { - // Bank already loaded, increment its ref count. - handle.IncRef(); - return; - } - -#if UNITY_SWITCH - // No bank decoding on Nintendo switch - handle = new BankHandle(name); -#else - handle = decodeBank ? new DecodableBankHandle(name, saveDecodedBank) : new BankHandle(name); -#endif - m_BankHandles.Add(name, handle); - } - handle.LoadBank(); - } - - /// Loads a SoundBank. This version returns right away and loads in background. See AK::SoundEngine::LoadBank for more information. - public static void LoadBankAsync(string name, AkCallbackManager.BankCallback callback = null) - { - BankHandle handle = null; - lock (m_BankHandles) - { - if (m_BankHandles.TryGetValue(name, out handle)) - { - // Bank already loaded, increment its ref count. - handle.IncRef(); - return; - } - - handle = new AsyncBankHandle(name, callback); - m_BankHandles.Add(name, handle); - } - handle.LoadBank(); - } - - /// Unloads a SoundBank. See AK::SoundEngine::UnloadBank for more information. - public static void UnloadBank(string name) - { - lock (m_BankHandles) - { - BankHandle handle = null; - if (m_BankHandles.TryGetValue(name, out handle)) - handle.DecRef(); - } - } - - private class BankHandle - { - protected readonly string bankName; - protected uint m_BankID; - - public BankHandle(string name) - { - bankName = name; - } - - public int RefCount { get; private set; } - - /// Loads a bank. This version blocks until the bank is loaded. See AK::SoundEngine::LoadBank for more information. - public virtual AKRESULT DoLoadBank() - { - return AkSoundEngine.LoadBank(bankName, out m_BankID); - } - - public void LoadBank() - { -#if UNITY_EDITOR - if (!AkSoundEngine.EditorIsSoundEngineLoaded) - return; -#endif - - if (RefCount == 0 && !BanksToUnload.Remove(this)) - { - var res = DoLoadBank(); - LogLoadResult(res); - } - - IncRef(); - } - - /// Unloads a bank. - public virtual void UnloadBank(bool remove = true) - { - AkSoundEngine.UnloadBank(m_BankID, System.IntPtr.Zero, null, null); - - if (remove) - { - lock (m_BankHandles) - m_BankHandles.Remove(bankName); - } - } - - public void IncRef() - { - if (RefCount == 0) - BanksToUnload.Remove(this); - RefCount++; - } - - public void DecRef() - { - RefCount--; - if (RefCount == 0) - BanksToUnload.Add(this); - } - - protected void LogLoadResult(AKRESULT result) - { - if (result != AKRESULT.AK_Success && AkSoundEngine.IsInitialized()) - UnityEngine.Debug.LogWarning("WwiseUnity: Bank " + bankName + " failed to load (" + result + ")"); - } - } - - private class AsyncBankHandle : BankHandle - { - private readonly AkCallbackManager.BankCallback bankCallback; - - public AsyncBankHandle(string name, AkCallbackManager.BankCallback callback) : base(name) - { - bankCallback = callback; - } - - private static void GlobalBankCallback(uint in_bankID, System.IntPtr in_pInMemoryBankPtr, AKRESULT in_eLoadResult, object in_Cookie) - { - var handle = (AsyncBankHandle)in_Cookie; - var callback = handle.bankCallback; - - if (in_eLoadResult != AKRESULT.AK_Success) - { - handle.LogLoadResult(in_eLoadResult); - - if (in_eLoadResult != AKRESULT.AK_BankAlreadyLoaded) - lock (m_BankHandles) - m_BankHandles.Remove(handle.bankName); - } - - if (callback != null) - callback(in_bankID, in_pInMemoryBankPtr, in_eLoadResult, null); - } - - /// Loads a bank. This version returns right away and loads in background. See AK::SoundEngine::LoadBank for more information - public override AKRESULT DoLoadBank() - { - return AkSoundEngine.LoadBank(bankName, GlobalBankCallback, this, out m_BankID); - } - } - - private class DecodableBankHandle : BankHandle - { - private readonly bool decodeBank = true; - private readonly string decodedBankPath; - private readonly bool saveDecodedBank; - - public DecodableBankHandle(string name, bool save) : base(name) - { - saveDecodedBank = save; - - var bankFileName = bankName + ".bnk"; - - // test language-specific decoded file path - var language = AkSoundEngine.GetCurrentLanguage(); - var decodedBankFullPath = AkBasePathGetter.DecodedBankFullPath; - decodedBankPath = System.IO.Path.Combine(decodedBankFullPath, language); - var decodedBankFilePath = System.IO.Path.Combine(decodedBankPath, bankFileName); - - var decodedFileExists = System.IO.File.Exists(decodedBankFilePath); - if (!decodedFileExists) - { - // test non-language-specific decoded file path - decodedBankPath = decodedBankFullPath; - decodedBankFilePath = System.IO.Path.Combine(decodedBankPath, bankFileName); - decodedFileExists = System.IO.File.Exists(decodedBankFilePath); - } - - if (decodedFileExists) - { - try - { - var decodedFileTime = System.IO.File.GetLastWriteTime(decodedBankFilePath); - var encodedBankFilePath = System.IO.Path.Combine(AkBasePathGetter.SoundBankBasePath, bankFileName); - var encodedFileTime = System.IO.File.GetLastWriteTime(encodedBankFilePath); - - decodeBank = decodedFileTime <= encodedFileTime; - } - catch - { - // Assume the decoded bank exists, but is not accessible. Re-decode it anyway, so we do nothing. - } - } - } - - /// Loads a bank. This version blocks until the bank is loaded. See AK::SoundEngine::LoadBank for more information. - public override AKRESULT DoLoadBank() - { - if (decodeBank) - return AkSoundEngine.LoadAndDecodeBank(bankName, saveDecodedBank, out m_BankID); - - if (string.IsNullOrEmpty(decodedBankPath)) - return AkSoundEngine.LoadBank(bankName, out m_BankID); - - var res = AkSoundEngine.SetBasePath(decodedBankPath); - if (res == AKRESULT.AK_Success) - { - res = AkSoundEngine.LoadBank(bankName, out m_BankID); - AkSoundEngine.SetBasePath(AkBasePathGetter.SoundBankBasePath); - } - return res; - } - - /// Unloads a bank. - public override void UnloadBank(bool remove = true) - { - if (decodeBank && !saveDecodedBank) - AkSoundEngine.PrepareBank(AkPreparationType.Preparation_Unload, m_BankID); - else - base.UnloadBank(remove); - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBankManager.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkBankManager.cs.meta deleted file mode 100644 index 1f2086b72..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBankManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2e52c84fd846d004a8f25a4d805adbfe -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBasePathGetter.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkBasePathGetter.cs deleted file mode 100644 index 51f1b3879..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBasePathGetter.cs +++ /dev/null @@ -1,274 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// -/// This class is responsible for determining the path where sound banks are located. When using custom platforms, this -/// class needs to be extended. -/// -public partial class AkBasePathGetter -{ - /// - /// User hook called to retrieve the custom platform name used to determine the base path. Do not modify platformName - /// to use default platform names. - /// - /// The custom platform name. Leave unaffected if the default location is acceptable. - public delegate void CustomPlatformNameGetter(ref string platformName); - - public static CustomPlatformNameGetter GetCustomPlatformName; - - /// - /// Determines the platform name which is also the sub-folder within the base path where sound banks are located for - /// this platform. - /// - /// The platform name. - public static string GetPlatformName() - { - var platformSubDir = string.Empty; - GetCustomPlatformName?.Invoke(ref platformSubDir); - - if (!string.IsNullOrEmpty(platformSubDir)) - return platformSubDir; - - return DefaultPlatformName; - } -} - -public partial class AkBasePathGetter -{ - public static readonly string DefaultBasePath = System.IO.Path.Combine("Audio", "GeneratedSoundBanks"); - - private static bool LogWarnings_Internal = true; - public static bool LogWarnings - { - get { return LogWarnings_Internal; } - set { LogWarnings_Internal = value; } - } - - /// - /// Returns the absolute path to the platform specific sound banks. - /// - /// The absolute path to the platform specific sound banks. - public static string GetPlatformBasePath() - { - var platformName = GetPlatformName(); - -#if UNITY_EDITOR - var platformBasePathEditor = GetPlatformBasePathEditor(platformName); - if (!string.IsNullOrEmpty(platformBasePathEditor)) - return platformBasePathEditor; - - var fullBasePath = AkWwiseEditorSettings.Instance.SoundbankPath; -#else - var fullBasePath = string.Empty; -#endif - - if (string.IsNullOrEmpty(fullBasePath)) - fullBasePath = AkWwiseInitializationSettings.ActivePlatformSettings.SoundbankPath; - -#if UNITY_EDITOR || !UNITY_ANDROID - fullBasePath = System.IO.Path.Combine(UnityEngine.Application.streamingAssetsPath, fullBasePath); -#endif - -#if UNITY_SWITCH - if (fullBasePath.StartsWith("/")) - fullBasePath = fullBasePath.Substring(1); -#endif - - // Combine base path with platform sub-folder - var platformBasePath = System.IO.Path.Combine(fullBasePath, platformName); - AkUtilities.FixSlashes(ref platformBasePath); - return platformBasePath; - } - -#if UNITY_EDITOR - public static bool GetSoundBankPaths(string platformName, out string sourcePlatformBasePath, out string destinationPlatformBasePath) - { - sourcePlatformBasePath = GetPlatformBasePathEditor(platformName); - if (string.IsNullOrEmpty(sourcePlatformBasePath)) - { - if (LogWarnings) - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Could not find source folder for <{0}> platform. Did you remember to generate your banks?", platformName); - - destinationPlatformBasePath = string.Empty; - return false; - } - - destinationPlatformBasePath = System.IO.Path.Combine(GetFullSoundBankPathEditor(), platformName); - if (string.IsNullOrEmpty(destinationPlatformBasePath)) - { - if (LogWarnings) - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Could not find destination folder for <{0}> platform", platformName); - - return false; - } - - return true; - } - - /// - /// Returns the absolute path to the folder above the platform specific sound banks sub-folders. - /// - /// The absolute sound bank base path. - public static string GetFullSoundBankPathEditor() - { - string fullBasePath = System.IO.Path.Combine(UnityEngine.Application.streamingAssetsPath, AkWwiseEditorSettings.Instance.SoundbankPath); - AkUtilities.FixSlashes(ref fullBasePath); - return fullBasePath; - } - - public static string GetWwiseProjectPath() - { - var Settings = AkWwiseEditorSettings.Instance; - return AkUtilities.GetFullPath(UnityEngine.Application.dataPath, Settings.WwiseProjectPath); - } - - public static string GetWwiseProjectDirectory() - { - var projectPath= AkUtilities.GetFullPath(UnityEngine.Application.dataPath, AkWwiseEditorSettings.Instance.WwiseProjectPath); - return System.IO.Path.GetDirectoryName(projectPath); - } - - public static string GetDefaultGeneratedSoundbanksPath() - { - return System.IO.Path.Combine(GetWwiseProjectPath(), "GeneratedSoundBanks"); - } - - - /// - /// Determines the platform base path for use within the Editor. - /// - /// The platform name. - /// The full path to the sound banks for use within the Editor. - private static string GetPlatformBasePathEditor(string platformName) - { - var WwiseProjectFullPath = GetWwiseProjectPath(); - var SoundBankDest = AkUtilities.GetWwiseSoundBankDestinationFolder(platformName); - - try - { - if (System.IO.Path.GetPathRoot(SoundBankDest) == "") - { - // Path is relative, make it full - SoundBankDest = AkUtilities.GetFullPath(System.IO.Path.GetDirectoryName(WwiseProjectFullPath), SoundBankDest); - } - } - catch - { - SoundBankDest = string.Empty; - } - - if (LogWarnings) - { - if (string.IsNullOrEmpty(SoundBankDest)) - { - UnityEngine.Debug.LogWarning("WwiseUnity: The platform SoundBank subfolder within the Wwise project could not be found."); - return null; - } - - try - { - // Verify if there are banks in there - var di = new System.IO.DirectoryInfo(SoundBankDest); - var foundBanks = di.GetFiles("*.bnk", System.IO.SearchOption.AllDirectories); - if (foundBanks.Length == 0) - { - return null; - } - - if (!SoundBankDest.Contains(platformName)) - { - if (LogWarnings) - UnityEngine.Debug.LogWarning("WwiseUnity: The platform SoundBank subfolder does not match your platform name. You will need to create a custom platform name getter for your game. See section \"Using Wwise Custom Platforms in Unity\" of the Wwise Unity integration documentation for more information"); - } - - return SoundBankDest; - } - catch - { - return null; - } - } - else - { - return SoundBankDest; - } - } -#endif - - public static void EvaluateGamePaths() - { -#if UNITY_SWITCH && !UNITY_EDITOR - // Calling Application.persistentDataPath crashes Switch - string tempPersistentDataPath = null; -#else - string tempPersistentDataPath = UnityEngine.Application.persistentDataPath; -#endif - - PersistentDataPath = tempPersistentDataPath; - - var persistentDataSubfolder = AkWwiseInitializationSettings.ActivePlatformSettings.SoundBankPersistentDataPath; - - string tempSoundBankBasePath = null; - if (!string.IsNullOrEmpty(tempPersistentDataPath) && !string.IsNullOrEmpty(persistentDataSubfolder)) - { - tempSoundBankBasePath = System.IO.Path.GetFullPath(System.IO.Path.Combine(tempPersistentDataPath, persistentDataSubfolder)); - if (LogWarnings) - UnityEngine.Debug.LogFormat("WwiseUnity: Using persistentDataPath. SoundBanks base path set to <{0}>.", tempSoundBankBasePath); - } - else - { - tempSoundBankBasePath = GetPlatformBasePath(); - -#if !UNITY_EDITOR && UNITY_ANDROID - // Can't use File.Exists on Android, assume banks are there - var InitBnkFound = true; -#else - var InitBnkFound = System.IO.File.Exists(System.IO.Path.Combine(tempSoundBankBasePath, "Init.bnk")); -#endif - -#if !AK_WWISE_ADDRESSABLES && UNITY_ADDRESSBLES //Don't log this if we're using addressables - if (string.IsNullOrEmpty(tempSoundBankBasePath) || !InitBnkFound) - { - if (LogWarnings) - { -#if UNITY_EDITOR - var format = "WwiseUnity: Could not locate the SoundBanks in {0}. Did you make sure to generate them?"; -#else - var format = "WwiseUnity: Could not locate the SoundBanks in {0}. Did you make sure to copy them to the StreamingAssets folder?"; -#endif - UnityEngine.Debug.LogErrorFormat(format, tempSoundBankBasePath); - } - } -#endif - } - - SoundBankBasePath = tempSoundBankBasePath; - - string tempDecodedBankFullPath = null; - -#if !UNITY_SWITCH || UNITY_EDITOR -#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR - // This is for platforms that only have a specific file location for persistent data. - tempDecodedBankFullPath = System.IO.Path.Combine(tempPersistentDataPath, DecodedBankFolder); -#else - tempDecodedBankFullPath = System.IO.Path.Combine(tempSoundBankBasePath, DecodedBankFolder); -#endif -#endif - - DecodedBankFullPath = tempDecodedBankFullPath; - } - - public static string SoundBankBasePath { get; private set; } - - public static string PersistentDataPath { get; private set; } - - private const string DecodedBankFolder = "DecodedBanks"; - - public static string DecodedBankFullPath { get; private set; } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBasePathGetter.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkBasePathGetter.cs.meta deleted file mode 100644 index 2f7a0cdad..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkBasePathGetter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: af2c6e6efc35374459ba812c57d9bdec -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs deleted file mode 100644 index 5bf9bca07..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs +++ /dev/null @@ -1,420 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// -/// This class manages the callback queue. All callbacks from the native Wwise SDK go through this queue. -/// The queue needs to be driven by regular calls to PostCallbacks(). This is currently done in AkInitializer.cs, in -/// LateUpdate(). -/// -public static class AkCallbackManager -{ - /// - /// Event callback used when posting events. - /// - public delegate void EventCallback(object in_cookie, AkCallbackType in_type, AkCallbackInfo in_info); - - /// - /// Monitoring callback called when Wwise reports errors. - /// - public delegate void MonitoringCallback(AkMonitorErrorCode in_errorCode, AkMonitorErrorLevel in_errorLevel, - uint in_playingID, ulong in_gameObjID, string in_msg); - - /// - /// Bank callback called upon bank load and unload and when errors occur. - /// - public delegate void BankCallback(uint in_bankID, System.IntPtr in_InMemoryBankPtr, AKRESULT in_eLoadResult, object in_Cookie); - - private static bool IsLoggingEnabled { get; set; } - - private static readonly AkEventCallbackInfo AkEventCallbackInfo = new AkEventCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkDynamicSequenceItemCallbackInfo AkDynamicSequenceItemCallbackInfo = - new AkDynamicSequenceItemCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkMIDIEventCallbackInfo AkMIDIEventCallbackInfo = - new AkMIDIEventCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkMarkerCallbackInfo - AkMarkerCallbackInfo = new AkMarkerCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkDurationCallbackInfo AkDurationCallbackInfo = - new AkDurationCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkMusicSyncCallbackInfo AkMusicSyncCallbackInfo = - new AkMusicSyncCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkMusicPlaylistCallbackInfo AkMusicPlaylistCallbackInfo = - new AkMusicPlaylistCallbackInfo(System.IntPtr.Zero, false); - -#if UNITY_IOS && !UNITY_EDITOR - private static AkAudioInterruptionCallbackInfo AkAudioInterruptionCallbackInfo = - new AkAudioInterruptionCallbackInfo(System.IntPtr.Zero, false); -#endif // #if UNITY_IOS && ! UNITY_EDITOR - - private static readonly AkAudioSourceChangeCallbackInfo AkAudioSourceChangeCallbackInfo = - new AkAudioSourceChangeCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkMonitoringCallbackInfo AkMonitoringCallbackInfo = - new AkMonitoringCallbackInfo(System.IntPtr.Zero, false); - - private static readonly AkBankCallbackInfo AkBankCallbackInfo = new AkBankCallbackInfo(System.IntPtr.Zero, false); - - /// - /// This class holds the data associated with an event callback. - /// - public class EventCallbackPackage - { - public bool m_bNotifyEndOfEvent; - public EventCallback m_Callback; - - public object m_Cookie; - public uint m_playingID; - - public static EventCallbackPackage Create(EventCallback in_cb, object in_cookie, ref uint io_Flags) - { - if (io_Flags == 0 || in_cb == null) - { - io_Flags = 0; - return null; - } - - var evt = new EventCallbackPackage(); - - evt.m_Callback = in_cb; - evt.m_Cookie = in_cookie; - evt.m_bNotifyEndOfEvent = (io_Flags & (uint) AkCallbackType.AK_EndOfEvent) != 0; - io_Flags = io_Flags | (uint) AkCallbackType.AK_EndOfEvent; - - m_mapEventCallbacks[evt.GetHashCode()] = evt; - m_LastAddedEventPackage = evt; - - return evt; - } - } - - /// - /// This class holds the data associated with a bank load or unload callback. - /// - public class BankCallbackPackage - { - public BankCallback m_Callback; - public object m_Cookie; - - public BankCallbackPackage(BankCallback in_cb, object in_cookie) - { - m_Callback = in_cb; - m_Cookie = in_cookie; - - m_mapBankCallbacks[GetHashCode()] = this; - } - } - - private static readonly System.Collections.Generic.Dictionary m_mapEventCallbacks = - new System.Collections.Generic.Dictionary(); - - private static readonly System.Collections.Generic.Dictionary m_mapBankCallbacks = - new System.Collections.Generic.Dictionary(); - - private static EventCallbackPackage m_LastAddedEventPackage; - - public static void RemoveEventCallback(uint in_playingID) - { - var cookiesToRemove = new System.Collections.Generic.List(); - foreach (var pair in m_mapEventCallbacks) - { - if (pair.Value.m_playingID == in_playingID) - { - cookiesToRemove.Add(pair.Key); - break; - } - } - - var Count = cookiesToRemove.Count; - for (var ii = 0; ii < Count; ++ii) - m_mapEventCallbacks.Remove(cookiesToRemove[ii]); - - AkSoundEnginePINVOKE.CSharp_CancelEventCallback(in_playingID); - } - - public static void RemoveEventCallbackCookie(object in_cookie) - { - var cookiesToRemove = new System.Collections.Generic.List(); - foreach (var pair in m_mapEventCallbacks) - { - if (pair.Value.m_Cookie == in_cookie) - cookiesToRemove.Add(pair.Key); - } - - var Count = cookiesToRemove.Count; - for (var ii = 0; ii < Count; ++ii) - { - var toRemove = cookiesToRemove[ii]; - m_mapEventCallbacks.Remove(toRemove); - AkSoundEnginePINVOKE.CSharp_CancelEventCallbackCookie((System.IntPtr) toRemove); - } - } - - public static void RemoveBankCallback(object in_cookie) - { - var cookiesToRemove = new System.Collections.Generic.List(); - foreach (var pair in m_mapBankCallbacks) - { - if (pair.Value.m_Cookie == in_cookie) - cookiesToRemove.Add(pair.Key); - } - - var Count = cookiesToRemove.Count; - for (var ii = 0; ii < Count; ++ii) - { - var toRemove = cookiesToRemove[ii]; - m_mapBankCallbacks.Remove(toRemove); - AkSoundEnginePINVOKE.CSharp_CancelBankCallbackCookie((System.IntPtr) toRemove); - } - } - - public static void SetLastAddedPlayingID(uint in_playingID) - { - if (m_LastAddedEventPackage != null && m_LastAddedEventPackage.m_playingID == 0) - m_LastAddedEventPackage.m_playingID = in_playingID; - } - - private static MonitoringCallback m_MonitoringCB; - -#if UNITY_IOS && !UNITY_EDITOR - public delegate AKRESULT AudioInterruptionCallback(bool in_bEnterInterruption, object in_Cookie); - // App implements its own callback. - private static AudioInterruptionCallbackPackage ms_interruptCallbackPkg = null; - - public class AudioInterruptionCallbackPackage - { - public object m_Cookie; - public AudioInterruptionCallback m_Callback; - } -#endif // #if UNITY_IOS && ! UNITY_EDITOR - - public delegate AKRESULT BGMCallback(bool in_bOtherAudioPlaying, object in_Cookie); - - // App implements its own callback. - private static BGMCallbackPackage ms_sourceChangeCallbackPkg; - - public class BGMCallbackPackage - { - public BGMCallback m_Callback; - public object m_Cookie; - } - - public class InitializationSettings - { - public const bool DefaultIsLoggingEnabled = true; - public bool IsLoggingEnabled = DefaultIsLoggingEnabled; - } - - public static void Init(InitializationSettings settings) - { - IsLoggingEnabled = settings.IsLoggingEnabled; - -#if UNITY_EDITOR - AkCallbackSerializer.SetLocalOutput((uint)AkMonitorErrorLevel.ErrorLevel_All); -#endif - - AkCallbackSerializer.Init(); - } - - public static void Term() - { - AkCallbackSerializer.Term(); - } - - /// Call this to set a function to call whenever Wwise prints a message (warnings or errors). - public static void SetMonitoringCallback(AkMonitorErrorLevel in_Level, MonitoringCallback in_CB) - { - AkCallbackSerializer.SetLocalOutput(in_CB != null ? (uint) in_Level : 0); - m_MonitoringCB = in_CB; - } - -#if UNITY_IOS && !UNITY_EDITOR - /// Call this function to set a iOS callback interruption function. By default this callback is not defined. - public static void SetInterruptionCallback(AudioInterruptionCallback in_CB, object in_cookie) - { - ms_interruptCallbackPkg = new AudioInterruptionCallbackPackage { m_Callback = in_CB, m_Cookie = in_cookie }; - } -#endif // #if UNITY_IOS && ! UNITY_EDITOR - - /// Call this to set a background music callback function. By default this callback is not defined. - public static void SetBGMCallback(BGMCallback in_CB, object in_cookie) - { - ms_sourceChangeCallbackPkg = new BGMCallbackPackage { m_Callback = in_CB, m_Cookie = in_cookie }; - } - - /// This function dispatches all the accumulated callbacks from the native sound engine. - /// It must be called regularly. By default this is called in AkInitializer.cs. - public static int PostCallbacks() - { - try - { - var numCallbacks = 0; - - for (var pNext = AkCallbackSerializer.Lock(); - pNext != System.IntPtr.Zero; - pNext = AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_pNext_get(pNext), ++numCallbacks) - { - var pPackage = AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_pPackage_get(pNext); - var eType = (AkCallbackType) AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_eType_get(pNext); - var pData = AkSoundEnginePINVOKE.CSharp_AkSerializedCallbackHeader_GetData(pNext); - - switch (eType) - { - case AkCallbackType.AK_AudioInterruption: -#if UNITY_IOS && !UNITY_EDITOR - if (ms_interruptCallbackPkg != null && ms_interruptCallbackPkg.m_Callback != null) - { - AkAudioInterruptionCallbackInfo.setCPtr(pData); - ms_interruptCallbackPkg.m_Callback(AkAudioInterruptionCallbackInfo.bEnterInterruption, ms_interruptCallbackPkg.m_Cookie); - } -#endif // #if UNITY_IOS && ! UNITY_EDITOR - break; - - case AkCallbackType.AK_AudioSourceChange: - if (ms_sourceChangeCallbackPkg != null && ms_sourceChangeCallbackPkg.m_Callback != null) - { - AkAudioSourceChangeCallbackInfo.setCPtr(pData); - ms_sourceChangeCallbackPkg.m_Callback(AkAudioSourceChangeCallbackInfo.bOtherAudioPlaying, - ms_sourceChangeCallbackPkg.m_Cookie); - } - break; - - case AkCallbackType.AK_Monitoring: - if (m_MonitoringCB != null) - { - AkMonitoringCallbackInfo.setCPtr(pData); - m_MonitoringCB(AkMonitoringCallbackInfo.errorCode, AkMonitoringCallbackInfo.errorLevel, - AkMonitoringCallbackInfo.playingID, AkMonitoringCallbackInfo.gameObjID, AkMonitoringCallbackInfo.message); - } -#if UNITY_EDITOR - else if (IsLoggingEnabled) - { - AkMonitoringCallbackInfo.setCPtr(pData); - - var msg = "Wwise: " + AkMonitoringCallbackInfo.message; - if (AkMonitoringCallbackInfo.gameObjID != AkSoundEngine.AK_INVALID_GAME_OBJECT) - { - var obj = - UnityEditor.EditorUtility.InstanceIDToObject((int) AkMonitoringCallbackInfo.gameObjID) as - UnityEngine.GameObject; - if (obj != null) - msg += " (GameObject: " + obj + ")"; - - msg += " (Instance ID: " + AkMonitoringCallbackInfo.gameObjID + ")"; - } - - if (AkMonitoringCallbackInfo.errorLevel == AkMonitorErrorLevel.ErrorLevel_Error) - UnityEngine.Debug.LogError(msg); - else - UnityEngine.Debug.Log(msg); - } -#endif - break; - - case AkCallbackType.AK_Bank: - BankCallbackPackage bankPkg = null; - if (!m_mapBankCallbacks.TryGetValue((int) pPackage, out bankPkg)) - { - UnityEngine.Debug.LogError("WwiseUnity: BankCallbackPackage not found for <" + pPackage + ">."); - break; - } - - m_mapBankCallbacks.Remove((int) pPackage); - - if (bankPkg != null && bankPkg.m_Callback != null) - { - AkBankCallbackInfo.setCPtr(pData); - bankPkg.m_Callback(AkBankCallbackInfo.bankID, AkBankCallbackInfo.inMemoryBankPtr, AkBankCallbackInfo.loadResult, bankPkg.m_Cookie); - } - break; - - default: - EventCallbackPackage eventPkg = null; - if (!m_mapEventCallbacks.TryGetValue((int) pPackage, out eventPkg)) - { - UnityEngine.Debug.LogError("WwiseUnity: EventCallbackPackage not found for <" + pPackage + ">."); - break; - } - - AkCallbackInfo info = null; - - switch (eType) - { - case AkCallbackType.AK_EndOfEvent: - m_mapEventCallbacks.Remove(eventPkg.GetHashCode()); - if (eventPkg.m_bNotifyEndOfEvent) - { - AkEventCallbackInfo.setCPtr(pData); - info = AkEventCallbackInfo; - } - break; - - case AkCallbackType.AK_MusicPlayStarted: - AkEventCallbackInfo.setCPtr(pData); - info = AkEventCallbackInfo; - break; - - case AkCallbackType.AK_EndOfDynamicSequenceItem: - AkDynamicSequenceItemCallbackInfo.setCPtr(pData); - info = AkDynamicSequenceItemCallbackInfo; - break; - - case AkCallbackType.AK_MIDIEvent: - AkMIDIEventCallbackInfo.setCPtr(pData); - info = AkMIDIEventCallbackInfo; - break; - - case AkCallbackType.AK_Marker: - AkMarkerCallbackInfo.setCPtr(pData); - info = AkMarkerCallbackInfo; - break; - - case AkCallbackType.AK_Duration: - AkDurationCallbackInfo.setCPtr(pData); - info = AkDurationCallbackInfo; - break; - - case AkCallbackType.AK_MusicSyncUserCue: - case AkCallbackType.AK_MusicSyncBar: - case AkCallbackType.AK_MusicSyncBeat: - case AkCallbackType.AK_MusicSyncEntry: - case AkCallbackType.AK_MusicSyncExit: - case AkCallbackType.AK_MusicSyncGrid: - case AkCallbackType.AK_MusicSyncPoint: - AkMusicSyncCallbackInfo.setCPtr(pData); - info = AkMusicSyncCallbackInfo; - break; - - case AkCallbackType.AK_MusicPlaylistSelect: - AkMusicPlaylistCallbackInfo.setCPtr(pData); - info = AkMusicPlaylistCallbackInfo; - break; - - default: - UnityEngine.Debug.LogError("WwiseUnity: Undefined callback type <" + eType + "> received. Callback object possibly corrupted."); - break; - } - - if (info != null) - eventPkg.m_Callback(eventPkg.m_Cookie, eType, info); - break; - } - } - - return numCallbacks; - } - finally - { - AkCallbackSerializer.Unlock(); - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs.meta deleted file mode 100644 index 17dd3b45a..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 67946fa731257d84394eb9977fbe1534 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCommonPlatformSettings.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkCommonPlatformSettings.cs deleted file mode 100644 index beb517e34..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCommonPlatformSettings.cs +++ /dev/null @@ -1,599 +0,0 @@ -public class AkBasePlatformSettings : UnityEngine.ScriptableObject -{ - public virtual AkInitializationSettings AkInitializationSettings - { - get { return new AkInitializationSettings(); } - } - - public virtual AkSpatialAudioInitSettings AkSpatialAudioInitSettings - { - get { return new AkSpatialAudioInitSettings(); } - } - - public virtual AkCallbackManager.InitializationSettings CallbackManagerInitializationSettings - { - get { return new AkCallbackManager.InitializationSettings(); } - } - - public virtual string SoundBankPersistentDataPath - { - get { return null; } - } - - public virtual string InitialLanguage - { - get { return "English(US)"; } - } - - public virtual bool RenderDuringFocusLoss - { - get { return false; } - } - - public virtual string SoundbankPath - { - get { return AkBasePathGetter.DefaultBasePath; } - } - - public virtual AkCommunicationSettings AkCommunicationSettings - { - get { return new AkCommunicationSettings(); } - } - - public virtual bool UseAsyncOpen - { - get { return false; } - } -} - -[System.Serializable] -public class AkCommonOutputSettings -{ - [UnityEngine.Tooltip("The name of a custom audio device to be used. Custom audio devices are defined in the Audio Device Shareset section of the Wwise project. Leave this empty to output normally through the default audio device.")] - public string m_AudioDeviceShareset = string.Empty; - - [UnityEngine.Tooltip("Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.")] - public uint m_DeviceID = AkSoundEngine.AK_INVALID_UNIQUE_ID; - - public enum PanningRule - { - Speakers = 0, - Headphones = 1 - } - - [UnityEngine.Tooltip("Rule for 3D panning of signals routed to a stereo bus. In \"Speakers\" mode, the angle of the front loudspeakers is used. In \"Headphones\" mode, the speaker angles are superseded with constant power panning between two virtual microphones spaced 180 degrees apart.")] - public PanningRule m_PanningRule = PanningRule.Speakers; - - [System.Serializable] - public class ChannelConfiguration - { - public enum ChannelConfigType - { - Anonymous = 0x0, - Standard = 0x1, - Ambisonic = 0x2 - } - - [UnityEngine.Tooltip("A code that completes the identification of channels by uChannelMask. Anonymous: Channel mask == 0 and channels; Standard: Channels must be identified with standard defines in AkSpeakerConfigs; Ambisonic: Channel mask == 0 and channels follow standard ambisonic order.")] - public ChannelConfigType m_ChannelConfigType = ChannelConfigType.Anonymous; - - public enum ChannelMask - { - NONE = 0x0, - - /// Standard speakers (channel mask): - FRONT_LEFT = 0x1, ///< Front left speaker bit mask - FRONT_RIGHT = 0x2, ///< Front right speaker bit mask - FRONT_CENTER = 0x4, ///< Front center speaker bit mask - LOW_FREQUENCY = 0x8, ///< Low-frequency speaker bit mask - BACK_LEFT = 0x10, ///< Rear left speaker bit mask - BACK_RIGHT = 0x20, ///< Rear right speaker bit mask - BACK_CENTER = 0x100, ///< Rear center speaker ("surround speaker") bit mask - SIDE_LEFT = 0x200, ///< Side left speaker bit mask - SIDE_RIGHT = 0x400, ///< Side right speaker bit mask - - /// "Height" speakers. - TOP = 0x800, ///< Top speaker bit mask - HEIGHT_FRONT_LEFT = 0x1000, ///< Front left speaker bit mask - HEIGHT_FRONT_CENTER = 0x2000, ///< Front center speaker bit mask - HEIGHT_FRONT_RIGHT = 0x4000, ///< Front right speaker bit mask - HEIGHT_BACK_LEFT = 0x8000, ///< Rear left speaker bit mask - HEIGHT_BACK_CENTER = 0x10000, ///< Rear center speaker bit mask - HEIGHT_BACK_RIGHT = 0x20000, ///< Rear right speaker bit mask - - // - // Supported speaker setups. Those are the ones that can be used in the Wwise Sound Engine audio pipeline. - // - SETUP_MONO = FRONT_CENTER, ///< 1.0 setup channel mask - SETUP_0POINT1 = LOW_FREQUENCY, ///< 0.1 setup channel mask - SETUP_1POINT1 = (FRONT_CENTER | LOW_FREQUENCY), ///< 1.1 setup channel mask - SETUP_STEREO = (FRONT_LEFT | FRONT_RIGHT), ///< 2.0 setup channel mask - SETUP_2POINT1 = (SETUP_STEREO | LOW_FREQUENCY), ///< 2.1 setup channel mask - SETUP_3STEREO = (SETUP_STEREO | FRONT_CENTER), ///< 3.0 setup channel mask - SETUP_3POINT1 = (SETUP_3STEREO | LOW_FREQUENCY), ///< 3.1 setup channel mask - SETUP_4 = (SETUP_STEREO | SIDE_LEFT | SIDE_RIGHT), ///< 4.0 setup channel mask - SETUP_4POINT1 = (SETUP_4 | LOW_FREQUENCY), ///< 4.1 setup channel mask - SETUP_5 = (SETUP_4 | FRONT_CENTER), ///< 5.0 setup channel mask - SETUP_5POINT1 = (SETUP_5 | LOW_FREQUENCY), ///< 5.1 setup channel mask - SETUP_6 = (SETUP_4 | BACK_LEFT | BACK_RIGHT), ///< 6.0 setup channel mask - SETUP_6POINT1 = (SETUP_6 | LOW_FREQUENCY), ///< 6.1 setup channel mask - SETUP_7 = (SETUP_6 | FRONT_CENTER), ///< 7.0 setup channel mask - SETUP_7POINT1 = (SETUP_7 | LOW_FREQUENCY), ///< 7.1 setup channel mask - SETUP_SURROUND = (SETUP_STEREO | BACK_CENTER), ///< Legacy surround setup channel mask - - // Note. DPL2 does not really have 4 channels, but it is used by plugins to differentiate from stereo setup. - SETUP_DPL2 = (SETUP_4), ///< Legacy DPL2 setup channel mask - - SETUP_HEIGHT_4 = (HEIGHT_FRONT_LEFT | HEIGHT_FRONT_RIGHT | HEIGHT_BACK_LEFT | HEIGHT_BACK_RIGHT), ///< 4 speaker height layer. - SETUP_HEIGHT_5 = (SETUP_HEIGHT_4 | HEIGHT_FRONT_CENTER), ///< 5 speaker height layer. - SETUP_HEIGHT_ALL = (SETUP_HEIGHT_5 | HEIGHT_BACK_CENTER), ///< All height speaker layer. - - // Auro speaker setups - SETUP_AURO_222 = (SETUP_4 | HEIGHT_FRONT_LEFT | HEIGHT_FRONT_RIGHT), ///< Auro-222 setup channel mask - SETUP_AURO_8 = (SETUP_AURO_222 | HEIGHT_BACK_LEFT | HEIGHT_BACK_RIGHT), ///< Auro-8 setup channel mask - SETUP_AURO_9 = (SETUP_AURO_8 | FRONT_CENTER), ///< Auro-9.0 setup channel mask - SETUP_AURO_9POINT1 = (SETUP_AURO_9 | LOW_FREQUENCY), ///< Auro-9.1 setup channel mask - SETUP_AURO_10 = (SETUP_AURO_9 | TOP), ///< Auro-10.0 setup channel mask - SETUP_AURO_10POINT1 = (SETUP_AURO_10 | LOW_FREQUENCY), ///< Auro-10.1 setup channel mask - SETUP_AURO_11 = (SETUP_AURO_10 | HEIGHT_FRONT_CENTER), ///< Auro-11.0 setup channel mask - SETUP_AURO_11POINT1 = (SETUP_AURO_11 | LOW_FREQUENCY), ///< Auro-11.1 setup channel mask - SETUP_AURO_11_740 = (SETUP_7 | SETUP_HEIGHT_4), ///< Auro-11.0 (7+4) setup channel mask - SETUP_AURO_11POINT1_740 = (SETUP_AURO_11_740 | LOW_FREQUENCY), ///< Auro-11.1 (7+4) setup channel mask - SETUP_AURO_13_751 = (SETUP_7 | SETUP_HEIGHT_5 | TOP), ///< Auro-13.0 setup channel mask - SETUP_AURO_13POINT1_751 = (SETUP_AURO_13_751 | LOW_FREQUENCY), ///< Auro-13.1 setup channel mask - - // Dolby speaker setups: in Dolby nomenclature, [#plane].[lfe].[#height] - SETUP_DOLBY_5_0_2 = (SETUP_5 | HEIGHT_FRONT_LEFT | HEIGHT_FRONT_RIGHT), ///< Dolby 5.0.2 setup channel mask - SETUP_DOLBY_5_1_2 = (SETUP_DOLBY_5_0_2 | LOW_FREQUENCY), ///< Dolby 5.1.2 setup channel mask - SETUP_DOLBY_6_0_2 = (SETUP_6 | HEIGHT_FRONT_LEFT | HEIGHT_FRONT_RIGHT), ///< Dolby 6.0.2 setup channel mask - SETUP_DOLBY_6_1_2 = (SETUP_DOLBY_6_0_2 | LOW_FREQUENCY), ///< Dolby 6.1.2 setup channel mask - SETUP_DOLBY_6_0_4 = (SETUP_DOLBY_6_0_2 | HEIGHT_BACK_LEFT | HEIGHT_BACK_RIGHT), ///< Dolby 6.0.4 setup channel mask - SETUP_DOLBY_6_1_4 = (SETUP_DOLBY_6_0_4 | LOW_FREQUENCY), ///< Dolby 6.1.4 setup channel mask - SETUP_DOLBY_7_0_2 = (SETUP_7 | HEIGHT_FRONT_LEFT | HEIGHT_FRONT_RIGHT), ///< Dolby 7.0.2 setup channel mask - SETUP_DOLBY_7_1_2 = (SETUP_DOLBY_7_0_2 | LOW_FREQUENCY), ///< Dolby 7.1.2 setup channel mask - SETUP_DOLBY_7_0_4 = (SETUP_DOLBY_7_0_2 | HEIGHT_BACK_LEFT | HEIGHT_BACK_RIGHT), ///< Dolby 7.0.4 setup channel mask - SETUP_DOLBY_7_1_4 = (SETUP_DOLBY_7_0_4 | LOW_FREQUENCY), ///< Dolby 7.1.4 setup channel mask - - SETUP_ALL_SPEAKERS = (SETUP_7POINT1 | BACK_CENTER | SETUP_HEIGHT_ALL | TOP), ///< All speakers. - }; - - [UnityEngine.Tooltip("A bit field, whose channel identifiers depend on AkChannelConfigType (up to 20).")] - [AkEnumFlag(typeof(ChannelMask))] - public ChannelMask m_ChannelMask = ChannelMask.NONE; - - [UnityEngine.Tooltip("The number of channels, identified (deduced from channel mask) or anonymous (set directly).")] - public uint m_NumberOfChannels = 0; - - public void CopyTo(AkChannelConfig config) - { - switch (m_ChannelConfigType) - { - case ChannelConfigType.Anonymous: - config.SetAnonymous(m_NumberOfChannels); - break; - - case ChannelConfigType.Standard: - config.SetStandard((uint)m_ChannelMask); - break; - - case ChannelConfigType.Ambisonic: - config.SetAmbisonic(m_NumberOfChannels); - break; - } - } - } - - [UnityEngine.Tooltip("Channel configuration for this output. Hardware might not support the selected configuration.")] - public ChannelConfiguration m_ChannelConfig = new ChannelConfiguration(); - - public void CopyTo(AkOutputSettings settings) - { - settings.audioDeviceShareset = string.IsNullOrEmpty(m_AudioDeviceShareset) ? AkSoundEngine.AK_INVALID_UNIQUE_ID : AkUtilities.ShortIDGenerator.Compute(m_AudioDeviceShareset); - settings.idDevice = m_DeviceID; - settings.ePanningRule = (AkPanningRule)m_PanningRule; - m_ChannelConfig.CopyTo(settings.channelConfig); - } -} - -[System.Serializable] -public partial class AkCommonUserSettings -{ - [UnityEngine.Tooltip("Path for the SoundBanks. This must contain one sub folder per platform, with the same as in the Wwise project.")] - public string m_BasePath = AkBasePathGetter.DefaultBasePath; - - [UnityEngine.Tooltip("Language sub-folder used at startup.")] - public string m_StartupLanguage = "English(US)"; - - [UnityEngine.Tooltip("Enable Wwise engine logging. This is used to turn on/off the logging of the Wwise engine.")] - public bool m_EngineLogging = AkCallbackManager.InitializationSettings.DefaultIsLoggingEnabled; - - [UnityEngine.Tooltip("Maximum number of automation paths for positioning sounds.")] - public uint m_MaximumNumberOfPositioningPaths = 255; - - [UnityEngine.Tooltip("Size of the command queue.")] - public uint m_CommandQueueSize = 256 * 1024; - - [UnityEngine.Tooltip("Number of samples per audio frame (256, 512, 1024, or 2048).")] - public uint m_SamplesPerFrame = 1024; - - [UnityEngine.Tooltip("Main output device settings.")] - public AkCommonOutputSettings m_MainOutputSettings; - - protected static string GetPluginPath() - { -#if UNITY_EDITOR_WIN - return System.IO.Path.GetFullPath(AkUtilities.GetPathInPackage(@"Runtime\Plugins\Windows\x86_64\DSP")); -#elif UNITY_EDITOR_OSX - return System.IO.Path.GetFullPath(AkUtilities.GetPathInPackage("Runtime/Plugins/Mac/DSP")); -#elif UNITY_STANDALONE_WIN - string potentialPath = System.IO.Path.Combine(UnityEngine.Application.dataPath, "Plugins" + System.IO.Path.DirectorySeparatorChar); - string architectureName = "x86"; -#if UNITY_64 - architectureName += "_64"; -#endif - if(System.IO.File.Exists(System.IO.Path.Combine(potentialPath, "AkSoundEngine.dll"))) - { - return potentialPath; - } - else if(System.IO.File.Exists(System.IO.Path.Combine(potentialPath, architectureName, "AkSoundEngine.dll"))) - { - return System.IO.Path.Combine(potentialPath, architectureName); - } - else - { - UnityEngine.Debug.Log("Cannot find Wwise plugin path"); - return null; - } -#elif UNITY_ANDROID || UNITY_WSA - return null; -#elif UNITY_STADIA - return System.IO.Path.Combine(UnityEngine.Application.dataPath, ".." + System.IO.Path.DirectorySeparatorChar); -#else - return System.IO.Path.Combine(UnityEngine.Application.dataPath, "Plugins" + System.IO.Path.DirectorySeparatorChar); -#endif - } - - public virtual void CopyTo(AkInitSettings settings) - { - settings.uMaxNumPaths = m_MaximumNumberOfPositioningPaths; - settings.uCommandQueueSize = m_CommandQueueSize; - settings.uNumSamplesPerFrame = m_SamplesPerFrame; - m_MainOutputSettings.CopyTo(settings.settingsMainOutput); - settings.szPluginDLLPath = GetPluginPath(); - UnityEngine.Debug.Log("WwiseUnity: Setting Plugin DLL path to: " + (settings.szPluginDLLPath == null ? "NULL" : settings.szPluginDLLPath)); - } - - [UnityEngine.Tooltip("Multiplication factor for all streaming look-ahead heuristic values.")] - [UnityEngine.Range(0, 1)] - public float m_StreamingLookAheadRatio = 1.0f; - - public void CopyTo(AkMusicSettings settings) - { - settings.fStreamingLookAheadRatio = m_StreamingLookAheadRatio; - } - - public void CopyTo(AkStreamMgrSettings settings) - { - } - - public virtual void CopyTo(AkDeviceSettings settings) { } - - [UnityEngine.Tooltip("Sampling Rate. Default is 48000 Hz. Use 24000hz for low quality. Any positive reasonable sample rate is supported; however, be careful setting a custom value. Using an odd or really low sample rate may cause the sound engine to malfunction.")] - public uint m_SampleRate = 48000; - - [UnityEngine.Tooltip("Number of refill buffers in voice buffer. Set to 2 for double-buffered, defaults to 4.")] - public ushort m_NumberOfRefillsInVoice = 4; - - partial void SetSampleRate(AkPlatformInitSettings settings); - - public virtual void CopyTo(AkPlatformInitSettings settings) - { - SetSampleRate(settings); - settings.uNumRefillsInVoice = m_NumberOfRefillsInVoice; - } - - [System.Serializable] - public class SpatialAudioSettings - { - [UnityEngine.Tooltip("Maximum number of portals that sound can propagate through.")] - [UnityEngine.Range(0, AkSoundEngine.AK_MAX_SOUND_PROPAGATION_DEPTH)] - public uint m_MaxSoundPropagationDepth = AkSoundEngine.AK_MAX_SOUND_PROPAGATION_DEPTH; - - [UnityEngine.Tooltip("Distance (in game units) that an emitter or listener has to move to trigger a recalculation of reflections/diffraction. Larger values can reduce the CPU load at the cost of reduced accuracy.")] - public float m_MovementThreshold = 1.0f; - - [UnityEngine.Tooltip("The number of primary rays used in stochastic ray casting.")] - /// The number of primary rays used in stochastic ray casting. - public uint m_NumberOfPrimaryRays = 100; - - [UnityEngine.Range(0, 4)] - [UnityEngine.Tooltip("The maximum number of reflections that will be processed for a sound path before it reaches the listener.")] - [UnityEngine.Serialization.FormerlySerializedAs("m_ReflectionsOrder")] - /// The maximum number of reflections that will be processed for a sound path before it reaches the listener. - /// Valid range: 1-4. - public uint m_MaxReflectionOrder = 1; - - [UnityEngine.Tooltip("Length of the rays that are cast inside Spatial Audio. Effectively caps the maximum length of an individual segment in a reflection or diffraction path.")] - /// Length of the rays that are cast inside Spatial Audio. Effectively caps the maximum length of an individual segment in a reflection or diffraction path. - public float m_MaxPathLength = 10000.0f; - - [UnityEngine.Tooltip("Controls the maximum percentage of an audio frame used by the raytracing engine. Percentage [0, 100] of the current audio frame. A value of 0 indicates no limit on the amount of CPU used for raytracing.")] - /// Controls the maximum percentage of an audio frame used by the raytracing engine. Percentage [0, 100] of the current audio frame. A value of 0 indicates no limit on the amount of CPU used for raytracing. - public float m_CPULimitPercentage = 0.0f; - - [UnityEngine.Tooltip("Enable computation of diffraction along reflection paths.")] - [UnityEngine.Serialization.FormerlySerializedAs("m_EnableDiffraction")] - /// Enable computation of diffraction along reflection paths. - public bool m_EnableDiffractionOnReflections = true; - - [UnityEngine.Tooltip("Enable computation of geometric diffraction and transmission paths for all sources that have that have the \"Enable Diffraction and Transmission\" box checked in the Positioning tab of the Wwise Property Editor. This flag enables sound paths around (diffraction) and thorugh (transmission) geometry. Setting to EnableGeometricDiffractionAndTransmission to false implies that geometry is only to be used for reflection calculation. Diffraction edges must be enabled on geometry for diffraction calculation. If EnableGeometricDiffractionAndTransmission is false but a sound has \"Enable Diffraction and Transmission\" checked in the positioning tab of the authoring tool, the sound will only diffract through portals but pass through geometry as if it is not there. One would typically disable this setting if the game intends to perform its own obstruction calculation, but in the situation where geometry is still passed to spatial audio for reflection calculation.")] - [UnityEngine.Serialization.FormerlySerializedAs("m_EnableDirectPathDiffraction")] - /// Enable direct path diffraction. - public bool m_EnableGeometricDiffractionAndTransmission = true; - - [UnityEngine.Tooltip("An emitter that is diffracted through a portal or around geometry will have its apparent or virtual position calculated by Wwise Spatial Audio and passed on to the sound engine.")] - /// An emitter that is diffracted through a portal or around geometry will have its apparent or virtual position calculated by Wwise Spatial Audio and passed on to the sound engine. - public bool m_CalcEmitterVirtualPosition = true; - - [UnityEngine.Tooltip("Use the Wwise obstruction curve for modeling the effect of diffraction on a sound. Diffraction is only applied to sounds that have the \"Enable Diffraction and Transmission\" box checked in the Positioning tab of the Wwise Property Editor. Diffraction can also be applied using the diffraction built-in parameter, mapped to an RTPC (the built-in parameter is populated whether or not UseObstruction is checked). While the obstruction curve is a global setting for all sounds, using it to simulate diffraction is preferred over an RTPC, because it provides greater accuracy when modeling multiple diffraction paths, or a combination of diffraction and transmission paths. This is due to the fact that RTPCs can not be separately applied to individual sound paths. Only the path with the least amount of diffraction is sent to the RTPC.")] - /// Use the Wwise obstruction curve for modeling the effect of diffraction on a sound. Diffraction is only applied to sounds that have the \"Enable Diffraction and Transmission\" box checked in the Positioning tab of the Wwise Property Editor. Diffraction can also be applied using the diffraction built-in parameter, mapped to an RTPC (the built-in parameter is populated whether or not UseObstruction is checked). While the obstruction curve is a global setting for all sounds, using it to simulate diffraction is preferred over an RTPC, because it provides greater accuracy when modeling multiple diffraction paths, or a combination of diffraction and transmission paths. This is due to the fact that RTPCs can not be separately applied to individual sound paths. Only the path with the least amount of diffraction is sent to the RTPC. - public bool m_UseObstruction = true; - - [UnityEngine.Tooltip("Use the Wwise occlusion curve for modeling the effect of transmission loss on a sound. The transmission loss factor is applied using the occlusion curve defined in the wwise project settings. Transmission loss is only applied to sounds that have the \"Enable Diffraction and Transmission\" box checked in the Positioning tab of the Wwise Property Editor. Transmission loss can also be applied using the transmission loss built-in parameter, mapped to an RTPC (the built-in parameter is populated whether or not UseOcclusion is checked). While the occlusion curve is a global setting for all sounds, using it to simulate transmission loss is preferred over an RTPC, because it provides greater accuracy when modeling both transmission and diffraction. This is due to the fact that RTPCs can not be applied to individual sound paths, therefore any parameter mapped to a transmission loss RTPC will also affect any potential diffraction paths originating from an emitter.")] - /// Use the Wwise occlusion curve for modeling the effect of transmission loss on a sound. The transmission loss factor is applied using the occlusion curve defined in the wwise project settings. Transmission loss is only applied to sounds that have the \"Enable Diffraction and Transmission\" box checked in the Positioning tab of the Wwise Property Editor. Transmission loss can also be applied using the transmission loss built-in parameter, mapped to an RTPC (the built-in parameter is populated whether or not UseOcclusion is checked). While the occlusion curve is a global setting for all sounds, using it to simulate transmission loss is preferred over an RTPC, because it provides greater accuracy when modeling both transmission and diffraction. This is due to the fact that RTPCs can not be applied to individual sound paths, therefore any parameter mapped to a transmission loss RTPC will also affect any potential diffraction paths originating from an emitter. - public bool m_UseOcclusion = true; - } - - [UnityEngine.Tooltip("Spatial audio common settings.")] - public SpatialAudioSettings m_SpatialAudioSettings; - - public virtual void CopyTo(AkSpatialAudioInitSettings settings) - { - settings.uMaxSoundPropagationDepth = m_SpatialAudioSettings.m_MaxSoundPropagationDepth; - settings.fMovementThreshold = m_SpatialAudioSettings.m_MovementThreshold; - settings.uNumberOfPrimaryRays = m_SpatialAudioSettings.m_NumberOfPrimaryRays; - settings.uMaxReflectionOrder = m_SpatialAudioSettings.m_MaxReflectionOrder; - settings.fMaxPathLength = m_SpatialAudioSettings.m_MaxPathLength; - settings.fCPULimitPercentage = m_SpatialAudioSettings.m_CPULimitPercentage; - settings.bEnableDiffractionOnReflection = m_SpatialAudioSettings.m_EnableDiffractionOnReflections; - settings.bEnableGeometricDiffractionAndTransmission = m_SpatialAudioSettings.m_EnableGeometricDiffractionAndTransmission; - settings.bCalcEmitterVirtualPosition = m_SpatialAudioSettings.m_CalcEmitterVirtualPosition; - settings.bUseObstruction = m_SpatialAudioSettings.m_UseObstruction; - settings.bUseOcclusion = m_SpatialAudioSettings.m_UseOcclusion; - } - - public virtual void CopyTo(AkUnityPlatformSpecificSettings settings) { } - - public virtual void Validate() - { - if (m_SpatialAudioSettings.m_MovementThreshold < 0.0f) - { - m_SpatialAudioSettings.m_MovementThreshold = 0.0f; - } - - if (m_SpatialAudioSettings.m_MaxPathLength < 0.0f) - { - m_SpatialAudioSettings.m_MaxPathLength = 0.0f; - } - - if (m_SpatialAudioSettings.m_CPULimitPercentage < 0.0f) - { - m_SpatialAudioSettings.m_CPULimitPercentage = 0.0f; - } - else if (m_SpatialAudioSettings.m_CPULimitPercentage > 100.0f) - { - m_SpatialAudioSettings.m_CPULimitPercentage = 100.0f; - } - } -} - -[System.Serializable] -public class AkCommonAdvancedSettings -{ - [UnityEngine.Tooltip("Size of memory pool for I/O (for automatic streams). It is passed directly to AK::MemoryMgr::CreatePool(), after having been rounded down to a multiple of uGranularity.")] - public uint m_IOMemorySize = 2 * 1024 * 1024; - - [UnityEngine.Tooltip("Targeted 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 m_TargetAutoStreamBufferLengthMs = 380.0f; - - [UnityEngine.Tooltip("If true the device attempts to reuse IO buffers that have already been streamed from disk. This is particularly useful when streaming small looping sounds. The drawback is a small CPU hit when allocating memory, and a slightly larger memory footprint in the StreamManager pool.")] - public bool m_UseStreamCache = false; - - [UnityEngine.Tooltip("Maximum number of bytes that can be \"pinned\" using AK::SoundEngine::PinEventInStreamCache() or AK::IAkStreamMgr::PinFileInCache()")] - public uint m_MaximumPinnedBytesInCache = unchecked((uint)(-1)); - - public virtual void CopyTo(AkDeviceSettings settings) - { - settings.uIOMemorySize = m_IOMemorySize; - settings.fTargetAutoStmBufferLength = m_TargetAutoStreamBufferLengthMs; - settings.bUseStreamCache = m_UseStreamCache; - settings.uMaxCachePinnedBytes = m_MaximumPinnedBytesInCache; - } - - [UnityEngine.Tooltip("Set to true to enable AK::SoundEngine::PrepareGameSync usage.")] - public bool m_EnableGameSyncPreparation = false; - - [UnityEngine.Tooltip("Number of quanta ahead when continuous containers should instantiate a new voice before which next sounds should start playing. This look-ahead time allows I/O to occur, and is especially useful to reduce the latency of continuous containers with trigger rate or sample-accurate transitions.")] - public uint m_ContinuousPlaybackLookAhead = 1; - - [UnityEngine.Tooltip("Size of the monitoring queue pool. This parameter is not used in Release build.")] - public uint m_MonitorQueuePoolSize = 1024 * 1024; - - [UnityEngine.Tooltip("Amount of time to wait for hardware devices to trigger an audio interrupt. If there is no interrupt after that time, the sound engine will revert to silent mode and continue operating until the hardware finally comes back.")] - public uint m_MaximumHardwareTimeoutMs = 1000; - - [UnityEngine.Tooltip("Debug setting: Enable checks for out-of-range (and NAN) floats in the processing code. Do not enable in any normal usage, this setting uses a lot of CPU. Will print error messages in the log if invalid values are found at various point in the pipeline. Contact AK Support with the new error messages for more information.")] - public bool m_DebugOutOfRangeCheckEnabled = false; - - [UnityEngine.Tooltip("Debug setting: Only used when bDebugOutOfRangeCheckEnabled is true. This defines the maximum values samples can have. Normal audio must be contained within +1/-1. This limit should be set higher to allow temporary or short excursions out of range. Default is 16.")] - public float m_DebugOutOfRangeLimit = 16.0f; - - public virtual void CopyTo(AkInitSettings settings) - { - settings.bEnableGameSyncPreparation = m_EnableGameSyncPreparation; - settings.uContinuousPlaybackLookAhead = m_ContinuousPlaybackLookAhead; - settings.uMonitorQueuePoolSize = m_MonitorQueuePoolSize; - settings.uMaxHardwareTimeoutMs = m_MaximumHardwareTimeoutMs; - settings.bDebugOutOfRangeCheckEnabled = m_DebugOutOfRangeCheckEnabled; - settings.fDebugOutOfRangeLimit = m_DebugOutOfRangeLimit; - } - - public virtual void CopyTo(AkPlatformInitSettings settings) { } - - public virtual void CopyTo(AkUnityPlatformSpecificSettings settings) { } - - [UnityEngine.Tooltip("The state of the \"in_bRenderAnyway\" argument passed to the AkSoundEngine.Suspend() function when the \"OnApplicationFocus\" Unity callback is received with \"false\" as its argument.")] - public bool m_RenderDuringFocusLoss; - - [UnityEngine.Tooltip("Sets the sub-folder underneath UnityEngine.Application.persistentDataPath that will be used as the SoundBank base path. This is useful when the Init.bnk needs to be downloaded. Setting this to an empty string uses the typical SoundBank base path resolution. Setting this to \".\" uses UnityEngine.Application.persistentDataPath.")] - public string m_SoundBankPersistentDataPath; - - [UnityEngine.Tooltip("Use Async Open in the low-level IO hook.")] - public bool m_UseAsyncOpen = false; -} - -[System.Serializable] -public class AkCommonCommSettings -{ - [UnityEngine.Tooltip("Size of the communication pool.")] - public uint m_PoolSize = 256 * 1024; - - public static ushort DefaultDiscoveryBroadcastPort = 24024; - - [UnityEngine.Tooltip("The port where the authoring application broadcasts \"Game Discovery\" requests to discover games running on the network. Default value: 24024. (Cannot be set to 0)")] - public ushort m_DiscoveryBroadcastPort = DefaultDiscoveryBroadcastPort; - - [UnityEngine.Tooltip("The \"command\" channel port. Set to 0 to request a dynamic/ephemeral port.")] - public ushort m_CommandPort; - - [UnityEngine.Tooltip("The \"notification\" channel port. Set to 0 to request a dynamic/ephemeral port.")] - public ushort m_NotificationPort; - - [UnityEngine.Tooltip("Indicates whether the communication system should be initialized. Some consoles have critical requirements for initialization of their communications system. Set to false only if your game already uses sockets before sound engine initialization.")] - public bool m_InitializeSystemComms = true; - - [UnityEngine.Tooltip("The name used to identify this game within the authoring application. Leave empty to use \"UnityEngine.Application.productName\".")] - public string m_NetworkName; - - [UnityEngine.Tooltip("HTCS communication can only be used with a Nintendo Switch Development Build")] - public AkCommunicationSettings.AkCommSystem m_commSystem = AkCommunicationSettings.AkCommSystem.AkCommSystem_Socket; - - public virtual void CopyTo(AkCommunicationSettings settings) - { - settings.uPoolSize = m_PoolSize; - settings.uDiscoveryBroadcastPort = m_DiscoveryBroadcastPort; - settings.uCommandPort = m_CommandPort; - settings.uNotificationPort = m_NotificationPort; - settings.bInitSystemLib = m_InitializeSystemComms; - settings.commSystem = m_commSystem; - - string networkName = m_NetworkName; - if (string.IsNullOrEmpty(networkName)) - networkName = UnityEngine.Application.productName; - -#if UNITY_EDITOR - networkName += " (Editor)"; -#endif - - settings.szAppNetworkName = networkName; - } - - public virtual void Validate() { } -} - -public abstract class AkCommonPlatformSettings : AkBasePlatformSettings -{ - protected abstract AkCommonUserSettings GetUserSettings(); - - protected abstract AkCommonAdvancedSettings GetAdvancedSettings(); - - protected abstract AkCommonCommSettings GetCommsSettings(); - - public override AkInitializationSettings AkInitializationSettings - { - get - { - var settings = base.AkInitializationSettings; - var userSettings = GetUserSettings(); - userSettings.CopyTo(settings.deviceSettings); - userSettings.CopyTo(settings.streamMgrSettings); - userSettings.CopyTo(settings.initSettings); - userSettings.CopyTo(settings.platformSettings); - userSettings.CopyTo(settings.musicSettings); - userSettings.CopyTo(settings.unityPlatformSpecificSettings); - - var advancedSettings = GetAdvancedSettings(); - advancedSettings.CopyTo(settings.deviceSettings); - advancedSettings.CopyTo(settings.initSettings); - advancedSettings.CopyTo(settings.platformSettings); - advancedSettings.CopyTo(settings.unityPlatformSpecificSettings); - - settings.useAsyncOpen = advancedSettings.m_UseAsyncOpen; - - return settings; - } - } - - public override AkSpatialAudioInitSettings AkSpatialAudioInitSettings - { - get - { - var settings = base.AkSpatialAudioInitSettings; - GetUserSettings().CopyTo(settings); - return settings; - } - } - - public override AkCallbackManager.InitializationSettings CallbackManagerInitializationSettings - { - get - { - return new AkCallbackManager.InitializationSettings { IsLoggingEnabled = GetUserSettings().m_EngineLogging }; - } - } - - public override string InitialLanguage - { - get { return GetUserSettings().m_StartupLanguage; } - } - - public override string SoundBankPersistentDataPath - { - get { return GetAdvancedSettings().m_SoundBankPersistentDataPath; } - } - - public override bool RenderDuringFocusLoss - { - get { return GetAdvancedSettings().m_RenderDuringFocusLoss; } - } - - public override string SoundbankPath - { - get { return GetUserSettings().m_BasePath; } - } - - public override bool UseAsyncOpen - { - get { return GetAdvancedSettings().m_UseAsyncOpen; } - } - - public override AkCommunicationSettings AkCommunicationSettings - { - get - { - var settings = base.AkCommunicationSettings; - GetCommsSettings().CopyTo(settings); - return settings; - } - } - -#region parameter validation -#if UNITY_EDITOR - void OnValidate() - { - GetUserSettings().Validate(); - GetCommsSettings().Validate(); - } -#endif -#endregion -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCommonPlatformSettings.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkCommonPlatformSettings.cs.meta deleted file mode 100644 index a2a860f6b..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkCommonPlatformSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: de10bfb735d081a4a894a89564ba5c46 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkEnumFlagAttribute.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkEnumFlagAttribute.cs deleted file mode 100644 index 8d2f2e2d6..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkEnumFlagAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -[System.AttributeUsage(System.AttributeTargets.Field, Inherited = true)] -public class AkEnumFlagAttribute : UnityEngine.PropertyAttribute -{ - public System.Type Type; - - public AkEnumFlagAttribute(System.Type type) - { - Type = type; - } - -#if UNITY_EDITOR - [UnityEditor.CustomPropertyDrawer(typeof(AkEnumFlagAttribute))] - public class PropertyDrawer : UnityEditor.PropertyDrawer - { - public override void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) - { - UnityEditor.EditorGUI.BeginProperty(position, label, property); - var flagAttribute = (AkEnumFlagAttribute)attribute; - property.longValue = UnityEditor.EditorGUI.EnumFlagsField(position, new UnityEngine.GUIContent(label.text, AkUtilities.GetTooltip(property)), (System.Enum)System.Enum.ToObject(flagAttribute.Type, property.longValue)).GetHashCode(); - UnityEditor.EditorGUI.EndProperty(); - } - } -#endif -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkEnumFlagAttribute.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkEnumFlagAttribute.cs.meta deleted file mode 100644 index 0abcdc3e1..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkEnumFlagAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8b13a179121095a4b855581dede362ff -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkLogger.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkLogger.cs deleted file mode 100644 index fd8469689..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkLogger.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - - -public class AkLogger -{ - // @todo sjl: Have SWIG specify the delegate's signature (possibly in AkSoundEngine) so that we can automatically determine the appropriate string marshaling. - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - public delegate void ErrorLoggerInteropDelegate( - [System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPStr)] - string message); - - private static AkLogger ms_Instance = new AkLogger(); - private ErrorLoggerInteropDelegate errorLoggerDelegate = WwiseInternalLogError; - - private AkLogger() - { - if (ms_Instance == null) - { - ms_Instance = this; - AkSoundEngine.SetErrorLogger(errorLoggerDelegate); - } - } - - public static AkLogger Instance { get { return ms_Instance; } } - - ~AkLogger() - { - if (ms_Instance == this) - { - ms_Instance = null; - errorLoggerDelegate = null; - AkSoundEngine.SetErrorLogger(); - } - } - - public void Init() - { - // used to force instantiation of this singleton - } - - [AOT.MonoPInvokeCallback(typeof(ErrorLoggerInteropDelegate))] - public static void WwiseInternalLogError(string message) - { - UnityEngine.Debug.LogErrorFormat("Wwise: {0}", message); - } - - public static void Message(string message) - { - UnityEngine.Debug.LogFormat("WwiseUnity: {0}", message); - } - - public static void Warning(string message) - { - UnityEngine.Debug.LogWarningFormat("WwiseUnity: {0}", message); - } - - public static void Error(string message) - { - UnityEngine.Debug.LogErrorFormat("WwiseUnity: {0}", message); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkLogger.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkLogger.cs.meta deleted file mode 100644 index 146cd8cf4..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkLogger.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0092e85c98e0fb64888320f610438756 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkShowOnlyAttribute.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkShowOnlyAttribute.cs deleted file mode 100644 index c1677239a..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkShowOnlyAttribute.cs +++ /dev/null @@ -1,21 +0,0 @@ -public class AkShowOnlyAttribute : UnityEngine.PropertyAttribute -{ -#if UNITY_EDITOR - [UnityEditor.CustomPropertyDrawer(typeof(AkShowOnlyAttribute))] - public class PropertyDrawer : UnityEditor.PropertyDrawer - { - public override float GetPropertyHeight(UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) - { - return UnityEditor.EditorGUI.GetPropertyHeight(property, label, true); - } - - public override void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) - { - var saveEnabled = UnityEngine.GUI.enabled; - UnityEngine.GUI.enabled = false; - UnityEditor.EditorGUI.PropertyField(position, property, label, true); - UnityEngine.GUI.enabled = saveEnabled; - } - } -#endif // #if UNITY_EDITOR -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkShowOnlyAttribute.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkShowOnlyAttribute.cs.meta deleted file mode 100644 index 868c2857c..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkShowOnlyAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7af1baad3892eef46b6ae43833cbe5a8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkSoundEngine.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkSoundEngine.cs deleted file mode 100644 index 3c5796a34..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkSoundEngine.cs +++ /dev/null @@ -1,1185 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Contains C# functions exposed from the Wwise C++ API. -/// -/// The AkSoundEngine class contains functions converted to C# from the following C++ namespaces: -/// - AK::Monitor -/// - AK::MusicEngine -/// - AK::SoundEngine -/// - AK::SoundEngine::DynamicDialogue -/// - AK::SoundEngine::Query -/// - AK::SpatialAudio -public partial class AkSoundEngine -{ -#if UNITY_EDITOR - public static bool EditorIsSoundEngineLoaded { get; set; } -#endif - - #region String Marshalling - - /// - /// Converts "char*" C-strings to C# strings. - /// - /// "char*" memory pointer passed to C# as an IntPtr. - /// Converted string. - public static string StringFromIntPtrString(System.IntPtr ptr) - { - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(ptr); - } - - /// - /// Converts "wchar_t*" C-strings to C# strings. - /// - /// "wchar_t*" memory pointer passed to C# as an IntPtr. - /// Converted string. - public static string StringFromIntPtrWString(System.IntPtr ptr) - { - return System.Runtime.InteropServices.Marshal.PtrToStringUni(ptr); - } - #endregion - - #region GameObject Hash Function - - /// - /// The type for hash functions used to convert a Unity Game Object into an integer. - /// - /// The Unity Game Object. - /// The AkGameObjectID used by the sound engine. - public delegate ulong GameObjectHashFunction(UnityEngine.GameObject gameObject); - - private static ulong InternalGameObjectHash(UnityEngine.GameObject gameObject) - { - return gameObject == null ? AK_INVALID_GAME_OBJECT : (ulong) gameObject.GetInstanceID(); - } - - /// - /// The user assignable hash function used to convert a Unity Game Object into an AkGameObjectID used by the sound - /// engine. Used by GetAkGameObjectID(). - /// - public static GameObjectHashFunction GameObjectHash - { - set { gameObjectHash = value == null ? InternalGameObjectHash : value; } - } - - private static GameObjectHashFunction gameObjectHash = InternalGameObjectHash; - - /// - /// The hash function used to convert a Unity Game Object into an AkGameObjectID used by the sound engine. - /// - public static ulong GetAkGameObjectID(UnityEngine.GameObject gameObject) - { - return gameObjectHash(gameObject); - } - - #endregion - - #region Registration Functions - - /// - /// Registers a Unity Game Object with an ID obtained from GetAkGameObjectID(). - /// - /// The Unity Game Object. - /// - public static AKRESULT RegisterGameObj(UnityEngine.GameObject gameObject) - { - var id = GetAkGameObjectID(gameObject); - var res = (AKRESULT) AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal(id); - PostRegisterGameObjUserHook(res, gameObject, id); - return res; - } - - /// - /// Registers a Unity Game Object with an ID obtained from GetAkGameObjectID(). - /// - /// The Unity Game Object. - /// The name that is visible in the Wwise Profiler. - /// - public static AKRESULT RegisterGameObj(UnityEngine.GameObject gameObject, string name) - { - var id = GetAkGameObjectID(gameObject); - var res = (AKRESULT) AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal_WithName(id, name); - PostRegisterGameObjUserHook(res, gameObject, id); - return res; - } - - /// - /// Unregisters a Unity Game Object with an ID obtained from GetAkGameObjectID(). - /// - /// The Unity Game Object. - /// - public static AKRESULT UnregisterGameObj(UnityEngine.GameObject gameObject) - { - var id = GetAkGameObjectID(gameObject); - var res = (AKRESULT) AkSoundEnginePINVOKE.CSharp_UnregisterGameObjInternal(id); - PostUnregisterGameObjUserHook(res, gameObject, id); - return res; - } - #endregion - - #region Helper Functions - - public static string WwiseVersion - { - get - { - var majorMinor = GetMajorMinorVersion(); - var subminorBuild = GetSubminorBuildVersion(); - var major = majorMinor >> 16; - var minor = majorMinor & 0xFFFF; - var subMinor = subminorBuild >> 16; - var build = subminorBuild & 0xFFFF; - return string.Format("{0}.{1}.{2} Build {3}", major, minor, subMinor, build); - } - } - - public static AKRESULT SetObjectPosition(UnityEngine.GameObject gameObject, UnityEngine.Transform transform) - { - var id = GetAkGameObjectID(gameObject); - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectPosition(id, transform.position, transform.forward, transform.up); - } - - public static AKRESULT SetObjectPosition(UnityEngine.GameObject gameObject, float posX, float posY, float posZ, - float frontX, float frontY, float frontZ, float topX, float topY, float topZ) - { - var id = GetAkGameObjectID(gameObject); - var position = new UnityEngine.Vector3(posX, posY, posZ); - var forward = new UnityEngine.Vector3(frontX, frontY, frontZ); - var up = new UnityEngine.Vector3(topX, topY, topZ); - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectPosition(id, position, forward, up); - } - - #endregion - - #region User Hooks - - public static void PreGameObjectAPICall(UnityEngine.GameObject gameObject, ulong id) - { - PreGameObjectAPICallUserHook(gameObject, id); - } - - /// - /// User hook called within all Wwise integration functions that receive GameObjects and do not perform - /// (un)registration. This is called - /// before values are sent to the native plugin code. An example use could be to register game objects that were not - /// previously registered. - /// - /// The GameObject being processed. - /// The ulong returned from GameObjectHash that represents this GameObject in Wwise. - static partial void PreGameObjectAPICallUserHook(UnityEngine.GameObject gameObject, ulong id); - - /// - /// User hook called after RegisterGameObj(). An example use could be to add the id and gameObject to a dictionary upon - /// AK_Success. - /// - /// The result from calling RegisterGameObj() on gameObject. - /// The GameObject that RegisterGameObj() was called on. - /// The ulong returned from GameObjectHash that represents this GameObject in Wwise. - static partial void PostRegisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id); - - /// - /// User hook called after UnregisterGameObj(). An example use could be to remove the id and gameObject from a - /// dictionary upon AK_Success. - /// - /// The result from calling UnregisterGameObj() on gameObject. - /// The GameObject that UnregisterGameObj() was called on. - /// The ulong returned from GameObjectHash that represents this GameObject in Wwise. - static partial void PostUnregisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id); - - #endregion - - #region Deprecation Strings - public const string Deprecation_2018_1_2 = "This functionality is deprecated as of Wwise v2018.1.2 and will be removed in a future release."; - public const string Deprecation_2018_1_6 = "This functionality is deprecated as of Wwise v2018.1.6 and will be removed in a future release."; - public const string Deprecation_2019_2_0 = "This functionality is deprecated as of Wwise v2019.2.0 and will be removed in a future release."; - public const string Deprecation_2019_2_2 = "This functionality is deprecated as of Wwise v2019.2.2 and will be removed in a future release."; - public const string Deprecation_2021_1_0 = "This functionality is deprecated as of Wwise v2021.1.0 and will be removed in a future release."; - #endregion - - #region GameObject wrappers - public static uint DynamicSequenceOpen(UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, AkDynamicSequenceType in_eDynamicSequenceType) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_0(in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, (int)in_eDynamicSequenceType); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint DynamicSequenceOpen(UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_1(in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint DynamicSequenceOpen(UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { - uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_2(in_gameObjectID_id); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_0(in_eventID, in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_1(in_eventID, in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_2(in_eventID, in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_3(in_eventID, in_gameObjectID_id); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_4(in_pszEventName, in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer(), in_PlayingID); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals, AkExternalSourceInfoArray in_pExternalSources) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_5(in_pszEventName, in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero, in_cExternals, in_pExternalSources.GetBuffer()); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - in_pCookie = AkCallbackManager.EventCallbackPackage.Create(in_pfnCallback, in_pCookie, ref in_uFlags); - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_6(in_pszEventName, in_gameObjectID_id, in_uFlags, in_uFlags != 0 ? (global::System.IntPtr)1 : global::System.IntPtr.Zero, in_pCookie != null ? (global::System.IntPtr)in_pCookie.GetHashCode() : global::System.IntPtr.Zero); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static uint PostEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { - uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_7(in_pszEventName, in_gameObjectID_id); - AkCallbackManager.SetLastAddedPlayingID(ret); - return ret; - } - } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_0(in_eventID, (int)in_ActionType, in_gameObjectID_id, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID); } - } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_1(in_eventID, (int)in_ActionType, in_gameObjectID_id, in_uTransitionDuration, (int)in_eFadeCurve); } - } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_2(in_eventID, (int)in_ActionType, in_gameObjectID_id, in_uTransitionDuration); } - } - - public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_3(in_eventID, (int)in_ActionType, in_gameObjectID_id); } - } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_5(in_pszEventName, (int)in_ActionType, in_gameObjectID_id, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID); } - } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_6(in_pszEventName, (int)in_ActionType, in_gameObjectID_id, in_uTransitionDuration, (int)in_eFadeCurve); } - } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_7(in_pszEventName, (int)in_ActionType, in_gameObjectID_id, in_uTransitionDuration); } - } - - public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_8(in_pszEventName, (int)in_ActionType, in_gameObjectID_id); } - } - - public static AKRESULT PostMIDIOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, AkMIDIPostArray in_pPosts, ushort in_uNumPosts) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_3(in_eventID, in_gameObjectID_id, in_pPosts.GetBuffer(), in_uNumPosts); } - } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_1(in_eventID, in_gameObjectID_id); } - } - - public static AKRESULT StopMIDIOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, uint in_playingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_StopMIDIOnEvent__SWIG_0(in_eventID, in_gameObjectID_id, in_playingID); } - } - - public static AKRESULT SeekOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_0(in_eventID, in_gameObjectID_id, in_iPosition, in_bSeekToNearestMarker, in_PlayingID); } - } - - public static AKRESULT SeekOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_1(in_eventID, in_gameObjectID_id, in_iPosition, in_bSeekToNearestMarker); } - } - - public static AKRESULT SeekOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, int in_iPosition) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_2(in_eventID, in_gameObjectID_id, in_iPosition); } - } - - public static AKRESULT SeekOnEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_3(in_pszEventName, in_gameObjectID_id, in_iPosition, in_bSeekToNearestMarker, in_PlayingID); } - } - - public static AKRESULT SeekOnEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, int in_iPosition, bool in_bSeekToNearestMarker) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_4(in_pszEventName, in_gameObjectID_id, in_iPosition, in_bSeekToNearestMarker); } - } - - public static AKRESULT SeekOnEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, int in_iPosition) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_5(in_pszEventName, in_gameObjectID_id, in_iPosition); } - } - - public static AKRESULT SeekOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker, uint in_PlayingID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - -#if (UNITY_SWITCH || UNITY_ANDROID || UNITY_STANDALONE_LINUX || UNITY_STADIA) && !UNITY_EDITOR - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_6(in_eventID, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); -#else - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_9(in_eventID, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); } -#endif - } - - public static AKRESULT SeekOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - -#if (UNITY_SWITCH || UNITY_ANDROID || UNITY_STANDALONE_LINUX || UNITY_STADIA) && !UNITY_EDITOR - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_7(in_eventID, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker); -#else - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_10(in_eventID, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker); } -#endif - } - - public static AKRESULT SeekOnEvent(uint in_eventID, UnityEngine.GameObject in_gameObjectID, float in_fPercent) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - -#if (UNITY_SWITCH || UNITY_ANDROID || UNITY_STANDALONE_LINUX || UNITY_STADIA) && !UNITY_EDITOR - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_8(in_eventID, in_gameObjectID_id, in_fPercent); -#else - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_11(in_eventID, in_gameObjectID_id, in_fPercent); } -#endif - } - - public static AKRESULT SeekOnEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker, uint in_PlayingID) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - -#if (UNITY_SWITCH || UNITY_ANDROID || UNITY_STANDALONE_LINUX || UNITY_STADIA) && !UNITY_EDITOR - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_9(in_pszEventName, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); -#else - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_12(in_pszEventName, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker, in_PlayingID); } -#endif - } - - public static AKRESULT SeekOnEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - -#if (UNITY_SWITCH || UNITY_ANDROID || UNITY_STANDALONE_LINUX || UNITY_STADIA) && !UNITY_EDITOR - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_10(in_pszEventName, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker); -#else - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_13(in_pszEventName, in_gameObjectID_id, in_fPercent, in_bSeekToNearestMarker); } -#endif - } - - public static AKRESULT SeekOnEvent(string in_pszEventName, UnityEngine.GameObject in_gameObjectID, float in_fPercent) - { - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - -#if (UNITY_SWITCH || UNITY_ANDROID || UNITY_STANDALONE_LINUX || UNITY_STADIA) && !UNITY_EDITOR - return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_11(in_pszEventName, in_gameObjectID_id, in_fPercent); -#else - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_14(in_pszEventName, in_gameObjectID_id, in_fPercent); } -#endif - } - - public static void CancelEventCallbackGameObject(UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { AkSoundEnginePINVOKE.CSharp_CancelEventCallbackGameObject(in_gameObjectID_id); } - } - - public static void StopAll(UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { AkSoundEnginePINVOKE.CSharp_StopAll__SWIG_0(in_gameObjectID_id); } - } - - public static AKRESULT SendPluginCustomGameData(uint in_busID, UnityEngine.GameObject in_busObjectID, AkPluginType in_eType, uint in_uCompanyID, uint in_uPluginID, global::System.IntPtr in_pData, uint in_uSizeInBytes) - { - - var in_busObjectID_id = AkSoundEngine.GetAkGameObjectID(in_busObjectID); - AkSoundEngine.PreGameObjectAPICall(in_busObjectID, in_busObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SendPluginCustomGameData(in_busID, in_busObjectID_id, (int)in_eType, in_uCompanyID, in_uPluginID, in_pData, in_uSizeInBytes); } - } - - public static AKRESULT SetMultiplePositions(UnityEngine.GameObject in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions, AkMultiPositionType in_eMultiPositionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_0(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), in_pPositions.m_Buffer, in_NumPositions, (int)in_eMultiPositionType); } - - public static AKRESULT SetMultiplePositions(UnityEngine.GameObject in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_1(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), in_pPositions.m_Buffer, in_NumPositions); } - - public static AKRESULT SetMultiplePositions(UnityEngine.GameObject in_GameObjectID, AkChannelEmitterArray in_pPositions, ushort in_NumPositions, AkMultiPositionType in_eMultiPositionType) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_2(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), in_pPositions.m_Buffer, in_NumPositions, (int)in_eMultiPositionType); } - - public static AKRESULT SetMultiplePositions(UnityEngine.GameObject in_GameObjectID, AkChannelEmitterArray in_pPositions, ushort in_NumPositions) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_3(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), in_pPositions.m_Buffer, in_NumPositions); } - - public static AKRESULT SetScalingFactor(UnityEngine.GameObject in_GameObjectID, float in_fAttenuationScalingFactor) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetScalingFactor(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), in_fAttenuationScalingFactor); } - - - public static AKRESULT AddListener(UnityEngine.GameObject in_emitterGameObj, UnityEngine.GameObject in_listenerGameObj) - { - - var in_emitterGameObj_id = AkSoundEngine.GetAkGameObjectID(in_emitterGameObj); - AkSoundEngine.PreGameObjectAPICall(in_emitterGameObj, in_emitterGameObj_id); - - - var in_listenerGameObj_id = AkSoundEngine.GetAkGameObjectID(in_listenerGameObj); - AkSoundEngine.PreGameObjectAPICall(in_listenerGameObj, in_listenerGameObj_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddListener(in_emitterGameObj_id, in_listenerGameObj_id); } - } - - public static AKRESULT RemoveListener(UnityEngine.GameObject in_emitterGameObj, UnityEngine.GameObject in_listenerGameObj) - { - - var in_emitterGameObj_id = AkSoundEngine.GetAkGameObjectID(in_emitterGameObj); - AkSoundEngine.PreGameObjectAPICall(in_emitterGameObj, in_emitterGameObj_id); - - - var in_listenerGameObj_id = AkSoundEngine.GetAkGameObjectID(in_listenerGameObj); - AkSoundEngine.PreGameObjectAPICall(in_listenerGameObj, in_listenerGameObj_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveListener(in_emitterGameObj_id, in_listenerGameObj_id); } - } - - public static AKRESULT AddDefaultListener(UnityEngine.GameObject in_listenerGameObj) - { - - var in_listenerGameObj_id = AkSoundEngine.GetAkGameObjectID(in_listenerGameObj); - AkSoundEngine.PreGameObjectAPICall(in_listenerGameObj, in_listenerGameObj_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_AddDefaultListener(in_listenerGameObj_id); } - } - - public static AKRESULT RemoveDefaultListener(UnityEngine.GameObject in_listenerGameObj) - { - - var in_listenerGameObj_id = AkSoundEngine.GetAkGameObjectID(in_listenerGameObj); - AkSoundEngine.PreGameObjectAPICall(in_listenerGameObj, in_listenerGameObj_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveDefaultListener(in_listenerGameObj_id); } - } - - public static AKRESULT ResetListenersToDefault(UnityEngine.GameObject in_emitterGameObj) - { - - var in_emitterGameObj_id = AkSoundEngine.GetAkGameObjectID(in_emitterGameObj); - AkSoundEngine.PreGameObjectAPICall(in_emitterGameObj, in_emitterGameObj_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetListenersToDefault(in_emitterGameObj_id); } - } - - public static AKRESULT SetListenerSpatialization(UnityEngine.GameObject in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig, float[] in_pVolumeOffsets) - { - - var in_uListenerID_id = AkSoundEngine.GetAkGameObjectID(in_uListenerID); - AkSoundEngine.PreGameObjectAPICall(in_uListenerID, in_uListenerID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerSpatialization__SWIG_0(in_uListenerID_id, in_bSpatialized, AkChannelConfig.getCPtr(in_channelConfig), in_pVolumeOffsets); } - } - - public static AKRESULT SetListenerSpatialization(UnityEngine.GameObject in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig) - { - - var in_uListenerID_id = AkSoundEngine.GetAkGameObjectID(in_uListenerID); - AkSoundEngine.PreGameObjectAPICall(in_uListenerID, in_uListenerID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerSpatialization__SWIG_1(in_uListenerID_id, in_bSpatialized, AkChannelConfig.getCPtr(in_channelConfig)); } - } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_0(in_rtpcID, in_value, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_1(in_rtpcID, in_value, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve); } - } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_2(in_rtpcID, in_value, in_gameObjectID_id, in_uValueChangeDuration); } - } - - public static AKRESULT SetRTPCValue(uint in_rtpcID, float in_value, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_3(in_rtpcID, in_value, in_gameObjectID_id); } - } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_5(in_pszRtpcName, in_value, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_6(in_pszRtpcName, in_value, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve); } - } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_7(in_pszRtpcName, in_value, in_gameObjectID_id, in_uValueChangeDuration); } - } - - public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_8(in_pszRtpcName, in_value, in_gameObjectID_id); } - } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_0(in_rtpcID, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_1(in_rtpcID, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve); } - } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_2(in_rtpcID, in_gameObjectID_id, in_uValueChangeDuration); } - } - - public static AKRESULT ResetRTPCValue(uint in_rtpcID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_3(in_rtpcID, in_gameObjectID_id); } - } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_5(in_pszRtpcName, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve, in_bBypassInternalValueInterpolation); } - } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_6(in_pszRtpcName, in_gameObjectID_id, in_uValueChangeDuration, (int)in_eFadeCurve); } - } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, UnityEngine.GameObject in_gameObjectID, int in_uValueChangeDuration) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_7(in_pszRtpcName, in_gameObjectID_id, in_uValueChangeDuration); } - } - - public static AKRESULT ResetRTPCValue(string in_pszRtpcName, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_8(in_pszRtpcName, in_gameObjectID_id); } - } - - public static AKRESULT SetSwitch(uint in_switchGroup, uint in_switchState, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_0(in_switchGroup, in_switchState, in_gameObjectID_id); } - } - - public static AKRESULT SetSwitch(string in_pszSwitchGroup, string in_pszSwitchState, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_1(in_pszSwitchGroup, in_pszSwitchState, in_gameObjectID_id); } - } - - public static AKRESULT PostTrigger(uint in_triggerID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_0(in_triggerID, in_gameObjectID_id); } - } - - public static AKRESULT PostTrigger(string in_pszTrigger, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_1(in_pszTrigger, in_gameObjectID_id); } - } - - public static AKRESULT SetGameObjectAuxSendValues(UnityEngine.GameObject in_gameObjectID, AkAuxSendArray in_aAuxSendValues, uint in_uNumSendValues) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectAuxSendValues(in_gameObjectID_id, in_aAuxSendValues.GetBuffer(), in_uNumSendValues); } - } - - public static AKRESULT SetGameObjectOutputBusVolume(UnityEngine.GameObject in_emitterObjID, UnityEngine.GameObject in_listenerObjID, float in_fControlValue) - { - - var in_emitterObjID_id = AkSoundEngine.GetAkGameObjectID(in_emitterObjID); - AkSoundEngine.PreGameObjectAPICall(in_emitterObjID, in_emitterObjID_id); - - - var in_listenerObjID_id = AkSoundEngine.GetAkGameObjectID(in_listenerObjID); - AkSoundEngine.PreGameObjectAPICall(in_listenerObjID, in_listenerObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectOutputBusVolume(in_emitterObjID_id, in_listenerObjID_id, in_fControlValue); } - } - - public static AKRESULT SetObjectObstructionAndOcclusion(UnityEngine.GameObject in_EmitterID, UnityEngine.GameObject in_ListenerID, float in_fObstructionLevel, float in_fOcclusionLevel) - { - - var in_EmitterID_id = AkSoundEngine.GetAkGameObjectID(in_EmitterID); - AkSoundEngine.PreGameObjectAPICall(in_EmitterID, in_EmitterID_id); - - - var in_ListenerID_id = AkSoundEngine.GetAkGameObjectID(in_ListenerID); - AkSoundEngine.PreGameObjectAPICall(in_ListenerID, in_ListenerID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectObstructionAndOcclusion(in_EmitterID_id, in_ListenerID_id, in_fObstructionLevel, in_fOcclusionLevel); } - } - - public static AKRESULT SetMultipleObstructionAndOcclusion(UnityEngine.GameObject in_EmitterID, UnityEngine.GameObject in_uListenerID, AkObstructionOcclusionValuesArray in_fObstructionOcclusionValues, uint in_uNumOcclusionObstruction) - { - - var in_EmitterID_id = AkSoundEngine.GetAkGameObjectID(in_EmitterID); - AkSoundEngine.PreGameObjectAPICall(in_EmitterID, in_EmitterID_id); - - - var in_uListenerID_id = AkSoundEngine.GetAkGameObjectID(in_uListenerID); - AkSoundEngine.PreGameObjectAPICall(in_uListenerID, in_uListenerID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultipleObstructionAndOcclusion(in_EmitterID_id, in_uListenerID_id, in_fObstructionOcclusionValues.GetBuffer(), in_uNumOcclusionObstruction); } - } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, UnityEngine.GameObject in_gameObjID, uint in_audioNodeID, bool in_bIsBus) - { - - var in_gameObjID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjID, in_gameObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_0((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID_id, in_audioNodeID, in_bIsBus); } - } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, UnityEngine.GameObject in_gameObjID, uint in_audioNodeID) - { - - var in_gameObjID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjID, in_gameObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_1((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID_id, in_audioNodeID); } - } - - public static AKRESULT PostCode(AkMonitorErrorCode in_eError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, UnityEngine.GameObject in_gameObjID) - { - - var in_gameObjID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjID, in_gameObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostCode__SWIG_2((int)in_eError, (int)in_eErrorLevel, in_playingID, in_gameObjID_id); } - } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, UnityEngine.GameObject in_gameObjID, uint in_audioNodeID, bool in_bIsBus) - { - - var in_gameObjID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjID, in_gameObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_0(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID_id, in_audioNodeID, in_bIsBus); } - } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, UnityEngine.GameObject in_gameObjID, uint in_audioNodeID) - { - - var in_gameObjID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjID, in_gameObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_1(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID_id, in_audioNodeID); } - } - - public static AKRESULT PostString(string in_pszError, AkMonitorErrorLevel in_eErrorLevel, uint in_playingID, UnityEngine.GameObject in_gameObjID) - { - - var in_gameObjID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjID, in_gameObjID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostString__SWIG_2(in_pszError, (int)in_eErrorLevel, in_playingID, in_gameObjID_id); } - } - - public static AKRESULT GetPosition(UnityEngine.GameObject in_GameObjectID, AkTransform out_rPosition) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPosition(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), AkTransform.getCPtr(out_rPosition)); } - - public static AKRESULT GetListenerPosition(UnityEngine.GameObject in_uIndex, AkTransform out_rPosition) - { - - var in_uIndex_id = AkSoundEngine.GetAkGameObjectID(in_uIndex); - AkSoundEngine.PreGameObjectAPICall(in_uIndex, in_uIndex_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetListenerPosition(in_uIndex_id, AkTransform.getCPtr(out_rPosition)); } - } - - public static AKRESULT GetRTPCValue(uint in_rtpcID, UnityEngine.GameObject in_gameObjectID, uint in_playingID, out float out_rValue, ref int io_rValueType) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_0(in_rtpcID, in_gameObjectID_id, in_playingID, out out_rValue, ref io_rValueType); } - } - - public static AKRESULT GetRTPCValue(string in_pszRtpcName, UnityEngine.GameObject in_gameObjectID, uint in_playingID, out float out_rValue, ref int io_rValueType) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_1(in_pszRtpcName, in_gameObjectID_id, in_playingID, out out_rValue, ref io_rValueType); } - } - - public static AKRESULT GetSwitch(uint in_switchGroup, UnityEngine.GameObject in_gameObjectID, out uint out_rSwitchState) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_0(in_switchGroup, in_gameObjectID_id, out out_rSwitchState); } - } - - public static AKRESULT GetSwitch(string in_pstrSwitchGroupName, UnityEngine.GameObject in_GameObj, out uint out_rSwitchState) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_1(in_pstrSwitchGroupName, AkSoundEngine.GetAkGameObjectID(in_GameObj), out out_rSwitchState); } - - public static AKRESULT GetGameObjectAuxSendValues(UnityEngine.GameObject in_gameObjectID, AkAuxSendArray out_paAuxSendValues, ref uint io_ruNumSendValues) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectAuxSendValues(in_gameObjectID_id, out_paAuxSendValues.GetBuffer(), ref io_ruNumSendValues); } - } - - public static AKRESULT GetGameObjectDryLevelValue(UnityEngine.GameObject in_EmitterID, UnityEngine.GameObject in_ListenerID, out float out_rfControlValue) - { - - var in_EmitterID_id = AkSoundEngine.GetAkGameObjectID(in_EmitterID); - AkSoundEngine.PreGameObjectAPICall(in_EmitterID, in_EmitterID_id); - - - var in_ListenerID_id = AkSoundEngine.GetAkGameObjectID(in_ListenerID); - AkSoundEngine.PreGameObjectAPICall(in_ListenerID, in_ListenerID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectDryLevelValue(in_EmitterID_id, in_ListenerID_id, out out_rfControlValue); } - } - - public static AKRESULT GetObjectObstructionAndOcclusion(UnityEngine.GameObject in_EmitterID, UnityEngine.GameObject in_ListenerID, out float out_rfObstructionLevel, out float out_rfOcclusionLevel) - { - - var in_EmitterID_id = AkSoundEngine.GetAkGameObjectID(in_EmitterID); - AkSoundEngine.PreGameObjectAPICall(in_EmitterID, in_EmitterID_id); - - - var in_ListenerID_id = AkSoundEngine.GetAkGameObjectID(in_ListenerID); - AkSoundEngine.PreGameObjectAPICall(in_ListenerID, in_ListenerID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetObjectObstructionAndOcclusion(in_EmitterID_id, in_ListenerID_id, out out_rfObstructionLevel, out out_rfOcclusionLevel); } - } - - public static bool GetIsGameObjectActive(UnityEngine.GameObject in_GameObjId) - { - - var in_GameObjId_id = AkSoundEngine.GetAkGameObjectID(in_GameObjId); - AkSoundEngine.PreGameObjectAPICall(in_GameObjId, in_GameObjId_id); - - { return AkSoundEnginePINVOKE.CSharp_GetIsGameObjectActive(in_GameObjId_id); } - } - - public static float GetMaxRadius(UnityEngine.GameObject in_GameObjId) - { - - var in_GameObjId_id = AkSoundEngine.GetAkGameObjectID(in_GameObjId); - AkSoundEngine.PreGameObjectAPICall(in_GameObjId, in_GameObjId_id); - - { return AkSoundEnginePINVOKE.CSharp_GetMaxRadius(in_GameObjId_id); } - } - - public static AKRESULT GetPlayingIDsFromGameObject(UnityEngine.GameObject in_GameObjId, ref uint io_ruNumIDs, uint[] out_aPlayingIDs) - { - - var in_GameObjId_id = AkSoundEngine.GetAkGameObjectID(in_GameObjId); - AkSoundEngine.PreGameObjectAPICall(in_GameObjId, in_GameObjId_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingIDsFromGameObject(in_GameObjId_id, ref io_ruNumIDs, out_aPlayingIDs); } - } - - public static AKRESULT SetImageSource(uint in_srcID, AkImageSourceSettings in_info, uint in_AuxBusID, ulong in_roomID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetImageSource(in_srcID, AkImageSourceSettings.getCPtr(in_info), in_AuxBusID, in_roomID, in_gameObjectID_id); } - } - - public static AKRESULT RemoveImageSource(uint in_srcID, uint in_AuxBusID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RemoveImageSource(in_srcID, in_AuxBusID, in_gameObjectID_id); } - } - - public static AKRESULT ClearImageSources(uint in_AuxBusID, UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_ClearImageSources__SWIG_0(in_AuxBusID, in_gameObjectID_id); } - } - - public static AKRESULT QueryReflectionPaths(UnityEngine.GameObject in_gameObjectID, uint in_positionIndex, ref UnityEngine.Vector3 out_listenerPos, ref UnityEngine.Vector3 out_emitterPos, AkReflectionPathInfoArray out_aPaths, out uint io_uArraySize) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryReflectionPaths(in_gameObjectID_id, in_positionIndex, ref out_listenerPos, ref out_emitterPos, out_aPaths.GetBuffer(), out io_uArraySize); } - } - - public static AKRESULT SetGameObjectInRoom(UnityEngine.GameObject in_gameObjectID, ulong in_CurrentRoomID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectInRoom(in_gameObjectID_id, in_CurrentRoomID); } - } - - public static AKRESULT SetEarlyReflectionsAuxSend(UnityEngine.GameObject in_gameObjectID, uint in_auxBusID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetEarlyReflectionsAuxSend(in_gameObjectID_id, in_auxBusID); } - } - - public static AKRESULT SetEarlyReflectionsVolume(UnityEngine.GameObject in_gameObjectID, float in_fSendVolume) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetEarlyReflectionsVolume(in_gameObjectID_id, in_fSendVolume); } - } - - public static AKRESULT QueryDiffractionPaths(UnityEngine.GameObject in_gameObjectID, uint in_positionIndex, ref UnityEngine.Vector3 out_listenerPos, ref UnityEngine.Vector3 out_emitterPos, AkDiffractionPathInfoArray out_aPaths, out uint io_uArraySize) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_QueryDiffractionPaths(in_gameObjectID_id, in_positionIndex, ref out_listenerPos, ref out_emitterPos, out_aPaths.GetBuffer(), out io_uArraySize); } - } - - public static AKRESULT RegisterGameObjInternal(UnityEngine.GameObject in_GameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal(AkSoundEngine.GetAkGameObjectID(in_GameObj)); } - - public static AKRESULT UnregisterGameObjInternal(UnityEngine.GameObject in_GameObj) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterGameObjInternal(AkSoundEngine.GetAkGameObjectID(in_GameObj)); } - - public static AKRESULT RegisterGameObjInternal_WithName(UnityEngine.GameObject in_GameObj, string in_pszObjName) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObjInternal_WithName(AkSoundEngine.GetAkGameObjectID(in_GameObj), in_pszObjName); } - - public static AKRESULT SetObjectPosition(UnityEngine.GameObject in_GameObjectID, UnityEngine.Vector3 Pos, UnityEngine.Vector3 Front, UnityEngine.Vector3 Top) { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectPosition(AkSoundEngine.GetAkGameObjectID(in_GameObjectID), Pos, Front, Top); } - - public static AKRESULT SetListeners(UnityEngine.GameObject in_emitterGameObj, ulong[] in_pListenerGameObjs, uint in_uNumListeners) - { - - var in_emitterGameObj_id = AkSoundEngine.GetAkGameObjectID(in_emitterGameObj); - AkSoundEngine.PreGameObjectAPICall(in_emitterGameObj, in_emitterGameObj_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListeners(in_emitterGameObj_id, in_pListenerGameObjs, in_uNumListeners); } - } - - public static AKRESULT RegisterSpatialAudioListener(UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterSpatialAudioListener(in_gameObjectID_id); } - } - - public static AKRESULT UnregisterSpatialAudioListener(UnityEngine.GameObject in_gameObjectID) - { - - var in_gameObjectID_id = AkSoundEngine.GetAkGameObjectID(in_gameObjectID); - AkSoundEngine.PreGameObjectAPICall(in_gameObjectID, in_gameObjectID_id); - - { return (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterSpatialAudioListener(in_gameObjectID_id); } - } - - #endregion - - public const uint AK_PENDING_EVENT_LOAD_ID = uint.MaxValue; -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkSoundEngine.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkSoundEngine.cs.meta deleted file mode 100644 index a2c4a1472..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkSoundEngine.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7c68246d2543a3d4bb9a5198dc21167f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkUtilities.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkUtilities.cs deleted file mode 100644 index 24a0230d3..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkUtilities.cs +++ /dev/null @@ -1,887 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if UNITY_EDITOR -using UnityEditor; - -public enum AkWwiseMenuOrder -{ - ConvertIDs = 200 -} - -public enum AkWwiseWindowOrder -{ - WwiseSettings = 305, - WwiseInitializationSettings = 306, - WwisePicker = 2300 -} - -public enum AkWwiseHelpOrder -{ - WwiseHelpOrder = 200 -} - -public partial class AkUtilities -{ - #region Migration - /// - /// These values represent the maximum value of the "Unity Integration Version" number in the Version.txt file that will migrated. - /// For example, in Wwise v2019.1.0, "Unity Integration Version" is 18 which means that all migrations up until this version are required. - /// - public enum MigrationStep - { - AkGameObjListenerMask_v2016_1_0 = 9, - AkGameObjPositionOffsetData_v2016_2_0 = 10, - AkAudioListener_v2017_1_0 = 14, - InitializationSettings_v2018_1_0 = 15, - WwiseTypes_v2018_1_6 = 16, - AkEventCallback_v2018_1_6 = 16, - AkAmbient_v2019_1_0 = 17, - NewScriptableObjectFolder_v2019_2_0 = 18, - /// - /// The value that is currently in the Version.txt file. - /// - Current - } - - public static bool IsMigrationRequired(MigrationStep step) - { - return MigrationStartIndex <= (int)step; - } - - public static bool IsMigrating - { - get { return MigrationStartIndex < MigrationStopIndex; } - } - - public static void BeginMigration(int startIndex) - { - if (startIndex < MigrationStopIndex) - MigrationStartIndex = startIndex; - } - - public static void EndMigration() - { - MigrationStartIndex = MigrationStopIndex; - } - - public const int MigrationStopIndex = (int)MigrationStep.Current; - - public static int MigrationStartIndex - { - private set { migrationStartIndex = value; } - get { return migrationStartIndex; } - } - - private static int migrationStartIndex = MigrationStopIndex; - #endregion - - private static readonly System.Collections.Generic.Dictionary s_ProjectBankPaths = - new System.Collections.Generic.Dictionary(); - - private static System.DateTime s_LastBankPathUpdate = System.DateTime.MinValue; - - private static readonly System.Collections.Generic.Dictionary> - s_BaseToCustomPF = new System.Collections.Generic.Dictionary>(); - - public static bool IsWwiseProjectAvailable { set; get; } - - public static bool IsSoundbankGenerationAvailable() - { - return GetWwiseCLI() != null; - } - - /// Executes a command-line. Blocks the calling thread until the new process has completed. Returns the logged stdout in one big string. - public static string ExecuteCommandLine(string command, string arguments) - { - var process = new System.Diagnostics.Process(); - process.StartInfo.FileName = command; - process.StartInfo.UseShellExecute = false; - process.StartInfo.RedirectStandardOutput = true; - process.StartInfo.CreateNoWindow = true; - process.StartInfo.Arguments = arguments; - process.Start(); - - // Synchronously read the standard output of the spawned process. - var reader = process.StandardOutput; - var output = reader.ReadToEnd(); - - // Waiting for the process to exit directly in the UI thread. Similar cases are working that way too. - - // TODO: Is it better to provide a timeout avoid any issues of forever blocking the UI thread? If so, what is - // a relevant timeout value for SoundBank generation? - process.WaitForExit(); - process.Close(); - - return output; - } - - private static string GetWwiseCLI() - { - string result = null; - - var settings = AkWwiseEditorSettings.Instance; - -#if UNITY_EDITOR_WIN - if (!string.IsNullOrEmpty(settings.WwiseInstallationPathWindows)) - { - result = System.IO.Path.Combine(settings.WwiseInstallationPathWindows, @"Authoring\x64\Release\bin\WwiseCLI.exe"); - - if (!System.IO.File.Exists(result)) - result = System.IO.Path.Combine(settings.WwiseInstallationPathWindows, @"Authoring\Win32\Release\bin\WwiseCLI.exe"); - } -#elif UNITY_EDITOR_OSX - if (!string.IsNullOrEmpty(settings.WwiseInstallationPathMac)) - result = System.IO.Path.Combine(settings.WwiseInstallationPathMac, "Contents/Tools/WwiseCLI.sh"); -#endif - - if (result != null && System.IO.File.Exists(result)) - return result; - - return null; - } - - // Generate all the SoundBanks for all the supported platforms in the Wwise project. This effectively calls Wwise for the project - // that is configured in the UnityWwise integration. - public static void GenerateSoundbanks(System.Collections.Generic.List platforms = null) - { - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - AkWwiseEditorSettings.Instance.CheckGeneratedBanksPath(); -#endif - var wwiseProjectFullPath = AkWwiseEditorSettings.WwiseProjectAbsolutePath; - if (IsSoundbankOverrideEnabled(wwiseProjectFullPath)) - { - UnityEngine.Debug.LogWarning( - "The SoundBank generation process ignores the SoundBank Settings' Overrides currently enabled in the User settings. The project's SoundBank settings will be used."); - } - - var wwiseCli = GetWwiseCLI(); - if (wwiseCli == null) - { - UnityEngine.Debug.LogError("Couldn't locate WwiseCLI, unable to generate SoundBanks."); - return; - } - -#if UNITY_EDITOR_WIN - var command = wwiseCli; - var arguments = ""; -#elif UNITY_EDITOR_OSX - var command = "/bin/sh"; - var arguments = "\"" + wwiseCli + "\""; -#else - var command = ""; - var arguments = ""; -#endif - - arguments += " \"" + wwiseProjectFullPath + "\""; - - if (platforms != null) - { - foreach (var platform in platforms) - { - if (!string.IsNullOrEmpty(platform)) - arguments += " -Platform " + platform; - } - } - - arguments += " -GenerateSoundBanks"; - - var output = ExecuteCommandLine(command, arguments); - if (output.Contains("Process completed successfully.")) - { - UnityEngine.Debug.LogFormat("WwiseUnity: SoundBanks generation successful:\n{0}", output); - } - else if (output.Contains("Process completed with warning")) - { - UnityEngine.Debug.LogWarningFormat("WwiseUnity: SoundBanks generation has warning(s):\n{0}", output); - } - else - { - UnityEngine.Debug.LogErrorFormat("WwiseUnity: SoundBanks generation error:\n{0}", output); - } - - UnityEditor.AssetDatabase.Refresh(); - } - - /// Reads the user settings (not the project settings) to check if there is an override currently defined for the SoundBank generation folders. - public static bool IsSoundbankOverrideEnabled(string wwiseProjectPath) - { - var userConfigFile = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(wwiseProjectPath), - System.IO.Path.GetFileNameWithoutExtension(wwiseProjectPath) + "." + System.Environment.UserName + ".wsettings"); - - if (!System.IO.File.Exists(userConfigFile)) - return false; - - var userConfigDoc = new System.Xml.XmlDocument(); - userConfigDoc.Load(userConfigFile); - var userConfigNavigator = userConfigDoc.CreateNavigator(); - - var userConfigNode = userConfigNavigator.SelectSingleNode( - System.Xml.XPath.XPathExpression.Compile("//Property[@Name='SoundBankPathUserOverride' and @Value = 'True']")); - - return userConfigNode != null; - } - - public static System.Collections.Generic.IDictionary> PlatformMapping - { - get { return s_BaseToCustomPF; } - } - - public static System.Collections.Generic.IDictionary GetAllBankPaths(string xmlFilePath) - { - UpdateSoundbanksDestinationFolders(xmlFilePath); - return s_ProjectBankPaths; - } - - - public static System.Collections.Generic.IDictionary GetAllBankPaths() - { - UpdateSoundbanksDestinationFolders(AkWwiseEditorSettings.WwiseProjectAbsolutePath); - return s_ProjectBankPaths; - } - - // Parses the .wproj to find out where SoundBanks are generated for the given path. - public static string GetWwiseSoundBankDestinationFolder(string Platform) - { - try - { - UpdateSoundbanksDestinationFolders(AkWwiseEditorSettings.WwiseProjectAbsolutePath); - return s_ProjectBankPaths[Platform]; - } - catch - { - return ""; - } - } - - public delegate void GetEventDurationsFunc(uint eventID, ref float maximum, ref float minimum); - public static GetEventDurationsFunc GetEventDurations = (uint eventID, ref float maximum, ref float minimum) => { maximum = minimum = -1.0f; }; - - private static void UpdateSoundbanksDestinationFolders(string WwiseProjectPath) - { - try - { - if (WwiseProjectPath.Length == 0) - return; - - if (!System.IO.File.Exists(WwiseProjectPath)) - return; - - var t = System.IO.File.GetLastWriteTime(WwiseProjectPath); - if (t <= s_LastBankPathUpdate) - return; - - s_ProjectBankPaths.Clear(); - var doc = new System.Xml.XmlDocument(); - doc.Load(WwiseProjectPath); - var Navigator = doc.CreateNavigator(); - s_LastBankPathUpdate = t; - - // Gather the mapping of Custom platform to Base platform - var itpf = Navigator.Select("//Platform"); - s_BaseToCustomPF.Clear(); - foreach (System.Xml.XPath.XPathNavigator node in itpf) - { - System.Collections.Generic.List customList = null; - var basePF = node.GetAttribute("ReferencePlatform", ""); - if (!s_BaseToCustomPF.TryGetValue(basePF, out customList)) - { - customList = new System.Collections.Generic.List(); - s_BaseToCustomPF[basePF] = customList; - } - - customList.Add(node.GetAttribute("Name", "")); - } - - // Navigate the wproj file (XML format) to where generated SoundBank paths are stored - var it = Navigator.Select("//Property[@Name='SoundBankPaths']/ValueList/Value"); - foreach (System.Xml.XPath.XPathNavigator node in it) - { - var path = node.Value; - FixSlashes(ref path); - var pf = node.GetAttribute("Platform", ""); - s_ProjectBankPaths[pf] = path; - } - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError("WwiseUnity: Error while reading project " + WwiseProjectPath + ". Exception: " + ex.Message); - } - } - - public static void SetSoundbanksDestinationFoldersInWproj(string WwiseProjectPath, string destinationPath) - { - try - { - if (WwiseProjectPath.Length == 0) - return; - - if (!System.IO.File.Exists(WwiseProjectPath)) - return; - - s_ProjectBankPaths.Clear(); - - var doc = new System.Xml.XmlDocument(); - doc.Load(WwiseProjectPath); - var Navigator = doc.CreateNavigator(); - - // Gather the mapping of Custom platform to Base platform - var itpf = Navigator.Select("//Platform"); - s_BaseToCustomPF.Clear(); - foreach (System.Xml.XPath.XPathNavigator node in itpf) - { - System.Collections.Generic.List customList = null; - var basePF = node.GetAttribute("ReferencePlatform", ""); - if (!s_BaseToCustomPF.TryGetValue(basePF, out customList)) - { - customList = new System.Collections.Generic.List(); - s_BaseToCustomPF[basePF] = customList; - } - - customList.Add(node.GetAttribute("Name", "")); - } - - // Navigate the wproj file (XML format) to where generated SoundBank paths are stored - var it = Navigator.Select("//Property[@Name='SoundBankPaths']/ValueList/Value"); - foreach (System.Xml.XPath.XPathNavigator node in it) - { - var pf = node.GetAttribute("Platform", ""); - var path = $"{destinationPath}/{pf}"; - FixSlashes(ref path); - node.SetValue(path); - s_ProjectBankPaths[pf] = path; - } - doc.Save(WwiseProjectPath); - } - catch (System.Exception ex) - { - UnityEngine.Debug.LogError("WwiseUnity: Error while reading project " + WwiseProjectPath + ". Exception: " + ex.Message); - } - } - - public static void SoundBankDestinationsUpdated(string WwiseProjectPath) - { - UpdateSoundbanksDestinationFolders(WwiseProjectPath); - } - - // Set SoundBank-related bool settings in the wproj file. - public static bool EnableBoolSoundbankSettingInWproj(string SettingName, string WwiseProjectPath) - { - try - { - if (WwiseProjectPath.Length == 0) - return true; - - var doc = new System.Xml.XmlDocument { PreserveWhitespace = true }; - doc.Load(WwiseProjectPath); - var Navigator = doc.CreateNavigator(); - - // Navigate the wproj file (XML format) to where our setting should be - var pathInXml = string.Format("/WwiseDocument/ProjectInfo/Project/PropertyList/Property[@Name='{0}']", SettingName); - var expression = System.Xml.XPath.XPathExpression.Compile(pathInXml); - var node = Navigator.SelectSingleNode(expression); - if (node == null) - { - // Setting isn't in the wproj, add it - // Navigate to the SoundBankHeaderFilePath property (it is always there) - expression = - System.Xml.XPath.XPathExpression.Compile( - "/WwiseDocument/ProjectInfo/Project/PropertyList/Property[@Name='SoundBankHeaderFilePath']"); - node = Navigator.SelectSingleNode(expression); - if (node == null) - { - // SoundBankHeaderFilePath not in wproj, invalid wproj file - UnityEngine.Debug.LogError( - "WwiseUnity: Could not find SoundBankHeaderFilePath property in Wwise project file. File is invalid."); - return false; - } - - // Add the setting right above SoundBankHeaderFilePath - var propertyToInsert = string.Format("", SettingName); - node.InsertBefore(propertyToInsert); - } - else if (node.GetAttribute("Value", "") == "False") - { - // Value is present, we simply have to modify it. - if (!node.MoveToAttribute("Value", "")) - return false; - - // Modify the value to true - node.SetValue("True"); - } - else - { - // Parameter already set, nothing to do! - return true; - } - - doc.Save(WwiseProjectPath); - return true; - } - catch - { - return false; - } - } - - public static bool SetSoundbankHeaderFilePath(string WwiseProjectPath, string SoundbankPath) - { - try - { - if (WwiseProjectPath.Length == 0) - return true; - - var doc = new System.Xml.XmlDocument { PreserveWhitespace = true }; - doc.Load(WwiseProjectPath); - var Navigator = doc.CreateNavigator(); - - // Navigate to where the header file path is saved. The node has to be there, or else the wproj is invalid. - var expression = - System.Xml.XPath.XPathExpression.Compile( - "/WwiseDocument/ProjectInfo/Project/PropertyList/Property[@Name='SoundBankHeaderFilePath']"); - var node = Navigator.SelectSingleNode(expression); - if (node == null) - { - UnityEngine.Debug.LogError( - "Could not find SoundBankHeaderFilePath property in Wwise project file. File is invalid."); - return false; - } - - // Change the "Value" attribute - if (!node.MoveToAttribute("Value", "")) - return false; - - node.SetValue(SoundbankPath); - doc.Save(WwiseProjectPath); - return true; - } - catch - { - return false; - } - } - - // Make two paths relative to each other - public static string MakeRelativePath(string fromPath, string toPath) - { - // MONO BUG: https://github.com/mono/mono/pull/471 - // In the editor, Application.dataPath returns /Assets. There is a bug in - // mono for method Uri.GetRelativeUri where if the path ends in a folder, it will - // ignore the last part of the path. Thus, we need to add fake depth to get the "real" - // relative path. - fromPath += "/fake_depth"; - try - { - if (string.IsNullOrEmpty(fromPath)) - return toPath; - - if (string.IsNullOrEmpty(toPath)) - return ""; - - var fromUri = new System.Uri(fromPath); - var toUri = new System.Uri(toPath); - - if (fromUri.Scheme != toUri.Scheme) - return toPath; - - var relativeUri = fromUri.MakeRelativeUri(toUri); - var relativePath = System.Uri.UnescapeDataString(relativeUri.ToString()); - - return relativePath; - } - catch - { - return toPath; - } - } - - // Reconcile a base path and a relative path to give a full path without any ".." - public static string GetFullPath(string BasePath, string RelativePath) - { - if (string.IsNullOrEmpty(BasePath)) - return ""; - - var wrongSeparatorChar = System.IO.Path.DirectorySeparatorChar == '/' ? '\\' : '/'; - - if (string.IsNullOrEmpty(RelativePath)) - return BasePath.Replace(wrongSeparatorChar, System.IO.Path.DirectorySeparatorChar); - - if (System.IO.Path.GetPathRoot(RelativePath) != "") - return RelativePath.Replace(wrongSeparatorChar, System.IO.Path.DirectorySeparatorChar); - - return System.IO.Path.GetFullPath(System.IO.Path.Combine(BasePath, RelativePath)); - } - - public static bool DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs) - { - var dir = new System.IO.DirectoryInfo(sourceDirName); - if (!dir.Exists) - { - UnityEngine.Debug.LogError("WwiseUnity: Source directory doesn't exist"); - return false; - } - - if (!System.IO.Directory.Exists(destDirName)) - System.IO.Directory.CreateDirectory(destDirName); - - var files = dir.GetFiles(); - foreach (var file in files) - { - var destFilePath = System.IO.Path.Combine(destDirName, file.Name); - if (System.IO.File.Exists(destFilePath)) - UnityEngine.Debug.LogWarningFormat("WwiseUnity: Destination file path will be overwritten: {0}", destFilePath); - - file.CopyTo(destFilePath, true); - } - - if (!copySubDirs) - return true; - - var dirs = dir.GetDirectories(); - foreach (var subdir in dirs) - { - var destSubDirName = System.IO.Path.Combine(destDirName, subdir.Name); - DirectoryCopy(subdir.FullName, destSubDirName, copySubDirs); - } - - return true; - } - - public static bool MoveAssetsFromDirectory(string sourceDirName, string destDirName, bool copySubDirs) - { - var dir = new System.IO.DirectoryInfo(sourceDirName); - if (!dir.Exists) - { - UnityEngine.Debug.LogError("WwiseUnity: Source directory doesn't exist"); - return false; - } - - if (!System.IO.Directory.Exists(destDirName)) - AssetDatabase.CreateFolder(System.IO.Path.GetDirectoryName(destDirName), System.IO.Path.GetFileName(destDirName)); - - var files = dir.GetFiles(); - string error, source, destFilePath; - foreach (var file in files) - { - if (file.Extension == ".meta") continue; - - destFilePath = System.IO.Path.Combine(destDirName, file.Name); - if (System.IO.File.Exists(destFilePath)) - UnityEngine.Debug.LogWarningFormat("WwiseUnity: Destination file path will be overwritten: {0}", destFilePath); - - source = System.IO.Path.Combine("Assets", AkUtilities.MakeRelativePath(UnityEngine.Application.dataPath, file.FullName)); - source = source.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - - error = AssetDatabase.MoveAsset(source, destFilePath); - if (!string.IsNullOrEmpty(error)) - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Error while attempting to move <{0}> to <{1}>: {2}", source, destFilePath, error); - - } - - if (!copySubDirs) - return true; - - var dirs = dir.GetDirectories(); - foreach (var subdir in dirs) - { - source = System.IO.Path.Combine("Assets", AkUtilities.MakeRelativePath(UnityEngine.Application.dataPath, subdir.FullName)); - source = source.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - - var destSubDirName = System.IO.Path.Combine(destDirName, subdir.Name); - error = UnityEditor.AssetDatabase.MoveAsset(source, destSubDirName); - - if (!string.IsNullOrEmpty(error)) - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Error while attempting to move <{0}> to <{1}>: {2}", source, destSubDirName, error); - } - - return true; - } - - public static bool CreateFolder(string folderToCreate) - { - var created = false; - - var folder = string.Empty; - var folders = folderToCreate.Split(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - for (int i = 0; i < folders.Length; ++i) - { - var parentFolder = folder; - folder = string.IsNullOrEmpty(parentFolder) ? folders[i] : System.IO.Path.Combine(parentFolder, folders[i]); - - if (UnityEditor.AssetDatabase.IsValidFolder(folder)) - { - continue; - } - - var error = UnityEditor.AssetDatabase.CreateFolder(parentFolder, folders[i]); - if (string.IsNullOrEmpty(error)) - { - created = true; - continue; - } - - return false; - } - - if (created) - UnityEditor.AssetDatabase.SaveAssets(); - - return true; - } - - /// - /// Renames or moves a folder using UnityEditor.Database API. - /// - /// - /// - /// Returns true if the operation was successful. - public static bool MoveFolder(string oldPath, string newPath) - { - oldPath = oldPath.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - newPath = newPath.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - if (oldPath.Equals(newPath, System.StringComparison.OrdinalIgnoreCase)) - return false; - - var error = string.Empty; - var newParentFolder = System.IO.Path.GetDirectoryName(newPath); - if (System.IO.Path.GetDirectoryName(oldPath) == newParentFolder) - { - error = UnityEditor.AssetDatabase.RenameAsset(oldPath, newPath.Substring(newParentFolder.Length + 1)); - if (string.IsNullOrEmpty(error)) - return true; - - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Error while attempting to rename folder <{0}> to <{1}>: {2}", oldPath, newPath, error); - return false; - } - - if (!CreateFolder(newParentFolder)) - return false; - - error = UnityEditor.AssetDatabase.MoveAsset(oldPath, newPath); - if (string.IsNullOrEmpty(error)) - return true; - - UnityEngine.Debug.LogWarningFormat("WwiseUnity: Error while attempting to move folder <{0}> to <{1}>: {2}", oldPath, newPath, error); - return false; - } - - ///This function returns the absolute position and the width and height of the last drawn GuiLayout(or EditorGuiLayout) element in the inspector window. - ///This function must be called in the OnInspectorGUI function - /// - ///The inspector must be in repaint mode in order to get the correct position - ///Example => if(Event.current.type == EventType.Repaint) Rect pos = AkUtilities.GetLastRectAbsolute(); - public static UnityEngine.Rect GetLastRectAbsolute(UnityEngine.Rect relativePos) - { - var lastRectAbsolute = relativePos; - try - { - lastRectAbsolute.x += UnityEditor.EditorWindow.focusedWindow.position.x; - lastRectAbsolute.y += UnityEditor.EditorWindow.focusedWindow.position.y; - - var inspectorType = UnityEditor.EditorWindow.focusedWindow.GetType(); - var currentInspectorFieldInfo = inspectorType.GetField("s_CurrentInspectorWindow", - System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static); - - var scrollPosInfo = inspectorType.GetField("m_ScrollPosition", - System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); - - var scrollPos = (UnityEngine.Vector2)scrollPosInfo.GetValue(currentInspectorFieldInfo.GetValue(null)); - lastRectAbsolute.x -= scrollPos.x; - lastRectAbsolute.y -= scrollPos.y; - } - catch - { - } - - return lastRectAbsolute; - } - - public static void RepaintInspector() - { - var windows = UnityEngine.Resources.FindObjectsOfTypeAll(); - foreach (var win in windows) - if (win.titleContent.text == "Inspector") - win.Repaint(); - } - - public static string ParseOsxPathFromWinePath(string path) - { - string ret = path.Replace("Y:", System.Environment.GetEnvironmentVariable("HOME")); - ret = ret.Replace("Z:", ""); - ret = ret.Replace('\\', '/'); - return ret; - } - - #region Tooltip Workaround - private static System.Reflection.FieldInfo GetFieldInfoFromProperty(UnityEditor.SerializedProperty property) - { - var serializedProperty = property.serializedObject.FindProperty("m_Script"); - if (serializedProperty == null) - return null; - - var monoScript = serializedProperty.objectReferenceValue as UnityEditor.MonoScript; - if (monoScript == null) - return null; - - var scriptTypeFromProperty = monoScript.GetClass(); - if (scriptTypeFromProperty == null) - return null; - - return GetFieldInfoFromPropertyPath(scriptTypeFromProperty, property.propertyPath); - } - - private static System.Reflection.FieldInfo GetFieldInfoFromPropertyPath(System.Type host, string path) - { - System.Reflection.FieldInfo fieldInfo = null; - - var type = host; - var array = path.Split('.'); - for (int i = 0; i < array.Length; ++i) - { - string text = array[i]; - if (i < array.Length - 1 && text == "Array" && array[i + 1].StartsWith("data[")) - { - if (type.IsArray) - type = type.GetElementType(); - else if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(System.Collections.Generic.List<>)) - type = type.GetGenericArguments()[0]; - - i++; - } - else - { - var type2 = type; - while (type2 != null) - { - fieldInfo = type2.GetField(text, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic); - if (fieldInfo != null) - { - type = fieldInfo.FieldType; - break; - } - - type2 = type2.BaseType; - if (type2 == null) - return null; - } - } - } - - return fieldInfo; - } - - private static string GetTooltip(System.Reflection.FieldInfo field, bool inherit) - { - var attributes = field.GetCustomAttributes(typeof(UnityEngine.TooltipAttribute), inherit) as UnityEngine.TooltipAttribute[]; - if (attributes != null && attributes.Length > 0) - return attributes[0].tooltip; - - return string.Empty; - } - - public static string GetTooltip(UnityEditor.SerializedProperty property) - { - return GetTooltip(GetFieldInfoFromProperty(property), true); - } - #endregion -} -#endif // UNITY_EDITOR - -public partial class AkUtilities -{ - public static void FixSlashes(ref string path, char separatorChar, char badChar, bool addTrailingSlash) - { - if (string.IsNullOrEmpty(path)) - return; - - path = path.Trim().Replace(badChar, separatorChar).TrimStart('\\'); - - // Append a trailing slash to play nicely with Wwise - if (addTrailingSlash && !path.EndsWith(separatorChar.ToString())) - path += separatorChar; - } - - public static void FixSlashes(ref string path) - { -#if UNITY_WSA - var separatorChar = '\\'; -#else - var separatorChar = System.IO.Path.DirectorySeparatorChar; -#endif // UNITY_WSA - var badChar = separatorChar == '\\' ? '/' : '\\'; - FixSlashes(ref path, separatorChar, badChar, true); - } - - public static string GetPathInPackage(string relativePath) - { - const string AssetWwisePathParent = "Assets/Wwise/API/"; - const string PackageWwisePathParent = "Packages/com.audiokinetic.wwise.api/"; - - if (System.IO.Directory.Exists(System.IO.Path.GetFullPath(PackageWwisePathParent))) - { - return System.IO.Path.Combine(PackageWwisePathParent, relativePath); - } - else if (System.IO.Directory.Exists(System.IO.Path.GetFullPath(AssetWwisePathParent))) - { - return System.IO.Path.Combine(AssetWwisePathParent, relativePath); - } - else - { - return string.Empty; - } - } - - /// - /// This is based on FNVHash as used by the DataManager - /// to assign short IDs to objects. Be sure to keep them both in sync - /// when making changes! - /// - public class ShortIDGenerator - { - private const uint s_prime32 = 16777619; - private const uint s_offsetBasis32 = 2166136261; - - private static byte s_hashSize; - private static uint s_mask; - - static ShortIDGenerator() - { - HashSize = 32; - } - - public static byte HashSize - { - get { return s_hashSize; } - - set - { - s_hashSize = value; - s_mask = (uint)((1 << s_hashSize) - 1); - } - } - - public static uint Compute(string in_name) - { - var buffer = System.Text.Encoding.UTF8.GetBytes(in_name.ToLower()); - - // Start with the basis value - var hval = s_offsetBasis32; - - for (var i = 0; i < buffer.Length; i++) - { - // multiply by the 32 bit FNV magic prime mod 2^32 - hval *= s_prime32; - - // xor the bottom with the current octet - hval ^= buffer[i]; - } - - if (s_hashSize == 32) - return hval; - - // XOR-Fold to the required number of bits - return (hval >> s_hashSize) ^ (hval & s_mask); - } - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkUtilities.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkUtilities.cs.meta deleted file mode 100644 index 86c124017..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkUtilities.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 10d937f06770010409530c5eaf383e99 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVector.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkVector.cs deleted file mode 100644 index 931aff305..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVector.cs +++ /dev/null @@ -1,15 +0,0 @@ -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -public class AkVector -{ - private UnityEngine.Vector3 Vector = UnityEngine.Vector3.zero; - - public void Zero() { Vector.Set(0, 0, 0); } - - public float X { set { Vector.x = value; } get { return Vector.x; } } - - public float Y { set { Vector.y = value; } get { return Vector.y; } } - - public float Z { set { Vector.z = value; } get { return Vector.z; } } - - public static implicit operator UnityEngine.Vector3(AkVector vector) { return vector.Vector; } -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVector.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkVector.cs.meta deleted file mode 100644 index 699aadc45..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ce963d40434b26541973eca88287cf01 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVertex.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkVertex.cs deleted file mode 100644 index 26df79a9b..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVertex.cs +++ /dev/null @@ -1,38 +0,0 @@ -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -public class AkVertex -{ - private UnityEngine.Vector3 Vector = UnityEngine.Vector3.zero; - - public void Zero() { Vector.Set(0, 0, 0); } - - public float X { set { Vector.x = value; } get { return Vector.x; } } - - public float Y { set { Vector.y = value; } get { return Vector.y; } } - - public float Z { set { Vector.z = value; } get { return Vector.z; } } - - public static implicit operator UnityEngine.Vector3(AkVertex vector) { return vector.Vector; } - - public AkVertex() { } - - public AkVertex(float x, float y, float z) { Vector.Set(x, y, z); } - - public void Clear() { Vector.Set(0, 0, 0); } - - public static int GetSizeOf() { return sizeof(float) * 3; } - - public void Clone(AkVertex other) { Vector = other.Vector; } -} - -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -/// AkVertexArray is now deprecated. Users should instead use UnityEngine.Vector3[]. -public class AkVertexArray : AkBaseArray -{ - public AkVertexArray(int count) : base(count) {} - - protected override int StructureSize { get { return AkVertex.GetSizeOf(); } } - - protected override AkVertex CreateNewReferenceFromIntPtr(System.IntPtr address) { return null; } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkVertex other) {} -} \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVertex.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkVertex.cs.meta deleted file mode 100644 index 3ddfa193e..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkVertex.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9a09ae1c7b85fc447890bf0b13ebf590 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseEditorSettings.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseEditorSettings.cs deleted file mode 100644 index f8738e7c8..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseEditorSettings.cs +++ /dev/null @@ -1,481 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if UNITY_EDITOR - -using UnityEditor; -using System.Linq; - -[System.Serializable] -public class WwiseSettings -{ - public const string Filename = "WwiseSettings.xml"; - - public static string Path - { - get { return System.IO.Path.Combine(UnityEngine.Application.dataPath, Filename); } - } - - public static bool Exists { get { return System.IO.File.Exists(Path); } } - - public bool CopySoundBanksAsPreBuildStep = true; - public bool GenerateSoundBanksAsPreBuildStep = false; - public string SoundbankPath; - public string GeneratedSoundbanksPath; - - public bool CreatedPicker = false; - public bool CreateWwiseGlobal = true; - public bool CreateWwiseListener = true; - public bool ShowMissingRigidBodyWarning = true; - public bool ShowSpatialAudioWarningMsg = true; - public string WwiseInstallationPathMac; - public string WwiseInstallationPathWindows; - public string WwiseProjectPath; - - public bool UseWaapi = true; - public string WaapiPort = "8080"; - public string WaapiIP = "127.0.0.1"; - - [System.Xml.Serialization.XmlIgnore] - public string WwiseInstallationPath - { -#if UNITY_EDITOR_OSX - get { return WwiseInstallationPathMac; } - set { WwiseInstallationPathMac = value; } -#else - get { return WwiseInstallationPathWindows; } - set { WwiseInstallationPathWindows = value; } -#endif - } - - internal static WwiseSettings LoadSettings() - { - var settings = new WwiseSettings(); - - try - { - var path = Path; - if (System.IO.File.Exists(path)) - { - var xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(WwiseSettings)); - using (var xmlFileStream = new System.IO.FileStream(path, System.IO.FileMode.Open, System.IO.FileAccess.Read)) - settings = xmlSerializer.Deserialize(xmlFileStream) as WwiseSettings; - } - else - { - var projectDir = System.IO.Path.GetDirectoryName(UnityEngine.Application.dataPath); - var foundWwiseProjects = System.IO.Directory.GetFiles(projectDir, "*.wproj", System.IO.SearchOption.AllDirectories); - if (foundWwiseProjects.Length > 0) - settings.WwiseProjectPath = AkUtilities.MakeRelativePath(UnityEngine.Application.dataPath, foundWwiseProjects[0]); - else - settings.WwiseProjectPath = string.Empty; - - settings.SoundbankPath = AkBasePathGetter.DefaultBasePath; - } - } - catch - { - } - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - if (string.IsNullOrEmpty(settings.GeneratedSoundbanksPath)) - { - var baseDir = "GeneratedSoundBanks"; - var platformSoundBankPaths = AkUtilities.GetAllBankPaths(AkUtilities.GetFullPath(UnityEngine.Application.dataPath, settings.WwiseProjectPath)); - if (platformSoundBankPaths.Count > 0) - { - if (platformSoundBankPaths.ContainsKey(AkBasePathGetter.GetPlatformName())) - { - baseDir = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(platformSoundBankPaths[AkBasePathGetter.GetPlatformName()])); - } - else - { - baseDir = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(platformSoundBankPaths.Values.First())); - } - } - var generatedSoundbanksDir = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(settings.WwiseProjectPath), baseDir); - settings.GeneratedSoundbanksPath = generatedSoundbanksDir; - } - settings.CheckGeneratedBanksPath(); -#endif - return settings; - } - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - public void CheckGeneratedBanksPath() - { - var fullGeneratedSoundbanksPath = AkUtilities.GetFullPath(UnityEngine.Application.dataPath, GeneratedSoundbanksPath); - var appDataPath = UnityEngine.Application.dataPath.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - - if (!fullGeneratedSoundbanksPath.Contains(appDataPath)) - { - UnityEngine.Debug.LogWarning("GeneratedSoundbanksPath is currently set to a path outside of the Assets folder. Generated SoundBanks will not be properly imported for Addressables. Please change this in Project Settings > Wwise Editor."); - } - } -#endif - - - public void SaveSettings() - { - try - { - var xmlDoc = new System.Xml.XmlDocument(); - var xmlSerializer = new System.Xml.Serialization.XmlSerializer(GetType()); - using (var xmlStream = new System.IO.MemoryStream()) - { - var streamWriter = new System.IO.StreamWriter(xmlStream, System.Text.Encoding.UTF8); - xmlSerializer.Serialize(streamWriter, this); - xmlStream.Position = 0; - xmlDoc.Load(xmlStream); - xmlDoc.Save(Path); - } - } - catch - { - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Unable to save settings to file <{0}>. Please ensure that this file path can be written to.", Path); - } - } -} - -public class AkWwiseEditorSettings -{ - private static WwiseSettings s_Instance; - - public static WwiseSettings Instance - { - get - { - if (s_Instance == null) - s_Instance = WwiseSettings.LoadSettings(); - return s_Instance; - } - } - - public static void Reload() - { - s_Instance = WwiseSettings.LoadSettings(); - } - - public static string WwiseProjectAbsolutePath - { - get { return AkUtilities.GetFullPath(UnityEngine.Application.dataPath, Instance.WwiseProjectPath); } - } - - public static string WwiseScriptableObjectRelativePath - { - get { return System.IO.Path.Combine(System.IO.Path.Combine("Assets", "Wwise"), "ScriptableObjects"); } - } - - #region GUI -#if UNITY_2018_3_OR_NEWER - class SettingsProvider : UnityEditor.SettingsProvider -#else - class EditorWindow : UnityEditor.EditorWindow -#endif - { - class Styles - { - public static string WwiseProject = "Wwise Project"; - public static UnityEngine.GUIContent WwiseProjectPath = new UnityEngine.GUIContent("Wwise Project Path*", "Location of the Wwise project associated with this game. It is recommended to put it in the Unity Project root folder, outside the Assets folder."); - - public static string WwiseApplicationPath = "Wwise Application Path"; - public static UnityEngine.GUIContent WwiseInstallationPath = new UnityEngine.GUIContent("Wwise Application Path", "Location of the Wwise application. This is required to generate the SoundBanks in Unity."); - - public static string AssetManagement = "Asset Management"; - public static UnityEngine.GUIContent SoundbankPath = new UnityEngine.GUIContent("SoundBanks Path*", "Location of the SoundBanks relative to (and within) the StreamingAssets folder."); - public static UnityEngine.GUIContent CopySoundBanksAsPreBuildStep = new UnityEngine.GUIContent("Copy SoundBanks at pre-Build step", "Copies the SoundBanks in the appropriate location for building and deployment. It is recommended to leave this box checked."); - public static UnityEngine.GUIContent GenerateSoundBanksAsPreBuildStep = new UnityEngine.GUIContent("Generate SoundBanks at pre-Build step", "Generates the SoundBanks before copying them during pre-Build step. It is recommended to leave this box unchecked if SoundBanks are generated on a specific build machine."); - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - public static UnityEngine.GUIContent GeneratedSoundbankPath = new UnityEngine.GUIContent("Generated SoundBanks Path*", "Destination folder for generated SoundBanks. Changing this will update your wwise project settings"); -#endif - - public static string GlobalSettings = "Global Settings"; - public static UnityEngine.GUIContent CreateWwiseGlobal = new UnityEngine.GUIContent("Create WwiseGlobal GameObject", "The WwiseGlobal object is a GameObject that contains the Initializing and Terminating scripts for the Wwise Sound Engine. In the Editor workflow, it is added to every scene, so that it can be properly previewed in the Editor. In the game, only one instance is created, in the first scene, and it is persisted throughout the game. It is recommended to leave this box checked."); - public static UnityEngine.GUIContent CreateWwiseListener = new UnityEngine.GUIContent("Add Listener to Main Camera", "In order for positioning to work, the AkAudioListener script needs to be attached to the main camera in every scene. If you wish for your listener to be attached to another GameObject, uncheck this box"); - - public static string InEditorWarnings = "In Editor Warnings"; - public static UnityEngine.GUIContent ShowMissingRigidBodyWarning = new UnityEngine.GUIContent("Show warning for missing RigidBody", "Interactions between AkGameObj and AkEnvironment or AkRoom require a Rigidbody component on the object or the environment/room. It is recommended to leave this box checked."); - public static UnityEngine.GUIContent ShowSpatialAudioWarningMsg = new UnityEngine.GUIContent("Show warning for missing Collider", "Interactions between AkRoomAwareObject and AkRoom require a Collider component on the object. It is recommended to leave this box checked."); - - public static string WaapiSection = "Wwise Authoring API (WAAPI)"; - public static UnityEngine.GUIContent UseWaapi = new UnityEngine.GUIContent("Connect to Wwise"); - public static UnityEngine.GUIContent WaapiIP = new UnityEngine.GUIContent("WAAPI IP address"); - public static UnityEngine.GUIContent WaapiPort = new UnityEngine.GUIContent("WAAPI port"); - - public static string MandatorySettings = "* Mandatory settings"; - - private static UnityEngine.GUIStyle version; - public static UnityEngine.GUIStyle Version - { - get - { - if (version != null) - return version; - - version = new UnityEngine.GUIStyle(UnityEditor.EditorStyles.whiteLargeLabel); - if (!UnityEngine.Application.HasProLicense()) - { - version.active.textColor = - version.focused.textColor = - version.hover.textColor = - version.normal.textColor = UnityEngine.Color.black; - } - return version; - } - } - - private static UnityEngine.GUIStyle textField; - public static UnityEngine.GUIStyle TextField - { - get - { - if (textField == null) - textField = new UnityEngine.GUIStyle("textfield"); - return textField; - } - } - } - - private static bool Ellipsis() - { - return UnityEngine.GUILayout.Button("...", UnityEngine.GUILayout.Width(30)); - } - -#if UNITY_2018_3_OR_NEWER - private SettingsProvider(string path) : base(path, UnityEditor.SettingsScope.Project) { } - - [UnityEditor.SettingsProvider] - public static UnityEditor.SettingsProvider CreateMyCustomSettingsProvider() - { - return new SettingsProvider("Project/Wwise Editor") { keywords = GetSearchKeywordsFromGUIContentProperties() }; - } - - public override void OnGUI(string searchContext) -#else - [UnityEditor.MenuItem("Edit/Wwise Settings...", false, (int)AkWwiseWindowOrder.WwiseSettings)] - public static void Init() - { - // Get existing open window or if none, make a new one: - var window = GetWindow(typeof(EditorWindow)); - window.position = new UnityEngine.Rect(100, 100, 850, 360); - window.titleContent = new UnityEngine.GUIContent("Wwise Settings"); - } - - private void OnGUI() -#endif - { - bool changed = false; - - var labelWidth = UnityEditor.EditorGUIUtility.labelWidth; - UnityEditor.EditorGUIUtility.labelWidth += 100; - - var settings = Instance; - - UnityEngine.GUILayout.Label(string.Format("Wwise v{0} Settings.", AkSoundEngine.WwiseVersion), Styles.Version); - UnityEngine.GUILayout.Label(Styles.WwiseProject, UnityEditor.EditorStyles.boldLabel); - - using (new UnityEngine.GUILayout.HorizontalScope("box")) - { - UnityEditor.EditorGUILayout.PrefixLabel(Styles.WwiseProjectPath); - UnityEditor.EditorGUILayout.SelectableLabel(settings.WwiseProjectPath, Styles.TextField, UnityEngine.GUILayout.Height(17)); - - if (Ellipsis()) - { - var OpenInPath = System.IO.Path.GetDirectoryName(AkUtilities.GetFullPath(UnityEngine.Application.dataPath, settings.WwiseProjectPath)); - var WwiseProjectPathNew = UnityEditor.EditorUtility.OpenFilePanel("Select your Wwise Project", OpenInPath, "wproj"); - if (WwiseProjectPathNew.Length != 0) - { - if (WwiseProjectPathNew.EndsWith(".wproj") == false) - { - UnityEditor.EditorUtility.DisplayDialog("Error", "Please select a valid .wproj file", "Ok"); - } - else - { - settings.WwiseProjectPath = AkUtilities.MakeRelativePath(UnityEngine.Application.dataPath, WwiseProjectPathNew); - changed = true; - } - } - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEngine.GUILayout.Label(Styles.WwiseApplicationPath, UnityEditor.EditorStyles.boldLabel); - - using (new UnityEngine.GUILayout.HorizontalScope("box")) - { - UnityEditor.EditorGUILayout.PrefixLabel(Styles.WwiseInstallationPath); - UnityEditor.EditorGUILayout.SelectableLabel(settings.WwiseInstallationPath, Styles.TextField, UnityEngine.GUILayout.Height(17)); - - if (Ellipsis()) - { -#if UNITY_EDITOR_OSX - var path = UnityEditor.EditorUtility.OpenFilePanel("Select your Wwise application.", "/Applications/", ""); -#else - var path = UnityEditor.EditorUtility.OpenFolderPanel("Select your Wwise application.", System.Environment.GetEnvironmentVariable("ProgramFiles(x86)"), ""); -#endif - if (path.Length != 0) - { - settings.WwiseInstallationPath = System.IO.Path.GetFullPath(path); - changed = true; - } - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEngine.GUILayout.Label(Styles.AssetManagement, UnityEditor.EditorStyles.boldLabel); - - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - using (new UnityEngine.GUILayout.VerticalScope("box")) - { - using (new UnityEngine.GUILayout.HorizontalScope()) - { - UnityEditor.EditorGUILayout.PrefixLabel(Styles.GeneratedSoundbankPath); - UnityEditor.EditorGUILayout.SelectableLabel(settings.GeneratedSoundbanksPath, Styles.TextField, UnityEngine.GUILayout.Height(17)); - - if (Ellipsis()) - { - var FullPath = AkUtilities.GetFullPath(UnityEngine.Application.dataPath, settings.GeneratedSoundbanksPath); - var OpenInPath = System.IO.Path.GetDirectoryName(FullPath); - var path = UnityEditor.EditorUtility.OpenFolderPanel("Select your generated SoundBanks destination folder", OpenInPath, FullPath.Substring(OpenInPath.Length + 1)); - if (path.Length != 0) - { - bool dirsEmpty = (System.IO.Directory.GetDirectories(path).Length == 0) && (System.IO.Directory.GetFiles(path).Length == 0); - if (!dirsEmpty) - { - UnityEditor.EditorUtility.DisplayDialog("Error", "The SoundBanks destination folder should be empty", "Ok"); - } - else if (!path.Contains(UnityEngine.Application.dataPath)) - { - UnityEditor.EditorUtility.DisplayDialog("Error", "The SoundBanks destination folder must be located within the Unity project 'Assets' folder.", "Ok"); - } - else if (path == UnityEngine.Application.dataPath) - { - UnityEditor.EditorUtility.DisplayDialog("Error", "The SoundBanks destination folder cannot be the 'Assets' folder.", "Ok"); - } - else - { - var newPath = AkUtilities.MakeRelativePath(UnityEngine.Application.dataPath, path); - var previousPath = settings.GeneratedSoundbanksPath; - if (previousPath != newPath) - { - settings.GeneratedSoundbanksPath = newPath; - var projectPath = AkUtilities.GetFullPath(UnityEngine.Application.dataPath, settings.WwiseProjectPath); - var relPath = AkUtilities.MakeRelativePath(System.IO.Path.GetDirectoryName(projectPath), path); - AkUtilities.SetSoundbanksDestinationFoldersInWproj(projectPath, relPath); - - var fullPreviousPath = AkUtilities.GetFullPath(UnityEngine.Application.dataPath, previousPath); - var appDataPath = UnityEngine.Application.dataPath.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - - if (!string.IsNullOrEmpty(previousPath) && System.IO.Directory.Exists(fullPreviousPath)) - { - UnityEditor.AssetDatabase.Refresh(); - if (fullPreviousPath.Contains(appDataPath)) - { - var destination = System.IO.Path.Combine("Assets", newPath); - AkUtilities.MoveAssetsFromDirectory(fullPreviousPath, destination, true); - } - else - { - AkUtilities.DirectoryCopy(fullPreviousPath, path, true); - } - UnityEditor.AssetDatabase.Refresh(); - } - changed = true; - } - } - } - } - } - } -#else - - using (new UnityEngine.GUILayout.VerticalScope("box")) - { - using (new UnityEngine.GUILayout.HorizontalScope()) - { - UnityEditor.EditorGUILayout.PrefixLabel(Styles.SoundbankPath); - UnityEditor.EditorGUILayout.SelectableLabel(settings.SoundbankPath, Styles.TextField, UnityEngine.GUILayout.Height(17)); - - if (Ellipsis()) - { - var FullPath = AkUtilities.GetFullPath(UnityEngine.Application.streamingAssetsPath, settings.SoundbankPath); - var OpenInPath = System.IO.Path.GetDirectoryName(FullPath); - var path = UnityEditor.EditorUtility.OpenFolderPanel("Select your SoundBanks destination folder", OpenInPath, FullPath.Substring(OpenInPath.Length + 1)); - if (path.Length != 0) - { - var stremingAssetsIndex = UnityEngine.Application.dataPath.Split('/').Length; - var folders = path.Split('/'); - - if (folders.Length - 1 < stremingAssetsIndex || !string.Equals(folders[stremingAssetsIndex], "StreamingAssets", System.StringComparison.OrdinalIgnoreCase)) - { - UnityEditor.EditorUtility.DisplayDialog("Error", "The SoundBank destination folder must be located within the Unity project 'StreamingAssets' folder.", "Ok"); - } - else - { - var previousPath = settings.SoundbankPath; - var newPath = AkUtilities.MakeRelativePath(UnityEngine.Application.streamingAssetsPath, path); - - if (previousPath != newPath) - { - settings.SoundbankPath = newPath; - changed = true; - } - } - } - } - } - - UnityEditor.EditorGUI.BeginChangeCheck(); - settings.CopySoundBanksAsPreBuildStep = UnityEditor.EditorGUILayout.Toggle(Styles.CopySoundBanksAsPreBuildStep, settings.CopySoundBanksAsPreBuildStep); - UnityEngine.GUI.enabled = settings.CopySoundBanksAsPreBuildStep; - settings.GenerateSoundBanksAsPreBuildStep = UnityEditor.EditorGUILayout.Toggle(Styles.GenerateSoundBanksAsPreBuildStep, settings.GenerateSoundBanksAsPreBuildStep); - UnityEngine.GUI.enabled = true; - if (UnityEditor.EditorGUI.EndChangeCheck()) - changed = true; - } -#endif - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEngine.GUILayout.Label(Styles.GlobalSettings, UnityEditor.EditorStyles.boldLabel); - - UnityEditor.EditorGUI.BeginChangeCheck(); - using (new UnityEngine.GUILayout.VerticalScope("box")) - { - settings.CreateWwiseGlobal = UnityEditor.EditorGUILayout.Toggle(Styles.CreateWwiseGlobal, settings.CreateWwiseGlobal); - settings.CreateWwiseListener = UnityEditor.EditorGUILayout.Toggle(Styles.CreateWwiseListener, settings.CreateWwiseListener); - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEngine.GUILayout.Label(Styles.InEditorWarnings, UnityEditor.EditorStyles.boldLabel); - - using (new UnityEngine.GUILayout.VerticalScope("box")) - { - settings.ShowMissingRigidBodyWarning = UnityEditor.EditorGUILayout.Toggle(Styles.ShowMissingRigidBodyWarning, settings.ShowMissingRigidBodyWarning); - settings.ShowSpatialAudioWarningMsg = UnityEditor.EditorGUILayout.Toggle(Styles.ShowSpatialAudioWarningMsg, settings.ShowSpatialAudioWarningMsg); - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEngine.GUILayout.Label(Styles.WaapiSection, UnityEditor.EditorStyles.boldLabel); - using (new UnityEngine.GUILayout.VerticalScope("box")) - { - settings.UseWaapi = UnityEditor.EditorGUILayout.Toggle(Styles.UseWaapi, settings.UseWaapi); - settings.WaapiPort = UnityEditor.EditorGUILayout.TextField(Styles.WaapiPort, settings.WaapiPort); - settings.WaapiIP = UnityEditor.EditorGUILayout.TextField(Styles.WaapiIP, settings.WaapiIP); - } - - if (UnityEditor.EditorGUI.EndChangeCheck()) - changed = true; - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEngine.GUILayout.Label(Styles.MandatorySettings); - - UnityEditor.EditorGUIUtility.labelWidth = labelWidth; - - if (changed) - settings.SaveSettings(); - } - #endregion - } -} -#endif // UNITY_EDITOR -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseEditorSettings.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseEditorSettings.cs.meta deleted file mode 100644 index 0a09ce883..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseEditorSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f04ab71096940464a89af19d396fea85 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseFileWatcher.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseFileWatcher.cs deleted file mode 100644 index d175935b1..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseFileWatcher.cs +++ /dev/null @@ -1,162 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.Threading; - -public class AkWwiseFileWatcher -{ - private static readonly AkWwiseFileWatcher instance = new AkWwiseFileWatcher(); - public static AkWwiseFileWatcher Instance { get { return instance; } } - - private System.IO.FileSystemWatcher XmlWatcher; - private System.IO.FileSystemWatcher WprojWatcher; - private bool XmlExceptionOccurred; - private bool ProjectExceptionOccurred; - private bool xmlChanged; - private bool wprojChanged; - - public event System.Action XMLUpdated; - public event System.Action WwiseProjectUpdated; - public System.Func PopulateXML; - private string generatedSoundbanksPath; - private string wwiseProjectPath; - - private AkWwiseFileWatcher() - { - if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode && !UnityEditor.EditorApplication.isPlaying) - { - return; - } - - StartWatchers(); - } - - public void StartWatchers() - { - generatedSoundbanksPath = AkBasePathGetter.GetPlatformBasePath(); - wwiseProjectPath = AkBasePathGetter.GetWwiseProjectDirectory(); - - new Thread(CreateXmlWatcher).Start(); - new Thread(CreateProjectWatcher).Start(); - - WwiseProjectUpdated += AkUtilities.SoundBankDestinationsUpdated; - UnityEditor.EditorApplication.update += OnEditorUpdate; - } - - public void CreateXmlWatcher() - { - - try - { - if (XmlWatcher != null) - { - XmlWatcher.Dispose(); - } - - XmlWatcher = new System.IO.FileSystemWatcher(generatedSoundbanksPath) {Filter = "*.xml", IncludeSubdirectories = true, }; - // Event handlers that are watching for specific event - XmlWatcher.Created += RaiseXmlFlag; - XmlWatcher.Changed += RaiseXmlFlag; - - XmlWatcher.NotifyFilter = System.IO.NotifyFilters.LastWrite; - XmlWatcher.EnableRaisingEvents = true; - XmlExceptionOccurred = false; - } - catch - { - XmlExceptionOccurred = true; - } - } - - public void CreateProjectWatcher() - { - - try - { - if (XmlWatcher != null) - { - WprojWatcher.Dispose(); - } - - WprojWatcher = new System.IO.FileSystemWatcher(wwiseProjectPath) { Filter = "*.wproj", IncludeSubdirectories = false, }; - // Event handlers that are watching for specific event - WprojWatcher.Created += RaiseProjectFlag; - WprojWatcher.Changed += RaiseProjectFlag; - - WprojWatcher.NotifyFilter = System.IO.NotifyFilters.LastWrite; - WprojWatcher.EnableRaisingEvents = true; - ProjectExceptionOccurred= false; - } - catch - { - ProjectExceptionOccurred = true; - } - } - - - private void OnEditorUpdate() - { - HandleXmlChange(); - HandleWprojChange(); - } - - private void HandleXmlChange() - { - var logWarnings = AkBasePathGetter.LogWarnings; - AkBasePathGetter.LogWarnings = false; - generatedSoundbanksPath = AkBasePathGetter.GetPlatformBasePath(); - - if (XmlExceptionOccurred || generatedSoundbanksPath != XmlWatcher?.Path) - { - new Thread(CreateXmlWatcher).Start(); - } - - if (!xmlChanged) - return; - - xmlChanged = false; - - var populate = PopulateXML; - if (populate == null || !populate()) - return; - - var callback = XMLUpdated; - if (callback != null) - { - callback(); - } - } - - - private void HandleWprojChange() - { - wwiseProjectPath = AkBasePathGetter.GetWwiseProjectDirectory(); - - if (ProjectExceptionOccurred || wwiseProjectPath != WprojWatcher?.Path) - { - new Thread(CreateProjectWatcher).Start(); - } - - if (!wprojChanged) - return; - - wprojChanged = false; - WwiseProjectUpdated?.Invoke(WprojWatcher.Path); - } - - private void RaiseXmlFlag(object sender, System.IO.FileSystemEventArgs e) - { - xmlChanged = true; - } - - - private void RaiseProjectFlag(object sender, System.IO.FileSystemEventArgs e) - { - wprojChanged = true; - } -} -#endif diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseFileWatcher.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseFileWatcher.cs.meta deleted file mode 100644 index e4a79b1e0..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseFileWatcher.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 529beccdc9e09e54ba46339a52e8bcab -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseInitializationSettings.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseInitializationSettings.cs deleted file mode 100644 index 9a34830cc..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseInitializationSettings.cs +++ /dev/null @@ -1,1307 +0,0 @@ -public class AkWwiseInitializationSettings : AkCommonPlatformSettings -{ - [UnityEngine.HideInInspector] - public System.Collections.Generic.List PlatformSettingsNameList - = new System.Collections.Generic.List(); - - [UnityEngine.HideInInspector] - public System.Collections.Generic.List PlatformSettingsList - = new System.Collections.Generic.List(); - - [UnityEngine.HideInInspector] - public System.Collections.Generic.List InvalidReferencePlatforms - = new System.Collections.Generic.List(); - - public bool IsValid - { - get { return PlatformSettingsNameList.Count == PlatformSettingsList.Count; } - } - - public int Count - { - get { return PlatformSettingsList.Count; } - } - - [UnityEngine.HideInInspector] - public AkCommonUserSettings UserSettings; - [UnityEngine.HideInInspector] - public AkCommonAdvancedSettings AdvancedSettings; - [UnityEngine.HideInInspector] - public AkCommonCommSettings CommsSettings; - - protected override AkCommonUserSettings GetUserSettings() - { - return UserSettings; - } - - protected override AkCommonAdvancedSettings GetAdvancedSettings() - { - return AdvancedSettings; - } - - protected override AkCommonCommSettings GetCommsSettings() - { - return CommsSettings; - } - - private static readonly string[] AllGlobalValues = new[] - { - "UserSettings.m_BasePath", - "UserSettings.m_StartupLanguage", - "UserSettings.m_EngineLogging", - "UserSettings.m_MaximumNumberOfPositioningPaths", - "UserSettings.m_MemoryCutoffThreshold", - "UserSettings.m_CommandQueueSize", - "UserSettings.m_SamplesPerFrame", - "UserSettings.m_MainOutputSettings.m_AudioDeviceShareset", - "UserSettings.m_MainOutputSettings.m_DeviceID", - "UserSettings.m_MainOutputSettings.m_PanningRule", - "UserSettings.m_MainOutputSettings.m_ChannelConfig.m_ChannelConfigType", - "UserSettings.m_MainOutputSettings.m_ChannelConfig.m_ChannelMask", - "UserSettings.m_MainOutputSettings.m_ChannelConfig.m_NumberOfChannels", - "UserSettings.m_StreamingLookAheadRatio", - "UserSettings.m_SampleRate", - "UserSettings.m_NumberOfRefillsInVoice", - "UserSettings.m_SpatialAudioSettings.m_MaxSoundPropagationDepth", - "UserSettings.m_SpatialAudioSettings.m_MovementThreshold", - "UserSettings.m_SpatialAudioSettings.m_NumberOfPrimaryRays", - "UserSettings.m_SpatialAudioSettings.m_MaxReflectionOrder", - "UserSettings.m_SpatialAudioSettings.m_MaxPathLength", - "UserSettings.m_SpatialAudioSettings.m_CPULimitPercentage", - "UserSettings.m_SpatialAudioSettings.m_EnableDiffractionOnReflections", - "UserSettings.m_SpatialAudioSettings.m_EnableGeometricDiffractionAndTransmission", - "UserSettings.m_SpatialAudioSettings.m_CalcEmitterVirtualPosition", - "UserSettings.m_SpatialAudioSettings.m_UseObstruction", - "UserSettings.m_SpatialAudioSettings.m_UseOcclusion", - "CommsSettings.m_PoolSize", - "CommsSettings.m_DiscoveryBroadcastPort", - "CommsSettings.m_CommandPort", - "CommsSettings.m_NotificationPort", - "CommsSettings.m_InitializeSystemComms", - "CommsSettings.m_NetworkName", - "AdvancedSettings.m_IOMemorySize", - "AdvancedSettings.m_TargetAutoStreamBufferLengthMs", - "AdvancedSettings.m_UseStreamCache", - "AdvancedSettings.m_MaximumPinnedBytesInCache", - "AdvancedSettings.m_EnableGameSyncPreparation", - "AdvancedSettings.m_ContinuousPlaybackLookAhead", - "AdvancedSettings.m_MonitorQueuePoolSize", - "AdvancedSettings.m_MaximumHardwareTimeoutMs", - "AdvancedSettings.m_SpatialAudioSettings.m_DiffractionShadowAttenuationFactor", - "AdvancedSettings.m_SpatialAudioSettings.m_DiffractionShadowDegrees", - "AdvancedSettings.m_RenderDuringFocusLoss", - "AdvancedSettings.m_UseAsyncOpen", - "AdvancedSettings.m_SoundBankPersistentDataPath", - "AdvancedSettings.m_DebugOutOfRangeCheckEnabled", - "AdvancedSettings.m_DebugOutOfRangeLimit" - }; - - public abstract class PlatformSettings : AkCommonPlatformSettings - { - #region Ignore property list management - [UnityEngine.SerializeField] - [UnityEngine.HideInInspector] - private System.Collections.Generic.List IgnorePropertyNameList = - new System.Collections.Generic.List(); - - public void IgnorePropertyValue(string propertyPath) - { - if (IsPropertyIgnored(propertyPath)) - return; - - IgnorePropertyNameList.Add(propertyPath); - SetUseGlobalPropertyValue(propertyPath, false); - } - - public bool IsPropertyIgnored(string propertyPath) - { - return IgnorePropertyNameList.Contains(propertyPath); - } - #endregion - - #region Global property list management - [UnityEngine.SerializeField] - [UnityEngine.HideInInspector] - private System.Collections.Generic.List GlobalPropertyNameList = - new System.Collections.Generic.List(); - - protected PlatformSettings() - { - SetGlobalPropertyValues(AllGlobalValues); - } - - public void SetUseGlobalPropertyValue(string propertyPath, bool use) - { - if (IsUsingGlobalPropertyValue(propertyPath) == use) - return; - - if (use) - GlobalPropertyNameList.Add(propertyPath); - else - GlobalPropertyNameList.Remove(propertyPath); - - _GlobalPropertyHashSet = null; - } - - public void SetGlobalPropertyValues(System.Collections.IEnumerable enumerable) - { - foreach (var item in enumerable) - { - string propertyPath = item as string; - if (!IsUsingGlobalPropertyValue(propertyPath)) - GlobalPropertyNameList.Add(propertyPath); - } - } - - private bool IsUsingGlobalPropertyValue(string propertyPath) - { - return GlobalPropertyNameList.Contains(propertyPath); - } - - private System.Collections.Generic.HashSet _GlobalPropertyHashSet = null; - - public System.Collections.Generic.HashSet GlobalPropertyHashSet - { - get - { - if (_GlobalPropertyHashSet == null) - _GlobalPropertyHashSet = new System.Collections.Generic.HashSet(GlobalPropertyNameList); - return _GlobalPropertyHashSet; - } - set { _GlobalPropertyHashSet = value; } - } - #endregion - -#if UNITY_EDITOR - protected static void RegisterPlatformSettingsClass(string platformName) where T : PlatformSettings - { - string className = typeof(T).Name; - string currentClassName; - if (m_PlatformSettingsClassNames.TryGetValue(platformName, out currentClassName) && currentClassName == className) - { - UnityEngine.Debug.LogWarning("WwiseUnity: The class <" + currentClassName + "> is being replaced by <" + className + "> for the reference platform: " + platformName); - return; - } - - m_PlatformSettingsClassNames[platformName] = className; - } - - public static bool IsDistinctPlatform(string platformName) - { - return m_PlatformSettingsClassNames.ContainsKey(platformName); - } - -#endif - } - - public class CommonPlatformSettings : PlatformSettings - { - protected override AkCommonUserSettings GetUserSettings() - { - return UserSettings; - } - - protected override AkCommonAdvancedSettings GetAdvancedSettings() - { - return AdvancedSettings; - } - - protected override AkCommonCommSettings GetCommsSettings() - { - return CommsSettings; - } - - [UnityEngine.HideInInspector] - public AkCommonUserSettings UserSettings; - [UnityEngine.HideInInspector] - public AkCommonAdvancedSettings AdvancedSettings; - [UnityEngine.HideInInspector] - public AkCommonCommSettings CommsSettings; - } - - #region Singleton management - private static AkWwiseInitializationSettings m_Instance = null; - private static AkBasePlatformSettings m_ActivePlatformSettings = null; - - public static AkWwiseInitializationSettings Instance - { - get - { - if (m_Instance == null) - { -#if UNITY_EDITOR - var name = typeof(AkWwiseInitializationSettings).Name; - m_Instance = GetOrCreateAsset(name, name); -#else - m_Instance = CreateInstance(); - UnityEngine.Debug.LogWarning("WwiseUnity: No platform specific settings were created. Default initialization settings will be used."); -#endif - } - - return m_Instance; - } - } - - private static AkBasePlatformSettings GetPlatformSettings(string platformName) - { - var instance = Instance; - if (!instance.IsValid) - return instance; - - for (var i = 0; i < instance.Count; ++i) - { - var platformSettings = instance.PlatformSettingsList[i]; - if (platformSettings && (string.Equals(platformName, instance.PlatformSettingsNameList[i], System.StringComparison.OrdinalIgnoreCase))) - return platformSettings; - } - - UnityEngine.Debug.LogWarning("WwiseUnity: Platform specific settings cannot be found for <" + platformName + ">. Using global settings."); - return instance; - } - - public static AkBasePlatformSettings ActivePlatformSettings - { - get - { - if (m_ActivePlatformSettings == null) - m_ActivePlatformSettings = GetPlatformSettings(AkBasePathGetter.GetPlatformName()); - - return m_ActivePlatformSettings; - } - } - - private void OnEnable() - { - if (m_Instance == null) - m_Instance = this; - else if (m_Instance != this) - UnityEngine.Debug.LogWarning("WwiseUnity: There are multiple AkWwiseInitializationSettings objects instantiated; only one will be used."); - } - #endregion - - #region Sound Engine Initialization - public bool InitializeSoundEngine() - { -#if UNITY_EDITOR - Instance.ActiveSettingsHash = GetHashOfActiveSettings(); - Instance.ActiveSettingsHaveChanged = true; -#endif - - UnityEngine.Debug.LogFormat("WwiseUnity: Wwise(R) SDK Version {0}.", AkSoundEngine.WwiseVersion); - - var initResult = AkSoundEngine.Init(ActivePlatformSettings.AkInitializationSettings); - if (initResult != AKRESULT.AK_Success) - { - UnityEngine.Debug.LogError($"WwiseUnity: Failed to initialize the sound engine. Reason: {initResult}"); - AkSoundEngine.Term(); - return false; - } - - if (AkSoundEngine.InitSpatialAudio(ActivePlatformSettings.AkSpatialAudioInitSettings) != AKRESULT.AK_Success) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Failed to initialize spatial audio."); - } - - AkSoundEngine.InitCommunication(ActivePlatformSettings.AkCommunicationSettings); - AkBasePathGetter.EvaluateGamePaths(); - - var soundBankBasePath = AkBasePathGetter.SoundBankBasePath; - if (string.IsNullOrEmpty(soundBankBasePath)) - { - // this is a nearly impossible situation - UnityEngine.Debug.LogError("WwiseUnity: Couldn't find SoundBanks base path. Terminating sound engine."); - AkSoundEngine.Term(); - return false; - } - - var persistentDataPath = AkBasePathGetter.PersistentDataPath; - var isBasePathSameAsPersistentPath = soundBankBasePath == persistentDataPath; - -#if UNITY_ANDROID - var canSetBasePath = !isBasePathSameAsPersistentPath; - var canSetPersistentDataPath = true; -#else - var canSetBasePath = true; - var canSetPersistentDataPath = !isBasePathSameAsPersistentPath; -#endif - - if (canSetBasePath && AkSoundEngine.SetBasePath(soundBankBasePath) != AKRESULT.AK_Success) - { -#if UNITY_EDITOR - var format = "WwiseUnity: Failed to set SoundBanks base path to <{0}>. Make sure SoundBank path is correctly set under Edit > Project Settings > Wwise > Editor > Asset Management."; -#else - var format = "WwiseUnity: Failed to set SoundBanks base path to <{0}>. Make sure SoundBank path is correctly set under Edit > Project Settings > Wwise > Initialization."; -#endif - -#if !UNITY_ANDROID || UNITY_EDITOR - // It might be normal for SetBasePath to return AK_PathNotFound on Android. Silence the error log to avoid confusion. - UnityEngine.Debug.LogErrorFormat(format, soundBankBasePath); -#endif - } - - if (canSetPersistentDataPath && !string.IsNullOrEmpty(persistentDataPath)) - { - AkSoundEngine.AddBasePath(persistentDataPath); - } - - var decodedBankFullPath = AkBasePathGetter.DecodedBankFullPath; - if (!string.IsNullOrEmpty(decodedBankFullPath)) - { - // AkSoundEngine.SetDecodedBankPath creates the folders for writing to (if they don't exist) - AkSoundEngine.SetDecodedBankPath(decodedBankFullPath); - - // Adding decoded bank path last to ensure that it is the first one used when writing decoded banks. - AkSoundEngine.AddBasePath(decodedBankFullPath); - } - - AkSoundEngine.SetCurrentLanguage(ActivePlatformSettings.InitialLanguage); - - AkCallbackManager.Init(ActivePlatformSettings.CallbackManagerInitializationSettings); - UnityEngine.Debug.Log("WwiseUnity: Sound engine initialized successfully."); - LoadInitBank(); - return true; - } - - protected virtual void LoadInitBank() - { - AkBankManager.LoadInitBank(); - } - - protected virtual void ClearBanks() - { - AkSoundEngine.ClearBanks(); - } - - protected virtual void ResetBanks() - { - AkBankManager.Reset(); - } - - - public bool ResetSoundEngine(bool isPlaying) - { - if (isPlaying) - { - ClearBanks(); - LoadInitBank(); - } - - AkCallbackManager.Init(ActivePlatformSettings.CallbackManagerInitializationSettings); - return true; - } - - public void TerminateSoundEngine() - { - if (!AkSoundEngine.IsInitialized()) - return; - - // Stop everything, and make sure the callback buffer is empty. We try emptying as much as possible, and wait 10 ms before retrying. - // Callbacks can take a long time to be posted after the call to RenderAudio(). - AkSoundEngine.StopAll(); - ClearBanks(); - AkSoundEngine.RenderAudio(); - - for (var retry = 0; retry < 5;) - { - if (AkCallbackManager.PostCallbacks() == 0) - { - SleepForMilliseconds(10); - ++retry; - } - - SleepForMilliseconds(1); - } - - AkSoundEngine.Term(); - - // Make sure we have no callbacks left after Term. Some might be posted during termination. - AkCallbackManager.PostCallbacks(); - - AkCallbackManager.Term(); - ResetBanks(); - -#if UNITY_EDITOR - Instance.ActiveSettingsHash = string.Empty; - Instance.ActiveSettingsHaveChanged = true; -#endif - } - - private static void SleepForMilliseconds(double milliseconds) - { - using (var tmpEvent = new System.Threading.ManualResetEvent(false)) - tmpEvent.WaitOne(System.TimeSpan.FromMilliseconds(milliseconds)); - } -#endregion - -#if UNITY_EDITOR - public static T GetOrCreateAsset(string className, string fileName) where T : AkCommonPlatformSettings - { - var path = System.IO.Path.Combine(AkWwiseEditorSettings.WwiseScriptableObjectRelativePath, fileName + ".asset"); - var asset = UnityEditor.AssetDatabase.LoadAssetAtPath(path); - if (asset) - return asset; - - var guids = UnityEditor.AssetDatabase.FindAssets("t:" + typeof(T).Name); - foreach (var assetGuid in guids) - { - var assetPath = UnityEditor.AssetDatabase.GUIDToAssetPath(assetGuid); - asset = UnityEditor.AssetDatabase.LoadAssetAtPath(assetPath); - if (asset) - return asset; - } - - asset = CreateInstance(className) as T; - AkUtilities.CreateFolder(AkWwiseEditorSettings.WwiseScriptableObjectRelativePath); - UnityEditor.AssetDatabase.CreateAsset(asset, path); - return asset; - } - - private static System.Collections.Generic.Dictionary m_PlatformSettingsClassNames - = new System.Collections.Generic.Dictionary(); - - private const System.Reflection.BindingFlags BindingFlags - = System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic; - - private static string GetHashOfActiveSettingsField(string name, object obj) - { - var type = obj.GetType(); - if (type.IsPrimitive || type == typeof(string)) - return name + ": " + obj.ToString() + "\n"; - - string ret = string.Empty; - foreach (var subFieldInfo in type.GetFields(BindingFlags)) - { - var subObject = subFieldInfo.GetValue(obj); - var subType = subFieldInfo.FieldType; - var fields = subType.GetFields(BindingFlags); - - if (fields.Length == 0) - ret += subFieldInfo.Name + ": " + subObject.ToString() + "\n"; - else - ret += GetHashOfActiveSettingsField(subFieldInfo.Name, subObject); - } - - return ret; - } - - public static string GetHashOfActiveSettings() - { - try - { - return GetHashOfActiveSettingsField(string.Empty, ActivePlatformSettings); - } - catch - { - return string.Empty; - } - } - - [UnityEngine.HideInInspector] - private bool ActiveSettingsHaveChanged = true; - - [UnityEngine.HideInInspector] - private string ActiveSettingsHash; - public static void UpdatePlatforms() - { - if (!AkUtilities.IsWwiseProjectAvailable) - return; - - var customPlatformSettingsMap = new System.Collections.Generic.Dictionary(); - var instance = Instance; - if (instance.IsValid) - { - for (var i = 0; i < instance.Count; ++i) - { - var settings = instance.PlatformSettingsList[i]; - var name = instance.PlatformSettingsNameList[i]; - if (settings && !string.IsNullOrEmpty(name)) - customPlatformSettingsMap.Add(name, settings); - } - } - - var updated = false; - var allCustomPlatforms = new System.Collections.Generic.List(); - foreach (var pair in AkUtilities.PlatformMapping) - { - var referencePlatform = pair.Key; - var customPlatformList = pair.Value; - - string className, customClassName; - if (!m_PlatformSettingsClassNames.TryGetValue(referencePlatform, out className)) - { - if (!instance.InvalidReferencePlatforms.Contains(referencePlatform)) - { - instance.InvalidReferencePlatforms.Add(referencePlatform); - UnityEngine.Debug.LogError("WwiseUnity: A class has not been registered for the reference platform: " + referencePlatform); - } - continue; - } - - foreach (var customWwisePlatform in customPlatformList) - { - allCustomPlatforms.Add(customWwisePlatform); - if (customPlatformSettingsMap.ContainsKey(customWwisePlatform)) - continue; - - PlatformSettings settings; - if (m_PlatformSettingsClassNames.TryGetValue(customWwisePlatform, out customClassName)) - { - settings = GetOrCreateAsset(customClassName, customWwisePlatform); - } - else - { - settings = GetOrCreateAsset(className, customWwisePlatform); - } - customPlatformSettingsMap.Add(customWwisePlatform, settings); - updated = true; - } - } - - var customPlatformSettingsToRemoveMap = new System.Collections.Generic.Dictionary(); - foreach (var pair in customPlatformSettingsMap) - { - var instantiatedCustomPlatform = pair.Key; - if (!allCustomPlatforms.Contains(instantiatedCustomPlatform)) - customPlatformSettingsToRemoveMap.Add(instantiatedCustomPlatform, pair.Value); - } - - foreach (var pair in customPlatformSettingsToRemoveMap) - { - var instantiatedCustomPlatform = pair.Key; - customPlatformSettingsMap.Remove(instantiatedCustomPlatform); - - var parentPath = System.IO.Path.Combine("Assets", AkWwiseEditorSettings.WwiseScriptableObjectRelativePath); - var assetPath = System.IO.Path.Combine(parentPath, instantiatedCustomPlatform + ".asset"); - UnityEditor.AssetDatabase.DeleteAsset(assetPath); - updated = true; - } - - if (updated) - { - instance.PlatformSettingsNameList.Clear(); - instance.PlatformSettingsList.Clear(); - - AkUtilities.RepaintInspector(); - - var keys = System.Linq.Enumerable.ToList(customPlatformSettingsMap.Keys); - keys.Sort(); - - foreach (var key in keys) - { - instance.PlatformSettingsNameList.Add(key); - instance.PlatformSettingsList.Add(customPlatformSettingsMap[key]); - } - - UnityEditor.EditorUtility.SetDirty(instance); - UnityEditor.AssetDatabase.SaveAssets(); - AkUtilities.RepaintInspector(); - } - } - -#region Custom Editor -#if UNITY_2018_3_OR_NEWER - class SettingsProvider : UnityEditor.SettingsProvider -#else - [UnityEditor.MenuItem("Edit/Wwise Initialization Settings..", false, (int)AkWwiseWindowOrder.WwiseInitializationSettings)] - private static void WwiseInitializationSettingsMenuItem() - { - UnityEditor.Selection.activeObject = Instance; - } - - [UnityEditor.CustomEditor(typeof(AkWwiseInitializationSettings))] - public class Editor : UnityEditor.Editor -#endif - { -#if UNITY_2018_3_OR_NEWER - private SettingsProvider(string path) : base(path, UnityEditor.SettingsScope.Project) { } - - [UnityEditor.SettingsProvider] - public static UnityEditor.SettingsProvider CreateMyCustomSettingsProvider() - { - return new SettingsProvider("Project/Wwise Initialization"); - } - - private UnityEditor.SerializedObject serializedObject; -#endif - - private const string UserSettings = "UserSettings"; - private const string AdvancedSettings = "AdvancedSettings"; - private const string CommsSettings = "CommsSettings"; - - private System.Collections.Generic.List PreviousPlatformSettingsList - = new System.Collections.Generic.List(); - - private System.Collections.Generic.List GlobalSettingsGroups - = new System.Collections.Generic.List(); - - private System.Collections.Generic.Dictionary> GlobalGroupSettingsMap - = new System.Collections.Generic.Dictionary>(); - - private System.Collections.Generic.List PlatformSpecificSettingsGroups - = new System.Collections.Generic.List(); - -#if UNITY_2019_1_OR_NEWER - public override void OnActivate(string searchContext, UnityEngine.UIElements.VisualElement rootElement) -#elif UNITY_2018_3_OR_NEWER - public override void OnActivate(string searchContext, UnityEngine.Experimental.UIElements.VisualElement rootElement) -#else - public void OnEnable() -#endif - { - UpdateRequired = true; - -#if UNITY_2018_3_OR_NEWER - serializedObject = new UnityEditor.SerializedObject(Instance); -#endif - - GlobalGroupSettingsMap.Clear(); - foreach (var settingsGroup in new[] { UserSettings, AdvancedSettings, CommsSettings }) - { - var property = serializedObject.FindProperty(settingsGroup); - if (property == null) - return; - - var type = System.Type.GetType(property.type); - foreach (var field in type.GetFields()) - { - var childProperty = property.FindPropertyRelative(field.Name); - if (childProperty == null) - continue; - - System.Collections.Generic.HashSet hashSet = null; - if (!GlobalGroupSettingsMap.TryGetValue(settingsGroup, out hashSet)) - { - hashSet = new System.Collections.Generic.HashSet(); - GlobalGroupSettingsMap.Add(settingsGroup, hashSet); - } - - hashSet.Add(childProperty.propertyPath); - } - } - - GlobalSettingsGroups.Clear(); - GlobalSettingsGroups.Add(new GlobalSettingsGroupData(UserSettings, serializedObject, "", GlobalGroupSettingsMap[UserSettings])); - GlobalSettingsGroups.Add(new GlobalSettingsGroupData(AdvancedSettings, serializedObject, "", GlobalGroupSettingsMap[AdvancedSettings])); - GlobalSettingsGroups.Add(new GlobalSettingsGroupData(CommsSettings, serializedObject, "Wwise Communication Settings", GlobalGroupSettingsMap[CommsSettings])); - } - -#if UNITY_2018_3_OR_NEWER - public override void OnGUI(string searchContext) -#else - public override void OnInspectorGUI() -#endif - { - if (!Instance.IsValid) - { - UnityEditor.EditorGUILayout.HelpBox("Platform names do not correspond with their associated settings data.", UnityEditor.MessageType.Error); - return; - } - - var labelWidth = UnityEditor.EditorGUIUtility.labelWidth; - UnityEditor.EditorGUIUtility.labelWidth += 100; - - UpdatePlatformData(); - DrawHelpBox(); - - UnityEditor.EditorGUILayout.Space(); - - if (PreviousPlatformSettingsList.Count == 0) - { - if (!AkUtilities.IsWwiseProjectAvailable) - { - UnityEditor.EditorGUILayout.HelpBox("The Wwise project is not available. Please specify its location within the Wwise Settings.", UnityEditor.MessageType.Warning); - return; - } - - UnityEditor.EditorGUILayout.HelpBox("No Wwise platforms have been added. Editing global settings.", UnityEditor.MessageType.Warning); - UnityEditor.EditorGUILayout.Space(); - } - - UnityEditor.EditorGUI.BeginChangeCheck(); - - serializedObject.Update(); - - foreach (var setting in GlobalSettingsGroups) - setting.Draw(); - - serializedObject.ApplyModifiedProperties(); - - UnityEditor.EditorGUILayout.Space(); - - foreach (var setting in PlatformSpecificSettingsGroups) - setting.Draw(); - - if (UnityEditor.EditorGUI.EndChangeCheck()) - Instance.ActiveSettingsHaveChanged = true; - - UnityEditor.EditorGUIUtility.labelWidth = labelWidth; - } - - private bool UpdateRequired = false; - - private void UpdatePlatformData() - { - if (!UpdateRequired) - { - var firstNotSecond = System.Linq.Enumerable.Except(PreviousPlatformSettingsList, Instance.PlatformSettingsList); - var secondNotFirst = System.Linq.Enumerable.Except(Instance.PlatformSettingsList, PreviousPlatformSettingsList); - var refreshRequired = System.Linq.Enumerable.Any(firstNotSecond) || System.Linq.Enumerable.Any(secondNotFirst); - if (!refreshRequired) - { - foreach (var platformSettings in Instance.PlatformSettingsList) - { - if (platformSettings == null) - { - refreshRequired = true; - break; - } - } - - if (!refreshRequired) - return; - } - } - else - { - UpdateRequired = false; - } - - PreviousPlatformSettingsList.Clear(); - PlatformSpecificSettingsGroups.Clear(); - - var platformNames = new System.Collections.Generic.HashSet(); - - foreach (var setting in GlobalSettingsGroups) - setting.ClearPlatformData(); - - for (var i = 0; i < Instance.Count; ++i) - { - var platformSettings = Instance.PlatformSettingsList[i]; - if (!platformSettings) - continue; - - var platformName = Instance.PlatformSettingsNameList[i]; - if (string.IsNullOrEmpty(platformName)) - continue; - - if (!platformNames.Contains(platformName)) - { - platformNames.Add(platformName); - PreviousPlatformSettingsList.Add(platformSettings); - - var platform = new PlatformData - { - Settings = platformSettings, - Name = platformName, - SerializedObject = new UnityEditor.SerializedObject(platformSettings) - }; - - foreach (var setting in GlobalSettingsGroups) - setting.SetupPlatform(platform); - - foreach (var settingsGroup in new[] { UserSettings, AdvancedSettings, CommsSettings }) - PlatformSpecificSettingsGroups.Add(new PlatformSpecificSettingsData(platform, settingsGroup, GlobalGroupSettingsMap[settingsGroup])); - } - } - } - - private static void DrawHelpBox() - { - if (Instance.ActiveSettingsHaveChanged) - { - var hash = GetHashOfActiveSettings(); - Instance.ActiveSettingsHaveChanged = string.IsNullOrEmpty(hash) || hash != Instance.ActiveSettingsHash; - } - - var helpBoxText = "No changes have been made. Please be advised that changes will take effect once the Editor exits play mode."; - var messageType = UnityEditor.MessageType.Info; - - if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || UnityEditor.EditorApplication.isPlaying || UnityEditor.BuildPipeline.isBuildingPlayer) - { - helpBoxText = "Changes will take effect once the Editor exits play mode."; - } - else if (Instance.ActiveSettingsHaveChanged) - { - helpBoxText = "Changes have been made and will take effect once the Editor exits play mode."; - messageType = UnityEditor.MessageType.Warning; - } - - UnityEditor.EditorGUILayout.HelpBox(helpBoxText, messageType); - } - - private static System.Collections.Generic.IEnumerable GetChildren(UnityEditor.SerializedProperty property) - { - property = property.Copy(); - var nextElement = property.Copy(); - bool hasNextElement = nextElement.Next(false); - if (!hasNextElement) - nextElement = null; - - if (!property.Next(true)) - yield break; - - while (!UnityEditor.SerializedProperty.EqualContents(property, nextElement)) - { - yield return property.Copy(); - - if (!property.Next(false)) - break; - } - } - - private static bool DrawFoldout(UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.FontStyle fontStyle) - { - var settingsFoldoutStyle = new UnityEngine.GUIStyle(UnityEditor.EditorStyles.foldout) { fontStyle = fontStyle }; - var value = UnityEditor.EditorGUILayout.Foldout(property.isExpanded, label, true, settingsFoldoutStyle); - property.isExpanded = value; - return value; - } - - private class PlatformData - { - public PlatformSettings Settings; - public UnityEditor.SerializedObject SerializedObject; - public string Name; - } - - private class GlobalSettingsGroupData - { - string ToolTip; - string DisplayName; - UnityEditor.SerializedProperty Property; - System.Collections.Generic.List SettingsList; - - public GlobalSettingsGroupData(string settingsGroup, UnityEditor.SerializedObject serializedObject, string displayName, System.Collections.Generic.HashSet propertyHashSet) - { - Property = serializedObject.FindProperty(settingsGroup); - if (Property == null) - return; - - ToolTip = AkUtilities.GetTooltip(Property); - DisplayName = string.IsNullOrEmpty(displayName) ? ("Common " + Property.displayName) : displayName; - SettingsList = new System.Collections.Generic.List(); - - foreach (var childPropertyPath in propertyHashSet) - { - var childProperty = serializedObject.FindProperty(childPropertyPath); - if (childProperty == null) - continue; - - SettingsList.Add(new GlobalSettingData(childProperty, childPropertyPath)); - } - } - - public void SetupPlatform(PlatformData platform) - { - if (SettingsList == null || SettingsList.Count == 0) - return; - - foreach (var settings in SettingsList) - settings.SetupPlatform(platform); - } - - public void ClearPlatformData() - { - if (SettingsList != null) - foreach (var setting in SettingsList) - setting.ClearPlatformData(); - } - - public void Draw() - { - if (SettingsList == null || SettingsList.Count == 0) - return; - - using (var verticalScope = new UnityEditor.EditorGUILayout.VerticalScope("box")) - { -#if !UNITY_2018_3_OR_NEWER - ++UnityEditor.EditorGUI.indentLevel; -#endif - - var label = new UnityEngine.GUIContent { text = DisplayName, tooltip = ToolTip }; - if (DrawFoldout(Property, label, UnityEngine.FontStyle.Bold)) - foreach (var settings in SettingsList) - settings.Draw(); - -#if !UNITY_2018_3_OR_NEWER - --UnityEditor.EditorGUI.indentLevel; -#endif - } - } - - public class GlobalSettingData - { - string ToolTip; - readonly string DisplayName; - readonly string PropertyPath; - readonly bool IsStringValue; - UnityEditor.SerializedProperty Property; - readonly UnityEditor.SerializedPropertyType PropertyType; - System.Collections.Generic.List SettingsList; - System.Collections.Generic.List Children; - - bool HasChildren { get { return Children != null && Children.Count > 0; } } - - public GlobalSettingData(UnityEditor.SerializedProperty property, string propertyPath) - { - Property = property; - PropertyType = property.propertyType; - PropertyPath = propertyPath; - DisplayName = property.displayName; - ToolTip = AkUtilities.GetTooltip(property); - - if (property.type == "string") - { - IsStringValue = true; - } - else if (property.hasChildren) - { - Children = new System.Collections.Generic.List(); - foreach (var child in GetChildren(property)) - Children.Add(new GlobalSettingData(child, child.propertyPath)); - } - } - - public void SetupPlatform(PlatformData platform) - { - if (HasChildren) - { - foreach (var child in Children) - child.SetupPlatform(platform); - } - else - { - if (platform.Settings.IsPropertyIgnored(PropertyPath)) - return; - - if (SettingsList == null) - SettingsList = new System.Collections.Generic.List(); - - SettingsList.Add(new PlatformSettingData(platform, PropertyPath, ToolTip)); - } - } - - public void ClearPlatformData() - { - SettingsList = null; - - if (HasChildren) - foreach (var child in Children) - child.ClearPlatformData(); - } - - private bool AnyChildUsesGlobalValue - { - get - { - if (Children != null && Children.Count > 0) - { - foreach (var child in Children) - if (child.AnyChildUsesGlobalValue) - return true; - - return false; - } - - if (SettingsList == null || SettingsList.Count == 0) - return true; - - foreach (var settings in SettingsList) - if (settings.Platform.Settings.GlobalPropertyHashSet.Contains(PropertyPath)) - return true; - - return false; - } - } - - private bool AllChildrenAreEqual - { - get - { - if (Children != null && Children.Count > 0) - { - foreach (var child in Children) - if (!child.AllChildrenAreEqual) - return false; - - return true; - } - - if (SettingsList == null) - return true; - - switch (PropertyType) - { - case UnityEditor.SerializedPropertyType.Boolean: - var boolValue = Property.boolValue; - foreach (var settings in SettingsList) - if (boolValue != settings.Property.boolValue) - return false; - return true; - - case UnityEditor.SerializedPropertyType.Enum: - var enumValueIndex = Property.enumValueIndex; - foreach (var settings in SettingsList) - if (enumValueIndex != settings.Property.enumValueIndex) - return false; - return true; - - case UnityEditor.SerializedPropertyType.Float: - var floatValue = Property.floatValue; - foreach (var settings in SettingsList) - if (floatValue != settings.Property.floatValue) - return false; - return true; - - case UnityEditor.SerializedPropertyType.Integer: - var longValue = Property.longValue; - foreach (var settings in SettingsList) - if (longValue != settings.Property.longValue) - return false; - return true; - - case UnityEditor.SerializedPropertyType.String: - var stringValue = Property.stringValue; - foreach (var settings in SettingsList) - if (stringValue != settings.Property.stringValue) - return false; - return true; - } - - return true; - } - } - - public void Draw() - { - var hasChanged = false; - - var isString = IsStringValue; - var hasChildren = HasChildren; - - if (!hasChildren && (SettingsList == null || SettingsList.Count == 0)) - return; - - using (var verticalScope = new UnityEditor.EditorGUILayout.VerticalScope()) - { - var indentLevel = UnityEditor.EditorGUI.indentLevel++; - var forceExpand = !AnyChildUsesGlobalValue; - var label = new UnityEngine.GUIContent(DisplayName, ToolTip); - - if (hasChildren) - { - DrawFoldout(Property, label, AllChildrenAreEqual ? UnityEngine.FontStyle.Normal : UnityEngine.FontStyle.Italic); - } - else if (!forceExpand) - { - DrawFoldout(Property, label, AllChildrenAreEqual ? UnityEngine.FontStyle.Normal : UnityEngine.FontStyle.Italic); - - UnityEditor.EditorGUI.BeginChangeCheck(); - var labelWithTooltipOnly = new UnityEngine.GUIContent { tooltip = ToolTip }; - if (isString) - UnityEditor.EditorGUILayout.DelayedTextField(Property, labelWithTooltipOnly); - else - UnityEditor.EditorGUILayout.PropertyField(Property, labelWithTooltipOnly, false); - hasChanged = UnityEditor.EditorGUI.EndChangeCheck(); - } - else - { - UnityEditor.EditorGUILayout.LabelField(label); - } - - if (hasChildren) - { - if (Property.isExpanded) - foreach (var child in Children) - child.Draw(); - } - else if (forceExpand || Property.isExpanded) - { - foreach (var settings in SettingsList) - settings.Draw(Property, PropertyPath, forceExpand, ToolTip); - } - else if (hasChanged) - { - foreach (var settings in SettingsList) - if (settings.Platform.Settings.GlobalPropertyHashSet.Contains(PropertyPath)) - settings.UpdateValue(Property); - } - - UnityEditor.EditorGUI.indentLevel = indentLevel; - } - } - - public class PlatformSettingData - { - public UnityEditor.SerializedProperty Property; - public PlatformData Platform; - - public PlatformSettingData(PlatformData platform, string propertyPath, string tooltip) - { - Platform = platform; - Property = Platform.SerializedObject.FindProperty(propertyPath); - } - - public void UpdateValue(UnityEditor.SerializedProperty globalProperty) - { - if (Property == null) - return; - - Platform.SerializedObject.Update(); - PropagateValue(Property, globalProperty); - Platform.SerializedObject.ApplyModifiedProperties(); - } - - public void Draw(UnityEditor.SerializedProperty globalProperty, string propertyPath, bool forceExpand, string tooltip) - { - if (Property == null) - return; - - var indentLevel = UnityEditor.EditorGUI.indentLevel++; - var position = UnityEngine.GUILayoutUtility.GetRect(UnityEngine.GUIContent.none, UnityEngine.GUIStyle.none, UnityEngine.GUILayout.Height(UnityEditor.EditorGUIUtility.singleLineHeight)); - - var wasUsingGlobalValue = Platform.Settings.GlobalPropertyHashSet.Contains(propertyPath); - var width = position.width; - if (!wasUsingGlobalValue) - position.width = UnityEditor.EditorGUIUtility.labelWidth; - - var isUsingGlobalValue = UnityEditor.EditorGUI.ToggleLeft(position, new UnityEngine.GUIContent(Platform.Name, tooltip), wasUsingGlobalValue); - position.width = width; - - if (wasUsingGlobalValue != isUsingGlobalValue) - Platform.Settings.SetUseGlobalPropertyValue(propertyPath, isUsingGlobalValue); - - if (!isUsingGlobalValue) - { - position.x += UnityEditor.EditorGUIUtility.labelWidth; - position.width -= UnityEditor.EditorGUIUtility.labelWidth; - UnityEditor.EditorGUI.indentLevel = 1; // Not zero, so that a control handle is available - - Platform.SerializedObject.Update(); - UnityEditor.EditorGUI.PropertyField(position, Property, new UnityEngine.GUIContent { tooltip = tooltip }); - Platform.SerializedObject.ApplyModifiedProperties(); - } - else if (forceExpand) - PropagateValue(globalProperty, Property); - else - UpdateValue(globalProperty); - - UnityEditor.EditorGUI.indentLevel = indentLevel; - } - - private static void PropagateValue(UnityEditor.SerializedProperty x, UnityEditor.SerializedProperty y) - { - //if (x.propertyType != y.propertyType) - // return; - - switch (x.propertyType) - { - case UnityEditor.SerializedPropertyType.Boolean: - x.boolValue = y.boolValue; - break; - - case UnityEditor.SerializedPropertyType.Enum: - x.longValue = y.longValue; - break; - - case UnityEditor.SerializedPropertyType.Float: - x.floatValue = y.floatValue; - break; - - case UnityEditor.SerializedPropertyType.Integer: - x.longValue = y.longValue; - break; - - case UnityEditor.SerializedPropertyType.String: - x.stringValue = y.stringValue; - break; - - case UnityEditor.SerializedPropertyType.Generic: - if (x.type == y.type) - { - var XProperty = x.Copy(); - var YProperty = y.Copy(); - var XEndProperty = x.Copy(); - var YEndProperty = y.Copy(); - XEndProperty = XEndProperty.Next(false) ? XEndProperty : null; - YEndProperty = YEndProperty.Next(false) ? YEndProperty : null; - - while (XProperty.Next(true) && YProperty.Next(true) && !UnityEditor.SerializedProperty.EqualContents(XProperty, XEndProperty) && !UnityEditor.SerializedProperty.EqualContents(YProperty, YEndProperty)) - PropagateValue(XProperty, YProperty); - } - break; - } - } - } - } - } - - private class PlatformSpecificSettingsData - { - public string ToolTip; - public UnityEditor.SerializedProperty Property; - public System.Collections.Generic.List SettingsList; - public PlatformData Platform; - - public PlatformSpecificSettingsData(PlatformData platform, string propertyPath, System.Collections.Generic.HashSet globalPropertyHashSet) - { - Platform = platform; - Property = Platform.SerializedObject.FindProperty(propertyPath); - if (Property == null) - return; - - ToolTip = AkUtilities.GetTooltip(Property); - - System.Collections.Generic.HashSet hashSet = new System.Collections.Generic.HashSet(); - foreach (var childProperty in GetChildren(Property)) - hashSet.Add(childProperty.propertyPath); - - var remainder = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Except(hashSet, globalPropertyHashSet)); - if (remainder.Length > 0) - SettingsList = new System.Collections.Generic.List(); - - foreach (var childPropertyPath in remainder) - { - var childProperty = Platform.SerializedObject.FindProperty(childPropertyPath); - if (childProperty != null) - SettingsList.Add(childProperty); - } - } - - public void Draw() - { - if (SettingsList == null || SettingsList.Count == 0) - return; - - Platform.SerializedObject.Update(); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { -#if !UNITY_2018_3_OR_NEWER - ++UnityEditor.EditorGUI.indentLevel; -#endif - - var label = new UnityEngine.GUIContent(Platform.Name + " Specific " + Property.displayName, ToolTip); - if (DrawFoldout(Property, label, UnityEngine.FontStyle.Bold)) - { - ++UnityEditor.EditorGUI.indentLevel; - - foreach (var child in SettingsList) - UnityEditor.EditorGUILayout.PropertyField(child, true); - - --UnityEditor.EditorGUI.indentLevel; - } - -#if !UNITY_2018_3_OR_NEWER - --UnityEditor.EditorGUI.indentLevel; -#endif - } - - Platform.SerializedObject.ApplyModifiedProperties(); - } - } - } -#endregion -#endif -} - diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseInitializationSettings.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseInitializationSettings.cs.meta deleted file mode 100644 index 4bf2ec0df..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/AkWwiseInitializationSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7debf90897b011746998daa128f2562b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays.meta deleted file mode 100644 index e85390630..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ba9a95dfd04924c4c8a56743cde2219f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAcousticSurfaceArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAcousticSurfaceArray.cs deleted file mode 100644 index c8fd2181c..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAcousticSurfaceArray.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkAcousticSurfaceArray : AkBaseArray -{ - public AkAcousticSurfaceArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_Clear(address); - } - - protected override AkAcousticSurface CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkAcousticSurface(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkAcousticSurface other) - { - AkSoundEnginePINVOKE.CSharp_AkAcousticSurface_Clone(address, AkAcousticSurface.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAcousticSurfaceArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAcousticSurfaceArray.cs.meta deleted file mode 100644 index a8e8b75a0..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAcousticSurfaceArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3ff7310e27192184c8af3b0ce3129e04 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAuxSendArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAuxSendArray.cs deleted file mode 100644 index 4c1aa2a06..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAuxSendArray.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkAuxSendArray : System.IDisposable -{ - private const int MAX_COUNT = 4; - private readonly int SIZE_OF_AKAUXSENDVALUE = AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_GetSizeOf(); - - private System.IntPtr m_Buffer; - private int m_Count; - - public AkAuxSendArray() - { - m_Buffer = System.Runtime.InteropServices.Marshal.AllocHGlobal(MAX_COUNT * SIZE_OF_AKAUXSENDVALUE); - m_Count = 0; - } - - public AkAuxSendValue this[int index] - { - get - { - if (index >= m_Count) - throw new System.IndexOutOfRangeException("Out of range access in AkAuxSendArray"); - - return new AkAuxSendValue(GetObjectPtr(index), false); - } - } - - public bool isFull - { - get { return m_Count >= MAX_COUNT || m_Buffer == System.IntPtr.Zero; } - } - - public void Dispose() - { - if (m_Buffer != System.IntPtr.Zero) - { - System.Runtime.InteropServices.Marshal.FreeHGlobal(m_Buffer); - m_Buffer = System.IntPtr.Zero; - m_Count = 0; - } - } - - ~AkAuxSendArray() - { - Dispose(); - } - - public void Reset() - { - m_Count = 0; - } - - public bool Add(UnityEngine.GameObject in_listenerGameObj, uint in_AuxBusID, float in_fValue) - { - if (isFull) - return false; - - AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_Set(GetObjectPtr(m_Count), - AkSoundEngine.GetAkGameObjectID(in_listenerGameObj), in_AuxBusID, in_fValue); - m_Count++; - return true; - } - - public bool Add(uint in_AuxBusID, float in_fValue) - { - if (isFull) - return false; - - AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_Set(GetObjectPtr(m_Count), AkSoundEngine.AK_INVALID_GAME_OBJECT, - in_AuxBusID, in_fValue); - m_Count++; - return true; - } - - public bool Contains(UnityEngine.GameObject in_listenerGameObj, uint in_AuxBusID) - { - if (m_Buffer == System.IntPtr.Zero) - return false; - - for (var i = 0; i < m_Count; i++) - { - if (AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_IsSame(GetObjectPtr(i), - AkSoundEngine.GetAkGameObjectID(in_listenerGameObj), in_AuxBusID)) - return true; - } - - return false; - } - - public bool Contains(uint in_AuxBusID) - { - if (m_Buffer == System.IntPtr.Zero) - return false; - - for (var i = 0; i < m_Count; i++) - { - if (AkSoundEnginePINVOKE.CSharp_AkAuxSendValue_IsSame(GetObjectPtr(i), AkSoundEngine.AK_INVALID_GAME_OBJECT, in_AuxBusID)) - return true; - } - - return false; - } - - public AKRESULT SetValues(UnityEngine.GameObject gameObject) - { - return (AKRESULT) AkSoundEnginePINVOKE.CSharp_SetGameObjectAuxSendValues(AkSoundEngine.GetAkGameObjectID(gameObject), m_Buffer, (uint) m_Count); - } - - public AKRESULT GetValues(UnityEngine.GameObject gameObject) - { - uint count = MAX_COUNT; - var res = (AKRESULT) AkSoundEnginePINVOKE.CSharp_GetGameObjectAuxSendValues(AkSoundEngine.GetAkGameObjectID(gameObject), m_Buffer, ref count); - m_Count = (int) count; - return res; - } - - public System.IntPtr GetBuffer() - { - return m_Buffer; - } - - public int Count() - { - return m_Count; - } - - private System.IntPtr GetObjectPtr(int index) - { - return (System.IntPtr) (m_Buffer.ToInt64() + SIZE_OF_AKAUXSENDVALUE * index); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAuxSendArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAuxSendArray.cs.meta deleted file mode 100644 index 9fefa3479..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkAuxSendArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2ad7c5904726bce4eb652197c22ad460 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkBaseArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkBaseArray.cs deleted file mode 100644 index dcd8f934d..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkBaseArray.cs +++ /dev/null @@ -1,77 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public abstract class AkBaseArray : System.IDisposable -{ - public AkBaseArray(int capacity) - { - m_Buffer = System.Runtime.InteropServices.Marshal.AllocHGlobal(capacity * StructureSize); - if (m_Buffer != System.IntPtr.Zero) - { - Capacity = capacity; - - for (var index = 0; index < capacity; ++index) - DefaultConstructAtIntPtr(GetObjectPtr(index)); - } - } - - public void Dispose() - { - if (m_Buffer != System.IntPtr.Zero) - { - for (var index = 0; index < Capacity; ++index) - ReleaseAllocatedMemoryFromReferenceAtIntPtr(GetObjectPtr(index)); - - System.Runtime.InteropServices.Marshal.FreeHGlobal(m_Buffer); - m_Buffer = System.IntPtr.Zero; - Capacity = 0; - } - } - - ~AkBaseArray() { Dispose(); } - - public int Capacity { get; private set; } - - public virtual int Count() { return Capacity; } - - protected abstract int StructureSize { get; } - - /// - /// This method is called for each element of the array when the array is constructed. It should be used to clear the memory associated with an element so that it will be seen as if it had been default constructed. - /// - /// The address of the element - protected virtual void DefaultConstructAtIntPtr(System.IntPtr address) { } - - /// - /// This method is called for each element of the array when the array is disposed. It should be used to delete memory allocated by elements. - /// - /// The address of the element - protected virtual void ReleaseAllocatedMemoryFromReferenceAtIntPtr(System.IntPtr address) { } - - protected abstract T CreateNewReferenceFromIntPtr(System.IntPtr address); - - protected abstract void CloneIntoReferenceFromIntPtr(System.IntPtr address, T other); - - public T this[int index] - { - get { return CreateNewReferenceFromIntPtr(GetObjectPtr(index)); } - set { CloneIntoReferenceFromIntPtr(GetObjectPtr(index), value); } - } - - public System.IntPtr GetBuffer() { return m_Buffer; } - - private System.IntPtr m_Buffer; - - protected System.IntPtr GetObjectPtr(int index) - { - if (index >= Capacity) - throw new System.IndexOutOfRangeException("Out of range access in " + GetType().Name); - - return (System.IntPtr)(m_Buffer.ToInt64() + StructureSize * index); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkBaseArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkBaseArray.cs.meta deleted file mode 100644 index 75f591d4b..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkBaseArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 86510ddf454d00d45be893e8cf477293 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkChannelEmitterArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkChannelEmitterArray.cs deleted file mode 100644 index 1072fdf70..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkChannelEmitterArray.cs +++ /dev/null @@ -1,86 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkChannelEmitterArray : System.IDisposable -{ - public System.IntPtr m_Buffer; - private System.IntPtr m_Current; - private uint m_MaxCount; - - public AkChannelEmitterArray(uint in_Count) - { - // Three vectors of 3 floats, plus a mask - m_Buffer = System.Runtime.InteropServices.Marshal.AllocHGlobal((int) in_Count * (sizeof(float) * 9 + sizeof(uint))); - m_Current = m_Buffer; - m_MaxCount = in_Count; - Count = 0; - } - - public uint Count { get; private set; } - - public void Dispose() - { - if (m_Buffer != System.IntPtr.Zero) - { - System.Runtime.InteropServices.Marshal.FreeHGlobal(m_Buffer); - m_Buffer = System.IntPtr.Zero; - m_MaxCount = 0; - } - } - - ~AkChannelEmitterArray() - { - Dispose(); - } - - public void Reset() - { - m_Current = m_Buffer; - Count = 0; - } - - public void Add(UnityEngine.Vector3 in_Pos, UnityEngine.Vector3 in_Forward, UnityEngine.Vector3 in_Top, - uint in_ChannelMask) - { - if (Count >= m_MaxCount) - throw new System.IndexOutOfRangeException("Out of range access in AkChannelEmitterArray"); - - //Marshal doesn't do floats. So copy the bytes themselves. Grrr. - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Forward.x), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Forward.y), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Forward.z), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Top.x), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Top.y), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Top.z), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Pos.x), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Pos.y), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Pos.z), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, (int) in_ChannelMask); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(uint)); - - Count++; - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkChannelEmitterArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkChannelEmitterArray.cs.meta deleted file mode 100644 index 200516064..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkChannelEmitterArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: eef38c4210d50c9429a12a0a5a7f3daa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDeviceDescriptionArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDeviceDescriptionArray.cs deleted file mode 100644 index 57d265554..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDeviceDescriptionArray.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkDeviceDescriptionArray : AkBaseArray -{ - public AkDeviceDescriptionArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_Clear(address); - } - - protected override AkDeviceDescription CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkDeviceDescription(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkDeviceDescription other) - { - AkSoundEnginePINVOKE.CSharp_AkDeviceDescription_Clone(address, AkDeviceDescription.getCPtr(other)); - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDeviceDescriptionArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDeviceDescriptionArray.cs.meta deleted file mode 100644 index 3a07840ec..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDeviceDescriptionArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6b667097be583684a97385e945d9c55a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDiffractionPathInfoArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDiffractionPathInfoArray.cs deleted file mode 100644 index 86eef61a1..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDiffractionPathInfoArray.cs +++ /dev/null @@ -1,29 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkDiffractionPathInfoArray : AkBaseArray -{ - public AkDiffractionPathInfoArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_GetSizeOf(); } - } - - protected override AkDiffractionPathInfo CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkDiffractionPathInfo(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkDiffractionPathInfo other) - { - AkSoundEnginePINVOKE.CSharp_AkDiffractionPathInfo_Clone(address, AkDiffractionPathInfo.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDiffractionPathInfoArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDiffractionPathInfoArray.cs.meta deleted file mode 100644 index 1515fa3b5..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkDiffractionPathInfoArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ea80a29a5611fce4686dc77859eb33cf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkExternalSourceInfoArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkExternalSourceInfoArray.cs deleted file mode 100644 index f07a7daca..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkExternalSourceInfoArray.cs +++ /dev/null @@ -1,39 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkExternalSourceInfoArray : AkBaseArray -{ - public AkExternalSourceInfoArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_Clear(address); - } - - protected override void ReleaseAllocatedMemoryFromReferenceAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_szFile_set(address, null); - } - - protected override AkExternalSourceInfo CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkExternalSourceInfo(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkExternalSourceInfo other) - { - AkSoundEnginePINVOKE.CSharp_AkExternalSourceInfo_Clone(address, AkExternalSourceInfo.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkExternalSourceInfoArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkExternalSourceInfoArray.cs.meta deleted file mode 100644 index 18a17c6c3..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkExternalSourceInfoArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bfa60fa6703e1f74585293408166f552 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkMIDIPostArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkMIDIPostArray.cs deleted file mode 100644 index 516104c4f..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkMIDIPostArray.cs +++ /dev/null @@ -1,77 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkMIDIPostArray -{ - private readonly int m_Count; - private readonly int SIZE_OF = AkSoundEnginePINVOKE.CSharp_AkMIDIPost_GetSizeOf(); - private System.IntPtr m_Buffer = System.IntPtr.Zero; - - public AkMIDIPostArray(int size) - { - m_Count = size; - m_Buffer = System.Runtime.InteropServices.Marshal.AllocHGlobal(m_Count * SIZE_OF); - } - - public AkMIDIPost this[int index] - { - get - { - if (index >= m_Count) - throw new System.IndexOutOfRangeException("Out of range access in AkMIDIPostArray"); - - return new AkMIDIPost(GetObjectPtr(index), false); - } - - set - { - if (index >= m_Count) - throw new System.IndexOutOfRangeException("Out of range access in AkMIDIPostArray"); - - AkSoundEnginePINVOKE.CSharp_AkMIDIPost_Clone(GetObjectPtr(index), AkMIDIPost.getCPtr(value)); - } - } - - ~AkMIDIPostArray() - { - System.Runtime.InteropServices.Marshal.FreeHGlobal(m_Buffer); - m_Buffer = System.IntPtr.Zero; - } - - public void PostOnEvent(uint in_eventID, UnityEngine.GameObject gameObject) - { - var gameObjectID = AkSoundEngine.GetAkGameObjectID(gameObject); - AkSoundEngine.PreGameObjectAPICall(gameObject, gameObjectID); - AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_3(in_eventID, gameObjectID, m_Buffer, (ushort) m_Count); - } - - public void PostOnEvent(uint in_eventID, UnityEngine.GameObject gameObject, int count) - { - if (count >= m_Count) - throw new System.IndexOutOfRangeException("Out of range access in AkMIDIPostArray"); - - var gameObjectID = AkSoundEngine.GetAkGameObjectID(gameObject); - AkSoundEngine.PreGameObjectAPICall(gameObject, gameObjectID); - AkSoundEnginePINVOKE.CSharp_PostMIDIOnEvent__SWIG_3(in_eventID, gameObjectID, m_Buffer, (ushort) count); - } - - public System.IntPtr GetBuffer() - { - return m_Buffer; - } - - public int Count() - { - return m_Count; - } - - private System.IntPtr GetObjectPtr(int index) - { - return (System.IntPtr) (m_Buffer.ToInt64() + SIZE_OF * index); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkMIDIPostArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkMIDIPostArray.cs.meta deleted file mode 100644 index a47b3f92a..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkMIDIPostArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: dec4280b81ea3a34eab7ae30d664cf3d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObjectInfoArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObjectInfoArray.cs deleted file mode 100644 index dedd64fa1..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObjectInfoArray.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkObjectInfoArray : AkBaseArray -{ - public AkObjectInfoArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkObjectInfo_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkObjectInfo_Clear(address); - } - - protected override AkObjectInfo CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkObjectInfo(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkObjectInfo other) - { - AkSoundEnginePINVOKE.CSharp_AkObjectInfo_Clone(address, AkObjectInfo.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObjectInfoArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObjectInfoArray.cs.meta deleted file mode 100644 index cbf9b7ec9..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObjectInfoArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2b24834f966fac64da57a20e4cd414c0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObstructionOcclusionValuesArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObstructionOcclusionValuesArray.cs deleted file mode 100644 index 5c92fda4a..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObstructionOcclusionValuesArray.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkObstructionOcclusionValuesArray : AkBaseArray -{ - public AkObstructionOcclusionValuesArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_Clear(address); - } - - protected override AkObstructionOcclusionValues CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkObstructionOcclusionValues(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkObstructionOcclusionValues other) - { - AkSoundEnginePINVOKE.CSharp_AkObstructionOcclusionValues_Clone(address, AkObstructionOcclusionValues.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObstructionOcclusionValuesArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObstructionOcclusionValuesArray.cs.meta deleted file mode 100644 index 62f5ec9fc..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkObstructionOcclusionValuesArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d88b94e117463c84ba46d444be28ea74 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkPositionArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkPositionArray.cs deleted file mode 100644 index 6234bad73..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkPositionArray.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkPositionArray : System.IDisposable -{ - public System.IntPtr m_Buffer; - private System.IntPtr m_Current; - private uint m_MaxCount; - - public AkPositionArray(uint in_Count) - { - m_Buffer = System.Runtime.InteropServices.Marshal.AllocHGlobal((int) in_Count * sizeof(float) * 9); - m_Current = m_Buffer; - m_MaxCount = in_Count; - Count = 0; - } - - public uint Count { get; private set; } - - public void Dispose() - { - if (m_Buffer != System.IntPtr.Zero) - { - System.Runtime.InteropServices.Marshal.FreeHGlobal(m_Buffer); - m_Buffer = System.IntPtr.Zero; - m_MaxCount = 0; - } - } - - ~AkPositionArray() - { - Dispose(); - } - - public void Reset() - { - m_Current = m_Buffer; - Count = 0; - } - - public void Add(UnityEngine.Vector3 in_Pos, UnityEngine.Vector3 in_Forward, UnityEngine.Vector3 in_Top) - { - if (Count >= m_MaxCount) - throw new System.IndexOutOfRangeException("Out of range access in AkPositionArray"); - - //Marshal doesn't do floats. So copy the bytes themselves. Grrr. - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Forward.x), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Forward.y), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Forward.z), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Top.x), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Top.y), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Top.z), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Pos.x), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Pos.y), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - System.Runtime.InteropServices.Marshal.WriteInt32(m_Current, - System.BitConverter.ToInt32(System.BitConverter.GetBytes(in_Pos.z), 0)); - m_Current = (System.IntPtr) (m_Current.ToInt64() + sizeof(float)); - - Count++; - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkPositionArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkPositionArray.cs.meta deleted file mode 100644 index 752ff5200..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkPositionArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cd664e722adec0844898a80b58de34eb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkReflectionPathInfoArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkReflectionPathInfoArray.cs deleted file mode 100644 index 13ad4fe16..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkReflectionPathInfoArray.cs +++ /dev/null @@ -1,29 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkReflectionPathInfoArray : AkBaseArray -{ - public AkReflectionPathInfoArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_GetSizeOf(); } - } - - protected override AkReflectionPathInfo CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkReflectionPathInfo(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkReflectionPathInfo other) - { - AkSoundEnginePINVOKE.CSharp_AkReflectionPathInfo_Clone(address, AkReflectionPathInfo.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkReflectionPathInfoArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkReflectionPathInfoArray.cs.meta deleted file mode 100644 index d553631c2..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkReflectionPathInfoArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 738829b0df6a6024c873c9fc204e9ddf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkSourceSettingsArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkSourceSettingsArray.cs deleted file mode 100644 index 39a60789c..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkSourceSettingsArray.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkSourceSettingsArray : AkBaseArray -{ - public AkSourceSettingsArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkSourceSettings_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkSourceSettings_Clear(address); - } - - protected override AkSourceSettings CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkSourceSettings(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkSourceSettings other) - { - AkSoundEnginePINVOKE.CSharp_AkSourceSettings_Clone(address, AkSourceSettings.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkSourceSettingsArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkSourceSettingsArray.cs.meta deleted file mode 100644 index b3bfe6fc5..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkSourceSettingsArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0024cd63f10554e45b3697eb1d30c36c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkTriangleArray.cs b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkTriangleArray.cs deleted file mode 100644 index 0af50f297..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkTriangleArray.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkTriangleArray : AkBaseArray -{ - public AkTriangleArray(int count) : base(count) - { - } - - protected override int StructureSize - { - get { return AkSoundEnginePINVOKE.CSharp_AkTriangle_GetSizeOf(); } - } - - protected override void DefaultConstructAtIntPtr(System.IntPtr address) - { - AkSoundEnginePINVOKE.CSharp_AkTriangle_Clear(address); - } - - protected override AkTriangle CreateNewReferenceFromIntPtr(System.IntPtr address) - { - return new AkTriangle(address, false); - } - - protected override void CloneIntoReferenceFromIntPtr(System.IntPtr address, AkTriangle other) - { - AkSoundEnginePINVOKE.CSharp_AkTriangle_Clone(address, AkTriangle.getCPtr(other)); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkTriangleArray.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkTriangleArray.cs.meta deleted file mode 100644 index ad8223bbc..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Common/Arrays/AkTriangleArray.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a25a26b4ffd88e244b8983d3f43f6476 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac.meta b/Assets/Wwise/API/Runtime/Handwritten/Mac.meta deleted file mode 100644 index 4c0c0c730..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5731e93008e87d041a93d2aff33bc519 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacBasePathGetter.cs b/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacBasePathGetter.cs deleted file mode 100644 index 7c69343bb..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacBasePathGetter.cs +++ /dev/null @@ -1,6 +0,0 @@ -#if UNITY_EDITOR_OSX || (UNITY_STANDALONE_OSX && !UNITY_EDITOR) -public partial class AkBasePathGetter -{ - static string DefaultPlatformName = "Mac"; -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacBasePathGetter.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacBasePathGetter.cs.meta deleted file mode 100644 index 95b5fba57..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacBasePathGetter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 050e0ca0eca621f48a89573c38d3ccf3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacSettings.cs b/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacSettings.cs deleted file mode 100644 index 80998ac4f..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacSettings.cs +++ /dev/null @@ -1,20 +0,0 @@ -#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX -public partial class AkCommonUserSettings -{ - partial void SetSampleRate(AkPlatformInitSettings settings) - { - settings.uSampleRate = m_SampleRate; - } -} -#endif - -public class AkMacSettings : AkWwiseInitializationSettings.CommonPlatformSettings -{ -#if UNITY_EDITOR - [UnityEditor.InitializeOnLoadMethod] - private static void AutomaticPlatformRegistration() - { - RegisterPlatformSettingsClass("Mac"); - } -#endif // UNITY_EDITOR -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacSettings.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacSettings.cs.meta deleted file mode 100644 index bfab5a9b9..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkMacSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2a3bab09c5580bf479cb3eab8c1498b2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkSoundEngine.cs b/Assets/Wwise/API/Runtime/Handwritten/Mac/AkSoundEngine.cs deleted file mode 100644 index 91ff46476..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkSoundEngine.cs +++ /dev/null @@ -1,14 +0,0 @@ -public partial class AkSoundEngine -{ -#if UNITY_EDITOR_OSX || (UNITY_STANDALONE_OSX && !UNITY_EDITOR) - /// - /// Converts "AkOSChar*" C-strings to C# strings. - /// - /// "AkOSChar*" memory pointer passed to C# as an IntPtr. - /// Converted string. - public static string StringFromIntPtrOSString(System.IntPtr ptr) - { - return StringFromIntPtrString(ptr); - } -#endif -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkSoundEngine.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Mac/AkSoundEngine.cs.meta deleted file mode 100644 index 780779bb7..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Mac/AkSoundEngine.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: aff08c5f2f4c63c49b43ffbd206a19ce -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI.meta deleted file mode 100644 index c70a6ca78..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 348ab910d60f50c419061028d600de57 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Ak.Wwise.Api.WAAPI.asmdef b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Ak.Wwise.Api.WAAPI.asmdef deleted file mode 100644 index 47069da73..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Ak.Wwise.Api.WAAPI.asmdef +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "Ak.Wwise.Api.WAAPI", - "references": [ - "AK.Wwise.Unity.API.WwiseTypes", - "AK.Wwise.Unity.API" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Ak.Wwise.Api.WAAPI.asmdef.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Ak.Wwise.Api.WAAPI.asmdef.meta deleted file mode 100644 index fe1a2303b..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Ak.Wwise.Api.WAAPI.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 99711ecde8d1dba4c870c51a855e8f17 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiClient.cs b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiClient.cs deleted file mode 100644 index 3bae348aa..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiClient.cs +++ /dev/null @@ -1,143 +0,0 @@ -/****************************************************************************** - -The content of this file includes portions of the AUDIOKINETIC Wwise Technology -released in source code form as part of the SDK installer package. - -Commercial License Usage - -Licensees holding valid commercial 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. - -Apache License Usage - -Alternatively, this file may be used under the Apache License, Version 2.0 (the -"Apache License"); you may not use this file except in compliance with the -Apache License. You may obtain a copy of the Apache License at -http://www.apache.org/licenses/LICENSE-2.0. - -Unless required by applicable law or agreed to in writing, software distributed -under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for -the specific language governing permissions and limitations under the License. - - Version: Build: - Copyright (c) Audiokinetic Inc. - -*******************************************************************************/ - - -/// -/// The Waapi Client provides a core interface to Waapi using strings only. You will need to provide your own JSON serialization. -/// -internal class AkWaapiClient -{ - public Wamp wamp; - - public event Wamp.DisconnectedHandler Disconnected; - - /// Connect to a running instance of Wwise Authoring. - /// URI to connect. Usually the WebSocket protocol (ws:) followed by the hostname and port, followed by waapi. - /// Connect("ws://localhost:8080/waapi") - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - public async System.Threading.Tasks.Task Connect( - string uri = "ws://localhost:8080/waapi", - int timeout = System.Int32.MaxValue) - { - if (wamp == null) - wamp = new Wamp(); - wamp.Disconnected += Wamp_Disconnected; - await wamp.Connect(uri, timeout); - } - - private void Wamp_Disconnected() - { - if (Disconnected != null) - { - Disconnected(); - } - } - - /// Close the connection. - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - public async System.Threading.Tasks.Task Close( - int timeout = System.Int32.MaxValue) - { - if (wamp == null) - throw new Wamp.WampNotConnectedException("WAMP connection is not established"); - - await wamp.Close(timeout); - - wamp.Disconnected -= Wamp_Disconnected; - wamp = null; - } - - /// - /// Return true if the client is connected and ready for operations. - /// - public bool IsConnected() - { - if (wamp == null) - return false; - - return wamp.IsConnected(); - } - - /// Call a WAAPI remote procedure. Refer to WAAPI reference documentation for a list of URIs and their arguments and options. - /// The URI of the remote procedure. - /// The arguments of the remote procedure. - /// The options the remote procedure. - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - /// A JSON string with the result of the Remote Procedure Call. - public async System.Threading.Tasks.Task Call( - string uri, - string args = "{}", - string options = "{}", - int timeout = System.Int32.MaxValue) - { - if (wamp == null) - throw new Wamp.WampNotConnectedException("WAMP connection is not established"); - - if (args == null) - args = "{}"; - if (options == null) - options = "{}"; - - return await wamp.Call(uri, args, options, timeout); - } - - /// Subscribe to WAAPI topic. Refer to WAAPI reference documentation for a list of topics and their options. - /// The topic to which subscribe. - /// The options the subscription. - /// The delegate function to call when the topic is published. - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - /// Subscription id, that you can use to unsubscribe. - public async System.Threading.Tasks.Task Subscribe( - string topic, - string options, - Wamp.PublishHandler publishHandler, - int timeout = System.Int32.MaxValue) - { - if (wamp == null) - throw new Wamp.WampNotConnectedException("WAMP connection is not established"); - - if (options == null) - options = "{}"; - - return await wamp.Subscribe(topic, options, publishHandler, timeout); - } - - /// Unsubscribe from a subscription. - /// The subscription id received from the initial subscription. - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - public async System.Threading.Tasks.Task Unsubscribe( - uint subscriptionId, - int timeout = System.Int32.MaxValue) - { - if (wamp == null) - throw new Wamp.WampNotConnectedException("WAMP connection is not established"); - - await wamp.Unsubscribe(subscriptionId, timeout); - } -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiClient.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiClient.cs.meta deleted file mode 100644 index fad343035..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiClient.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e2fe930a345fb95478ca885204840d6b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiHelper.cs b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiHelper.cs deleted file mode 100644 index 002410211..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiHelper.cs +++ /dev/null @@ -1,506 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// -using System.Collections.Generic; -using System.Collections.ObjectModel; - -/// -/// Base class for Json serializable objects. -/// Implements implicit cast to string using UnityEngine.JsonUtility.ToJson. -/// -[System.Serializable] -public class JsonSerializable -{ - public static implicit operator string(JsonSerializable o) => UnityEngine.JsonUtility.ToJson(o); -} - -/// -/// Abstract base class for WAAPI command arguments. -/// -[System.Serializable] -public abstract class Args : JsonSerializable -{ -} - -/// -/// WAAPI arguments containing a WAQL string. -/// -[System.Serializable] -public class WaqlArgs : Args -{ - public string waql; - public WaqlArgs(string query) - { - waql = query; - } -} - -/// -/// WAAPI arguments containing an object identfier. -/// -[System.Serializable] -public class ArgsObject : Args -{ - public string @object; - - public ArgsObject(string objectId) - { - @object = objectId; - } -} - - -/// -/// WAAPI arguments containing an object identfier and new value used when renaming an object. -/// -[System.Serializable] -public class ArgsRename : Args -{ - public string @object; - public string value; - - public ArgsRename(string objectId, string value) - { - @object = objectId; - this.value = value; - } -} - -/// -/// WAAPI arguments containing an object identfier and name used when deleting an object. -/// -[System.Serializable] -public class ArgsDisplayName : Args -{ - public string displayName; - - public ArgsDisplayName(string displayName) - { - this.displayName = displayName; - } -} - -/// -/// WAAPI arguments containing an object identfier and command field. -/// Used by AkWaapiUtilities.SelectObjectInAuthoringAsync(). -/// -[System.Serializable] -public class ArgsCommand : Args -{ - public string[] @objects; - public string command; - public ArgsCommand(string c, string[] objectIds) - { - command = c; - objects = objectIds; - } -} - -/// -/// WAAPI arguments containing an Event identfier and transport ID. -/// Used to toggle Event playback. -/// -[System.Serializable] -public class ArgsPlay : Args -{ - public string action; - public int transport; - public ArgsPlay(string a, int t) { action = a; transport = t; } -} - -/// -/// WAAPI arguments containing a transport ID. -/// Used to specify transports in transport-specific commands. -/// -[System.Serializable] -public class ArgsTransport : Args -{ - public int transport; - public ArgsTransport(int t) { transport = t; } -} - -/// -/// Abstract base class for WAAPI command options. -/// -[System.Serializable] -public class Options : JsonSerializable -{ - -} - -/// -/// WAAPI options to specify the names of fields to return in a WAAPI request returning WwiseObjects. -/// -[System.Serializable] -public class ReturnOptions : Options -{ - public string[] @return; - - public ReturnOptions(string [] infokeys) - { - @return = infokeys; - } -} - -/// -/// WAAPI options used to specify the transport ID when subscribing. -/// -[System.Serializable] -public class TransportOptions : Options -{ - public int transport; - public TransportOptions(int id) - { - transport = id; - } -} - -/// -/// Used to deserialize the response from an ak.wwise.core.transport.create command. -/// Contains the transport ID. -/// -[System.Serializable] -public class ReturnTransport : JsonSerializable -{ - public int transport; -} - -/// -/// Used to deserialize transport-state information receieved from the transport.stateChanged topic. -/// -[System.Serializable] -public class TransportState : JsonSerializable -{ - public string gameObject; - public string state; - public string @object; - public int transport; -} - -/// -/// Used to deserialize WAAPI error messages. -/// -[System.Serializable] -public class ErrorMessage : JsonSerializable -{ - public string message; - public ErrorDetails details; -} - -/// -/// Used to deserialize details in WAAPI error messages. -/// -[System.Serializable] -public class ErrorDetails : JsonSerializable -{ - public string [] reasons; - public string procedureUri; -} - -/// -/// Class used to deserialize a WAAPI response containing Wwise objects. -/// -[System.Serializable] -public class ReturnWwiseObjects : JsonSerializable -{ - public List @return; -} - -/// -/// Generic class to deserialize a WAAPI response containing Wwise objects with custom return options. -/// -[System.Serializable] -public class ReturnWwiseObjects : JsonSerializable -{ - public List @return; -} - -/// -/// Class used to deserialize selected Wwise objects published on the ak.wwise.ui.selectionChanged topic. -/// -[System.Serializable] -public class SelectedWwiseObjects : JsonSerializable -{ - public List objects; -} - -/// -/// Used to deserialize information published on the ak.wwise.core.@object.nameChanged topic. -/// -[System.Serializable] -public class WwiseRenameInfo : JsonSerializable -{ - public WwiseObjectInfoJsonObject @object; - public string newName; - public string oldName; - - public WwiseObjectInfo objectInfo; - public void ParseInfo() - { - objectInfo = @object; - } -} - - -/// -/// Used to deserialize information published on the ak.wwise.core.@object.childAdded and ak.wwise.core.@object.childRemoved topics. -/// -[System.Serializable] -public class WwiseChildModifiedInfo : JsonSerializable -{ - public WwiseObjectInfoJsonObject parent; - public WwiseObjectInfoJsonObject child; - - public WwiseObjectInfo parentInfo; - public WwiseObjectInfo childInfo; - - public void ParseInfo() - { - parentInfo = parent; - childInfo = child; - } -} - -/// -/// Used to deserialize information from a request for a Wwise object. -/// Implements an implicit cast to WwiseObjectInfo. -/// -[System.Serializable] -public class WwiseObjectInfoJsonObject -{ - public string id; - public WwiseObjectInfoParent parent; - public string name; - public string type; - public int childrenCount; - public string path; - public string filePath; - public string workunitType; - public string soundbankBnkFilePath; - - public static implicit operator WwiseObjectInfo(WwiseObjectInfoJsonObject info) - { - return ToObjectInfo(info); - } - - public static WwiseObjectInfo ToObjectInfo(WwiseObjectInfoJsonObject info) - { - var type = info.type == null ? "" : info.type; - var wutype = info.workunitType == null ? "" : info.workunitType; - var objectType = WaapiHelper.GetWwiseObjectTypeFromString(type.ToLower(), wutype.ToLower()); - var parentID = info.parent.id == null ? System.Guid.Empty : System.Guid.Parse(info.parent.id); - var objectGuid = info.id == null ? System.Guid.Empty : System.Guid.Parse(info.id); - - return new WwiseObjectInfo - { - objectGUID = objectGuid, - name = info.name, - type = objectType, - childrenCount = info.childrenCount, - path = info.path, - workUnitType = wutype, - parentID = parentID, - filePath = info.filePath, - soundbankBnkFilePath = info.soundbankBnkFilePath - }; - } -} - -/// -/// Contains the GUID of the returned object's parent. -/// -[System.Serializable] -public class WwiseObjectInfoParent -{ - public string id; -} - - -/// -/// Class containing the information returned by a WAAPI request for an object. -/// -[System.Serializable] -public struct WwiseObjectInfo -{ - public System.Guid objectGUID; - public System.Guid parentID; - public string name; - public WwiseObjectType type; - public int childrenCount; - public string path; - public string workUnitType; - public string filePath; - public string soundbankBnkFilePath; -} - -/// -/// Contains a helper function GetWwiseObjectTypeFromString. -/// -public static class WaapiHelper -{ - public static WwiseObjectType GetWwiseObjectTypeFromString(string typeString, string workUnitType) - { - if (!WaapiKeywords.typeStringDict.ContainsKey(typeString)) - return WwiseObjectType.None; - - if (workUnitType != string.Empty) - { - if (workUnitType == "folder") - { - return WaapiKeywords.typeStringDict["physicalfolder"]; - } - - return WaapiKeywords.typeStringDict[typeString]; - } - return WaapiKeywords.typeStringDict[typeString]; - } -} - -/// -/// Contains fields for specific WAAPI keywords. -/// -public class WaapiKeywords -{ - public const string ACTION = "action"; - public const string ANCESTORS = "ancestors"; - public const string AT = "@"; - public const string AUX_BUSSES = "auxBusses"; - public const string BACK_SLASH = "\\"; - public const string BANK_DATA = "bankData"; - public const string BANK_INFO = "bankInfo"; - public const string CHILD = "child"; - public const string CHILDREN = "children"; - public const string CHILDREN_COUNT = "childrenCount"; - public const string CLASSID = "classId"; - public const string COMMAND = "command"; - public const string DATA = "data"; - public const string DELETE_ITEMS = "Delete Items"; - public const string DESCENDANTS = "descendants"; - public const string DISPLAY_NAME = "displayName"; - public const string DRAG_DROP_ITEMS = "Drag Drop Items"; - public const string EVENT = "event"; - public const string EVENTS = "events"; - public const string FILEPATH = "filePath"; - public const string FIND_IN_PROJECT_EXPLORER = "FindInProjectExplorerSyncGroup1"; - public const string FOLDER = "Folder"; - public const string FROM = "from"; - public const string ID = "id"; - public const string INCLUSIONS = "inclusions"; - public const string INFO_FILE = "infoFile"; - public const string IS_CONNECTED = "isConnected"; - public const string LANGUAGE = "language"; - public const string LANGUAGES = "languages"; - public const string MAX = "max"; - public const string MAX_RADIUS_ATTENUATION = "audioSource:maxRadiusAttenuation"; - public const string MESSSAGE = "message"; - public const string MIN = "min"; - public const string NAME = "name"; - public const string NAMECONTAINS = "name:contains"; - public const string NEW = "new"; - public const string NEW_NAME = "newName"; - public const string NOTES = "notes"; - public const string OBJECT = "object"; - public const string OBJECTS = "objects"; - public const string OF_TYPE = "ofType"; - public const string OLD_NAME = "oldName"; - public const string PARENT = "parent"; - public const string PATH = "path"; - public const string PHYSICAL_FOLDER = "PhysicalFolder"; - public const string PLATFORM = "platform"; - public const string PLATFORMS = "platforms"; - public const string PLAY = "play"; - public const string PLAYING = "playing"; - public const string PLAYSTOP = "playStop"; - public const string PLUGININFO_OPTIONS = "pluginInfo"; - public const string PLUGININFO_RESPONSE = "PluginInfo"; - public const string PROJECT = "Project"; - public const string PROPERTY = "property"; - public const string RADIUS = "radius"; - public const string RANGE = "range"; - public const string REBUILD = "rebuild"; - public const string REDO = "Redo"; - public const string RESTRICTION = "restriction"; - public const string RETURN = "return"; - public const string SEARCH = "search"; - public const string SELECT = "select"; - public const string SIZE = "size"; - public const string SKIP_LANGUAGES = "skipLanguages"; - public const string SOUNDBANK = "soundbank"; - public const string SOUNDBANKS = "soundbanks"; - public const string STATE = "state"; - public const string STOP = "stop"; - public const string STOPPED = "stopped"; - public const string STRUCTURE = "structure"; - public const string TRANSFORM = "transform"; - public const string TRANSPORT = "transport"; - public const string TYPE = "type"; - public const string UI = "ui"; - public const string UNDO = "Undo"; - public const string VALUE = "value"; - public const string VOLUME = "Volume"; - public const string WHERE = "where"; - public const string WORKUNIT_TYPE = "workunit:type"; - public const string OPEN_SOUNDBANK_FOLDER = "OpenContainingFolderSoundbank"; - public const string OPEN_WORKUNIT_FOLDER = "OpenContainingFolderWorkUnit"; - public const string OPEN_WAV_FOLDER = "OpenContainingFolderWAV"; - - /// - /// Maps WwiseObjectType to strings. - /// - public static ReadOnlyDictionary WwiseObjectTypeStrings = new ReadOnlyDictionary(new Dictionary() - { - {WwiseObjectType.None, "None"}, - {WwiseObjectType.AuxBus, "AuxiliaryBus"}, - {WwiseObjectType.Bus, "Bus"}, - {WwiseObjectType.Event, "Event"}, - {WwiseObjectType.Folder, "Folder"}, - {WwiseObjectType.PhysicalFolder, "PhysicalFolder"}, - {WwiseObjectType.Project, "Project"}, - {WwiseObjectType.Soundbank, "SoundBank"}, - {WwiseObjectType.State, "State"}, - {WwiseObjectType.StateGroup, "StateGroup"}, - {WwiseObjectType.Switch, "Switch"}, - {WwiseObjectType.SwitchGroup, "SwitchGroup"}, - {WwiseObjectType.WorkUnit, "WorkUnit"}, - {WwiseObjectType.GameParameter, "Game Parametr"}, - {WwiseObjectType.Trigger, "Trigger"}, - {WwiseObjectType.AcousticTexture, "AcousticTexture"} - }); - - /// - /// Maps root folder names to displayed strings. - /// - public static ReadOnlyDictionary FolderDisplaynames = new ReadOnlyDictionary(new Dictionary() - { - {"Master-Mixer Hierarchy", "Auxiliary Busses" }, - { "Events", "Events"}, - { "States", "States"}, - { "SoundBanks", "SoundBanks"}, - { "Switches", "Switches"}, - { "Virtual Acoustics", "Virtual Acoustics"}, - }); - - /// - /// Maps strings to WwiseObjectType. - /// - public static ReadOnlyDictionary typeStringDict = new ReadOnlyDictionary(new Dictionary() - { - ["auxbus"] = WwiseObjectType.AuxBus, - ["bus"] = WwiseObjectType.Bus, - ["event"] = WwiseObjectType.Event, - ["folder"] = WwiseObjectType.Folder, - ["physicalfolder"] = WwiseObjectType.PhysicalFolder, - ["soundbank"] = WwiseObjectType.Soundbank, - ["project"] = WwiseObjectType.Project, - ["state"] = WwiseObjectType.State, - ["stategroup"] = WwiseObjectType.StateGroup, - ["switch"] = WwiseObjectType.Switch, - ["switchgroup"] = WwiseObjectType.SwitchGroup, - ["workunit"] = WwiseObjectType.WorkUnit, - ["gameparameter"] = WwiseObjectType.GameParameter, - ["trigger"] = WwiseObjectType.Trigger, - ["acoustictexture"] = WwiseObjectType.AcousticTexture - }); -} \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiHelper.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiHelper.cs.meta deleted file mode 100644 index bbe67d41f..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiHelper.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ca18e2d3356584d4982a5e5b35691f3d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiUtilities.cs b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiUtilities.cs deleted file mode 100644 index 54e9768a3..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiUtilities.cs +++ /dev/null @@ -1,1081 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Threading.Tasks; - -/// -/// This class wraps the client that communicates with the Wwise Authoring application via WAAPI. -/// Given that only one request can be pending on the websocket, a queue is used to consume all calls sequentially. -/// Messages sent to WAAPI use the JSON format and are serialized by Unity Json serialization. -/// Helper classes (\ref WaapiHelper) for serialization, keywords for WAAPI commands (\ref WaapiKeywords), and classes for serializing message arguments and deserializing responses are found in AkWaapiHelper.cs. -/// Uri.cs contains classes with fields containing URI strings for WAAPI calls and error messages. -/// -[UnityEditor.InitializeOnLoad] -public class AkWaapiUtilities -{ - static private AkWaapiClient m_WaapiClient; - static bool isDisconnecting; - static Dictionary m_ItemTransports; - public static string ErrorMessage; - /// - /// Fired when the connection is closing or closed, the bool parameter represents whether the socket connection is still open (for cleaning up subscriptions). - /// - public static System.Action Disconnecting; - - /// - /// Fired when the connection is established, should be used by external classes to subscribe to topics they are interested in. - /// - public static System.Action Connected; - - /// - /// Fired when all commands in the queue have been executed. - /// - public static System.Action QueueConsumed; - private static ConcurrentQueue waapiCommandQueue = new ConcurrentQueue(); - - - /// - /// Generic delegate function for callbacks that expect to receive a list of objects in response to a WAAPI request. - /// - /// - public delegate void GetResultListDelegate(List result); - - /// - /// Generic delegate function for callbacks that expect to receive a single object in response to a WAAPI request. - /// - /// - public delegate void GetResultDelegate(T result); - - /// - /// Used to store store UnityEngine.Application.dataPath because we can't access it outside of the main loop - /// - private static string dataPath; - - /// - /// Bind disconnection method to compilation started delegate and start the async Waapi loop. - /// - static AkWaapiUtilities() - { -#if UNITY_2019_1_OR_NEWER - UnityEditor.Compilation.CompilationPipeline.compilationStarted += (object context) => FireDisconnect(true); -#else - UnityEditor.Compilation.CompilationPipeline.assemblyCompilationStarted += - (string assemblyPath) => - { - if (assemblyPath == "Library/ScriptAssemblies/AK.Wwise.Unity.API.dll") - FireDisconnect(true); - }; -#endif - isDisconnecting = false; - dataPath = UnityEngine.Application.dataPath; - Loop(); - } - - /// - /// A simple structure containing an async payload function that will be executed when it is consumed by the command queue. - /// - public struct WaapiCommand - { - System.Func payload; - public WaapiCommand(System.Func payload) - { - this.payload = payload; - } - public async Task Execute() - { - await payload.Invoke(); - } - } - - /// - /// Class used to store information about a specific subscription. - /// - public class SubscriptionInfo - { - public string Uri; - public Wamp.PublishHandler Callback; - public uint SubscriptionId; - - public SubscriptionInfo(string uri, Wamp.PublishHandler cb) - { - Uri = uri; - Callback = cb; - SubscriptionId = 0; - } - }; - - /// - /// Holds information about a playing transport. - /// - struct TransportInfo - { - public int TransportID; - public uint SubscriptionID; - - public TransportInfo(int transID, uint subsID) - { - TransportID = transID; - SubscriptionID = subsID; - } - }; - - /// - /// Stores TransportInfo of playing Events. - /// - private static Dictionary ItemTransports - { - get - { - if (m_ItemTransports == null) - m_ItemTransports = new Dictionary(); - return m_ItemTransports; - } - } - - /// - /// WAAPI client wrapping WAMP calls. Lazy instantiated. - /// - private static AkWaapiClient WaapiClient - { - get - { - if (m_WaapiClient == null) - { - m_WaapiClient = new AkWaapiClient(); - m_WaapiClient.Disconnected += Disconnected; - } - return m_WaapiClient; - } - } - - /// - /// Check whether the client is currently connected. - /// - /// - public static bool IsConnected() - { - if (m_WaapiClient == null) return false; - return WaapiClient.IsConnected(); - } - - private static bool kill; - private static int loopSleep = 0; - private static bool projectConnected = false; - - /// - /// Main loop for the WAAPI API. Checks if the client is connected and consumes all commands. - /// - private static async void Loop() - { - try - { - ErrorMessage = ""; - - if (await CheckConnection()) - { - await ConsumeCommandQueue(); - } - - if (!kill) - { - if (loopSleep > 0) - { - await Task.Delay(loopSleep * 1000); - } - } - } - - //Handle socket issues caused by closing Wwise Authoring. - catch (System.Net.WebSockets.WebSocketException) - { - UnityEngine.Debug.Log("Wwise Unity : WAAPI disconnected because Wwise Authoring was closed"); - Disconnecting?.Invoke(false); - waapiCommandQueue = new ConcurrentQueue(); - projectConnected = false; - try - { - await m_WaapiClient.Close(); - } - //Closing the client will throw other exceptions because it tries to send messages to a closed socket. - catch (System.Net.Sockets.SocketException) - { - } - } - catch (Wamp.WampNotConnectedException e) - { - ErrorMessage = e.Message; - } - finally - { - UnityEditor.EditorApplication.delayCall += () => Loop(); - } - } - - /// - /// Consumes all WAAPICommands in the queue and then fires QueueConsumed. - /// - /// Awaitable Task - private static async Task ConsumeCommandQueue() - { - bool shouldUpdate = false; - while (waapiCommandQueue.Count > 0) - { - if (waapiCommandQueue.TryDequeue(out WaapiCommand cmd)) - { - try - { - await cmd.Execute(); - shouldUpdate = true; - ErrorMessage = ""; - } - catch (Wamp.ErrorException e) - { - ErrorMessage msg = UnityEngine.JsonUtility.FromJson(e.Json); - if (msg != null) - { - if (msg.message != null) - ErrorMessage = msg.message; - } - - switch (e.Uri) - { - case ak.wwise.error.unavailable: - case ak.wwise.error.unexpected_error: - case ak.wwise.error.wwise_console: - case ak.wwise.error.locked: - case ak.wwise.error.file_error: - waapiCommandQueue.Enqueue(cmd); - break; - case ak.wwise.error.invalid_object: - case ak.wwise.error.invalid_property: - case ak.wwise.error.invalid_query: - case ak.wwise.error.invalid_reference: - case ak.wwise.error.invalid_options: - case ak.wwise.error.invalid_json: - case ak.wwise.error.invalid_arguments: - default: - UnityEngine.Debug.Log(ErrorMessage); - break; - } - break; - } - catch (Wamp.WampNotConnectedException e) - { - waapiCommandQueue.Enqueue(cmd); - throw (e); - } - } - } - if (shouldUpdate) - { - QueueConsumed?.Invoke(); - } - } - - /// - /// Checks the global WAAPI settings and disconnects if WAAPI is disabled or connection settings have changed. - /// If disconnected, try to connect with current settings. - /// - /// True if the client is connected - private static async Task CheckConnection() - { - if (AkWwiseEditorSettings.Instance.UseWaapi) - { - // If WAAPI connection settings have changed, unsubcribe and close the connection. - if (ConnectionSettingsChanged() && WaapiClient.IsConnected()) - { - FireDisconnect(false); - return true; - } - - if (!WaapiClient.IsConnected()) - { - try - { - await m_WaapiClient.Connect(GetUri()); - } - catch (System.Exception) - { - ConnectionFailed("Connection refused"); - } - } - - if (WaapiClient.IsConnected()) - { - var projectOpen = await CheckProjectLoaded(); - if (!projectConnected && projectOpen) - { - projectConnected = true; - loopSleep = 0; - Connected?.Invoke(); - } - else if (projectConnected && !projectOpen) - { - FireDisconnect(false); - return true; - } - } - } - - else - { - if (WaapiClient.IsConnected() && !isDisconnecting) - { - FireDisconnect(false); - return true; - } - } - - return WaapiClient.IsConnected() && projectConnected; - } - - /// - /// Tries to communicate with Wwise and compares the current open project with the project path specified in the Unity Wwise Editor settings. - /// - /// True if the correct wwise project is open in Wwise. - private async static Task CheckProjectLoaded() - { - try - { - var result = await GetProjectInfo(); - if (result.Count == 0) - { - throw new Wamp.ErrorException("Did not get a response from Wwise project"); - } - var projectInfo = result[0]; -#if UNITY_EDITOR_OSX - var d1 = AkUtilities.ParseOsxPathFromWinePath(projectInfo.filePath); -#else - var d1 = projectInfo.filePath; -#endif - var d2 = AkUtilities.GetFullPath(dataPath, AkWwiseEditorSettings.Instance.WwiseProjectPath); - d1 = d1.Replace("/", "\\"); - d2 = d2.Replace("/", "\\"); - if (d1 != d2) - { - ConnectionFailed($"The wrong project({projectInfo.name}) is open in Wwise"); - return false; - } - } - - catch (Wamp.ErrorException e) - { - if (e.Json != null) - { - ErrorMessage msg = UnityEngine.JsonUtility.FromJson(e.Json); - if (msg != null) - { - if (msg.message != null) - ErrorMessage = msg.message; - } - } - if (e.Uri == "ak.wwise.locked") - { - return true; - } - - - ConnectionFailed($"No project is open in Wwise yet"); - return false; - } - - return true; - } - - private static void ConnectionFailed(string message) - { - loopSleep = Math.Min(Math.Max(loopSleep * 2, 1), 32); - ErrorMessage = $"{message} - Retrying in {loopSleep}s"; - } - - /// - /// Starts the diconnection process. - /// Invokes Disconnecting() so that other classes using WAAPI can clean up and add commands to unsubscribe from topics. - /// Consumes the last batch of commands in the command queue then closes the client. - /// - private static void FireDisconnect(bool killLoop) - { - projectConnected = false; - isDisconnecting = true; - Disconnecting?.Invoke(true); - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await CloseClient(killLoop))); - } - - private static async Task CloseClient(bool killLoop) - { - await WaapiClient.Close(); - isDisconnecting = false; - if (killLoop) - { - kill = true; - } - } - - /// - /// Invoked after the client has disconnected from Wwise authoring. - /// - public static void Disconnected() - { - Disconnecting?.Invoke(false); - } - - private static string GetUri() - { - return $"ws://{AkWwiseEditorSettings.Instance.WaapiIP}:{AkWwiseEditorSettings.Instance.WaapiPort}/waapi"; - } - - static string ip; - static string port; - static string projectPath; - private static bool ConnectionSettingsChanged() - { - bool changed = false; - if (ip != AkWwiseEditorSettings.Instance.WaapiIP) - { - ip = AkWwiseEditorSettings.Instance.WaapiIP; - changed = true; - } - - if (port != AkWwiseEditorSettings.Instance.WaapiPort) - { - port = AkWwiseEditorSettings.Instance.WaapiPort; - changed = true; - } - if (projectPath != AkWwiseEditorSettings.Instance.WwiseProjectPath) - { - projectPath = AkWwiseEditorSettings.Instance.WwiseProjectPath; - changed = true; - } - return changed; - } - - /// - /// Returns a rich text string representing the current WAAPI connection status. - /// - /// - public static string GetStatusString() - { - var returnString = ""; - if (!AkWwiseEditorSettings.Instance.UseWaapi) - { - returnString += " Waapi disabled in project settings "; - } - else if (WaapiClient.wamp != null) - { - var state = WaapiClient.wamp.SocketState(); - switch (state) - { - case System.Net.WebSockets.WebSocketState.Open: - returnString += " Connected"; - break; - case System.Net.WebSockets.WebSocketState.Closed: - returnString += " Disconnected "; - break; - case System.Net.WebSockets.WebSocketState.Connecting: - returnString += $" Connecting to { GetUri()}"; - break; - default: - returnString += $" Connecting to { GetUri()}"; - break; - } - } - else - { - returnString += " Disconnected "; - } - if (ErrorMessage != string.Empty) - returnString += $" {ErrorMessage}"; - return returnString; - } - - private static async Task> GetProjectInfo() - { - var args = new WaqlArgs($"from type {WaapiKeywords.PROJECT}"); - var options = new ReturnOptions(new string[] { "filePath" }); - - var result = await WaapiClient.Call(ak.wwise.core.@object.get, args, options); - var ret = UnityEngine.JsonUtility.FromJson(result).@return; - - return ParseObjectInfo(ret); - } - - /// - /// Use this function to enqueue a command with no expected return object. - /// - /// The URI of the waapi command - /// The command-specific arguments - /// The command-specific options - public static void QueueCommand(string uri, string args, string options) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await WaapiClient.Call(uri, args, options))); - } - - /// - /// Use this function to enqueue a command with an expected return object of type T. - /// The command will deserialize the respone as type T and pass it to the callback. - /// /// - /// Type of the expected return object - /// The URI of the waapi command - /// The command-specific arguments - /// The command-specific options - /// Function accepting an argument of type T - public static void QueueCommandWithReturnType(string uri, GetResultDelegate callback, string args = null, string options = null) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => - { - var result = await WaapiClient.Call(uri, args, options); - callback(UnityEngine.JsonUtility.FromJson(result)); - })); - } - - /// - /// Enqueues a command with a payload that desirializes the list of wwise objects from the response. - /// - /// - /// - /// - public static void QueueCommandWithReturnWwiseObjects(WaqlArgs args, ReturnOptions options, GetResultListDelegate callback) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => - { - var result = await WaapiClient.Call(ak.wwise.core.@object.get, args, options); - var ret = UnityEngine.JsonUtility.FromJson>(result); - callback.Invoke(ret.@return); - })); - } - - /// - /// Generic function for fetching a Wwise object with custom return options. - /// - /// Type of the object to be deserialized from the response. - /// GUID of the target object. - /// Specifies which object properties to include in the response - /// Function accteping a list of T objects. - public static void GetWwiseObject(System.Guid guid, ReturnOptions options, GetResultListDelegate callback) - { - GetWwiseObjects(new List() { guid }, options, callback); - } - - /// - /// Generic function for fetching a list of Wwise objects with custom return options. - /// - /// Type of the object to be deserialized from the response. - /// GUIDs of the target objects. - /// Specifies which object properties to include in the response - /// Function accteping a list of T objects. - public static void GetWwiseObjects(List guids, ReturnOptions options, GetResultListDelegate callback) - { - string guidString = ""; - foreach (var guid in guids) - { - guidString += $"{guid:B} ,"; - } - - var args = new WaqlArgs($"from object \"{guidString}\" "); - QueueCommandWithReturnWwiseObjects(args, options, callback); - } - - /// - /// Enqueues a waapi command to fetch the specified object and all of its ancestors in the heirarchy. - /// Passes the list of WwiseObjectInfo containing the specified object and ancestors to the callback. - /// - /// GUID of the target object. - /// Specifies which object properties to include in the response - /// Function accepting a list of WwiseObjectInfo. - public static void GetWwiseObjectAndAncestors(System.Guid guid, ReturnOptions options, GetResultListDelegate callback) - { - var args = new WaqlArgs($"from object \"{guid:B}\" select this, ancestors orderby path"); - - QueueCommandWithReturnWwiseObjects(args, options, callback); - } - - /// - /// Enqueues a waapi comand to fetch the specified object and all of its descendants in the heirarchy to a specified depth. - /// Passes the list of WwiseObjectInfo containing the specified object and descendants to the callback. - /// - /// GUID of the target object. - /// Specifies which object properties to include in the response - /// Depth of descendants to fetch. If -1, fetches all descendants. - /// Function accepting a list of WwiseObjectInfo. - public static void GetWwiseObjectAndDescendants(System.Guid guid, ReturnOptions options, int depth, GetResultListDelegate callback) - { - GetWwiseObjectAndDescendants(guid.ToString("B"), options, depth, callback); - } - - /// - /// Composes a WAQL "from object" request based on the parameters and enqueues a WAAPI command. - /// Passes the list of WwiseObjectInfo containing the results to the callback - /// - /// Can bethe target object GUID or path within the heirarchy. - /// Specifies which object properties to include in the response - /// Depth of descendants to fetch. If -1, fetches all descendants. - /// Function accepting a list of WwiseObjectInfo. - public static void GetWwiseObjectAndDescendants(string identifier, ReturnOptions options, int depth, GetResultListDelegate callback) - { - WaqlArgs args; - if (depth > 0) - { - string selectString = System.String.Join(" ", ArrayList.Repeat(" select this, children", depth).ToArray()); - args = new WaqlArgs($"from object \"{identifier}\" {selectString} orderby path"); - } - else - { - args = new WaqlArgs($"from object \"{identifier}\" select descendants orderby path"); - } - - QueueCommandWithReturnWwiseObjects(args, options, callback); - } - - /// - /// Composes a WAQL "search" request based on the parameters and enqueues a WAAPI command. - /// Passes the list of WwiseObjectInfo containing the search results to the callback - /// - /// Characters to search for. - /// Specifies which object properties to include in the response - /// An optional object type used to filter search results. - /// Function accepting a list of WwiseObjectInfo. - public static void Search(string searchString, WwiseObjectType objectType, ReturnOptions options, GetResultListDelegate callback) - { - WaqlArgs args; - if (objectType == WwiseObjectType.None) - { - args = new WaqlArgs($"from search \"{searchString}\" orderby path"); - } - else - { - args = new WaqlArgs($"from search \"{searchString}\" where type=\"{WaapiKeywords.WwiseObjectTypeStrings[objectType]}\" orderby path"); - } - - QueueCommandWithReturnWwiseObjects(args, options, callback); - } - - /// - /// Get the children of a given object. - /// - /// GUID of the target object. - /// Specifies which object properties to include in the response - /// Function accepting a list of WwiseObjectInfo. - public static void GetChildren(System.Guid guid, ReturnOptions options, GetResultListDelegate callback) - { - if (guid == System.Guid.Empty) - return; - - var args = new WaqlArgs($"from object \"{guid:B}\" select children orderby path"); - - QueueCommandWithReturnWwiseObjects(args, options, callback); - } - - /// - /// Get the WwiseObjectInfo for the project. - /// - /// Function accepting a list of WwiseObjectInfo. The first element of the list will be the project info. - /// Specifies which object properties to include in the response - public static void GetProject(GetResultListDelegate callback, ReturnOptions options) - { - var args = new WaqlArgs($"from type {WaapiKeywords.PROJECT}"); - - QueueCommandWithReturnWwiseObjects(args, options, callback); - } - - /// - /// Parse the response WwiseObjectInfoJsonObject of a "from object" request and implicit cast the objects to WwiseObjectInfo. - /// - /// - /// - public static List ParseObjectInfo(List returnObjects) - { - var returnInfo = new List(returnObjects.Count); - foreach (var info in returnObjects) - { - returnInfo.Add(info); - } - return returnInfo; - } - - /// - /// Select the object in Wwise Authoring. - /// Creates a WaapiCommand object containing a lambda call to SelectObjectInAuthoringAsync and adds it to the waapiCommandQueue. - /// - /// GUID of the object to be selected. - public static void SelectObjectInAuthoring(System.Guid guid) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await SelectObjectInAuthoringAsync(guid))); - } - - /// - /// Creates and sends a WAAPI command to select a Wwise object. - /// - /// GUID of the object to be selected. - /// - static private async Task SelectObjectInAuthoringAsync(System.Guid guid) - { - if (guid == System.Guid.Empty) return; - var args = new ArgsCommand(WaapiKeywords.FIND_IN_PROJECT_EXPLORER, new string[] { guid.ToString("B") }); - await WaapiClient.Call(ak.wwise.ui.commands.execute, args, null); - } - - /// - /// Open the OS file browser to the folder containing this object's Work Unit. - /// Creates a WaapiCommand object containing a lambda call to OpenWorkUnitInExplorerAsync and adds it to the waapiCommandQueue. - /// - /// GUID of the object to be found. - public static void OpenWorkUnitInExplorer(System.Guid guid) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await OpenWorkUnitInExplorerAsync(guid))); - } - - /// - /// Open the OS file browser to the folder containing the generated SoundBank. - /// Creates a WaapiCommand object containing a lambda call to OpenSoundBankInExplorer and adds it to the waapiCommandQueue. - /// - /// GUID of the SoundBank to be found. - public static void OpenSoundBankInExplorer(System.Guid guid) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await OpenSoundBankInExplorerAsync(guid))); - } - - /// - /// Uses a waapi call to get the object's file path, then opens the containing folder in the system's file browser. - /// - /// GUID of the object to be found. - /// Awaitable Task. - private static async Task OpenWorkUnitInExplorerAsync(System.Guid guid) - { - var args = new WaqlArgs($"from object \"{guid:B}\""); - var options = new ReturnOptions(new string[] { "filePath" }); - var result = await WaapiClient.Call(ak.wwise.core.@object.get, args, options); - var ret = UnityEngine.JsonUtility.FromJson(result); - var filePath = ret.@return[0].filePath; - filePath = filePath.Replace("\\", "/"); - -#if UNITY_EDITOR_OSX - filePath = AkUtilities.ParseOsxPathFromWinePath(filePath); -#endif - UnityEditor.EditorUtility.RevealInFinder(filePath); - } - - /// - /// Uses a waapi call to get the SoundBank's generated bank path, then opens the containing folder in the system's file browser. - /// - /// GUID of the object to be found. - /// Awaitable Task. - private static async Task OpenSoundBankInExplorerAsync(System.Guid guid) - { - var args = new WaqlArgs($"from object \"{guid:B}\""); - var options = new ReturnOptions(new string[] { "soundbankBnkFilePath" }); - var result = await WaapiClient.Call(ak.wwise.core.@object.get, args, options); - var ret = UnityEngine.JsonUtility.FromJson(result); - var filePath = ret.@return[0].soundbankBnkFilePath; - -#if UNITY_EDITOR_OSX - filePath = AkUtilities.ParseOsxPathFromWinePath(filePath); -#endif - UnityEditor.EditorUtility.RevealInFinder(filePath); - } - - /// - /// Rename an object in Wwise authoring. - /// Creates a WaapiCommand object containing a lambda call to RenameAsync and adds it to the waapiCommandQueue. - /// - /// GUID of the object to be renamed. - /// New name for the wwise object. - public static void Rename(System.Guid guid, string newName) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await RenameAsync(guid, newName) - )); - } - - /// - /// Sends a WAAPI command to rename a Wwise object. - /// - /// GUID of the object to be renamed. - /// New name for the wwise object. - /// Awaitable Task. - private static async Task RenameAsync(System.Guid guid, string newName) - { - var args = new ArgsRename(guid.ToString("B"), newName); - await WaapiClient.Call(ak.wwise.core.@object.setName, args, null); - } - - - /// - /// Delete an object in wwise authoring. Work Units cannot be deleted in this manner. - /// Creates a WaapiCommand object containing a lambda call to DeleteAsync and adds it to the waapiCommandQueue. - /// - /// GUID of the object to be deleted. - public static void Delete(System.Guid guid) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await DeleteAsync(guid) - )); - } - - /// - /// Sends three WAAPI commands: - /// 1. Begin an undo group. - /// 2. Delete the specified object. - /// 3. Close the undo group. - /// - /// GUID of the object to be deleted. - /// Awaitable Task. - private static async Task DeleteAsync(System.Guid guid) - { - await WaapiClient.Call(ak.wwise.core.undo.beginGroup); - await WaapiClient.Call(ak.wwise.core.@object.delete, new ArgsObject(guid.ToString("b"))); - await WaapiClient.Call(ak.wwise.core.undo.endGroup, new ArgsDisplayName(WaapiKeywords.DELETE_ITEMS)); - } - - /// - /// Checks if Wwise object is playable. - /// - /// WwiseObjectType of object to check. - /// True if playable - public static bool IsPlayable(WwiseObjectType type) - { - return (type == WwiseObjectType.Event); - } - - /// - /// Play or pause an object in Wwise authoring. - /// Creates a WaapiCommand object containing a lambda call to TogglePlayEventAsync and adds it to the waapiCommandQueue. - /// - /// Used to check whether the object is playable. - /// GUID of the object to be played. - static public void TogglePlayEvent(WwiseObjectType objectType, System.Guid guid) - { - if (IsPlayable(objectType)) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await TogglePlayEventAsync(guid))); - } - } - - /// - /// Play or pause an object in Wwise authoring. Opens a new transport in wwise to play the sound if it does not exist yet. - /// - /// GUID of the object to be played. - /// - static async private Task TogglePlayEventAsync(System.Guid guid) - { - var transportID = await GetTransport(guid); - var args = new ArgsPlay(WaapiKeywords.PLAYSTOP, transportID); - var result = await WaapiClient.Call(ak.wwise.core.transport.executeAction, args, null); - } - - /// - /// Find the open transport in ItemTransports or create a new one. - /// - /// GUID of the object. - /// - static async private Task GetTransport(System.Guid guid) - { - TransportInfo transportInfo; - if (!ItemTransports.TryGetValue(guid, out transportInfo)) - { - transportInfo = await CreateTransport(guid); - } - return transportInfo.TransportID; - } - - /// - /// Send a WAAPI call to create a transport in Wwise. - /// Subscribe to the ak.wwise.core.transport.stateChanged topic of the new transport. - /// Add the transport info to ItemTransports. - /// - /// GUID of the Event - /// - static async private Task CreateTransport(System.Guid guid) - { - var args = new ArgsObject(guid.ToString("B")); - var result = await WaapiClient.Call(ak.wwise.core.transport.create, args, null, timeout: 1000); - int transportID = UnityEngine.JsonUtility.FromJson(result).transport; - var options = new TransportOptions(transportID); - uint subscriptionID = await WaapiClient.Subscribe(ak.wwise.core.transport.stateChanged, options, HandleTransportStateChanged); - - var transport = new TransportInfo(transportID, subscriptionID); - ItemTransports.Add(guid, transport); - return transport; - } - - /// - /// Handle the messages published by a transport when its state is changed. - /// If stopped, enqueue a command with DestroyTransport as its payload. - /// - /// - static private void HandleTransportStateChanged(string message) - { - TransportState transport = UnityEngine.JsonUtility.FromJson(message); - System.Guid itemID = new System.Guid(transport.@object); - int transportID = transport.transport; - - if (transport.state == WaapiKeywords.STOPPED) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await DestroyTransport(itemID))); - } - - else if (transport.state == WaapiKeywords.PLAYING && !ItemTransports.ContainsKey(itemID)) - { - ItemTransports.Add(itemID, new TransportInfo(transportID, 0)); - } - } - - /// - /// Send a WAAPI command to stop the specific transport. - /// - /// ID of the transport. - /// - static private async Task StopTransport(int in_transportID) - { - var args = new ArgsPlay(WaapiKeywords.STOP, in_transportID); - var result = await WaapiClient.Call(ak.wwise.core.transport.executeAction, args, null); - } - - /// - /// Unsubscribe from the transport topic and send a WAAPI command to destroy the transport in Wwise. - /// - /// GUID of the Event. - /// - static async Task DestroyTransport(System.Guid in_itemID) - { - if (!ItemTransports.ContainsKey(in_itemID)) - return null; - - if (ItemTransports[in_itemID].SubscriptionID != 0) - await WaapiClient.Unsubscribe(ItemTransports[in_itemID].SubscriptionID); - - var args = new ArgsTransport(ItemTransports[in_itemID].TransportID); - var result = await WaapiClient.Call(ak.wwise.core.transport.destroy, args, null); - ItemTransports.Remove(in_itemID); - return result; - } - - /// - /// Stops all playing transports. - /// Creates a WaapiCommand object containing a lambda call to StopAllTransportsAsync and adds it to the waapiCommandQueue. - /// - static public void StopAllTransports() - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await StopAllTransportsAsync())); - } - - /// - /// Stops all playing transports. - /// - /// Awaitable task. - static private async Task StopAllTransportsAsync() - { - foreach (var item in ItemTransports) - { - await StopTransport(item.Value.TransportID); - } - } - - /// - /// Subscribe to WAAPI topic. Refer to WAAPI reference documentation for a list of topics and their options. - /// Creates a WaapiCommand object containing a lambda call to SubscribeAsync and adds it to the waapiCommandQueue. - /// - /// The topic URI to subscribe to. - /// Delegate function to call when the topic is published. - /// Action to be executed once the subscription has been made. - /// This should store the subscription ID so that the subscription can be cleaned up when it is no longer needed. - public static void Subscribe(string topic, Wamp.PublishHandler subscriptionCallback, System.Action handshakeCallback) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => handshakeCallback(await SubscribeAsync(new SubscriptionInfo(topic, subscriptionCallback))))); - } - - /// - /// Subscribe to WAAPI topic. Refer to WAAPI reference documentation for a list of topics and their options. - /// Creates and sends a WAAPI command to subscribe to the topic. - /// - /// SubscriptionInfo object containing the topic URI and the message handling callback. - /// Updated SubscriptionInfo object containing the subscription ID (uint). - private static async Task SubscribeAsync(SubscriptionInfo subscription) - { - var options = new ReturnOptions(new string[] { "id", "parent", "name", "type", "childrenCount", "path", "workunitType" }); - uint id = await WaapiClient.Subscribe(subscription.Uri, options, subscription.Callback); - subscription.SubscriptionId = id; - return subscription; - } - - - /// - /// Unsubscribe from an existing subscription. - /// Creates a WaapiCommand object containing a lambda call to UnsubscribeAsync and adds it to the waapiCommandQueue. - /// - /// The subscription ID received from the initial subscription. - public static void Unsubscribe(uint id) - { - waapiCommandQueue.Enqueue(new WaapiCommand( - async () => await UnsubscribeAsync(id))); - } - - /// - /// Unsubscribe from a subscription. - /// - /// The subscription ID received from the initial subscription. - /// Awaitable Task. - private static async Task UnsubscribeAsync(uint id) - { - await WaapiClient.Unsubscribe(id); - } - - /// - /// Deserializes the objects published by the ak.wwise.ui.selectionChanged topic. - /// - /// Json string containing the message. - /// List of WwiseObjectInfo objects. - public static List ParseSelectedObjects(string json) - { - var info = UnityEngine.JsonUtility.FromJson(json); - var ret = new List(); - foreach (var child in info.objects) - { - ret.Add(child); - } - return ret; - } - - /// - /// Deserializes the object published by the ak.wwise.core.object.nameChanged topic. - /// - /// Json string containing the message. - /// WwiseRenameInfo containing the object information and the new name. - public static WwiseRenameInfo ParseRenameObject(string json) - { - var info = UnityEngine.JsonUtility.FromJson(json); - info.ParseInfo(); - return info; - } - - /// - /// Deserializes the object published by the ak.wwise.core.object.childAdded or ak.wwise.core.object.childRemoved topic. - /// - /// Json string containing the message. - /// WwiseChildModifiedInfo containing parent and child object information. - public static WwiseChildModifiedInfo ParseChildAddedOrRemoved(string json) - { - var info = UnityEngine.JsonUtility.FromJson(json); - info.ParseInfo(); - return info; - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiUtilities.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiUtilities.cs.meta deleted file mode 100644 index 0c6d1f861..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/AkWaapiUtilities.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b50ef01e92d39ce42ab6c75a284312af -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Uri.cs b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Uri.cs deleted file mode 100644 index d1d19064f..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Uri.cs +++ /dev/null @@ -1,335 +0,0 @@ -/* - -The content of this file includes portions of the AUDIOKINETIC Wwise Technology -released in source code form as part of the SDK installer package. - -Commercial License Usage - -Licensees holding valid commercial 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. - -Apache License Usage - -Alternatively, this file may be used under the Apache License, Version 2.0 (the -"Apache License"); you may not use this file except in compliance with the -Apache License. You may obtain a copy of the Apache License at -http://www.apache.org/licenses/LICENSE-2.0. - -Unless required by applicable law or agreed to in writing, software distributed -under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for -the specific language governing permissions and limitations under the License. - - Version: Build: - Copyright (c) Audiokinetic Inc. - -*/ -/// URI strings to use in WAAPI calls. For a complete description, refer to the official Wwise SDK documentation. -public class ak -{ - public class soundengine - { - /// Set multiple positions for a single game object. Setting multiple positions for a single game object is a way to simulate multiple emission sources while using the resources of only one voice. This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area. See AK::SoundEngine::SetMultiplePositions. - public const string setMultiplePositions = "ak.soundengine.setMultiplePositions"; - /// Set the scaling factor of a game object. Modify the attenuation computations on this game object to simulate sounds with a larger or smaller area of effect. See AK::SoundEngine::SetScalingFactor. - public const string setScalingFactor = "ak.soundengine.setScalingFactor"; - /// Asynchronously post an Event to the sound engine (by event ID). See AK::SoundEngine::PostEvent. - public const string postEvent = "ak.soundengine.postEvent"; - /// Set the value of a real-time parameter control. See AK::SoundEngine::SetRTPCValue. - public const string setRTPCValue = "ak.soundengine.setRTPCValue"; - /// Set a game object's obstruction and occlusion levels. This function is used to affect how an object should be heard by a specific listener. See AK::SoundEngine::SetObjectObstructionAndOcclusion. - public const string setObjectObstructionAndOcclusion = "ak.soundengine.setObjectObstructionAndOcclusion"; - /// Set a single game object's active listeners. By default, all new game objects have no listeners active, but this behavior can be overridden with SetDefaultListeners(). Inactive listeners are not computed. See AK::SoundEngine::SetListeners. - public const string setListeners = "ak.soundengine.setListeners"; - /// Execute an action on all nodes that are referenced in the specified event in an action of type play. See AK::SoundEngine::ExecuteActionOnEvent. - public const string executeActionOnEvent = "ak.soundengine.executeActionOnEvent"; - /// Set a listener's spatialization parameters. This lets you define listener-specific volume offsets for each audio channel. See AK::SoundEngine::SetListenerSpatialization. - public const string setListenerSpatialization = "ak.soundengine.setListenerSpatialization"; - /// Reset the value of a real-time parameter control to its default value, as specified in the Wwise project. See AK::SoundEngine::ResetRTPCValue. - public const string resetRTPCValue = "ak.soundengine.resetRTPCValue"; - /// Unregister a game object. Registering a game object twice does nothing. Unregistering it once unregisters it no matter how many times it has been registered. Unregistering a game object while it is in use is allowed, but the control over the parameters of this game object is lost. For example, say a sound associated with this game object is a 3D moving sound. It will stop moving when the game object is unregistered, and there will be no way to regain control over the game object. See AK::SoundEngine::UnregisterGameObj. - public const string unregisterGameObj = "ak.soundengine.unregisterGameObj"; - /// Stop the current content, associated to the specified playing ID, from playing. See AK::SoundEngine::StopPlayingID. - public const string stopPlayingID = "ak.soundengine.stopPlayingID"; - /// Set the Auxiliary Busses to route the specified game object. See AK::SoundEngine::SetGameObjectAuxSendValues. - public const string setGameObjectAuxSendValues = "ak.soundengine.setGameObjectAuxSendValues"; - /// Seek inside all playing objects that are referenced in Play Actions of the specified Event. See AK::SoundEngine::SeekOnEvent. - public const string seekOnEvent = "ak.soundengine.seekOnEvent"; - /// Register a game object. Registering a game object twice does nothing. Unregistering it once unregisters it no matter how many times it has been registered. See AK::SoundEngine::RegisterGameObj. - public const string registerGameObj = "ak.soundengine.registerGameObj"; - /// Set a the default active listeners for all subsequent game objects that are registered. See AK::SoundEngine::SetDefaultListeners. - public const string setDefaultListeners = "ak.soundengine.setDefaultListeners"; - /// Set the position of a game object. See AK::SoundEngine::SetPosition. - public const string setPosition = "ak.soundengine.setPosition"; - /// Display a message in the profiler's Capture Log view. - public const string postMsgMonitor = "ak.soundengine.postMsgMonitor"; - /// Set the output bus volume (direct) to be used for the specified game object. See AK::SoundEngine::SetGameObjectOutputBusVolume. - public const string setGameObjectOutputBusVolume = "ak.soundengine.setGameObjectOutputBusVolume"; - /// Set the State of a Switch Group. See AK::SoundEngine::SetSwitch. - public const string setSwitch = "ak.soundengine.setSwitch"; - /// Stop playing the current content associated to the specified game object ID. If no game object is specified, all sounds will be stopped. See AK::SoundEngine::StopAll. - public const string stopAll = "ak.soundengine.stopAll"; - /// Post the specified Trigger. See AK::SoundEngine::PostTrigger. - public const string postTrigger = "ak.soundengine.postTrigger"; - - public class error - { - public const string invalid_playing_id = "ak.soundengine.invalid_playing_id"; - public const string wrong_volumeOffsets_length = "ak.soundengine.wrong_volumeOffsets_length"; - } - } - public class wwise - { - public class error - { - public const string invalid_arguments = "ak.wwise.invalid_arguments"; - public const string invalid_options = "ak.wwise.invalid_options"; - public const string invalid_json = "ak.wwise.invalid_json"; - public const string invalid_object = "ak.wwise.invalid_object"; - public const string invalid_property = "ak.wwise.invalid_property"; - public const string invalid_reference = "ak.wwise.invalid_reference"; - public const string invalid_query = "ak.wwise.query.invalid_query"; - public const string file_error = "ak.wwise.file_error"; - public const string unavailable = "ak.wwise.unavailable"; - public const string unexpected_error = "ak.wwise.unexpected_error"; - public const string locked = "ak.wwise.locked"; - public const string connection_failed = "ak.wwise.connection_failed"; - public const string already_connected = "ak.wwise.already_connected"; - public const string wwise_console = "ak.wwise.wwise_console"; - } - public class debug - { - /// Private use only. - public const string testAssert = "ak.wwise.debug.testAssert"; - /// Sent when an assert has failed. This is only available with Debug builds. - public const string assertFailed = "ak.wwise.debug.assertFailed"; - /// Enable or disable the automation mode for Wwise. This reduces the potential interruptions caused by message boxes and dialogs. For instance, enabling the automation mode silently accepts: project migration, project load log, EULA acceptance, project licence display and generic message boxes. - public const string enableAutomationMode = "ak.wwise.debug.enableAutomationMode"; - /// Enables debug assertions. Every call to enableAsserts with false increments the ref count. Calling with true will decrement the ref count. This is only available with Debug builds. - public const string enableAsserts = "ak.wwise.debug.enableAsserts"; - } - public class core - { - public class audioSourcePeaks - { - /// Get the min/max peak pairs, in a given region of an audio source, as a collection of binary strings (one per channel). The strings are base-64 encoded 16-bit signed int arrays, with min and max values being interleaved. If getCrossChannelPeaks is true, there will be only one binary string representing peaks across all channels globally. - public const string getMinMaxPeaksInRegion = "ak.wwise.core.audioSourcePeaks.getMinMaxPeaksInRegion"; - /// Get the min/max peak pairs in the entire trimmed region of an audio source, for each channel, as an array of binary strings (one per channel). The strings are base-64 encoded 16-bit signed int arrays, with min and max values being interleaved. If getCrossChannelPeaks is true, there will be only one binary string representing peaks across all channels globally. - public const string getMinMaxPeaksInTrimmedRegion = "ak.wwise.core.audioSourcePeaks.getMinMaxPeaksInTrimmedRegion"; - } - public class remote - { - /// Retrieves the connection status. - public const string getConnectionStatus = "ak.wwise.core.remote.getConnectionStatus"; - /// Retrieves all consoles available for connecting Wwise Authoring to a Sound Engine instance. - public const string getAvailableConsoles = "ak.wwise.core.remote.getAvailableConsoles"; - /// Disconnects the Wwise Authoring application from a connected Wwise Sound Engine running executable. - public const string disconnect = "ak.wwise.core.remote.disconnect"; - /// Connects the Wwise Authoring application to a Wwise Sound Engine running executable. The host must be running code with communication enabled. - public const string connect = "ak.wwise.core.remote.connect"; - } - public class log - { - /// Sent when an item is added to the log. This could be used to retrieve items added to the SoundBank generation log. To retrieve the complete log, refer to ak.wwise.core.log.get. - public const string itemAdded = "ak.wwise.core.log.itemAdded"; - /// Retrieve the latest log for a specific channel. Refer to ak.wwise.core.log.itemadded to be notified when an item is added to the log. - public const string get = "ak.wwise.core.log.get"; - } - /// Retrieve global Wwise information. - public const string getInfo = "ak.wwise.core.getInfo"; - public class @object - { - /// Sent when an object reference is changed. - public const string referenceChanged = "ak.wwise.core.object.referenceChanged"; - /// Moves an object to the given parent. Returns the moved object. - public const string move = "ak.wwise.core.object.move"; - /// Sent when an attenuation curve's link/unlink is changed. - public const string attenuationCurveLinkChanged = "ak.wwise.core.object.attenuationCurveLinkChanged"; - /// Sent when an object is added as a child to another object. - public const string childAdded = "ak.wwise.core.object.childAdded"; - /// Retrieves the list of all object types registered in Wwise's object model. - public const string getTypes = "ak.wwise.core.object.getTypes"; - /// Sent when the watched property of an object changes. - public const string propertyChanged = "ak.wwise.core.object.propertyChanged"; - /// Creates an object of type 'type', as a child of 'parent'. Refer to ak.wwise.core.audio.import to import audio files to Wwise. - public const string create = "ak.wwise.core.object.create"; - /// Performs a query, returns specified data for each object in query result. - public const string get = "ak.wwise.core.object.get"; - /// Sent prior to an object's deletion. - public const string preDeleted = "ak.wwise.core.object.preDeleted"; - /// Sent when an object is renamed. Publishes the object which the name was changed. - public const string nameChanged = "ak.wwise.core.object.nameChanged"; - /// Sent following an object's deletion. - public const string postDeleted = "ak.wwise.core.object.postDeleted"; - /// Sent when the object's notes are changed. - public const string notesChanged = "ak.wwise.core.object.notesChanged"; - /// Retrieves information about an object property. - public const string getPropertyInfo = "ak.wwise.core.object.getPropertyInfo"; - /// Renames an object. - public const string setName = "ak.wwise.core.object.setName"; - /// Sets the object's notes. - public const string setNotes = "ak.wwise.core.object.setNotes"; - /// Sets the specified attenuation curve for a given attenuation object. - public const string setAttenuationCurve = "ak.wwise.core.object.setAttenuationCurve"; - /// Sets a property value of an object for a specific platform. Refer to ak.wwise.core.object.setreference to set a reference to an object. - public const string setProperty = "ak.wwise.core.object.setProperty"; - /// Copies an object to the given parent. - public const string copy = "ak.wwise.core.object.copy"; - /// Return true if a property is enabled based on the values of the properties it depends on. - public const string isPropertyEnabled = "ak.wwise.core.object.isPropertyEnabled"; - /// Sets the randomizer values of a property of an object for a specific platform. - public const string setRandomizer = "ak.wwise.core.object.setRandomizer"; - /// Sets an object's reference value. - public const string setReference = "ak.wwise.core.object.setReference"; - /// Sent when an attenuation curve is changed. - public const string attenuationCurveChanged = "ak.wwise.core.object.attenuationCurveChanged"; - /// Sent when an object is created. - public const string created = "ak.wwise.core.object.created"; - /// Sent when an object is removed from the children of another object. - public const string childRemoved = "ak.wwise.core.object.childRemoved"; - /// Retrieves the list of property and reference names for an object. - public const string getPropertyNames = "ak.wwise.core.object.getPropertyNames"; - /// Gets the specified attenuation curve for a given attenuation object. - public const string getAttenuationCurve = "ak.wwise.core.object.getAttenuationCurve"; - /// Sent when one or many curves are changed. - public const string curveChanged = "ak.wwise.core.object.curveChanged"; - /// Deletes the specified object. - public const string delete = "ak.wwise.core.object.delete"; - /// Retrieves the list of property and reference names for an object. - public const string getPropertyAndReferenceNames = "ak.wwise.core.object.getPropertyAndReferenceNames"; - } - public class undo - { - /// Ends the last undo group. - public const string endGroup = "ak.wwise.core.undo.endGroup"; - /// Cancels the last undo group. Please note that this does not revert the operations made since the last ak.wwise.core.undo.begingroup call. - public const string cancelGroup = "ak.wwise.core.undo.cancelGroup"; - /// Begins an undo group. Make sure to call ak.wwise.core.undo.endgroup exactly once for every ak.wwise.core.beginUndoGroup call you make. Calls to ak.wwise.core.undo.beginGroup can be nested. - public const string beginGroup = "ak.wwise.core.undo.beginGroup"; - } - public class profiler - { - /// Returns the current time of the specified profiler cursor in milliseconds. - public const string getCursorTime = "ak.wwise.core.profiler.getCursorTime"; - /// Start the profiler capture and return the time at the beginning of the capture in milliseconds. - public const string startCapture = "ak.wwise.core.profiler.startCapture"; - /// Retrieves all parameters affecting voice volume, highpass and lowpass for a voice path, resolved from pipeline IDs. - public const string getVoiceContributions = "ak.wwise.core.profiler.getVoiceContributions"; - /// Retrieves the voices at a specific profiler capture time. - public const string getVoices = "ak.wwise.core.profiler.getVoices"; - /// Retrieves the busses at a specific profiler capture time. - public const string getBusses = "ak.wwise.core.profiler.getBusses"; - /// Stop the profiler capture and return the time at the end of the capture in milliseconds. - public const string stopCapture = "ak.wwise.core.profiler.stopCapture"; - } - public class project - { - /// Sent when the after the project is completely closed. - public const string postClosed = "ak.wwise.core.project.postClosed"; - /// Sent when the project has been successfully loaded. - public const string loaded = "ak.wwise.core.project.loaded"; - /// Sent when the project begins closing. - public const string preClosed = "ak.wwise.core.project.preClosed"; - /// Saves the current project. - public const string save = "ak.wwise.core.project.save"; - /// Sent when the project has been saved. - public const string saved = "ak.wwise.core.project.saved"; - } - public class transport - { - /// Gets the state of the given transport object. - public const string getState = "ak.wwise.core.transport.getState"; - /// Sent when the transport's state has changed. - public const string stateChanged = "ak.wwise.core.transport.stateChanged"; - /// Creates a transport object for the given Wwise object. The return transport object can be used to play, stop, pause and resume the Wwise object via the other transport functions. - public const string create = "ak.wwise.core.transport.create"; - /// Returns the list of transport objects. - public const string getList = "ak.wwise.core.transport.getList"; - /// Destroys the given transport object. - public const string destroy = "ak.wwise.core.transport.destroy"; - /// Executes an action on the given transport object, or all transports if no transport is specified. - public const string executeAction = "ak.wwise.core.transport.executeAction"; - } - public class soundbank - { - /// Retrieves a SoundBank's inclusion list. - public const string getInclusions = "ak.wwise.core.soundbank.getInclusions"; - /// Sent when a single SoundBank is generated. This could be sent multiple times during SoundBank generation, for every SoundBank generated and for every platform. To generate SoundBanks, refer to ak.wwise.ui.commands.execute with one of the SoundBank generation commands. - public const string generated = "ak.wwise.core.soundbank.generated"; - /// Modifies a SoundBank's inclusion list. The 'operation' argument determines how the 'inclusions' argument modifies the SoundBank's inclusion list; 'inclusions' may be added to / removed from / replace the SoundBank's inclusion list. - public const string setInclusions = "ak.wwise.core.soundbank.setInclusions"; - } - public class audio - { - /// Create Wwise objects and import audio files. This function is using the same importation processor available through the Tab Delimited import in the Audio File Importer. The function returns an array of all objects created, replaced or re-used. Use the options to specify how the objects are returned. - public const string import = "ak.wwise.core.audio.import"; - /// Scripted object creation and audio file import from a tab-delimited file. - public const string importTabDelimited = "ak.wwise.core.audio.importTabDelimited"; - /// Sent at the end of an import operation. - public const string imported = "ak.wwise.core.audio.imported"; - } - public class switchContainer - { - /// Remove an assignment between a Switch Container's child and a State. - public const string removeAssignment = "ak.wwise.core.switchContainer.removeAssignment"; - /// Returns the list of assignments between a Switch Container's children and states. - public const string getAssignments = "ak.wwise.core.switchContainer.getAssignments"; - /// Sent when an assignment is removed from a Switch Container. - public const string assignmentRemoved = "ak.wwise.core.switchContainer.assignmentRemoved"; - /// Assign a Switch Container's child to a Switch. This is the equivalent of doing a drag&drop of the child to a state in the Assigned Objects view. The child is always added at the end for each state. - public const string addAssignment = "ak.wwise.core.switchContainer.addAssignment"; - /// Sent when an assignment is added to a Switch Container. - public const string assignmentAdded = "ak.wwise.core.switchContainer.assignmentAdded"; - } - public class plugin - { - /// Retrieves the list of all object types registered in Wwise's object model. - public const string getList = "ak.wwise.core.plugin.getList"; - /// Retrieves information about an object property. - public const string getProperty = "ak.wwise.core.plugin.getProperty"; - /// Retrieves the list of property and reference names for an object. - public const string getProperties = "ak.wwise.core.plugin.getProperties"; - } - } - public class ui - { - public class project - { - /// Closes the current project. - public const string close = "ak.wwise.ui.project.close"; - /// Opens a project, specified by path. Please refer to ak.wwise.core.project.loaded for further explanations on how to be notified when the operation has completed. - public const string open = "ak.wwise.ui.project.open"; - } - /// Bring Wwise main window to foreground. Refer to SetForegroundWindow and AllowSetForegroundWindow on MSDN for more information on the restrictions. Refer to ak.wwise.core.getInfo to obtain the Wwise process ID for AllowSetForegroundWindow. - public const string bringToForeground = "ak.wwise.ui.bringToForeground"; - public class commands - { - /// Unregister an array of add-on UI commands. - public const string unregister = "ak.wwise.ui.commands.unregister"; - /// Sent when a command is executed. The objects for which the command is executed are sent in the publication. - public const string executed = "ak.wwise.ui.commands.executed"; - /// Executes a command. Some commands can take a list of objects as parameter. - public const string execute = "ak.wwise.ui.commands.execute"; - /// Register an array of add-on commands. Registered commands remain until the Wwise process is terminated. Refer to to ak.wwise.ui.commands.executed. - public const string register = "ak.wwise.ui.commands.register"; - /// Get the list of commands. - public const string getCommands = "ak.wwise.ui.commands.getCommands"; - } - /// Retrieves the list of objects currently selected by the user in the active view. - public const string getSelectedObjects = "ak.wwise.ui.getSelectedObjects"; - /// Sent when the selection changes in the project. - public const string selectionChanged = "ak.wwise.ui.selectionChanged"; - } - public class waapi - { - /// Retrieve the list of topics to which a client can subscribe. - public const string getTopics = "ak.wwise.waapi.getTopics"; - /// Retrieve the list of functions. - public const string getFunctions = "ak.wwise.waapi.getFunctions"; - /// Retrieve the JSON schema of a Waapi URI. - public const string getSchema = "ak.wwise.waapi.getSchema"; - } - } -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Uri.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Uri.cs.meta deleted file mode 100644 index ff265b643..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Uri.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 36ee20079e36d014d892596e4e36a491 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Wamp.cs b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Wamp.cs deleted file mode 100644 index d264da896..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Wamp.cs +++ /dev/null @@ -1,594 +0,0 @@ -/****************************************************************************** - -The content of this file includes portions of the AUDIOKINETIC Wwise Technology -released in source code form as part of the SDK installer package. - -Commercial License Usage - -Licensees holding valid commercial 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. - -Apache License Usage - -Alternatively, this file may be used under the Apache License, Version 2.0 (the -"Apache License"); you may not use this file except in compliance with the -Apache License. You may obtain a copy of the Apache License at -http://www.apache.org/licenses/LICENSE-2.0. - -Unless required by applicable law or agreed to in writing, software distributed -under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for -the specific language governing permissions and limitations under the License. - - Version: Build: - Copyright (c) Audiokinetic Inc. - -*******************************************************************************/ - -using System.Linq; - -/// -/// WAMP protocol implementation using only strings and regular expressions. This implements only a subset of the WAMP feature set and is only compatible with Wwise. -/// -public class Wamp -{ - /// Exception thrown during WAMP operations when the timeout is reached. - public class TimeoutException : System.Exception - { - public TimeoutException(string message) - : base(message) - { - } - } - - public class WampNotConnectedException : System.Exception - { - public WampNotConnectedException(string message) - : base(message) - { - } - } - - /// Exception thrown during WAMP operations. - public class ErrorException : System.Exception - { - internal string Json { get; set; } - internal Messages MessageId { get; set; } - internal int RequestId { get; set; } - internal string Uri { get; set; } - - public ErrorException(string message) - : base(message) - { - } - - public static ErrorException FromResponse(string response) - { - // [ERROR, CALL, CALL.Request|id, Details|dict, Error|uri, Arguments|list, ArgumentsKw|dict] - string pattern = @"^\[\s*8,\s*(\d+)\s*,\s*(\d+)\s*,\s*\{\s*\}\s*,\s*""([^,\s]+)""\s*,\[\s*\]\s*,\s*(\{)"; - var match = System.Text.RegularExpressions.Regex.Match(response, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (match.Groups.Count != 5) - throw new ErrorException("Invalid ERROR message."); - - Messages messageId = (Messages)int.Parse(match.Groups[1].Value); - int requestId = int.Parse(match.Groups[2].Value); - string uri = match.Groups[3].Value; - string json = response.Substring(match.Groups[4].Index, response.Length - match.Groups[4].Index - 1); - - return new ErrorException($"Error {uri} in {messageId.ToString()} operation.") - { - Json = json, - MessageId = messageId, - RequestId = requestId, - Uri = uri - }; - } - - } - - /// Messages ids defined by the WAMP protocol - internal enum Messages : int - { - HELLO = 1, - WELCOME = 2, - GOODBYE = 6, - ERROR = 8, - SUBSCRIBE = 32, - SUBSCRIBED = 33, - UNSUBSCRIBE = 34, - UNSUBSCRIBED = 35, - EVENT = 36, - CALL = 48, - RESULT = 50 - } - - /// Encapsulate a response from the server. - private class Response - { - public Messages MessageId { get; set; } - public int RequestId { get; set; } - public int ContextSpecificResultId { get; set; } - public uint SubscriptionId { get; set; } - public string Json { get; set; } - } - - /// Publish events are delegates registered with Subscribe. - public delegate void PublishHandler(string json); - public delegate void DisconnectedHandler(); - - public event DisconnectedHandler Disconnected; - - private System.Net.WebSockets.ClientWebSocket ws; - private int sessionId = 0; - private int currentRequestId = 0; - private System.Threading.CancellationTokenSource stopServerTokenSource = new System.Threading.CancellationTokenSource(); - private System.Threading.Tasks.TaskCompletionSource taskCompletion = new System.Threading.Tasks.TaskCompletionSource(); - private System.Collections.Concurrent.ConcurrentDictionary subscriptions = new System.Collections.Concurrent.ConcurrentDictionary(); - - private async System.Threading.Tasks.Task Send(string msg, int timeout) - { - try - { - using (var cts = new System.Threading.CancellationTokenSource(timeout)) - { - var segment = new System.ArraySegment(System.Text.Encoding.UTF8.GetBytes(msg)); - await ws.SendAsync(segment, System.Net.WebSockets.WebSocketMessageType.Text, true, cts.Token); - } - } - catch (System.Threading.Tasks.TaskCanceledException) - { - throw new TimeoutException("Timeout when sending message."); - } - } - - /// Parse a WAMP message from the server. - private Response Parse(string msg) - { - const string msgTypePattern = @"^\[\s*(\d+)"; - var match = System.Text.RegularExpressions.Regex.Match(msg, msgTypePattern, System.Text.RegularExpressions.RegexOptions.Singleline); - - if (match.Groups.Count != 2) - throw new ErrorException("Error while parsing response from server."); - - Messages messageId = (Messages)int.Parse(match.Groups[1].Value); - switch (messageId) - { - case Messages.WELCOME: - return ParseWelcome(msg); - case Messages.GOODBYE: - return ParseGoodbye(msg); - case Messages.SUBSCRIBED: - return ParseSubscribed(msg); - case Messages.UNSUBSCRIBED: - return ParseUnsubscribed(msg); - case Messages.EVENT: - return ParseEvent(msg); - case Messages.RESULT: - return ParseResult(msg); - case Messages.ERROR: - throw ErrorException.FromResponse(msg); - default: - throw new ErrorException("Unexpected result from server."); - } - } - - private static Response ParseResult(string msg) - { - // [RESULT, CALL.Request|id, Details|dict, YIELD.Arguments|list, YIELD.ArgumentsKw | dict] - const string pattern = @"^\[\s*50,\s*(\d+)\s*,\s*\{\s*\}\s*,\s*\[\s*\]\s*,\s*(\{)"; - var match = System.Text.RegularExpressions.Regex.Match(msg, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (!match.Success || match.Groups.Count != 3) - throw new ErrorException("Invalid RESULT message."); - - return new Response() - { - MessageId = Messages.RESULT, - RequestId = (int.Parse(match.Groups[1].Value)), - Json = msg.Substring(match.Groups[2].Index, msg.Length - match.Groups[2].Index - 1) - }; - } - - private static Response ParseSubscribed(string msg) - { - // [SUBSCRIBED, SUBSCRIBE.Request|id, Subscription|id] - const string pattern = @"^\[\s*33,\s*(\d+)\s*,\s*(\d+)\s*]$"; - var match = System.Text.RegularExpressions.Regex.Match(msg, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (!match.Success || match.Groups.Count != 3) - throw new ErrorException("Invalid SUBSCRIBED message."); - - return new Response() - { - MessageId = Messages.SUBSCRIBED, - RequestId = (int.Parse(match.Groups[1].Value)), - //ContextSpecificResultId = (int.Parse(match.Groups[2].Value)) - SubscriptionId = (uint.Parse(match.Groups[2].Value)) - }; - } - - private static Response ParseUnsubscribed(string msg) - { - // [UNSUBSCRIBED, UNSUBSCRIBE.Request|id] - const string pattern = @"^\[\s*35,\s*(\d+)\s*]$"; - var match = System.Text.RegularExpressions.Regex.Match(msg, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (!match.Success || match.Groups.Count != 2) - throw new ErrorException("Invalid UNSUBSCRIBED message."); - - return new Response() - { - MessageId = Messages.UNSUBSCRIBED, - RequestId = (int.Parse(match.Groups[1].Value)) - }; - } - - private static Response ParseGoodbye(string msg) - { - // [GOODBYE, Details|dict, Reason|uri] - const string pattern = @"^\[\s*6"; - var match = System.Text.RegularExpressions.Regex.Match(msg, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (!match.Success || match.Groups.Count != 1) - throw new ErrorException("Invalid GOODBYE message."); - - return new Response() - { - MessageId = Messages.GOODBYE - }; - } - - private static Response ParseWelcome(string msg) - { - // [WELCOME, Session|id, Details|dict] - const string pattern = @"^\[\s*2,\s*(\d+)"; - var match = System.Text.RegularExpressions.Regex.Match(msg, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (!match.Success || match.Groups.Count != 2) - throw new ErrorException("Invalid WELCOME message."); - - return new Response() - { - MessageId = Messages.WELCOME, - RequestId = 0, - ContextSpecificResultId = (int.Parse(match.Groups[1].Value)) - }; - } - - private static Response ParseEvent(string msg) - { - // [EVENT, SUBSCRIBED.Subscription|id, PUBLISHED.Publication|id, Details|dict, PUBLISH.Arguments|list, PUBLISH.ArgumentKw|dict] - const string pattern = @"^\[\s*36,\s*(\d+)\s*,\s*(\d+)\s*,\s*\{\s*\}\s*,\s*\[\s*\]\s*,\s*(\{)"; - var match = System.Text.RegularExpressions.Regex.Match(msg, pattern, System.Text.RegularExpressions.RegexOptions.Singleline); - if (match.Groups.Count != 4) - throw new ErrorException("Invalid EVENT message."); - - return new Response() - { - MessageId = Messages.EVENT, - RequestId = (int.Parse(match.Groups[2].Value)), - ContextSpecificResultId = (int.Parse(match.Groups[1].Value)), - Json = msg.Substring(match.Groups[3].Index, msg.Length - match.Groups[3].Index - 1) - }; - } - - - private async System.Threading.Tasks.Task ReceiveMessage() - { - // Receive one web socket message - System.Collections.Generic.List> segments = new System.Collections.Generic.List>(); - - try - { - while (true) - { - byte[] buffer = new byte[4096]; - var segment = new System.ArraySegment(buffer, 0, buffer.Length); - System.Net.WebSockets.WebSocketReceiveResult rcvResult = await ws.ReceiveAsync(segment, stopServerTokenSource.Token); - - // Accumulate the byte arrays in a list, we will join them later - segments.Add(segment.Skip(segment.Offset).Take(rcvResult.Count)); - - if (rcvResult.EndOfMessage) - break; - } - } - catch (System.Net.WebSockets.WebSocketException e) - { - throw e.InnerException; - } - catch (System.Exception) - { - throw new ErrorException("Error receiving response from server."); - } - - try - { - byte[] bytes = segments.SelectMany(t => t).ToArray(); - string msg = System.Text.Encoding.UTF8.GetString(bytes); - return Parse(msg); - } - catch (ErrorException e) - { - // Dispatch already built error - throw e; - } - catch (System.Exception) - { - throw new ErrorException("Error while parsing response from server."); - } - } - - /// - /// Wait for the next response - /// - /// The response from the server. - private async System.Threading.Tasks.Task Receive(int timeout) - { - System.Threading.Tasks.Task task = await System.Threading.Tasks.Task.WhenAny( - taskCompletion.Task, - System.Threading.Tasks.Task.Delay(timeout)); - - if (task != taskCompletion.Task) - { - taskCompletion = new System.Threading.Tasks.TaskCompletionSource(); - - // Timeout reached - throw new TimeoutException("Timeout when receiving message."); - } - - if (task.Exception != null) - { - taskCompletion = new System.Threading.Tasks.TaskCompletionSource(); - - if (task.Exception.InnerException.InnerException != null) - throw task.Exception.InnerException.InnerException; - throw task.Exception; - } - - var result = taskCompletion.Task.Result; - - // Since we can't re-use the task completion, create a new one for the next message - taskCompletion = new System.Threading.Tasks.TaskCompletionSource(); - - return result; - } - - /// - /// Wait for the next response and do some validation on the response - /// - /// What message to expect - /// What request id to expect - /// The maximum timeout in milliseconds for the function to execute. Will raise exception when timeout is reached. - /// - private async System.Threading.Tasks.Task ReceiveExpect(Messages message, int requestId, int timeout) - { - // Should receive the expected message or ERROR - Response response = await Receive(timeout); - - if (response.MessageId != message) - throw new ErrorException($"{message.ToString()}: invalid response. Did not receive expected answer."); - - if (response.RequestId != requestId) - throw new ErrorException($"{message.ToString()}: invalid request id for result."); - - return response; - } - - /// - /// Connect to the specified host, handshake and prepare the listening task. - /// - /// The URI of the host, usually something like ws://host:port - /// The maximum timeout in milliseconds for the function to execute. Will raise exception when timeout is reached. - /// - internal async System.Threading.Tasks.Task Connect(string host, int timeout) - { - try - { - System.Uri uri = new System.Uri(host); - using (var cts = new System.Threading.CancellationTokenSource()) - { - // Connect - if (ws == null) - ws = new System.Net.WebSockets.ClientWebSocket(); - await ws.ConnectAsync(uri, cts.Token); - } - { - // [HELLO, Realm|uri, Details|dict] - await Send($"[{(int)Messages.HELLO},\"realm1\"]", timeout); - } - - StartListen(); - - { - // Should receive the WELCOME - Response response = await ReceiveExpect(Messages.WELCOME, 0, timeout); - - sessionId = response.ContextSpecificResultId; - } - } - catch (System.Net.WebSockets.WebSocketException e) - { - ws.Dispose(); - ws = new System.Net.WebSockets.ClientWebSocket(); - throw new ErrorException(e.ToString()); - } - catch (System.Exception e) - { - throw new ErrorException(e.ToString()); - } - } - - /// - /// Tell the connection state of the WebSocket client. - /// - /// Return true if the connection is open and ready. - internal bool IsConnected() - { - if (ws == null) - return false; - - return ws.State == System.Net.WebSockets.WebSocketState.Open; - } - - internal System.Net.WebSockets.WebSocketState SocketState() - { - if (ws == null) return System.Net.WebSockets.WebSocketState.None; - return ws.State; - } - - /// Close the connection. - /// The maximum timeout in milliseconds for the function to execute. Will raise exception when timeout is reached. - internal async System.Threading.Tasks.Task Close(int timeout) - { - // [GOODBYE, Details|dict, Reason|uri] - try - { - await Send($"[{(int)Messages.GOODBYE},{{}},\"bye_from_csharp_client\"]", timeout); - Response response = await ReceiveExpect(Messages.GOODBYE, 0, timeout); - - stopServerTokenSource.Cancel(); - - using (var cts = new System.Threading.CancellationTokenSource(timeout)) - { - await ws.CloseOutputAsync(System.Net.WebSockets.WebSocketCloseStatus.NormalClosure, "wamp_close", cts.Token); - } - } - catch (System.Net.WebSockets.WebSocketException) - { - ws.Dispose(); - stopServerTokenSource.Cancel(); - return; - } - } - - private void ProcessEvent(Response message) - { - int subscriptionId = message.ContextSpecificResultId; - - PublishHandler publishEvent = null; - if (!subscriptions.TryGetValue((uint)subscriptionId, out publishEvent)) - throw new ErrorException("UNSUBSCRIBE: unknown subscription id."); - - publishEvent(message.Json); - } - - private void StartListen() - { - // Start the receive task, that will remain running for the whole connection - System.Threading.CancellationToken ct = stopServerTokenSource.Token; - var task = System.Threading.Tasks.Task.Factory.StartNew(() => - { - ct.ThrowIfCancellationRequested(); - while (true) - { - try - { - System.Threading.Tasks.Task receiveTask = ReceiveMessage(); - receiveTask.Wait(); - - if (receiveTask.Result.MessageId == Messages.EVENT) - ProcessEvent(receiveTask.Result); - else if (taskCompletion != null) - taskCompletion.SetResult(receiveTask.Result); - else - throw new ErrorException("Received WAMP message that we did not expect."); - - if (ct.IsCancellationRequested) - { - break; - } - } - catch (System.Exception e) - { - if (e.InnerException.GetType() == typeof(System.Net.WebSockets.WebSocketException)) - { - var exception = e.InnerException as System.Net.WebSockets.WebSocketException; - if (exception.WebSocketErrorCode == System.Net.WebSockets.WebSocketError.ConnectionClosedPrematurely) - { - if (taskCompletion != null) - taskCompletion.SetException(e); - - OnDisconnect(); - - return; - } - } - - if (ws.State != System.Net.WebSockets.WebSocketState.Open) - { - OnDisconnect(); - return; - } - - - // Signal the exception to the other thread and continue to listen - if (taskCompletion != null) - taskCompletion.SetException(e); - } - } - }, stopServerTokenSource.Token); - } - - private void OnDisconnect() - { - if (Disconnected != null) - { - Disconnected(); - } - } - - /// - /// Invoke an RPC function from the uri - /// - /// URI of the function - /// Arguments - /// Options - /// The maximum timeout in milliseconds for the function to execute. Will raise exception when Waapi.TimeoutException is reached. - /// - internal async System.Threading.Tasks.Task Call(string uri, string args, string options, int timeout) - { - int requestId = ++currentRequestId; - - // [CALL, Request|id, Options|dict, Procedure|uri, Arguments|list, ArgumentsKw|dict] - await Send($"[{(int)Messages.CALL},{requestId},{options},\"{uri}\",[],{args}]", timeout); - - // Should receive the RESULT or ERROR - Response response = await ReceiveExpect(Messages.RESULT, requestId, timeout); - return response.Json; - } - - /// - /// Subscribe to a WAMP topic. - /// - /// The topic to which subscribe. - /// The options the subscription. - /// The delegate function to call when the topic is published. - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - /// Subscription id, that you can use to unsubscribe. - internal async System.Threading.Tasks.Task Subscribe(string topic, string options, PublishHandler publishEvent, int timeout) - { - int requestId = ++currentRequestId; - - // [SUBSCRIBE, Request|id, Options|dict, Topic|uri] - await Send($"[{(int)Messages.SUBSCRIBE},{requestId},{options},\"{topic}\"]", timeout); - - // Should receive the SUBSCRIBED or ERROR - Response response = await ReceiveExpect(Messages.SUBSCRIBED, requestId, timeout); - - subscriptions.TryAdd(response.SubscriptionId, publishEvent); - return response.SubscriptionId; - } - - /// Unsubscribe from a subscription. - /// The subscription id received from the initial subscription. - /// The maximum timeout in milliseconds for the function to execute. Will raise Waapi.TimeoutException when timeout is reached. - internal async System.Threading.Tasks.Task Unsubscribe(uint subscriptionId, int timeout) - { - int requestId = ++currentRequestId; - - // [UNSUBSCRIBE, Request|id, SUBSCRIBED.Subscription|id] - await Send($"[{(int)Messages.UNSUBSCRIBE},{requestId},{subscriptionId}]", timeout); - - Response response = await ReceiveExpect(Messages.UNSUBSCRIBED, requestId, timeout); - PublishHandler oldEvent; - subscriptions.TryRemove(subscriptionId, out oldEvent); - } -} \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Wamp.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Wamp.cs.meta deleted file mode 100644 index 7f064499b..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/WAAPI/Wamp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 883381c49e2b93e41bdebf26ce08e4da -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows.meta b/Assets/Wwise/API/Runtime/Handwritten/Windows.meta deleted file mode 100644 index 7982bb5b0..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c182f756a22e1514cbf0be4a710d6c7f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkSoundEngine.cs b/Assets/Wwise/API/Runtime/Handwritten/Windows/AkSoundEngine.cs deleted file mode 100644 index 9455c21d1..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkSoundEngine.cs +++ /dev/null @@ -1,14 +0,0 @@ -public partial class AkSoundEngine -{ -#if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_WSA - /// - /// Converts "AkOSChar*" C-strings to C# strings. - /// - /// "AkOSChar*" memory pointer passed to C# as an IntPtr. - /// Converted string. - public static string StringFromIntPtrOSString(System.IntPtr ptr) - { - return StringFromIntPtrWString(ptr); - } -#endif -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkSoundEngine.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Windows/AkSoundEngine.cs.meta deleted file mode 100644 index 9621f7212..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkSoundEngine.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4571faa40b50d8440bcdceb643771fc7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsBasePathGetter.cs b/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsBasePathGetter.cs deleted file mode 100644 index 30c98f427..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsBasePathGetter.cs +++ /dev/null @@ -1,6 +0,0 @@ -#if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_WSA -public partial class AkBasePathGetter -{ - static string DefaultPlatformName = "Windows"; -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsBasePathGetter.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsBasePathGetter.cs.meta deleted file mode 100644 index 2e019f2e7..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsBasePathGetter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ec760b80e1234b543a9813e6ef10f935 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsSettings.cs b/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsSettings.cs deleted file mode 100644 index 1567036c5..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsSettings.cs +++ /dev/null @@ -1,58 +0,0 @@ -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN -public partial class AkCommonUserSettings -{ - partial void SetSampleRate(AkPlatformInitSettings settings) - { - settings.uSampleRate = m_SampleRate; - } -} -#endif - -public class AkWindowsSettings : AkWwiseInitializationSettings.PlatformSettings -{ -#if UNITY_EDITOR - [UnityEditor.InitializeOnLoadMethod] - private static void AutomaticPlatformRegistration() - { - RegisterPlatformSettingsClass("Windows"); - } -#endif // UNITY_EDITOR - - protected override AkCommonUserSettings GetUserSettings() - { - return UserSettings; - } - - protected override AkCommonAdvancedSettings GetAdvancedSettings() - { - return AdvancedSettings; - } - - protected override AkCommonCommSettings GetCommsSettings() - { - return CommsSettings; - } - - [System.Serializable] - public class PlatformAdvancedSettings : AkCommonAdvancedSettings - { - [UnityEngine.Tooltip("Maximum number of System Audio Objects to reserve. Other processes will not be able to use them. Default is 128.")] - public uint MaxSystemAudioObjects = 128; - - public override void CopyTo(AkPlatformInitSettings settings) - { -#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN - settings.uMaxSystemAudioObjects = MaxSystemAudioObjects; -#endif - } - } - - [UnityEngine.HideInInspector] - public AkCommonUserSettings UserSettings; - - [UnityEngine.HideInInspector] - public PlatformAdvancedSettings AdvancedSettings; - - [UnityEngine.HideInInspector] - public AkCommonCommSettings CommsSettings; -} diff --git a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsSettings.cs.meta b/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsSettings.cs.meta deleted file mode 100644 index 8cc4a60e4..000000000 --- a/Assets/Wwise/API/Runtime/Handwritten/Windows/AkWindowsSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 62ab3a25c1462f241ba1fccdb7feb382 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins.meta b/Assets/Wwise/API/Runtime/Plugins.meta deleted file mode 100644 index 8554a1da8..000000000 --- a/Assets/Wwise/API/Runtime/Plugins.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f41b65fa265ba814ebed9855ff18d706 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac.meta b/Assets/Wwise/API/Runtime/Plugins/Mac.meta deleted file mode 100644 index e9672727c..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d9e52cf0d8568344b9bc3864cd550d49 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP.meta deleted file mode 100644 index 2a77fc9fb..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2eee2fd2c384eac45b1323730a6ae632 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkConvolutionReverb.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkConvolutionReverb.bundle deleted file mode 100644 index fb6e89c5d..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkConvolutionReverb.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c9abd8f8629cc63dfad3e38ead7fedc31dd51587295ba7ee4a8685caf8916bd -size 330320 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkConvolutionReverb.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkConvolutionReverb.bundle.meta deleted file mode 100644 index b9f72ab7a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkConvolutionReverb.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 5591f5b8693396a42898d3571ff85b11 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkFlanger.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkFlanger.bundle deleted file mode 100644 index d6fdcf169..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkFlanger.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8c31627032479b64d88ba2a1e23f5600352846da60e6e0685142fe7001c2d83 -size 212240 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkFlanger.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkFlanger.bundle.meta deleted file mode 100644 index 345c0f85e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkFlanger.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 1dfdaf354776535478eeccffcff9aef7 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkGuitarDistortion.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkGuitarDistortion.bundle deleted file mode 100644 index 1eafb9b31..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkGuitarDistortion.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7c4e8203a945ffe21143aa0386dae75500a45675cf947e2964c84bea2d20a82 -size 200160 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkGuitarDistortion.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkGuitarDistortion.bundle.meta deleted file mode 100644 index 979ff0fc6..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkGuitarDistortion.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: cbe5a3081227cfa48bde596c5cfd8bc0 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkHarmonizer.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkHarmonizer.bundle deleted file mode 100644 index 7f1f47e70..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkHarmonizer.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6dd8fb05e2941194c880547cd03c9a447988b34add6e718ac1b3ea4bd5504d8 -size 287168 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkHarmonizer.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkHarmonizer.bundle.meta deleted file mode 100644 index ed6e25548..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkHarmonizer.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 441d2faa2b4cc7b4d9e887ef95414510 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkPitchShifter.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkPitchShifter.bundle deleted file mode 100644 index 792297cbf..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkPitchShifter.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9cdce05f7640a3c61578545da0d77b670d1125295361a1ce011e8bf1edcf27f -size 196816 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkPitchShifter.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkPitchShifter.bundle.meta deleted file mode 100644 index 0d965d7a4..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkPitchShifter.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: e3f34dc59cfaa51459ada2220f32b856 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRecorder.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRecorder.bundle deleted file mode 100644 index 9d43d09da..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRecorder.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9731b8ce1229a23ec16ef29bec228c5310ef7f6a81eb72f124795b103bd3c8ad -size 178160 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRecorder.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRecorder.bundle.meta deleted file mode 100644 index a4c75a884..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRecorder.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: bc35c7ab36f3a6044a1dcc40bd08a923 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkReflect.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkReflect.bundle deleted file mode 100644 index 5fdc3b157..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkReflect.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69c1193ee043464aebc96272e602f2bfdec1ed67c6e43236ea9203242682de4d -size 264896 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkReflect.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkReflect.bundle.meta deleted file mode 100644 index 9f92fae89..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkReflect.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 10376df7a163c274ba3e83a57859f1b0 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRoomVerb.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRoomVerb.bundle deleted file mode 100644 index d27627718..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRoomVerb.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5f131cbc9436fd8ac862b90b876c8c7a83b9446695e2f24edd18ddf613ac188 -size 359296 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRoomVerb.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRoomVerb.bundle.meta deleted file mode 100644 index 2f6651036..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkRoomVerb.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 8fe509034cb7ed64394183b254b81584 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedAir.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedAir.bundle deleted file mode 100644 index df499f7b5..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedAir.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:992df7615cec2bb922a08de18c50514a636fc705213899bf9cd8e26d89a76c26 -size 302672 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedAir.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedAir.bundle.meta deleted file mode 100644 index f82c2bcb4..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedAir.bundle.meta +++ /dev/null @@ -1,35 +0,0 @@ -fileFormatVersion: 2 -guid: 8dd6451a84c60864494de90125c6458e -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: OSX - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedGrain.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedGrain.bundle deleted file mode 100644 index 7fbf564cb..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedGrain.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:245fb17c87e48268464364f0e9719ae6ec4661f84cfdd7a65fd209aee7f9bbb0 -size 266832 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedGrain.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedGrain.bundle.meta deleted file mode 100644 index 14178a146..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedGrain.bundle.meta +++ /dev/null @@ -1,35 +0,0 @@ -fileFormatVersion: 2 -guid: 665f724000f191540aecdef860b4e71b -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: OSX - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedImpact.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedImpact.bundle deleted file mode 100644 index 472817256..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedImpact.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2a360df3831c7d1e57931b33843d2e921221ea34c853aaf0097dba198f386737 -size 159296 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedImpact.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedImpact.bundle.meta deleted file mode 100644 index 80e3463dc..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSoundSeedImpact.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: e2ff816dde8051d4cbbba88585068862 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkStereoDelay.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkStereoDelay.bundle deleted file mode 100644 index 5fa341bd5..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkStereoDelay.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc5b2dc27a2c35ca06e1ef349b78b178be145f9ad4cfbe05452b1e221ff3700a -size 212384 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkStereoDelay.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkStereoDelay.bundle.meta deleted file mode 100644 index 96feae534..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkStereoDelay.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 5715bc53133ac08419e36b15a7ebbdbe -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSynthOne.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSynthOne.bundle deleted file mode 100644 index 4a82ed54f..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSynthOne.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3df25670522f3021c998e9498513843086c91a1a8f863d3fb132f709056de92f -size 198960 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSynthOne.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSynthOne.bundle.meta deleted file mode 100644 index ac337bb14..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkSynthOne.bundle.meta +++ /dev/null @@ -1,35 +0,0 @@ -fileFormatVersion: 2 -guid: 8016eb07198e69b4babfc1b6b2de262c -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: OSX - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTimeStretch.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTimeStretch.bundle deleted file mode 100644 index e03e148f3..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTimeStretch.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be153475c060c6cbe605f6b063715340d13a4fb4e46d4098e403f66d4229dd67 -size 261216 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTimeStretch.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTimeStretch.bundle.meta deleted file mode 100644 index af91c5341..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTimeStretch.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 2dec111e84a2c3e41ab6de327ecb88da -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTremolo.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTremolo.bundle deleted file mode 100644 index e4da95671..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTremolo.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:241818907fc60aa6ce69f5465d8bccc2e45be5e7ca8211cec194b9f0a15a94a1 -size 159664 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTremolo.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTremolo.bundle.meta deleted file mode 100644 index 193a7a3e8..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAkTremolo.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 76bfa0ac5b0b0a242a5dbdd38d4889b4 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAuro.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAuro.bundle deleted file mode 100644 index 906658fcb..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAuro.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f5ff4f5ecf516350038b74db0fb911aae771415536b1d1e65afb0d44729db6a -size 13391536 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAuro.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAuro.bundle.meta deleted file mode 100644 index 008f52c7f..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libAuro.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: b44275fe86f2b01409430d5b544095f4 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMasteringSuite.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMasteringSuite.bundle deleted file mode 100644 index c717fd93a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMasteringSuite.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50e37d3ac67db209a120ef8d751d8025bd7b0ed01817e5f2c99c2c8e93ceb793 -size 368832 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMasteringSuite.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMasteringSuite.bundle.meta deleted file mode 100644 index 26c4ab46a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMasteringSuite.bundle.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 1dda5d0471b38fc49a8a2f1b337aeb0f -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMcDSP.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMcDSP.bundle deleted file mode 100644 index c75087dbc..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMcDSP.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9102dd8bd27bf021d7e00d583b1ab2dfc84cac93f2ae316fcb699c95b5ca6371 -size 575520 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMcDSP.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMcDSP.bundle.meta deleted file mode 100644 index 992b4ca10..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libMcDSP.bundle.meta +++ /dev/null @@ -1,35 +0,0 @@ -fileFormatVersion: 2 -guid: 53abbdab57d2c844ba085140f9ff0c85 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: OSX - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libiZotope.bundle b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libiZotope.bundle deleted file mode 100644 index 0386df73f..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libiZotope.bundle +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:284f95d08fd22d424e436b2334dfb6e082e783b4f1a236f4a901050452d238cd -size 1390144 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libiZotope.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libiZotope.bundle.meta deleted file mode 100644 index 22c7c8fd1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/DSP/libiZotope.bundle.meta +++ /dev/null @@ -1,35 +0,0 @@ -fileFormatVersion: 2 -guid: 5bacf9446b16cf94787003ca7df37905 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: OSX - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug.meta deleted file mode 100644 index 3f41d4cc9..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d08aca70ded61be4b82521c07dfbae26 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM.meta deleted file mode 100644 index 01f6d6b01..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 15519f74cc957b94c9a980d4b24a8c8b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents.meta deleted file mode 100644 index 476ad7a9a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f83e893aab1ce82438273b8042dc377f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Info.plist b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Info.plist deleted file mode 100644 index 2f493a3ab..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.AkSoundEngine.bundle - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources.meta deleted file mode 100644 index 10aa5fe24..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ecea7517ceec26a49b62c1463f9328ad -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta deleted file mode 100644 index 63343fa0e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e7906d458e5cd704ea51bd8fde31cd48 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine deleted file mode 100644 index ac5af76c3..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e828fb0864b0cac2f3d1ed016a07a8684668a2fc9cd732b3b2fa3ca1e04b9a26 -size 57241423 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.meta deleted file mode 100644 index 91880f4c5..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 0572df5a5dfb51848a4a7ab4770b9e91 -folderAsset: yes -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents.meta deleted file mode 100644 index 15522a894..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d828be1fb5515ac4a9712a304cf0dd83 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS.meta deleted file mode 100644 index 01e0dc372..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c81e8112be3e63a4580495b4530f9d45 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine deleted file mode 100644 index 0bcfaab84..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b4fc8b21baedf213f96122d55f6417fb417b5c000c6fbdf261b766ccd86b1b56 -size 24638272 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta deleted file mode 100644 index 1bb8613bc..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Debug/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 014c3923a2f3de744933839d309df0d2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile.meta deleted file mode 100644 index 7f161f39a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5b5b53645e7438443b5b5f356b76e9b7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM.meta deleted file mode 100644 index fa44d0ac1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b8bfb98db3ec2cf48b3d67b941145a5e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents.meta deleted file mode 100644 index e1800dd3e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9fbdb1158bcce9741ad86cb9980081f0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Info.plist b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Info.plist deleted file mode 100644 index 2f493a3ab..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.AkSoundEngine.bundle - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta deleted file mode 100644 index cbc6a2398..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5ffb307aeb76fe7498939d1c4c3e39e8 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources.meta deleted file mode 100644 index 7dbe34cc2..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1dc6651bc526d7e46a0445661e49a50b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta deleted file mode 100644 index 6e180d5a9..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c3d8df7ceb2420b46bb081e6700bbdac -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine deleted file mode 100644 index 8298cda27..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83b63f1dbb69e695af109841535ad80661ecc708dd5ed2985b5a4d53af28c4af -size 73949742 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta deleted file mode 100644 index 77bc0fe8c..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6d102804c45852e4fa25ad9bd83f2888 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.meta deleted file mode 100644 index adba40df7..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle.meta +++ /dev/null @@ -1,36 +0,0 @@ -fileFormatVersion: 2 -guid: 9c43fa81a9c63b44ca96a2abb60c128b -folderAsset: yes -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: OSX - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents.meta deleted file mode 100644 index 4bf43e6e0..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a78feb1bfd2992c429a8a8113c0e56fe -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS.meta deleted file mode 100644 index 1aacdc49b..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b8752da0d83c733478113d9b086cbdc8 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine deleted file mode 100644 index c105e5c97..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab7148c24bf6361c3cb2f944870893b1569e4477d8e85646ea9a338edd1ff588 -size 11906992 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta deleted file mode 100644 index d38c2b31d..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Profile/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ba1333b136583e6448888d2900ef40ad -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release.meta deleted file mode 100644 index f927e13b4..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3d60d12af11420f4c98e0f066a220a47 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM.meta deleted file mode 100644 index 22d021f55..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: daf49355914034740bd791b5eda4ffd4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents.meta deleted file mode 100644 index fcfe72327..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: fd1e85565376ff341b53511724f4e859 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Info.plist b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Info.plist deleted file mode 100644 index 2f493a3ab..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.AkSoundEngine.bundle - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta deleted file mode 100644 index 31906babb..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Info.plist.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b79759bb1780c784291316fa7c4884f1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources.meta deleted file mode 100644 index d5a6072d1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e0ca4797aecd7944f9cd106a2d659cfa -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta deleted file mode 100644 index 98e3a5020..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b6f2c1ef13f18c241b05296890fa8206 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine deleted file mode 100644 index 3b47aec31..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5308fc50aafbdf9f75412e58cad46ed0901b220f41b082498fbbaf82444d2c7 -size 61540531 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta deleted file mode 100644 index 784afbb1f..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.dSYM/Contents/Resources/DWARF/AkSoundEngine.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 30d752d0bc055ab4f82e696e6f2e78cc -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.meta deleted file mode 100644 index 124cc4068..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 93c6c82ff44047746b7a4dcfd74c7bb7 -folderAsset: yes -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents.meta deleted file mode 100644 index 33fe97bf2..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ef64e100cd2bd3b49ae0eb438e075067 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS.meta deleted file mode 100644 index 368eeac08..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1411f34ffa813684b86233ccccaca111 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine deleted file mode 100644 index dca9d78b5..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1080b705fdf74e3bb4889c2b5f247c73ced633aaeff7147b185972337dbf066f -size 10041824 diff --git a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta b/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta deleted file mode 100644 index ade5d66af..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Mac/Release/AkSoundEngine.bundle/Contents/MacOS/AkSoundEngine.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5c723ffa576bbfa42bc689afa0829d1c -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows.meta b/Assets/Wwise/API/Runtime/Plugins/Windows.meta deleted file mode 100644 index 3e8ce58d8..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b10ebddf4ba683a459bc6c0f55fa3dd6 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86.meta deleted file mode 100644 index d554cc023..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c77aba6b273809d4a8d0637abbaac665 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP.meta deleted file mode 100644 index b152b3321..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a88997a15c0771a40a1c607701521e66 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkConvolutionReverb.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkConvolutionReverb.dll deleted file mode 100644 index c36622c30..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkConvolutionReverb.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0b3cf9c2d3c2585371d7f2eb6ea45c71c18a5056c0331fb4274225a19618d7c -size 178176 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkConvolutionReverb.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkConvolutionReverb.dll.meta deleted file mode 100644 index 89ea56323..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkConvolutionReverb.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 5bcfdcdbae6553b4e92cbe046cdddfe4 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkMotion.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkMotion.dll deleted file mode 100644 index e9733ae8e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkMotion.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bc70c547b2d96cd78a6251369b0bba55c85b6548f41ab7113b547b2af928243 -size 147456 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkMotion.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkMotion.dll.meta deleted file mode 100644 index 086ad7a50..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkMotion.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 9c737ddc0690d2f4984092acfc83751f -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedAir.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedAir.dll deleted file mode 100644 index dd011197a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedAir.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dda9d0869f56f99e276671140c27eb31fc32cf0de285793c7ef0ebfe6a994d7d -size 129536 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedAir.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedAir.dll.meta deleted file mode 100644 index 34d452d35..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedAir.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 589d6ba8a29be6e4ca4ae6d5c1cee4b5 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedGrain.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedGrain.dll deleted file mode 100644 index 1e1b149ca..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedGrain.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45ab594bc1fde91a300cef522adc97b668197249d368a8a547cdf71283f90b72 -size 131072 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedGrain.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedGrain.dll.meta deleted file mode 100644 index 0d9c9032b..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedGrain.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: a9b97faac78b0884cbb8f17afbff6d25 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedImpact.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedImpact.dll deleted file mode 100644 index 196825202..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedImpact.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8329f1739c27d668a4fbb44ae071114c2e97f829a8a1068b6d7a0ae787c9ad84 -size 107008 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedImpact.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedImpact.dll.meta deleted file mode 100644 index 1088285df..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSoundSeedImpact.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 13e652e7d8a689740958e1c68ff26d3a -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSynthOne.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSynthOne.dll deleted file mode 100644 index 823882331..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSynthOne.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dadc46aad5b8d21433acc51cd7f1cf212cb2994b2431b9bd2e580126e9df86f2 -size 115712 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSynthOne.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSynthOne.dll.meta deleted file mode 100644 index acd36581c..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/AkSynthOne.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 556f2ec25a7a7cf47a5bd0ec2fc1a5f2 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/Auro.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/Auro.dll deleted file mode 100644 index 036cce82c..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/Auro.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e74f7d2ae9baa2fef63966f02608733902cc3168b10c868cca4a3c0ed09f818 -size 2465280 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/Auro.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/Auro.dll.meta deleted file mode 100644 index 1eecdf8e0..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/Auro.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 5ee9cde555ad6944fa3613a49daf9eb2 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo.meta deleted file mode 100644 index 860d22b92..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f6112d22dd2c48f49825bc0cc3bae058 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo/IntegrationDemo.exe b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo/IntegrationDemo.exe deleted file mode 100644 index 6f66dd9fa..000000000 Binary files a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo/IntegrationDemo.exe and /dev/null differ diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo/IntegrationDemo.exe.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo/IntegrationDemo.exe.meta deleted file mode 100644 index e37854b7e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemo/IntegrationDemo.exe.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1e000590dbf18e54b9b9b02c256c6989 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion.meta deleted file mode 100644 index de42306a2..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cc897533487da874eb2d60cab9a70cf7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe deleted file mode 100644 index bd47926c2..000000000 Binary files a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe and /dev/null differ diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe.meta deleted file mode 100644 index 7b495ca44..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 575704c0e6e657f4d93d53a64f5e9876 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MSSpatial.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MSSpatial.dll deleted file mode 100644 index a64ba10b1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MSSpatial.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e13c27c2439faed27d4c502cb1affc25daf6b280a1ce1ddb53fa2173840387c3 -size 106496 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MSSpatial.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MSSpatial.dll.meta deleted file mode 100644 index 9372f6c18..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MSSpatial.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 2884965fb4ef83e4285466c9dfbaaafd -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MasteringSuite.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MasteringSuite.dll deleted file mode 100644 index 0218eb385..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MasteringSuite.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1dd23b93d92835d96d14aa32706a7b080483a1e769263cfad321c87de44bfdac -size 175104 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MasteringSuite.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MasteringSuite.dll.meta deleted file mode 100644 index e75176b2a..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/MasteringSuite.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 3eb9479b8bfb311468582f61e7932a52 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/McDSP.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/McDSP.dll deleted file mode 100644 index d5d5faa63..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/McDSP.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:492565b4e1b33dfd5f3dce939a18af549c7caa7019bc80c2c94a8b5a6fa3ba8c -size 208384 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/McDSP.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/McDSP.dll.meta deleted file mode 100644 index 0d264d61f..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/McDSP.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 2a6399a5c62a5574eb2f3637065630ba -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/SFTest.exe b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/SFTest.exe deleted file mode 100644 index 1a2875cf1..000000000 Binary files a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/SFTest.exe and /dev/null differ diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/SFTest.exe.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/SFTest.exe.meta deleted file mode 100644 index 2910b0369..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/SFTest.exe.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 54b150a286b657145ae3d21ffaceb310 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/iZotope.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/iZotope.dll deleted file mode 100644 index 6c8509228..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/iZotope.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5861e67efee7d739dbd039da511ff5e2741e5b6fd914e7ee5b2fb519b281f367 -size 322560 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/iZotope.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/iZotope.dll.meta deleted file mode 100644 index c5f8c40ab..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/DSP/iZotope.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: b31a701c66e522f478bda7036150449a -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug.meta deleted file mode 100644 index c0fc7ff64..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 98b3feee37f6d6b4786854967aa3cc15 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.dll deleted file mode 100644 index 9467a4948..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:229c13c5c607e60558e716643383783e3f4a5ca6729a90b29be2d455781b187f -size 6823424 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.dll.meta deleted file mode 100644 index 9a6984c7e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 04f0035e09237fc4583084a8f4b8c8d7 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.ilk b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.ilk deleted file mode 100644 index 78309a0f6..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.ilk +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ff7bc21e9132d4c8cc2a1195095c2c1c2523f096638139e3550da4c0c7d78e9 -size 17482796 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.ilk.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.ilk.meta deleted file mode 100644 index 2f1e9c7de..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Debug/AkSoundEngine.ilk.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4d2b03eb43ffc904d8a9e17c3e457b71 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile.meta deleted file mode 100644 index d22779da6..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 96a4069cec1814a439a4dbc4f9345c32 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile/AkSoundEngine.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile/AkSoundEngine.dll deleted file mode 100644 index 89ecf4537..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile/AkSoundEngine.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7a6cc8b45970fee9bee2dcb5574ee1c37e94500cc3379ac047db0ba2711afc3 -size 2867200 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile/AkSoundEngine.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile/AkSoundEngine.dll.meta deleted file mode 100644 index 8b69f8cdc..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Profile/AkSoundEngine.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 0e499423ec135a243842120869d9c27b -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release.meta deleted file mode 100644 index c386d27d1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 066bb196cf04a2e4c8f5f238f70643c4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release/AkSoundEngine.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release/AkSoundEngine.dll deleted file mode 100644 index 671e3c277..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release/AkSoundEngine.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97d7e0360fd3be2394ca841a28f49594160056edfa4940e7e61ca2af39d4d361 -size 2459136 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release/AkSoundEngine.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release/AkSoundEngine.dll.meta deleted file mode 100644 index 09e355584..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86/Release/AkSoundEngine.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: e1447d4cc3538604693b1213b3e1a6b2 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64.meta deleted file mode 100644 index 61c0b1ac4..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e52d12b58f75885438f8f9d8d0f050dd -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP.meta deleted file mode 100644 index afb48d5a7..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: df5e3ddeb5d999a4581964bc8ce4d0f1 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkConvolutionReverb.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkConvolutionReverb.dll deleted file mode 100644 index dde7413e0..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkConvolutionReverb.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a68fcb60607b96725a54a531c084c3c60ae6b2bd55561bac661ffdb630cfece -size 209920 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkConvolutionReverb.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkConvolutionReverb.dll.meta deleted file mode 100644 index a1deb59d7..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkConvolutionReverb.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: f42ca9963ff182f4988ff8da52280ff5 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkMotion.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkMotion.dll deleted file mode 100644 index 943759285..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkMotion.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed3c843931060309ae127dd8aa672279653b0f04ceb31d43615a255894a093cc -size 165888 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkMotion.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkMotion.dll.meta deleted file mode 100644 index 2cc9b4d31..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkMotion.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: fe56a3d53736306419f32b7c8c3b0bcb -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedAir.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedAir.dll deleted file mode 100644 index 95b019fde..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedAir.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:484df8c1570d7a8f1fbdf809dfe8068a5296dbfb181246619488cd6d20637008 -size 161792 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedAir.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedAir.dll.meta deleted file mode 100644 index 244390d0d..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedAir.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 8b4b2dd9152196c41b189fbe5c7a9b50 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86_64 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedGrain.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedGrain.dll deleted file mode 100644 index 20f5b4daa..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedGrain.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:787646781be42d82c46c938f330c1fe5334f690d7010491fdc02fcb5518b9ce2 -size 160256 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedGrain.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedGrain.dll.meta deleted file mode 100644 index 65446f12b..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedGrain.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 4533d9e4a9ebf3b4ca21e621d15b5554 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86_64 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedImpact.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedImpact.dll deleted file mode 100644 index 29f651a41..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedImpact.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6cd4ddff24818f75f0a4a47c443cb40c5aded6587e10426bf7d7a54f6d90b976 -size 140800 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedImpact.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedImpact.dll.meta deleted file mode 100644 index ff65ed0f7..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSoundSeedImpact.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 167736b3ac0ea5b4998043cbf56cc889 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSynthOne.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSynthOne.dll deleted file mode 100644 index 6d2d418a9..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSynthOne.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:effe4699a535281a1e6986856a3af75c1837244c2b3702db3552c1d5dc964486 -size 137728 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSynthOne.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSynthOne.dll.meta deleted file mode 100644 index d3ecdfc1b..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/AkSynthOne.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 1e657ef174c3cf1489d612826a1e529d -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86_64 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/Auro.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/Auro.dll deleted file mode 100644 index f2af49ecd..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/Auro.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2e956a007279b841c7a57d276b0b3e9a29a8ed1fe5eb3b22d5500013e48b5a0 -size 2536448 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/Auro.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/Auro.dll.meta deleted file mode 100644 index a52099f3d..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/Auro.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 24b5b78d0daa3e648a77fead88a5b334 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo.meta deleted file mode 100644 index 4b4ab0853..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4c4ea354da4144a47bb5509bef88cb77 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo/IntegrationDemo.exe b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo/IntegrationDemo.exe deleted file mode 100644 index d7369cf3e..000000000 Binary files a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo/IntegrationDemo.exe and /dev/null differ diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo/IntegrationDemo.exe.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo/IntegrationDemo.exe.meta deleted file mode 100644 index 58397015b..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemo/IntegrationDemo.exe.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 12101667997066c42b56006026293f34 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion.meta deleted file mode 100644 index bdd35d804..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7c723654934c2634b9b32453f9397c29 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe deleted file mode 100644 index 7fdf4c439..000000000 Binary files a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe and /dev/null differ diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe.meta deleted file mode 100644 index 8a54252c1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/IntegrationDemoMotion/IntegrationDemoMotion.exe.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c2574e0533681b2418998e9dcbb24050 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MSSpatial.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MSSpatial.dll deleted file mode 100644 index 92429a2b1..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MSSpatial.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f9cca2272b30515396e479173920bf438c649f410744bc905cd1e262bb8fd35 -size 125952 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MSSpatial.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MSSpatial.dll.meta deleted file mode 100644 index 82328ead2..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MSSpatial.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 09a21c9a299f6dc43aa86f9eddc21c7d -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MasteringSuite.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MasteringSuite.dll deleted file mode 100644 index 4457479da..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MasteringSuite.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6fc3a413a50bde7def95738eec2fc017862283e727a94260a6145db5960a88c1 -size 217600 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MasteringSuite.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MasteringSuite.dll.meta deleted file mode 100644 index 8733301c8..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/MasteringSuite.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 522fe4e109c95504c93312ec5df88b14 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/McDSP.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/McDSP.dll deleted file mode 100644 index 62fd2d0ee..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/McDSP.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56a39c25b8c02f7028b3ec7d27cba1620a667488f0fff632f956714029863556 -size 265728 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/McDSP.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/McDSP.dll.meta deleted file mode 100644 index e5d32a9d3..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/McDSP.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 2a2f8d1c8748bef49ba2cd679a6984ff -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86_64 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/SFTest.exe b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/SFTest.exe deleted file mode 100644 index 36a2c5c63..000000000 Binary files a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/SFTest.exe and /dev/null differ diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/SFTest.exe.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/SFTest.exe.meta deleted file mode 100644 index b92d5f5d8..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/SFTest.exe.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 242900d6d889cb84ab2dae29ac979faa -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/iZotope.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/iZotope.dll deleted file mode 100644 index 29faf1503..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/iZotope.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c99d2940e76e343703bc1912d1b394c20f572879a310c81ef6d46df854091aa -size 463360 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/iZotope.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/iZotope.dll.meta deleted file mode 100644 index f82375dbe..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/DSP/iZotope.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 6f5ea6849e54db749b7c81c4d990e193 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86_64 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug.meta deleted file mode 100644 index a286063a8..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2c7ccd7eb00e34042814db398f5fec37 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.dll deleted file mode 100644 index 454fea4fb..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be1939f9cbc1ce826baf739ae8ac470ad040b364b03138d1a4ffaaaca4ac57b5 -size 8874496 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.dll.meta deleted file mode 100644 index 1466a3c90..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: b30fee4e8a190284186c43754e3ec223 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.ilk b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.ilk deleted file mode 100644 index ba1536e4d..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.ilk +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfd41721d2cd0110b3ac7e2353a98eef5a466a569e4491a5062798ac261732d9 -size 27201064 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.ilk.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.ilk.meta deleted file mode 100644 index acae98f31..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Debug/AkSoundEngine.ilk.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a5c39bdaf3b717d459999edb1430c45a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile.meta deleted file mode 100644 index 1718db626..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6b8d6a627ccf29c4cba6af189c3d0b84 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile/AkSoundEngine.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile/AkSoundEngine.dll deleted file mode 100644 index c6d49faa2..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile/AkSoundEngine.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:874b71132c95b28badadb6589e50028a13acf81c2d1c4f3a52c6416e499f7420 -size 3556352 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile/AkSoundEngine.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile/AkSoundEngine.dll.meta deleted file mode 100644 index 84fa89af4..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Profile/AkSoundEngine.dll.meta +++ /dev/null @@ -1,53 +0,0 @@ -fileFormatVersion: 2 -guid: 5bd1e650ab12f3146b1d2cf546875e73 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86_64 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release.meta deleted file mode 100644 index 221868958..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1ccf4ede92f9c8247b0b4b7acdc1cfa8 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release/AkSoundEngine.dll b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release/AkSoundEngine.dll deleted file mode 100644 index 38e5c0c5b..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release/AkSoundEngine.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ecff0e03f77d2a122cda11af1538f8265df1102bb16195ac58422db42e44d51 -size 3052544 diff --git a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release/AkSoundEngine.dll.meta b/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release/AkSoundEngine.dll.meta deleted file mode 100644 index 5bb0ab53e..000000000 --- a/Assets/Wwise/API/Runtime/Plugins/Windows/x86_64/Release/AkSoundEngine.dll.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: d62264e2e5b08d24f8c9b6b4a4879bff -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes.meta b/Assets/Wwise/API/Runtime/WwiseTypes.meta deleted file mode 100644 index 77c24851a..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0a57239ffa158ee40aeff2639ae9f16a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/AK.Wwise.Unity.API.WwiseTypes.asmdef b/Assets/Wwise/API/Runtime/WwiseTypes/AK.Wwise.Unity.API.WwiseTypes.asmdef deleted file mode 100644 index fc11e3c03..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/AK.Wwise.Unity.API.WwiseTypes.asmdef +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "AK.Wwise.Unity.API.WwiseTypes", - "references": [ - "AK.Wwise.Unity.API", - "Unity.Addressables", - "AK.Wwise.Unity.Addressables" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "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 -} \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/AK.Wwise.Unity.API.WwiseTypes.asmdef.meta b/Assets/Wwise/API/Runtime/WwiseTypes/AK.Wwise.Unity.API.WwiseTypes.asmdef.meta deleted file mode 100644 index bf07b188c..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/AK.Wwise.Unity.API.WwiseTypes.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e4badfb2116b44448b42116db616678e -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects.meta deleted file mode 100644 index 1f56976b6..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b37f501a91b957149846a60325f2d7fb -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAcousticTextureReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAcousticTextureReference.cs deleted file mode 100644 index 92243330f..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAcousticTextureReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise banks as Unity assets. -public class WwiseAcousticTextureReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AcousticTexture; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAcousticTextureReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAcousticTextureReference.cs.meta deleted file mode 100644 index c10634967..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAcousticTextureReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 06f5301867c001e498bacd60229f97b4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAuxBusReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAuxBusReference.cs deleted file mode 100644 index b7728aa86..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAuxBusReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise aux buses as Unity assets. -public class WwiseAuxBusReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AuxBus; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAuxBusReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAuxBusReference.cs.meta deleted file mode 100644 index eb60d7dbc..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseAuxBusReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 349962f0079c3a144b1a5c347e639b60 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseBankReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseBankReference.cs deleted file mode 100644 index 6b9db50c9..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseBankReference.cs +++ /dev/null @@ -1,86 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -using System.IO; -using UnityEditor; - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES -using AK.Wwise.Unity.WwiseAddressables; -#endif - -/// @brief Represents Wwise banks as Unity assets. -/// -public class WwiseBankReference : WwiseObjectReference -{ -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - [UnityEngine.SerializeField, AkShowOnly] - private WwiseAddressableSoundBank bank; - - public WwiseAddressableSoundBank AddressableBank => bank; - - -#if UNITY_EDITOR - - public void OnEnable() - { - AkAssetUtilities.AddressableBankUpdated += UpdateAddressableBankReference; - } - - public override void CompleteData() - { - SetAddressableBank(WwiseAddressableSoundBank.GetAddressableBankAsset(DisplayName)); - } - - public override bool IsComplete() - { - return bank != null; - } - - public void SetAddressableBank(WwiseAddressableSoundBank asset) - { - bank = asset; - EditorUtility.SetDirty(this); - AssetDatabase.SaveAssets(); - AssetDatabase.Refresh(); - } - - public bool UpdateAddressableBankReference(WwiseAddressableSoundBank asset, string name) - { - if (name == ObjectName) - { - SetAddressableBank(asset); - return true; - } - return false; - } - - public static bool FindBankReferenceAndSetAddressableBank(WwiseAddressableSoundBank addressableAsset, string name) - { - var guids = UnityEditor.AssetDatabase.FindAssets("t:" + typeof(WwiseBankReference).Name); - WwiseBankReference asset; - foreach (var assetGuid in guids) - { - var assetPath = UnityEditor.AssetDatabase.GUIDToAssetPath(assetGuid); - asset = UnityEditor.AssetDatabase.LoadAssetAtPath(assetPath); - if (asset && asset.ObjectName == name) - { - asset.SetAddressableBank(addressableAsset); - return true; - } - } - return false; - } - - public void OnDestroy() - { - AkAssetUtilities.AddressableBankUpdated -= UpdateAddressableBankReference; - } - -#endif -#endif - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Soundbank; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseBankReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseBankReference.cs.meta deleted file mode 100644 index 0b1d84850..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseBankReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c22c2793049fddb4f9d86aff4ed3758a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseEventReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseEventReference.cs deleted file mode 100644 index 5dc8f6c2e..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseEventReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise events as Unity assets. -public class WwiseEventReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Event; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseEventReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseEventReference.cs.meta deleted file mode 100644 index fb51fe523..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseEventReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6ef9016339588f1468b0a265018b774b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectReference.cs deleted file mode 100644 index 11196a58a..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectReference.cs +++ /dev/null @@ -1,366 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise objects as Unity assets. -public abstract class WwiseObjectReference : UnityEngine.ScriptableObject -{ - #region Serialized fields - [AkShowOnly] - [UnityEngine.SerializeField] - private string objectName = string.Empty; - - [AkShowOnly] - [UnityEngine.SerializeField] - private uint id = AkSoundEngine.AK_INVALID_UNIQUE_ID; - - [AkShowOnly] - [UnityEngine.SerializeField] - private string guid = string.Empty; - #endregion - - #region Properties - /// - /// The Wwise GUID which is represented by the ScriptableObject's asset file name. - /// - public System.Guid Guid - { - get { return string.IsNullOrEmpty(guid) ? System.Guid.Empty : new System.Guid(guid); } - } - - /// - /// The name of the Wwise object. - /// - public string ObjectName { get { return objectName; } } - - /// - /// The display name for the Wwise object. - /// - public virtual string DisplayName { get { return ObjectName; } } - - /// - /// The Wwise ID. - /// - public uint Id { get { return id; } } - - /// - /// The type of the Wwise object resource (for example: Event, State or Switch). - /// - public abstract WwiseObjectType WwiseObjectType { get; } - #endregion - -#if UNITY_EDITOR - public virtual bool IsComplete() - { - return true; - } - - public virtual void CompleteData() - { - - } - - #region Creation and File Management - private static readonly System.Collections.Generic.Dictionary m_WwiseObjectReferenceClasses - = new System.Collections.Generic.Dictionary - { - { WwiseObjectType.AcousticTexture, typeof(WwiseAcousticTextureReference) }, - { WwiseObjectType.AuxBus, typeof(WwiseAuxBusReference) }, - { WwiseObjectType.Soundbank, typeof(WwiseBankReference) }, - { WwiseObjectType.Event, typeof(WwiseEventReference) }, - { WwiseObjectType.GameParameter, typeof(WwiseRtpcReference) }, - { WwiseObjectType.StateGroup, typeof(WwiseStateGroupReference) }, - { WwiseObjectType.State, typeof(WwiseStateReference) }, - { WwiseObjectType.SwitchGroup, typeof(WwiseSwitchGroupReference) }, - { WwiseObjectType.Switch, typeof(WwiseSwitchReference) }, - { WwiseObjectType.Trigger, typeof(WwiseTriggerReference) }, - }; - - - private static WwiseObjectReference Create(WwiseObjectType wwiseObjectType) - { - System.Type type = null; - if (m_WwiseObjectReferenceClasses.TryGetValue(wwiseObjectType, out type)) - return (WwiseObjectReference)CreateInstance(type); - - return CreateInstance(); - } - - protected static WwiseObjectReference FindExistingWwiseObject(WwiseObjectType wwiseObjectType, System.Guid guid, string path) - { - var asset = UnityEditor.AssetDatabase.LoadAssetAtPath(path); - if (asset) - return asset; - - System.Type type = null; - if (!m_WwiseObjectReferenceClasses.TryGetValue(wwiseObjectType, out type)) - return null; - - var guids = UnityEditor.AssetDatabase.FindAssets("t:" + type.Name); - foreach (var assetGuid in guids) - { - var assetPath = UnityEditor.AssetDatabase.GUIDToAssetPath(assetGuid); - asset = UnityEditor.AssetDatabase.LoadAssetAtPath(assetPath); - if (asset && asset.WwiseObjectType == wwiseObjectType && asset.Guid == guid) - return asset; - } - - return null; - } - - private static bool UpdateWwiseObjectData(WwiseObjectReference wwiseObjectReference, string name) - { - var id = AkUtilities.ShortIDGenerator.Compute(name); - var changed = false; - if (wwiseObjectReference.objectName == name && wwiseObjectReference.id == id) - changed = true; - - wwiseObjectReference.objectName = name; - wwiseObjectReference.id = id; - - if (!wwiseObjectReference.IsComplete()) - { - changed = true; - wwiseObjectReference.CompleteData(); - } - return changed; - } - - public static string GetParentPath(WwiseObjectType wwiseObjectType) - { - return System.IO.Path.Combine(AkWwiseEditorSettings.WwiseScriptableObjectRelativePath, wwiseObjectType.ToString()); - } - - public static string GetAssetFileName(System.Guid guid) - { - return guid.ToString().ToUpper() + ".asset"; - } - - public static WwiseObjectReference FindOrCreateWwiseObject(WwiseObjectType wwiseObjectType, string name, System.Guid guid) - { - var parentPath = GetParentPath(wwiseObjectType); - var path = System.IO.Path.Combine(parentPath, GetAssetFileName(guid)); - var asset = FindExistingWwiseObject(wwiseObjectType, guid, path); - var assetExists = asset != null; - if (!assetExists) - { - AkUtilities.CreateFolder(parentPath); - asset = Create(wwiseObjectType); - asset.guid = guid.ToString().ToUpper(); - } - - var changed = UpdateWwiseObjectData(asset, name); - if (!assetExists) - UnityEditor.AssetDatabase.CreateAsset(asset, path); - else if (changed) - UnityEditor.EditorUtility.SetDirty(asset); - - return asset; - } - - public static WwiseObjectReference FindWwiseObject(WwiseObjectType wwiseObjectType, System.Guid guid) - { - var parentPath = GetParentPath(wwiseObjectType); - var path = System.IO.Path.Combine(parentPath, GetAssetFileName(guid)); - return FindExistingWwiseObject(wwiseObjectType, guid, path); - } - - public static void UpdateWwiseObject(WwiseObjectType wwiseObjectType, string name, System.Guid guid) - { - var path = System.IO.Path.Combine(GetParentPath(wwiseObjectType), GetAssetFileName(guid)); - var asset = FindExistingWwiseObject(wwiseObjectType, guid, path); - if (asset && UpdateWwiseObjectData(asset, name)) - UnityEditor.EditorUtility.SetDirty(asset); - } - - public static void DeleteWwiseObject(WwiseObjectType wwiseObjectType, System.Guid guid) - { - var path = System.IO.Path.Combine(GetParentPath(wwiseObjectType), GetAssetFileName(guid)); - var guidString = UnityEditor.AssetDatabase.AssetPathToGUID(path); - if (!string.IsNullOrEmpty(guidString)) - UnityEditor.AssetDatabase.DeleteAsset(path); - } - #endregion - - #region WwiseMigration - private class WwiseObjectData - { - public string objectName; - } - - private static System.Collections.Generic.Dictionary> WwiseObjectDataMap - = new System.Collections.Generic.Dictionary>(); - - public static void ClearWwiseObjectDataMap() - { - WwiseObjectDataMap.Clear(); - } - - public static void UpdateWwiseObjectDataMap(WwiseObjectType wwiseObjectType, string name, System.Guid guid) - { - System.Collections.Generic.Dictionary map = null; - if (!WwiseObjectDataMap.TryGetValue(wwiseObjectType, out map)) - { - map = new System.Collections.Generic.Dictionary(); - WwiseObjectDataMap.Add(wwiseObjectType, map); - } - - WwiseObjectData data = null; - if (!map.TryGetValue(guid, out data)) - { - data = new WwiseObjectData(); - map.Add(guid, data); - } - - data.objectName = name; - } - - public static WwiseObjectReference GetWwiseObjectForMigration(WwiseObjectType wwiseObjectType, byte[] valueGuid, int id) - { - if (valueGuid == null) - { - return null; - } - - System.Collections.Generic.Dictionary map = null; - if (!WwiseObjectDataMap.TryGetValue(wwiseObjectType, out map) || map == null) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Cannot find WwiseObjectReferences of type ."); - return null; - } - - var guid = System.Guid.Empty; - WwiseObjectData data = null; - - try - { - guid = new System.Guid(valueGuid); - } - catch - { - UnityEngine.Debug.LogWarning("WwiseUnity: Invalid guid for WwiseObjectReference of type ."); - return null; - } - - var formattedId = (uint)id; - if (guid != System.Guid.Empty && !map.TryGetValue(guid, out data)) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Cannot find guid <" + guid.ToString() + "> for WwiseObjectReference of type in Wwise Project."); - - foreach (var pair in map) - { - if (AkUtilities.ShortIDGenerator.Compute(pair.Value.objectName) == formattedId) - { - guid = pair.Key; - data = pair.Value; - UnityEngine.Debug.LogWarning("WwiseUnity: Found guid <" + guid.ToString() + "> for <" + pair.Value.objectName + ">."); - break; - } - } - } - - if (data == null) - { - return null; - } - - var objectReference = FindOrCreateWwiseObject(wwiseObjectType, data.objectName, guid); - if (objectReference && objectReference.Id != formattedId) - { - UnityEngine.Debug.LogWarning("WwiseUnity: ID mismatch for WwiseObjectReference of type . Expected <" + formattedId + ">. Found <" + objectReference.Id + ">."); - } - - return objectReference; - } - #endregion -#endif -} - -/// @brief Represents Wwise group value objects (such as states and switches) as Unity assets. -public abstract class WwiseGroupValueObjectReference : WwiseObjectReference -{ - #region Properties - /// - /// The group object reference. - /// - public abstract WwiseObjectReference GroupObjectReference { get; set; } - - /// - /// The type of the Wwise object resource (for example: Event, State or Switch). - /// - public abstract WwiseObjectType GroupWwiseObjectType { get; } - - /// - /// The display name for the Wwise object. - /// - public override string DisplayName - { - get - { -#if AK_DISPLAY_GROUP_TYPES_WITH_SINGLE_NAME - return ObjectName; -#else - var groupReference = GroupObjectReference; - if (!groupReference) - return ObjectName; - - return groupReference.ObjectName + " / " + ObjectName; -#endif // AK_DISPLAY_GROUP_TYPES_WITH_SINGLE_NAME - } - } - #endregion - -#if UNITY_EDITOR - public void SetupGroupObjectReference(string name, System.Guid guid) - { - var objectReference = FindOrCreateWwiseObject(GroupWwiseObjectType, name, guid); - if (objectReference != GroupObjectReference) - { - GroupObjectReference = objectReference; - UnityEditor.EditorUtility.SetDirty(this); - } - } - - #region WwiseMigration - public static WwiseGroupValueObjectReference GetWwiseObjectForMigration(WwiseObjectType wwiseObjectType, byte[] valueGuid, int id, byte[] groupGuid, int groupId) - { - var objectReference = GetWwiseObjectForMigration(wwiseObjectType, valueGuid, id); - if (!objectReference) - return null; - - var groupValueObjectReference = objectReference as WwiseGroupValueObjectReference; - if (!groupValueObjectReference) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Not setting WwiseObjectReference since it is not a WwiseGroupValueObjectReference."); - return null; - } - - var groupObjectReference = GetWwiseObjectForMigration(groupValueObjectReference.GroupWwiseObjectType, groupGuid, groupId); - if (!groupObjectReference) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Not setting WwiseObjectReference since its GroupObjectReference cannot be determined."); - return null; - } - - groupValueObjectReference.GroupObjectReference = groupObjectReference; - UnityEditor.EditorUtility.SetDirty(groupValueObjectReference); - return groupValueObjectReference; - } - #endregion -#endif -} - -#if UNITY_EDITOR -public static class AkWwiseTypes -{ - private const string DragAndDropId = "AkDragDropId"; - - public static WwiseObjectReference DragAndDropObjectReference - { - set { UnityEditor.DragAndDrop.SetGenericData(DragAndDropId, value); } - get { return UnityEditor.DragAndDrop.GetGenericData(DragAndDropId) as WwiseObjectReference; } - } -} -#endif diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectReference.cs.meta deleted file mode 100644 index 6b2ed0b56..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 711311f5a3d011a4a9cfbd5297e0ef17 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectType.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectType.cs deleted file mode 100644 index da0651a5c..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectType.cs +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// -/// Enumeration of Wwise object types that can be found in a Wwise project. -/// -public enum WwiseObjectType -{ - None, - AuxBus, - Bus, - Event, - Folder, - PhysicalFolder, - Project, - Soundbank, - State, - StateGroup, - Switch, - SwitchGroup, - WorkUnit, - GameParameter, - Trigger, - AcousticTexture -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectType.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectType.cs.meta deleted file mode 100644 index 92a94df84..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseObjectType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 36da97e70be47ef40ad74c5296e76f2f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseRtpcReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseRtpcReference.cs deleted file mode 100644 index 2d33e8729..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseRtpcReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise RTPCs as Unity assets. -public class WwiseRtpcReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.GameParameter; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseRtpcReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseRtpcReference.cs.meta deleted file mode 100644 index e6707b135..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseRtpcReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b970bf2906600d142bf17beed92ebdb7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateGroupReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateGroupReference.cs deleted file mode 100644 index 25ac58801..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateGroupReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise state groups as Unity assets. -public class WwiseStateGroupReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.StateGroup; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateGroupReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateGroupReference.cs.meta deleted file mode 100644 index 5e03f9871..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateGroupReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0e72cc3e5b2e00e41bd595068b549224 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateReference.cs deleted file mode 100644 index 7cb05bf7e..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateReference.cs +++ /dev/null @@ -1,23 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise states as Unity assets. -public class WwiseStateReference : WwiseGroupValueObjectReference -{ - [AkShowOnly] - [UnityEngine.SerializeField] - private WwiseStateGroupReference WwiseStateGroupReference; - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.State; } } - - public override WwiseObjectReference GroupObjectReference - { - get { return WwiseStateGroupReference; } - set { WwiseStateGroupReference = value as WwiseStateGroupReference; } - } - - public override WwiseObjectType GroupWwiseObjectType { get { return WwiseObjectType.StateGroup; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateReference.cs.meta deleted file mode 100644 index 095340d2e..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseStateReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: da2228710d4534f4bbbf09cae8e507e0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchGroupReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchGroupReference.cs deleted file mode 100644 index c55541f9c..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchGroupReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise switch groups as Unity assets. -public class WwiseSwitchGroupReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.SwitchGroup; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchGroupReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchGroupReference.cs.meta deleted file mode 100644 index a70e4c408..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchGroupReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ead763eca402fa047a3594e01b51b4f6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchReference.cs deleted file mode 100644 index 53e1b5c6a..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchReference.cs +++ /dev/null @@ -1,23 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise states as Unity assets. -public class WwiseSwitchReference : WwiseGroupValueObjectReference -{ - [AkShowOnly] - [UnityEngine.SerializeField] - private WwiseSwitchGroupReference WwiseSwitchGroupReference; - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Switch; } } - - public override WwiseObjectReference GroupObjectReference - { - get { return WwiseSwitchGroupReference; } - set { WwiseSwitchGroupReference = value as WwiseSwitchGroupReference; } - } - - public override WwiseObjectType GroupWwiseObjectType { get { return WwiseObjectType.SwitchGroup; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchReference.cs.meta deleted file mode 100644 index b823c4f25..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseSwitchReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: af5d3be874e467c4ba76e417c2fac362 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseTriggerReference.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseTriggerReference.cs deleted file mode 100644 index ee900c117..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseTriggerReference.cs +++ /dev/null @@ -1,11 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Represents Wwise triggers as Unity assets. -public class WwiseTriggerReference : WwiseObjectReference -{ - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Trigger; } } -} diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseTriggerReference.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseTriggerReference.cs.meta deleted file mode 100644 index 5ecc99f97..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseObjects/WwiseTriggerReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6b1f2e8fb79fbe04a8f34e9b2da1c8aa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes.meta deleted file mode 100644 index 55a1bf5b2..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4d3e73335edaf78479ce45d6c21ac48b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAcousticTexture.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAcousticTexture.cs deleted file mode 100644 index 5f281e305..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAcousticTexture.cs +++ /dev/null @@ -1,20 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type represents an Acoustic Texture. - public class AcousticTexture : BaseType - { - public WwiseAcousticTextureReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseAcousticTextureReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AcousticTexture; } } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAcousticTexture.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAcousticTexture.cs.meta deleted file mode 100644 index 15e74a823..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAcousticTexture.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 395afa703d795b84a8bc19a462c9a7a9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAuxBus.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAuxBus.cs deleted file mode 100644 index 3a334a8d8..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAuxBus.cs +++ /dev/null @@ -1,20 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type represents an auxiliary send in the Master-Mixer Hierarchy. - public class AuxBus : BaseType - { - public WwiseAuxBusReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseAuxBusReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AuxBus; } } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAuxBus.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAuxBus.cs.meta deleted file mode 100644 index fa7854684..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseAuxBus.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b1240d6dce66d1645ae19fa7829d8cf6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBank.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBank.cs deleted file mode 100644 index e7f1ec887..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBank.cs +++ /dev/null @@ -1,64 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES -using AK.Wwise.Unity.WwiseAddressables; -#endif - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type can be used to load/unload SoundBanks. - public class Bank : BaseType - { - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Soundbank; } } - public WwiseBankReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseBankReference; } - } - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - public override bool IsValid() - { - return base.IsValid() && WwiseObjectReference.AddressableBank !=null; - } - - public void Load(bool decodeBank = false, bool saveDecodedBank = false) - { - if (IsValid()) - AkAddressableBankManager.Instance.LoadBank(WwiseObjectReference.AddressableBank, decodeBank, saveDecodedBank); - } - - public void LoadAsync(AkCallbackManager.BankCallback callback = null) - { - throw new System.Exception("Wwise Addressables : Use Load() when loading banks with the Wwise Addressables package"); - } - public void Unload() - { - if (IsValid()) - AkAddressableBankManager.Instance.UnloadBank(WwiseObjectReference.AddressableBank); - } -#else - public void Load(bool decodeBank = false, bool saveDecodedBank = false) - { - if (IsValid()) - AkBankManager.LoadBank(Name, decodeBank, saveDecodedBank); - } - - public void LoadAsync(AkCallbackManager.BankCallback callback = null) - { - if (IsValid()) - AkBankManager.LoadBankAsync(Name, callback); - } - - public void Unload() - { - if (IsValid()) - AkBankManager.UnloadBank(Name); - } -#endif - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBank.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBank.cs.meta deleted file mode 100644 index 8d7a44ecf..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBank.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0ad33e200a1714f43b7e78c27d753840 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseGroupType.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseGroupType.cs deleted file mode 100644 index d906b207c..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseGroupType.cs +++ /dev/null @@ -1,62 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type represents the base for all Wwise Types that also require a group GUID, such as State and Switch. - public abstract class BaseGroupType : BaseType - { - public WwiseObjectReference GroupWwiseObjectReference - { - get - { - var reference = ObjectReference as WwiseGroupValueObjectReference; - return reference ? reference.GroupObjectReference : null; - } - } - - public abstract WwiseObjectType WwiseObjectGroupType { get; } - - public uint GroupId - { - get { return GroupWwiseObjectReference ? GroupWwiseObjectReference.Id : AkSoundEngine.AK_INVALID_UNIQUE_ID; } - } - - public override bool IsValid() - { - return base.IsValid() && GroupWwiseObjectReference != null; - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_2)] - public int groupID - { - get { return (int)GroupId; } - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] groupGuid - { - get - { - var objRef = ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("groupID")] - private int groupIdInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("groupGuid")] - private byte[] groupGuidInternal; -#pragma warning restore 0414 // private field assigned but not used. - #endregion - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseGroupType.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseGroupType.cs.meta deleted file mode 100644 index 35917f3c4..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseGroupType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 92f6ddcf2fb571442bf77117c467d4b6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseType.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseType.cs deleted file mode 100644 index e35bd6329..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseType.cs +++ /dev/null @@ -1,93 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type represents the base for all Wwise Types that require a GUID. - public abstract class BaseType - { - public abstract WwiseObjectReference ObjectReference { get; set; } - - public abstract WwiseObjectType WwiseObjectType { get; } - - public virtual string Name - { - get { return IsValid() ? ObjectReference.DisplayName : string.Empty; } - } - - public uint Id - { - get { return IsValid() ? ObjectReference.Id : AkSoundEngine.AK_INVALID_UNIQUE_ID; } - } - public static uint InvalidId - { - get { return AkSoundEngine.AK_INVALID_UNIQUE_ID; } - } - - public virtual bool IsValid() - { - return ObjectReference != null; - } - - public bool Validate() - { - if (IsValid()) - return true; - - UnityEngine.Debug.LogWarning("Wwise ID has not been resolved. Consider picking a new " + GetType().Name + "."); - return false; - } - - protected void Verify(AKRESULT result) - { -#if UNITY_EDITOR - if (result != AKRESULT.AK_Success && AkSoundEngine.IsInitialized()) - UnityEngine.Debug.LogWarning("Unsuccessful call made on " + GetType().Name + "."); -#endif - } - - public override string ToString() - { - return IsValid() ? ObjectReference.ObjectName : ("Empty " + GetType().Name); - } - -#if UNITY_EDITOR - public void SetupReference(string name, System.Guid guid) - { - ObjectReference = WwiseObjectReference.FindOrCreateWwiseObject(WwiseObjectType, name, guid); - } -#endif - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_2)] - public int ID - { - get { return (int)Id; } - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] valueGuid - { - get - { - var objRef = ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("ID")] - private int idInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueGuid")] - private byte[] valueGuidInternal; -#pragma warning restore 0414 // private field assigned but not used. - #endregion - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseType.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseType.cs.meta deleted file mode 100644 index 718a1178e..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseBaseType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 643b434988f66ab46b2ef0be4afb295a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseCallbackFlags.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseCallbackFlags.cs deleted file mode 100644 index 71a5ae295..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseCallbackFlags.cs +++ /dev/null @@ -1,128 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type represents the values of the flags used when posting an Event with a callback. - public class CallbackFlags - { - public uint value = 0; - -#if UNITY_EDITOR - [UnityEditor.CustomPropertyDrawer(typeof(CallbackFlags))] - private class CallbackFlagsDrawer : UnityEditor.PropertyDrawer - { - private static string[] m_supportedCallbackFlags; - private static int[] m_supportedCallbackValues; - - public static string[] SupportedCallbackFlags - { - get - { - if (m_supportedCallbackFlags == null) - SetupSupportedCallbackValuesAndFlags(); - - return m_supportedCallbackFlags; - } - } - - private static void SetupSupportedCallbackValuesAndFlags() - { - var callbacktypes = System.Enum.GetValues(typeof(AkCallbackType)) as AkCallbackType[]; - var unsupportedCallbackValues = new[] - { - AkCallbackType.AK_SpeakerVolumeMatrix, AkCallbackType.AK_MusicSyncAll, - AkCallbackType.AK_CallbackBits, AkCallbackType.AK_Monitoring, AkCallbackType.AK_AudioSourceChange, - AkCallbackType.AK_Bank, AkCallbackType.AK_AudioInterruption - }; - - m_supportedCallbackFlags = new string[callbacktypes.Length - unsupportedCallbackValues.Length]; - m_supportedCallbackValues = new int[callbacktypes.Length - unsupportedCallbackValues.Length]; - - var index = 0; - for (var i = 0; i < callbacktypes.Length; i++) - { - if (!Contains(unsupportedCallbackValues, callbacktypes[i])) - { - m_supportedCallbackFlags[index] = System.Enum.GetName(typeof(AkCallbackType), callbacktypes[i]).Substring(3); - m_supportedCallbackValues[index] = (int)callbacktypes[i]; - index++; - } - } - } - - private static int GetDisplayMask(int in_wwiseCallbackMask) - { - if (m_supportedCallbackValues == null) - SetupSupportedCallbackValuesAndFlags(); - - var displayMask = 0; - for (var i = 0; i < m_supportedCallbackValues.Length; i++) - { - if ((m_supportedCallbackValues[i] & in_wwiseCallbackMask) != 0) - displayMask |= 1 << i; - } - - return displayMask; - } - - private static int GetWwiseCallbackMask(int in_displayMask) - { - if (m_supportedCallbackValues == null) - SetupSupportedCallbackValuesAndFlags(); - - var wwiseCallbackMask = 0; - for (var i = 0; i < m_supportedCallbackValues.Length; i++) - { - if ((in_displayMask & (1 << i)) != 0) - wwiseCallbackMask |= m_supportedCallbackValues[i]; - } - - return wwiseCallbackMask; - } - - private static bool Contains(T[] in_array, T in_value) - { - for (var i = 0; i < in_array.Length; i++) - { - if (in_array[i].Equals(in_value)) - return true; - } - - return false; - } - - public override void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, - UnityEngine.GUIContent label) - { - UnityEditor.EditorGUI.BeginProperty(position, label, property); - - if (label != null && !string.IsNullOrEmpty(label.text)) - { - UnityEditor.EditorGUI.LabelField(position, label); - position.x += UnityEditor.EditorGUIUtility.labelWidth; - position.width -= UnityEditor.EditorGUIUtility.labelWidth; - } - - var indent = UnityEditor.EditorGUI.indentLevel; - UnityEditor.EditorGUI.indentLevel = 0; - - var value = property.FindPropertyRelative("value"); - - //Since some callback flags are unsupported, some bits are not used. - //But when using EditorGUILayout.MaskField, clicking the third flag will set the third bit to one even if the third flag in the AkCallbackType enum is unsupported. - //This is a problem because clicking the third supported flag would internally select the third flag in the AkCallbackType enum which is unsupported. - //To solve this problem we use a mask for display and another one for the actual callback - var displayMask = GetDisplayMask(value.intValue); - displayMask = UnityEditor.EditorGUI.MaskField(position, displayMask, SupportedCallbackFlags); - value.intValue = GetWwiseCallbackMask(displayMask); - - UnityEditor.EditorGUI.indentLevel = indent; - - UnityEditor.EditorGUI.EndProperty(); - } - } -#endif - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseCallbackFlags.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseCallbackFlags.cs.meta deleted file mode 100644 index 25e7e1d3e..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseCallbackFlags.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a017ea5cca1b30b4d89e217848d37691 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs deleted file mode 100644 index 810ac9aa3..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs +++ /dev/null @@ -1,198 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES -using AK.Wwise.Unity.WwiseAddressables; -#endif - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type can be used to post Events to the sound engine. - public class Event : BaseType - { - public WwiseEventReference WwiseObjectReference; - private uint m_playingId; - public uint PlayingId - { - get { return m_playingId; } - } - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseEventReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Event; } } - - private void VerifyPlayingID(uint playingId) - { -#if UNITY_EDITOR - if (playingId == AkSoundEngine.AK_INVALID_PLAYING_ID && AkSoundEngine.IsInitialized()) - { - UnityEngine.Debug.LogError("WwiseUnity: Could not post event (name: " + Name + ", ID: " + Id + - "). Please make sure to load or rebuild the appropriate SoundBank."); - } -#endif - } - - /// - /// Posts this Event on a GameObject. - /// - /// The GameObject - /// Returns the playing ID. - public uint Post(UnityEngine.GameObject gameObject) - { - if (!IsValid()) - return AkSoundEngine.AK_INVALID_PLAYING_ID; - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - var args = new object[] { gameObject }; - var argTypes = new System.Type[] { gameObject.GetType()}; - if (!AkAddressableBankManager.Instance.LoadedBankContainsEvent(Name, Id, this, "Post", argTypes, args)) - { - return AkSoundEngine.AK_PENDING_EVENT_LOAD_ID; - } -#endif - - m_playingId = AkSoundEngine.PostEvent(Id, gameObject); - VerifyPlayingID(m_playingId); - return m_playingId; - } - - /// - /// Posts this Event on a GameObject. - /// - /// The GameObject - /// - /// - /// Optional cookie received by the callback - /// Returns the playing ID. - public uint Post(UnityEngine.GameObject gameObject, CallbackFlags flags, AkCallbackManager.EventCallback callback, - object cookie = null) - { - if (!IsValid()) - return AkSoundEngine.AK_INVALID_PLAYING_ID; - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - var args = new object[] { gameObject, flags, callback, cookie }; - var argTypes = new System.Type[] { typeof(UnityEngine.GameObject), - typeof(CallbackFlags), typeof (AkCallbackManager.EventCallback), typeof(object) }; - if (!AkAddressableBankManager.Instance.LoadedBankContainsEvent(Name, Id, this, "Post", argTypes, args)) - { - return AkSoundEngine.AK_PENDING_EVENT_LOAD_ID; - } -#endif - - m_playingId = AkSoundEngine.PostEvent(Id, gameObject, flags.value, callback, cookie); - VerifyPlayingID(m_playingId); - return m_playingId; - } - - /// - /// Posts this Event on a GameObject. - /// - /// The GameObject - /// - /// - /// Optional cookie received by the callback - /// Returns the playing ID. - public uint Post(UnityEngine.GameObject gameObject, uint flags, AkCallbackManager.EventCallback callback, - object cookie = null) - { - if (!IsValid()) - return AkSoundEngine.AK_INVALID_PLAYING_ID; - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - var args = new object[] { gameObject, flags, callback, cookie }; - var argTypes = new System.Type[] { typeof(UnityEngine.GameObject), - typeof(uint), typeof(AkCallbackManager.EventCallback), typeof(object) }; - if (!AkAddressableBankManager.Instance.LoadedBankContainsEvent(Name, Id, this, "Post", argTypes, args )) - { - return AkSoundEngine.AK_PENDING_EVENT_LOAD_ID; - } -#endif - - m_playingId = AkSoundEngine.PostEvent(Id, gameObject, flags, callback, cookie); - VerifyPlayingID(m_playingId); - return m_playingId; - } - - public void Stop(UnityEngine.GameObject gameObject, int transitionDuration = 0, - AkCurveInterpolation curveInterpolation = AkCurveInterpolation.AkCurveInterpolation_Linear) - { - ExecuteAction(gameObject, AkActionOnEventType.AkActionOnEventType_Stop, transitionDuration, curveInterpolation); - } - - /// - /// Executes various actions on this event associated with a GameObject. - /// - /// The GameObject - /// - /// - /// - public void ExecuteAction(UnityEngine.GameObject gameObject, AkActionOnEventType actionOnEventType, - int transitionDuration, AkCurveInterpolation curveInterpolation) - { - if (IsValid()) - { - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - var args = new object[] { gameObject, actionOnEventType, transitionDuration, curveInterpolation }; - var argTypes = new System.Type[] { gameObject.GetType(), actionOnEventType.GetType(), transitionDuration.GetType(), curveInterpolation.GetType() }; - if (!AkAddressableBankManager.Instance.LoadedBankContainsEvent(Name, Id, this, "ExecuteAction", argTypes, args)) - { - return; - } -#endif - - var result = AkSoundEngine.ExecuteActionOnEvent(Id, actionOnEventType, gameObject, transitionDuration, - curveInterpolation); - Verify(result); - } - } - - /// - /// Posts MIDI Events on this Event associated with a GameObject. - /// - /// The GameObject - /// The array of AkMIDIPost that are posted. - public void PostMIDI(UnityEngine.GameObject gameObject, AkMIDIPostArray array) - { - if (IsValid()) - array.PostOnEvent(Id, gameObject); - } - - /// - /// Posts MIDI Events on this Event associated with a GameObject. - /// - /// The GameObject - /// The array of AkMIDIPost that are posted. - /// The number of elements from the array that will be posted. - public void PostMIDI(UnityEngine.GameObject gameObject, AkMIDIPostArray array, int count) - { - if (IsValid()) - array.PostOnEvent(Id, gameObject, count); - } - - /// - /// Stops MIDI Events on this Event associated with a GameObject. - /// - /// The GameObject - public void StopMIDI(UnityEngine.GameObject gameObject) - { - if (IsValid()) - AkSoundEngine.StopMIDIOnEvent(Id, gameObject); - } - - /// - /// Stops all MIDI Events on this Event. - /// - public void StopMIDI() - { - if (IsValid()) - AkSoundEngine.StopMIDIOnEvent(Id); - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs.meta deleted file mode 100644 index 4ac4644b5..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a258b6ed6f37514419398a9343f5febf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseRtpc.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseRtpc.cs deleted file mode 100644 index 2f706a21e..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseRtpc.cs +++ /dev/null @@ -1,57 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type can be used to set game parameter values to the sound engine. - public class RTPC : BaseType - { - public WwiseRtpcReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseRtpcReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.GameParameter; } } - - public void SetValue(UnityEngine.GameObject gameObject, float value) - { - if (IsValid()) - { - var result = AkSoundEngine.SetRTPCValue(Id, value, gameObject); - Verify(result); - } - } - - public float GetValue(UnityEngine.GameObject gameObject) - { - float value = 0; - if (IsValid()) - { - var akQueryValue = gameObject ? AkQueryRTPCValue.RTPCValue_GameObject : AkQueryRTPCValue.RTPCValue_Global; - var queryValue = (int)akQueryValue; - var result = AkSoundEngine.GetRTPCValue(Id, gameObject, AkSoundEngine.AK_INVALID_PLAYING_ID, out value, ref queryValue); - Verify(result); - } - - return value; - } - - public void SetGlobalValue(float value) - { - if (IsValid()) - { - var result = AkSoundEngine.SetRTPCValue(Id, value); - Verify(result); - } - } - - public float GetGlobalValue() - { - return GetValue(null); - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseRtpc.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseRtpc.cs.meta deleted file mode 100644 index 91da26332..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseRtpc.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 94f3c537651750e46a1385392df3a79a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseState.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseState.cs deleted file mode 100644 index 969e31475..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseState.cs +++ /dev/null @@ -1,30 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type can be used to set Wwise States. - public class State : BaseGroupType - { - public WwiseStateReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseStateReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.State; } } - public override WwiseObjectType WwiseObjectGroupType { get { return WwiseObjectType.StateGroup; } } - - public void SetValue() - { - if (IsValid()) - { - var result = AkSoundEngine.SetState(GroupId, Id); - Verify(result); - } - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseState.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseState.cs.meta deleted file mode 100644 index 26b6ab955..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseState.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2a84427d5737e0d4688091514b3bd64b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseSwitch.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseSwitch.cs deleted file mode 100644 index 40bbd0361..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseSwitch.cs +++ /dev/null @@ -1,30 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type can be used to set Switch values on gameobjects. - public class Switch : BaseGroupType - { - public WwiseSwitchReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseSwitchReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Switch; } } - public override WwiseObjectType WwiseObjectGroupType { get { return WwiseObjectType.SwitchGroup; } } - - public void SetValue(UnityEngine.GameObject gameObject) - { - if (IsValid()) - { - var result = AkSoundEngine.SetSwitch(GroupId, Id, gameObject); - Verify(result); - } - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseSwitch.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseSwitch.cs.meta deleted file mode 100644 index 7967ee39b..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseSwitch.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 51a2de559fc083448a045e92988c5e3d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTrigger.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTrigger.cs deleted file mode 100644 index 9f7ea5ddf..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTrigger.cs +++ /dev/null @@ -1,29 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -namespace AK.Wwise -{ - [System.Serializable] - ///@brief This type can be used to post triggers to the sound engine. - public class Trigger : BaseType - { - public WwiseTriggerReference WwiseObjectReference; - - public override WwiseObjectReference ObjectReference - { - get { return WwiseObjectReference; } - set { WwiseObjectReference = value as WwiseTriggerReference; } - } - - public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Trigger; } } - - public void Post(UnityEngine.GameObject gameObject) - { - if (IsValid()) - { - var result = AkSoundEngine.PostTrigger(Id, gameObject); - Verify(result); - } - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTrigger.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTrigger.cs.meta deleted file mode 100644 index 5d429574d..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTrigger.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ea87af3f61f93d04d8693e431b3bab74 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTypeMigration.cs b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTypeMigration.cs deleted file mode 100644 index 0840b48d5..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTypeMigration.cs +++ /dev/null @@ -1,213 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if UNITY_EDITOR - -namespace AK.Wwise -{ - public interface IMigratable - { - // return true if changes have been made to the serializedObject - bool Migrate(UnityEditor.SerializedObject serializedObject); - } - - public static class TypeMigration - { - private static byte[] GetByteArray(UnityEditor.SerializedProperty property) - { - if (property == null || !property.isArray) - return null; - - if (property.arraySize != 16) - return null; - - var byteArray = new byte[16]; - for (var i = 0; i < 16; ++i) - byteArray[i] = (byte)property.GetArrayElementAtIndex(i).intValue; - - return byteArray; - } - - private static int GetId(UnityEditor.SerializedProperty property) - { - if (property == null) - return (int)AkSoundEngine.AK_INVALID_UNIQUE_ID; - - switch (property.propertyType) - { - case UnityEditor.SerializedPropertyType.Integer: - return property.intValue; - - case UnityEditor.SerializedPropertyType.String: - return (int)AkUtilities.ShortIDGenerator.Compute(property.stringValue); - - default: - return (int)AkSoundEngine.AK_INVALID_UNIQUE_ID; - } - } - - private static WwiseObjectType GetWwiseObjectType(UnityEditor.SerializedProperty property) - { - var name = property.type; - if (name == typeof(AuxBus).Name) - return WwiseObjectType.AuxBus; - if (name == typeof(Event).Name) - return WwiseObjectType.Event; - if (name == typeof(Bank).Name) - return WwiseObjectType.Soundbank; - if (name == typeof(State).Name) - return WwiseObjectType.State; - if (name == typeof(Switch).Name) - return WwiseObjectType.Switch; - if (name == typeof(RTPC).Name) - return WwiseObjectType.GameParameter; - if (name == typeof(Trigger).Name) - return WwiseObjectType.Trigger; - if (name == typeof(AcousticTexture).Name) - return WwiseObjectType.AcousticTexture; - - return WwiseObjectType.None; - } - - private static bool SetWwiseObjectReferenceProperty(UnityEditor.SerializedProperty wwiseObjRefProperty, WwiseObjectReference objRef) - { - var previousObjectReference = wwiseObjRefProperty.objectReferenceValue as WwiseObjectReference; - if (previousObjectReference == objRef) - { - if (objRef) - { - UnityEngine.Debug.Log("WwiseUnity: WwiseObjectReference already set to <" + objRef.DisplayName + "> on <" + wwiseObjRefProperty.serializedObject.targetObject + "> for type <" + objRef.WwiseObjectType + ">."); - } - else - { - UnityEngine.Debug.Log("WwiseUnity: WwiseObjectReference already set to on <" + wwiseObjRefProperty.serializedObject.targetObject + ">."); - } - return false; - } - - if (previousObjectReference) - { - if (objRef) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Overwriting WwiseObjectReference on <" + wwiseObjRefProperty.serializedObject.targetObject + "> for type <" + objRef.WwiseObjectType + "> from <" + previousObjectReference.DisplayName + "> to <" + objRef.DisplayName + ">."); - } - else - { - UnityEngine.Debug.LogWarning("WwiseUnity: Overwriting WwiseObjectReference on <" + wwiseObjRefProperty.serializedObject.targetObject + "> from <" + previousObjectReference.DisplayName + "> to ."); - } - } - else if (objRef) - { - UnityEngine.Debug.Log("WwiseUnity: Setting WwiseObjectReference on <" + wwiseObjRefProperty.serializedObject.targetObject + "> for type <" + objRef.WwiseObjectType + "> to <" + objRef.DisplayName + ">."); - } - else - { - UnityEngine.Debug.Log("WwiseUnity: Setting WwiseObjectReference on <" + wwiseObjRefProperty.serializedObject.targetObject + "> to ."); - } - - wwiseObjRefProperty.objectReferenceValue = objRef; - return true; - } - - public static bool SearchAndProcessWwiseTypes(UnityEditor.SerializedProperty property) - { - var anyChange = false; - var recurse = false; - for (var loop = property != null; loop; loop = property.Next(recurse)) - { - recurse = false; - - if (property.isArray) - { - if (property.arraySize == 0) - continue; - - recurse = property.GetArrayElementAtIndex(0).propertyType == UnityEditor.SerializedPropertyType.Generic; - } - else if (property.propertyType == UnityEditor.SerializedPropertyType.Generic) - { - recurse = true; - - var wwiseObjectType = GetWwiseObjectType(property); - if (wwiseObjectType == WwiseObjectType.None) - continue; - - // At this point, we know that the property's type's name is the same as one of our WwiseTypes. - var valueGuidProperty = property.FindPropertyRelative("valueGuidInternal"); - var wwiseObjectReferenceProperty = property.FindPropertyRelative("WwiseObjectReference"); - if (valueGuidProperty == null || wwiseObjectReferenceProperty == null) - continue; - - // At this point, we can be **pretty** sure that we are dealing with a WwiseType. - // The uncertainty lies with the fact that the property.type is the non-qualified name of the property's type. - recurse = false; - - var idProperty = property.FindPropertyRelative("idInternal"); - var hasChanged = false; - if (wwiseObjectType == WwiseObjectType.State || wwiseObjectType == WwiseObjectType.Switch) - { - var groupGuidProperty = property.FindPropertyRelative("groupGuidInternal"); - if (groupGuidProperty == null) - continue; - - var groupIdProperty = property.FindPropertyRelative("groupIdInternal"); - hasChanged = ProcessDoubleGuidType(wwiseObjectReferenceProperty, wwiseObjectType, valueGuidProperty, idProperty, groupGuidProperty, groupIdProperty); - } - else - { - hasChanged = ProcessSingleGuidType(wwiseObjectReferenceProperty, wwiseObjectType, valueGuidProperty, idProperty); - } - - anyChange = anyChange || hasChanged; - } - } - - return anyChange; - } - - public static bool ProcessSingleGuidType(UnityEditor.SerializedProperty wwiseObjectReferenceProperty, WwiseObjectType wwiseObjectType, - UnityEditor.SerializedProperty valueGuidProperty, UnityEditor.SerializedProperty idProperty) - { - if (wwiseObjectReferenceProperty == null) - { - UnityEngine.Debug.LogError("WwiseUnity: This migration step is no longer necessary."); - return false; - } - - var valueGuid = GetByteArray(valueGuidProperty); - if (valueGuid == null) - { - var serializedObject = wwiseObjectReferenceProperty.serializedObject; - UnityEngine.Debug.Log("WwiseUnity: No data to migrate <" + wwiseObjectType + "> on <" + serializedObject.targetObject.GetType() + ">."); - return false; - } - - var objectReference = WwiseObjectReference.GetWwiseObjectForMigration(wwiseObjectType, valueGuid, GetId(idProperty)); - return SetWwiseObjectReferenceProperty(wwiseObjectReferenceProperty, objectReference); - } - - public static bool ProcessDoubleGuidType(UnityEditor.SerializedProperty wwiseObjectReferenceProperty, WwiseObjectType wwiseObjectType, - UnityEditor.SerializedProperty valueGuidProperty, UnityEditor.SerializedProperty idProperty, - UnityEditor.SerializedProperty groupGuidProperty, UnityEditor.SerializedProperty groupIdProperty) - { - if (wwiseObjectReferenceProperty == null) - { - UnityEngine.Debug.LogError("WwiseUnity: This migration step is no longer necessary."); - return false; - } - - var valueGuid = GetByteArray(valueGuidProperty); - var groupGuid = GetByteArray(groupGuidProperty); - if (valueGuid == null || groupGuid == null) - { - var serializedObject = wwiseObjectReferenceProperty.serializedObject; - UnityEngine.Debug.Log("WwiseUnity: No data to migrate <" + wwiseObjectType + "> on <" + serializedObject.targetObject.GetType() + ">."); - return false; - } - - var objectReference = WwiseGroupValueObjectReference.GetWwiseObjectForMigration(wwiseObjectType, valueGuid, GetId(idProperty), groupGuid, GetId(groupIdProperty)); - return SetWwiseObjectReferenceProperty(wwiseObjectReferenceProperty, objectReference); - } - } -} - -#endif // UNITY_EDITOR -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTypeMigration.cs.meta b/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTypeMigration.cs.meta deleted file mode 100644 index f13b8b2ac..000000000 --- a/Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseTypeMigration.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a3329eb0f40932842856101c06827d08 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/API/package.json b/Assets/Wwise/API/package.json deleted file mode 100644 index 307f29866..000000000 --- a/Assets/Wwise/API/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "com.audiokinetic.wwise.api", - "version": "2020.1.0", - "displayName": "Wwise Unity API", - "description": "Low-level API for Wwise integration in Unity", - "unity": "2018.4", - "unityRelease": "17f1", - "dependencies": {}, - "keywords": [ - "Wwise", - "wwise", - "audiokinetic", - "ak", - "Audiokinetic" - ], - "author": { - "name": "Audokinetic Inc.", - "email": "info@audiokinetic.com", - "url": "https://www.audiokinetic.com" - } -} \ No newline at end of file diff --git a/Assets/Wwise/API/package.json.meta b/Assets/Wwise/API/package.json.meta deleted file mode 100644 index 598ce8193..000000000 --- a/Assets/Wwise/API/package.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3d1b5b3abfb84904fb5c21f489bd0a50 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation.meta b/Assets/Wwise/Documentation.meta deleted file mode 100644 index 276f75b58..000000000 --- a/Assets/Wwise/Documentation.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 626c0255464ef0544b9c175bdcbac3de -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon.meta b/Assets/Wwise/Documentation/AppleCommon.meta deleted file mode 100644 index b92c54df0..000000000 --- a/Assets/Wwise/Documentation/AppleCommon.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a6a33cc6bfa636a44a9fb4759046619f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/en.meta b/Assets/Wwise/Documentation/AppleCommon/en.meta deleted file mode 100644 index 3d2a2ac1a..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/en.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8bb00c20077fde84785bfb5df6c48df5 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/en/WwiseUnityIntegrationHelp_Mac_en.chm b/Assets/Wwise/Documentation/AppleCommon/en/WwiseUnityIntegrationHelp_Mac_en.chm deleted file mode 100644 index 1d1b7ba00..000000000 Binary files a/Assets/Wwise/Documentation/AppleCommon/en/WwiseUnityIntegrationHelp_Mac_en.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/AppleCommon/en/WwiseUnityIntegrationHelp_Mac_en.chm.meta b/Assets/Wwise/Documentation/AppleCommon/en/WwiseUnityIntegrationHelp_Mac_en.chm.meta deleted file mode 100644 index 1cc47a6ae..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/en/WwiseUnityIntegrationHelp_Mac_en.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 32bd4f1b98ce129458a0025b9a4a0444 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/ja.meta b/Assets/Wwise/Documentation/AppleCommon/ja.meta deleted file mode 100644 index 8fed8a832..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/ja.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bd8f4cbdd8656174f89ecce29bde712a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/ja/WwiseUnityIntegrationHelp_Mac_ja.chm b/Assets/Wwise/Documentation/AppleCommon/ja/WwiseUnityIntegrationHelp_Mac_ja.chm deleted file mode 100644 index 849821f21..000000000 Binary files a/Assets/Wwise/Documentation/AppleCommon/ja/WwiseUnityIntegrationHelp_Mac_ja.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/AppleCommon/ja/WwiseUnityIntegrationHelp_Mac_ja.chm.meta b/Assets/Wwise/Documentation/AppleCommon/ja/WwiseUnityIntegrationHelp_Mac_ja.chm.meta deleted file mode 100644 index 1f7a851c8..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/ja/WwiseUnityIntegrationHelp_Mac_ja.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c368a7ca72e13464ebe10cbb2c80c7a1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/ko.meta b/Assets/Wwise/Documentation/AppleCommon/ko.meta deleted file mode 100644 index af6ff176e..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/ko.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6c514a33c5c66c546beca1d6c20d4815 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/ko/WwiseUnityIntegrationHelp_Mac_ko.chm b/Assets/Wwise/Documentation/AppleCommon/ko/WwiseUnityIntegrationHelp_Mac_ko.chm deleted file mode 100644 index e98c7d58f..000000000 Binary files a/Assets/Wwise/Documentation/AppleCommon/ko/WwiseUnityIntegrationHelp_Mac_ko.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/AppleCommon/ko/WwiseUnityIntegrationHelp_Mac_ko.chm.meta b/Assets/Wwise/Documentation/AppleCommon/ko/WwiseUnityIntegrationHelp_Mac_ko.chm.meta deleted file mode 100644 index 6f0bc68af..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/ko/WwiseUnityIntegrationHelp_Mac_ko.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1b1541c54793ada49b9760fba118e70f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/zh.meta b/Assets/Wwise/Documentation/AppleCommon/zh.meta deleted file mode 100644 index 0f05693c0..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/zh.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 88e3b2d07d041dc419d32258fdb98523 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/AppleCommon/zh/WwiseUnityIntegrationHelp_Mac_zh.chm b/Assets/Wwise/Documentation/AppleCommon/zh/WwiseUnityIntegrationHelp_Mac_zh.chm deleted file mode 100644 index 38743102b..000000000 Binary files a/Assets/Wwise/Documentation/AppleCommon/zh/WwiseUnityIntegrationHelp_Mac_zh.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/AppleCommon/zh/WwiseUnityIntegrationHelp_Mac_zh.chm.meta b/Assets/Wwise/Documentation/AppleCommon/zh/WwiseUnityIntegrationHelp_Mac_zh.chm.meta deleted file mode 100644 index e7c947624..000000000 --- a/Assets/Wwise/Documentation/AppleCommon/zh/WwiseUnityIntegrationHelp_Mac_zh.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3675afe3b2b255945b076e675eeb633e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows.meta b/Assets/Wwise/Documentation/Windows.meta deleted file mode 100644 index 3e7fb2190..000000000 --- a/Assets/Wwise/Documentation/Windows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a6b2d26c7c1e7f1489b122b86e3ea781 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/en.meta b/Assets/Wwise/Documentation/Windows/en.meta deleted file mode 100644 index 3a035c47d..000000000 --- a/Assets/Wwise/Documentation/Windows/en.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d8026dc6bf6fa4440b23c9b606e9da5a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/en/WwiseUnityIntegrationHelp_en.chm b/Assets/Wwise/Documentation/Windows/en/WwiseUnityIntegrationHelp_en.chm deleted file mode 100644 index 6dec68e65..000000000 Binary files a/Assets/Wwise/Documentation/Windows/en/WwiseUnityIntegrationHelp_en.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/Windows/en/WwiseUnityIntegrationHelp_en.chm.meta b/Assets/Wwise/Documentation/Windows/en/WwiseUnityIntegrationHelp_en.chm.meta deleted file mode 100644 index 6f78efb28..000000000 --- a/Assets/Wwise/Documentation/Windows/en/WwiseUnityIntegrationHelp_en.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bf21634250f44004bad038303309817e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/ja.meta b/Assets/Wwise/Documentation/Windows/ja.meta deleted file mode 100644 index 4b327e28f..000000000 --- a/Assets/Wwise/Documentation/Windows/ja.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 41fa6dd77f77a5f4a89b95dcb07125f2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/ja/WwiseUnityIntegrationHelp_ja.chm b/Assets/Wwise/Documentation/Windows/ja/WwiseUnityIntegrationHelp_ja.chm deleted file mode 100644 index de6069efa..000000000 Binary files a/Assets/Wwise/Documentation/Windows/ja/WwiseUnityIntegrationHelp_ja.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/Windows/ja/WwiseUnityIntegrationHelp_ja.chm.meta b/Assets/Wwise/Documentation/Windows/ja/WwiseUnityIntegrationHelp_ja.chm.meta deleted file mode 100644 index 549e20e57..000000000 --- a/Assets/Wwise/Documentation/Windows/ja/WwiseUnityIntegrationHelp_ja.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 36409404ff8f72a45bcebcb2972b2ca2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/ko.meta b/Assets/Wwise/Documentation/Windows/ko.meta deleted file mode 100644 index 1eed98137..000000000 --- a/Assets/Wwise/Documentation/Windows/ko.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2bb427c68eac29d4e8cc22810136aa6e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/ko/WwiseUnityIntegrationHelp_ko.chm b/Assets/Wwise/Documentation/Windows/ko/WwiseUnityIntegrationHelp_ko.chm deleted file mode 100644 index f080af6ee..000000000 Binary files a/Assets/Wwise/Documentation/Windows/ko/WwiseUnityIntegrationHelp_ko.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/Windows/ko/WwiseUnityIntegrationHelp_ko.chm.meta b/Assets/Wwise/Documentation/Windows/ko/WwiseUnityIntegrationHelp_ko.chm.meta deleted file mode 100644 index 07b0229ea..000000000 --- a/Assets/Wwise/Documentation/Windows/ko/WwiseUnityIntegrationHelp_ko.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c03d2903cdf1bc7448f51a86e82f9636 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/zh.meta b/Assets/Wwise/Documentation/Windows/zh.meta deleted file mode 100644 index fe9deb14a..000000000 --- a/Assets/Wwise/Documentation/Windows/zh.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 853faf93b84321744b81ac6acfa14f37 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Documentation/Windows/zh/WwiseUnityIntegrationHelp_zh.chm b/Assets/Wwise/Documentation/Windows/zh/WwiseUnityIntegrationHelp_zh.chm deleted file mode 100644 index 979588d8b..000000000 Binary files a/Assets/Wwise/Documentation/Windows/zh/WwiseUnityIntegrationHelp_zh.chm and /dev/null differ diff --git a/Assets/Wwise/Documentation/Windows/zh/WwiseUnityIntegrationHelp_zh.chm.meta b/Assets/Wwise/Documentation/Windows/zh/WwiseUnityIntegrationHelp_zh.chm.meta deleted file mode 100644 index 4d1f6e475..000000000 --- a/Assets/Wwise/Documentation/Windows/zh/WwiseUnityIntegrationHelp_zh.chm.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c2cd0de2ed74f0645b929921d42d274f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Editor.meta b/Assets/Wwise/Editor.meta deleted file mode 100644 index 3e75d5ecf..000000000 --- a/Assets/Wwise/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ff8a752997ee84b4db86f9ef36b33bf2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Editor/ProjectData.meta b/Assets/Wwise/Editor/ProjectData.meta deleted file mode 100644 index 8ac8a9334..000000000 --- a/Assets/Wwise/Editor/ProjectData.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4565a3a8aae998049b1415fdd180607b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset b/Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset deleted file mode 100644 index aad622d91..000000000 --- a/Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f5d5042dfede5bc580a89b71c89a03ba49bc35b992e13f7d366bcfa3393c229 -size 107288 diff --git a/Assets/Wwise/Gizmos.meta b/Assets/Wwise/Gizmos.meta deleted file mode 100644 index e961271d2..000000000 --- a/Assets/Wwise/Gizmos.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 66001b4efdbd1fd49a43cfa44eb2cd97 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Gizmos/WwiseAudioSpeaker.png b/Assets/Wwise/Gizmos/WwiseAudioSpeaker.png deleted file mode 100644 index 6a5851f8d..000000000 --- a/Assets/Wwise/Gizmos/WwiseAudioSpeaker.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac11cdb3ea627d9d8522ac39480102e3a9b22c7f87071e7575bdf34038dfef74 -size 1693 diff --git a/Assets/Wwise/Gizmos/WwiseAudioSpeaker.png.meta b/Assets/Wwise/Gizmos/WwiseAudioSpeaker.png.meta deleted file mode 100644 index cd352c952..000000000 --- a/Assets/Wwise/Gizmos/WwiseAudioSpeaker.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 83de9e399eab5d440a14235147e67fbd -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Gizmos/wwise_white_on_gray.png b/Assets/Wwise/Gizmos/wwise_white_on_gray.png deleted file mode 100644 index 4139073ac..000000000 --- a/Assets/Wwise/Gizmos/wwise_white_on_gray.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:237f8bfd1725913cf33e2d221ac70e9aa54392eb877722b753237ba1375b1f73 -size 6685 diff --git a/Assets/Wwise/Gizmos/wwise_white_on_gray.png.meta b/Assets/Wwise/Gizmos/wwise_white_on_gray.png.meta deleted file mode 100644 index 91ef2e2c8..000000000 --- a/Assets/Wwise/Gizmos/wwise_white_on_gray.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: c769ba37b8d8a014598770130042f3d8 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/LauncherInfo.json b/Assets/Wwise/LauncherInfo.json deleted file mode 100644 index dcee6e034..000000000 --- a/Assets/Wwise/LauncherInfo.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "originalSdkFolder": "E:\\Applications\\Wwise 2021.1.1.7601\\SDK" -} \ No newline at end of file diff --git a/Assets/Wwise/LauncherInfo.json.meta b/Assets/Wwise/LauncherInfo.json.meta deleted file mode 100644 index 910712ccb..000000000 --- a/Assets/Wwise/LauncherInfo.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 83251a09b775a714c8d713914850d640 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour.meta b/Assets/Wwise/MonoBehaviour.meta deleted file mode 100644 index 451a58de3..000000000 --- a/Assets/Wwise/MonoBehaviour.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a17e8b013da160c418c587272c2059ee -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/CHANGELOG.md b/Assets/Wwise/MonoBehaviour/CHANGELOG.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/Assets/Wwise/MonoBehaviour/CHANGELOG.md.meta b/Assets/Wwise/MonoBehaviour/CHANGELOG.md.meta deleted file mode 100644 index c694fe5e9..000000000 --- a/Assets/Wwise/MonoBehaviour/CHANGELOG.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 332e0bc3ac12d624a80f5af1f8d973fd -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor.meta b/Assets/Wwise/MonoBehaviour/Editor.meta deleted file mode 100644 index 85687410d..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d3131760e35250b4bb6a5cc816639206 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AK.Wwise.Unity.MonoBehaviour.Editor.asmdef b/Assets/Wwise/MonoBehaviour/Editor/AK.Wwise.Unity.MonoBehaviour.Editor.asmdef deleted file mode 100644 index 9c0435498..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AK.Wwise.Unity.MonoBehaviour.Editor.asmdef +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "AK.Wwise.Unity.MonoBehaviour.Editor", - "references": [ - "AK.Wwise.Unity.API", - "AK.Wwise.Unity.API.Editor", - "AK.Wwise.Unity.MonoBehaviour", - "AK.Wwise.Unity.API.WwiseTypes", - "AK.Wwise.Unity.Addressables" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "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 -} \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AK.Wwise.Unity.MonoBehaviour.Editor.asmdef.meta b/Assets/Wwise/MonoBehaviour/Editor/AK.Wwise.Unity.MonoBehaviour.Editor.asmdef.meta deleted file mode 100644 index e007bceae..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AK.Wwise.Unity.MonoBehaviour.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 54017f1a9bae9d743a0915157a69e478 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkAmbientInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkAmbientInspector.cs deleted file mode 100644 index 573254a0c..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkAmbientInspector.cs +++ /dev/null @@ -1,332 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkAmbient))] -public class AkAmbientInspector : AkEventInspector -{ - public enum AttenuationSphereOptions - { - Dont_Show, - Current_Event_Only, - All_Events - } - - public static System.Collections.Generic.Dictionary attSphereProperties = - new System.Collections.Generic.Dictionary(); - - public AttenuationSphereOptions currentAttSphereOp; - - private AkAmbient m_AkAmbient; - private UnityEditor.SerializedProperty multiPositionTypeProperty; - private UnityEditor.SerializedProperty largeModePositionArrayProperty; - private UnityEditor.SerializedProperty sphereColorProperty; - - private System.Collections.Generic.List triggerList; - - public new void OnEnable() - { - base.OnEnable(); - - m_AkAmbient = target as AkAmbient; - - multiPositionTypeProperty = serializedObject.FindProperty("multiPositionTypeLabel"); - largeModePositionArrayProperty = serializedObject.FindProperty("LargeModePositions"); - sphereColorProperty = serializedObject.FindProperty("attenuationSphereColor"); - - if (!attSphereProperties.ContainsKey(target)) - attSphereProperties.Add(target, AttenuationSphereOptions.Dont_Show); - - currentAttSphereOp = attSphereProperties[target]; - - AkWwiseFileWatcher.Instance.XMLUpdated += PopulateMaxAttenuation; - } - - public new void OnDisable() - { - base.OnDisable(); - - DefaultHandles.Hidden = false; - - AkWwiseFileWatcher.Instance.XMLUpdated -= PopulateMaxAttenuation; - } - - public override void OnChildInspectorGUI() - { - //Save trigger mask to know when it changes - triggerList = m_AkAmbient.triggerList; - - base.OnChildInspectorGUI(); - - if (UnityEngine.Event.current.type == UnityEngine.EventType.ExecuteCommand - && UnityEngine.Event.current.commandName == "ObjectSelectorClosed") - { - var pickedObject = UnityEditor.EditorGUIUtility.GetObjectPickerObject(); - if (pickedObject != null) - { - int insertIndex = largeModePositionArrayProperty.arraySize; - largeModePositionArrayProperty.InsertArrayElementAtIndex(insertIndex); - - var newElement = largeModePositionArrayProperty.GetArrayElementAtIndex(insertIndex); - newElement.objectReferenceValue = pickedObject; - return; - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(multiPositionTypeProperty, new UnityEngine.GUIContent("Position Type: ", "Simple Mode: Only one position is used.\nLarge Mode: Children of AkAmbient with AkAmbientLargeModePositioner component will be used as position source for multi-positioning.\nMultiple Position Mode: Every AkAmbient using the same event will be used as position source for multi-positioning.")); - - var multiPositionType = (MultiPositionTypeLabel)multiPositionTypeProperty.intValue; - if (multiPositionType == MultiPositionTypeLabel.Large_Mode || multiPositionType == MultiPositionTypeLabel.MultiPosition_Mode) - { - foreach (AkAmbient ambient in targets) - { - if (!ambient.gameObject.isStatic) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - UnityEditor.EditorGUILayout.HelpBox(string.Format("Position Type <{0}> requires an AkGameObj that does not move. Consider setting the associated GameObject to static.", multiPositionType), UnityEditor.MessageType.Warning); - break; - } - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - currentAttSphereOp = (AttenuationSphereOptions) UnityEditor.EditorGUILayout.EnumPopup("Show Attenuation Sphere: ", currentAttSphereOp); - attSphereProperties[target] = currentAttSphereOp; - - UnityEditor.EditorGUI.BeginChangeCheck(); - if (currentAttSphereOp != AttenuationSphereOptions.Dont_Show) - { - UnityEditor.EditorGUILayout.PropertyField(sphereColorProperty, new UnityEngine.GUIContent("Attenuation Sphere Color") ); - } - if (UnityEditor.EditorGUI.EndChangeCheck()) - { - serializedObject.ApplyModifiedProperties(); - } - - if (multiPositionType == MultiPositionTypeLabel.Large_Mode) - { - UnityEngine.GUILayout.BeginHorizontal(); - if (UnityEngine.GUILayout.Button("Add Large Mode position object")) - { - int insertIndex = largeModePositionArrayProperty.arraySize; - largeModePositionArrayProperty.InsertArrayElementAtIndex(insertIndex); - - var newPoint = new UnityEngine.GameObject(string.Format("AkAmbientPoint{0}", insertIndex)); - UnityEditor.Undo.RegisterCreatedObjectUndo(newPoint, "CreateNewLargeModePositionObject"); - UnityEditor.Undo.AddComponent(newPoint); - UnityEditor.Undo.SetTransformParent(newPoint.transform, m_AkAmbient.transform, "CreateNewLargeModePositionObjectSetParent"); - newPoint.transform.position = m_AkAmbient.transform.TransformPoint(UnityEngine.Vector3.zero); - newPoint.transform.localScale = new UnityEngine.Vector3(1f, 1f, 1f); - - var newElement = largeModePositionArrayProperty.GetArrayElementAtIndex(insertIndex); - newElement.objectReferenceValue = newPoint.GetComponent(); - } - - if (UnityEngine.GUILayout.Button("Pick existing position object")) - { - int controlID = UnityEngine.GUIUtility.GetControlID(UnityEngine.FocusType.Passive); - UnityEditor.EditorGUIUtility.ShowObjectPicker(null, true, string.Empty, controlID); - } - UnityEngine.GUILayout.EndHorizontal(); - - ++UnityEditor.EditorGUI.indentLevel; - UnityEditor.EditorGUI.BeginChangeCheck(); - for (int i = 0; i < largeModePositionArrayProperty.arraySize; ++i) - { - UnityEditor.EditorGUILayout.PropertyField(largeModePositionArrayProperty.GetArrayElementAtIndex(i), true); - } - if (UnityEditor.EditorGUI.EndChangeCheck()) - { - serializedObject.ApplyModifiedProperties(); - } - --UnityEditor.EditorGUI.indentLevel; - } - } - - //Save multi-position type to know if it has changed - var multiPosType = m_AkAmbient.multiPositionTypeLabel; - - if (m_AkAmbient.multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode) - { - UpdateTriggers(multiPosType); - } - } - - private void UpdateTriggers(MultiPositionTypeLabel in_multiPosType) - { - //if we just switched to MultiPosition_Mode - if (in_multiPosType != m_AkAmbient.multiPositionTypeLabel) - { - //Get all AkAmbients in the scene - var akAmbients = FindObjectsOfType(); - - //Find the first AkAmbient that is in multiPosition_Mode and that has the same event as the current AkAmbient - for (var i = 0; i < akAmbients.Length; i++) - { - if (akAmbients[i] != m_AkAmbient && - akAmbients[i].multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode && - akAmbients[i].data.Id == m_AkAmbient.data.Id) - { - //if the current AkAmbient doesn't have the same trigger as the others, we ask the user which one he wants to keep - if (!HasSameTriggers(akAmbients[i].triggerList)) - { - if (UnityEditor.EditorUtility.DisplayDialog("AkAmbient Trigger Mismatch", - "All ambients in multi-position mode with the same event must have the same triggers.\n" + - "Which triggers would you like to keep?", "Current AkAmbient Triggers", "Other AkAmbients Triggers")) - SetMultiPosTrigger(akAmbients); - else - m_AkAmbient.triggerList = akAmbients[i].triggerList; - } - - break; - } - } - } - //if the trigger changed or there was an undo/redo operation, we update the triggers of all the AkAmbients in the same group as the current one - else if (!HasSameTriggers(triggerList) || UnityEngine.Event.current.type == UnityEngine.EventType.ValidateCommand && - UnityEngine.Event.current.commandName == "UndoRedoPerformed") - { - var akAmbients = FindObjectsOfType(); - SetMultiPosTrigger(akAmbients); - } - } - - private bool HasSameTriggers(System.Collections.Generic.List other) - { - return other.Count == m_AkAmbient.triggerList.Count && - System.Linq.Enumerable.Count(System.Linq.Enumerable.Except(m_AkAmbient.triggerList, other)) == 0; - } - - private void SetMultiPosTrigger(AkAmbient[] akAmbients) - { - for (var i = 0; i < akAmbients.Length; i++) - { - if (akAmbients[i].multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode && - akAmbients[i].data.Id == m_AkAmbient.data.Id) - akAmbients[i].triggerList = m_AkAmbient.triggerList; - } - } - - private void OnSceneGUI() - { - RenderAttenuationSpheres(); - } - - public void RenderAttenuationSpheres() - { - if (currentAttSphereOp == AttenuationSphereOptions.Dont_Show) - return; - - if (currentAttSphereOp == AttenuationSphereOptions.Current_Event_Only) - { - // Get the max attenuation for the event (if available) - var radius = AkWwiseProjectInfo.GetData().GetEventMaxAttenuation(m_AkAmbient.data.Id); - - if (m_AkAmbient.multiPositionTypeLabel == MultiPositionTypeLabel.Simple_Mode) - { - DrawSphere(m_AkAmbient.gameObject.transform.position, radius, sphereColorProperty.colorValue); - } - else if (m_AkAmbient.multiPositionTypeLabel == MultiPositionTypeLabel.Large_Mode) - { - var positionComponents = m_AkAmbient.GetComponentsInChildren(); - - for (int i = 0; i < positionComponents.Length; i++) - { - DrawSphere(positionComponents[i].transform.position, radius, sphereColorProperty.colorValue); - } - } - else - { - var akAmbiants = FindObjectsOfType(); - - for (var i = 0; i < akAmbiants.Length; i++) - { - if (akAmbiants[i].multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode && - akAmbiants[i].data.Id == m_AkAmbient.data.Id) - { - DrawSphere(akAmbiants[i].gameObject.transform.position, radius, akAmbiants[i].attenuationSphereColor); - } - } - } - } - else - { - var akAmbiants = FindObjectsOfType(); - - for (var i = 0; i < akAmbiants.Length; i++) - { - // Get the max attenuation for the event (if available) - var radius = AkWwiseProjectInfo.GetData().GetEventMaxAttenuation(akAmbiants[i].data.Id); - - if (akAmbiants[i].multiPositionTypeLabel == MultiPositionTypeLabel.Large_Mode) - { - var positionComponents = m_AkAmbient.GetComponentsInChildren(); - - for (int j = 0; j < positionComponents.Length; j++) - { - DrawSphere(positionComponents[j].transform.position, radius, akAmbiants[i].attenuationSphereColor); - } - } - else - { - DrawSphere(akAmbiants[i].gameObject.transform.position, radius, akAmbiants[i].attenuationSphereColor); - } - } - } - } - - private void DrawSphere(UnityEngine.Vector3 in_position, float in_radius, UnityEngine.Color in_sphereColor) - { - UnityEngine.Color wireColor = in_sphereColor; - wireColor.a = 0.9f; - if ((UnityEditor.SceneView.lastActiveSceneView.camera.transform.position - in_position).sqrMagnitude > in_radius * in_radius) - { - UnityEditor.Handles.color = wireColor; - DrawWireDiscs(UnityEngine.Vector3.left, UnityEngine.Vector3.right, 2, in_position, in_radius); - - UnityEditor.Handles.color = in_sphereColor; - UnityEditor.Handles.SphereHandleCap(0, in_position, UnityEngine.Quaternion.identity, in_radius * 2.0f, UnityEngine.EventType.Repaint); - } - else - { - UnityEditor.Handles.color = wireColor; - DrawWireDiscs(UnityEngine.Vector3.left, UnityEngine.Vector3.right, 6, in_position, in_radius); - - UnityEditor.Handles.color = in_sphereColor; - UnityEditor.Handles.DrawSolidDisc(in_position, UnityEngine.Vector3.up, in_radius); - } - } - - private void DrawWireDiscs(UnityEngine.Vector3 in_startNormal, UnityEngine.Vector3 in_endNormal, uint in_nbDiscs, - UnityEngine.Vector3 in_position, float in_radius) - { - var f = 1.0f / in_nbDiscs; - for (var i = 0; i < in_nbDiscs; i++) - { - UnityEditor.Handles.DrawWireDisc(in_position, UnityEngine.Vector3.Slerp(in_startNormal, in_endNormal, f * i), in_radius); - } - - var orthogonalVector = UnityEngine.Vector3.Cross(in_startNormal, in_endNormal); - //Handle edge case where vectors are parallel - if (orthogonalVector.magnitude == 0.0f) - { - orthogonalVector = UnityEngine.Vector3.Cross(UnityEngine.Vector3.Slerp(in_startNormal, in_endNormal, 0.5f), in_startNormal); - } - UnityEditor.Handles.DrawWireDisc(in_position, orthogonalVector, in_radius); - } - - public static void PopulateMaxAttenuation() - { - UnityEditor.SceneView.RepaintAll(); - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkAmbientInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkAmbientInspector.cs.meta deleted file mode 100644 index 04b6f200a..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkAmbientInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 14fbe60221f45de478ec7b575e728763 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkAudioListenerInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkAudioListenerInspector.cs deleted file mode 100644 index 46e939f03..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkAudioListenerInspector.cs +++ /dev/null @@ -1,30 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkAudioListener))] -public class AkAudioListenerInspector : UnityEditor.Editor -{ - private UnityEditor.SerializedProperty m_isDefaultListener; - - private void OnEnable() - { - m_isDefaultListener = serializedObject.FindProperty("isDefaultListener"); - } - - public override void OnInspectorGUI() - { - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUI.BeginChangeCheck(); - UnityEditor.EditorGUILayout.PropertyField(m_isDefaultListener); - if (UnityEditor.EditorGUI.EndChangeCheck()) - serializedObject.ApplyModifiedProperties(); - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkAudioListenerInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkAudioListenerInspector.cs.meta deleted file mode 100644 index fc87b227a..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkAudioListenerInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d73d1e9aa1659534197409bf57827e28 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkBankInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkBankInspector.cs deleted file mode 100644 index 4b61613a8..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkBankInspector.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkBank))] -public class AkBankInspector : AkBaseInspector -{ - private readonly AkUnityEventHandlerInspector m_LoadBankEventHandlerInspector = new AkUnityEventHandlerInspector(); - private readonly AkUnityEventHandlerInspector m_UnloadBankEventHandlerInspector = new AkUnityEventHandlerInspector(); - -#if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - private UnityEditor.SerializedProperty loadAsync; - private UnityEditor.SerializedProperty decode; - private UnityEditor.SerializedProperty saveDecoded; -#endif - - private void OnEnable() - { - m_LoadBankEventHandlerInspector.Init(serializedObject, "triggerList", "Load On: ", false); - m_UnloadBankEventHandlerInspector.Init(serializedObject, "unloadTriggerList", "Unload On: ", false); - -#if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - loadAsync = serializedObject.FindProperty("loadAsynchronous"); - decode = serializedObject.FindProperty("decodeBank"); - saveDecoded = serializedObject.FindProperty("saveDecodedBank"); -#endif - } - - public override void OnChildInspectorGUI() - { - m_LoadBankEventHandlerInspector.OnGUI(); - m_UnloadBankEventHandlerInspector.OnGUI(); -#if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(loadAsync, new UnityEngine.GUIContent("Asynchronous:")); - UnityEditor.EditorGUILayout.PropertyField(decode, new UnityEngine.GUIContent("Decode compressed data:")); - - if (!decode.boolValue) - return; - - var oldSaveDecodedValue = saveDecoded.boolValue; - UnityEditor.EditorGUILayout.PropertyField(saveDecoded, new UnityEngine.GUIContent("Save decoded bank:")); - if (!oldSaveDecodedValue || saveDecoded.boolValue) - return; - - var bank = target as AkBank; - AkBasePathGetter.EvaluateGamePaths(); - var decodedBankPath = System.IO.Path.Combine(AkBasePathGetter.DecodedBankFullPath, bank.data.Name + ".bnk"); - - try - { - System.IO.File.Delete(decodedBankPath); - } - catch (System.Exception e) - { - UnityEngine.Debug.Log("WwiseUnity: Could not delete existing decoded SoundBank. Please delete it manually. " + e); - } - } -#endif - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkBankInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkBankInspector.cs.meta deleted file mode 100644 index 93a5f895e..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkBankInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1c5440b2f8b5386448a09b19c650799d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkBaseInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkBaseInspector.cs deleted file mode 100644 index 1f9c4b01c..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkBaseInspector.cs +++ /dev/null @@ -1,31 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public abstract class AkBaseInspector : UnityEditor.Editor -{ - public abstract void OnChildInspectorGUI(); - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - OnChildInspectorGUI(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEngine.GUILayout.HorizontalScope("box")) - UnityEditor.EditorGUILayout.PropertyField(serializedObject.FindProperty("data"), new UnityEngine.GUIContent("Name: ")); - - serializedObject.ApplyModifiedProperties(); - - if (UnityEngine.GUI.changed) - UnityEditor.EditorUtility.SetDirty(serializedObject.targetObject); - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkBaseInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkBaseInspector.cs.meta deleted file mode 100644 index 35be0db66..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkBaseInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4da226c5fdde856409f2102bf00d3376 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentInspector.cs deleted file mode 100644 index 27158e1a0..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentInspector.cs +++ /dev/null @@ -1,72 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkEnvironment))] -public class AkEnvironmentInspector : AkBaseInspector -{ - private AkEnvironment m_AkEnvironment; - - private UnityEditor.SerializedProperty m_excludeOthers; - private UnityEditor.SerializedProperty m_isDefault; - private UnityEditor.SerializedProperty m_priority; - - private void OnEnable() - { - m_AkEnvironment = target as AkEnvironment; - - m_priority = serializedObject.FindProperty("priority"); - m_isDefault = serializedObject.FindProperty("isDefault"); - m_excludeOthers = serializedObject.FindProperty("excludeOthers"); - - //We move and replace the game object to trigger the OnTriggerStay function - ShakeEnvironment(); - } - - public override void OnChildInspectorGUI() - { - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - m_priority.intValue = UnityEditor.EditorGUILayout.IntField("Priority: ", m_priority.intValue); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - m_isDefault.boolValue = UnityEditor.EditorGUILayout.Toggle("Default: ", m_isDefault.boolValue); - if (m_isDefault.boolValue) - m_excludeOthers.boolValue = false; - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - m_excludeOthers.boolValue = UnityEditor.EditorGUILayout.Toggle("Exclude Others: ", m_excludeOthers.boolValue); - if (m_excludeOthers.boolValue) - m_isDefault.boolValue = false; - } - - AkGameObjectInspector.RigidbodyCheck(m_AkEnvironment.gameObject); - } - - public void ShakeEnvironment() - { - var temp = m_AkEnvironment.transform.position; - temp.x *= 1.0000001f; - m_AkEnvironment.transform.position = temp; - - UnityEditor.EditorApplication.update += ReplaceEnvironment; - } - - private void ReplaceEnvironment() - { - UnityEditor.EditorApplication.update -= ReplaceEnvironment; - if (m_AkEnvironment && m_AkEnvironment.transform) - { - var temp = m_AkEnvironment.transform.position; - temp.x /= 1.0000001f; - m_AkEnvironment.transform.position = temp; - } - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentInspector.cs.meta deleted file mode 100644 index b3791d423..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8c033ed22b30ab848bcb27ec75f53f0a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentPortalInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentPortalInspector.cs deleted file mode 100644 index dd085c08b..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentPortalInspector.cs +++ /dev/null @@ -1,195 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CustomEditor(typeof(AkEnvironmentPortal))] -public class AkEnvironmentPortalInspector : UnityEditor.Editor -{ - private readonly int[] m_selectedIndex = new int[AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL]; - private AkEnvironmentPortal m_envPortal; - private UnityEditor.SerializedProperty m_environments; - private UnityEditor.SerializedProperty m_axis; - private UnityEditor.SerializedProperty m_envList; - - [UnityEditor.MenuItem("GameObject/Wwise/Environment Portal", false, 1)] - public static void CreatePortal() - { - var portal = new UnityEngine.GameObject("EnvironmentPortal"); - - UnityEditor.Undo.AddComponent(portal); - portal.GetComponent().isTrigger = true; - - UnityEditor.Selection.objects = new UnityEngine.Object[] { portal }; - } - - private void OnEnable() - { - m_envPortal = target as AkEnvironmentPortal; - m_environments = serializedObject.FindProperty("environments"); - m_axis = serializedObject.FindProperty("axis"); - m_envList = serializedObject.FindProperty("envList"); - - FindOverlappingEnvironments(); - for (var i = 0; i < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; i++) - { - m_selectedIndex[i] = 0; - - var list = m_envList.GetArrayElementAtIndex(i).FindPropertyRelative("list"); - for (var j = 0; j < list.arraySize; ++j) - { - if (list.GetArrayElementAtIndex(j).objectReferenceValue == m_environments.GetArrayElementAtIndex(i).objectReferenceValue) - { - m_selectedIndex[i] = j; - break; - } - } - } - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - using (new UnityEngine.GUILayout.VerticalScope("box")) - { - for (var i = 0; i < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; i++) - { - var list = m_envList.GetArrayElementAtIndex(i).FindPropertyRelative("list"); - var labels = new string[list.arraySize]; - - for (var j = 0; j < list.arraySize; j++) - { - var environment = list.GetArrayElementAtIndex(j).objectReferenceValue as AkEnvironment; - if (environment != null) - { - labels[j] = j + 1 + ". " + GetEnvironmentName(environment) + " (" + environment.name + ")"; - } - else - { - list.DeleteArrayElementAtIndex(j); - } - } - - var index = UnityEditor.EditorGUILayout.Popup("Environment #" + (i + 1), m_selectedIndex[i], labels); - m_environments.GetArrayElementAtIndex(i).objectReferenceValue = index < 0 || index >= list.arraySize ? null : list.GetArrayElementAtIndex(index).objectReferenceValue; - m_selectedIndex[i] = index; - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - var axisLabels = new[]{ "X", "Y", "Z" }; - var axes = new[] { UnityEngine.Vector3.right, UnityEngine.Vector3.up, UnityEngine.Vector3.forward }; - - var index = 0; - for (var i = 0; i < 3; i++) - { - if (m_axis.vector3Value == axes[i]) - { - index = i; - break; - } - } - - var newIndex = UnityEditor.EditorGUILayout.Popup("Axis", index, axisLabels); - m_axis.vector3Value = axes[newIndex]; - - if (index != newIndex) - { - for (var i = 0; i < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; i++) - m_envList.GetArrayElementAtIndex(i).FindPropertyRelative("list").ClearArray(); - - FindOverlappingEnvironments(); - } - } - - serializedObject.ApplyModifiedProperties(); - - AkGameObjectInspector.RigidbodyCheck(m_envPortal.gameObject); - } - - private string GetEnvironmentName(AkEnvironment in_env) - { - foreach (var wwu in AkWwiseProjectInfo.GetData().AuxBusWwu) - foreach (var env in wwu.List) - if (in_env.data.Id == env.Id) - return env.Name; - - return string.Empty; - } - - public void FindOverlappingEnvironments() - { - var myCollider = m_envPortal.gameObject.GetComponent(); - if (myCollider == null) - return; - - var environments = FindObjectsOfType(); - foreach (var environment in environments) - { - var otherCollider = environment.gameObject.GetComponent(); - if (otherCollider == null) - continue; - - if (myCollider.bounds.Intersects(otherCollider.bounds)) - { - //if index == 0 => the environment is on the negative side of the portal(opposite to the direction of the chosen axis) - //if index == 1 => the environment is on the positive side of the portal(same direction as the chosen axis) - var index = UnityEngine.Vector3.Dot(m_envPortal.transform.rotation * m_axis.vector3Value, - environment.transform.position - m_envPortal.transform.position) >= 0 ? 1 : 0; - - var list = m_envList.GetArrayElementAtIndex(index).FindPropertyRelative("list"); - - var isFound = false; - var count = list.arraySize; - - for (var j = 0; j < count; j++) - { - if (list.GetArrayElementAtIndex(j).objectReferenceValue == environment) - { - isFound = true; - break; - } - } - - if (!isFound) - { - list.InsertArrayElementAtIndex(count); - list.GetArrayElementAtIndex(count).objectReferenceValue = environment; - - var otherList = m_envList.GetArrayElementAtIndex(++index % AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL).FindPropertyRelative("list"); - - for (var j = 0; j < otherList.arraySize; j++) - { - if (otherList.GetArrayElementAtIndex(j).objectReferenceValue == environment) - { - otherList.DeleteArrayElementAtIndex(j); - break; - } - } - } - } - else - { - for (var i = 0; i < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; i++) - { - var list = m_envList.GetArrayElementAtIndex(i).FindPropertyRelative("list"); - for (var j = 0; j < list.arraySize; j++) - { - if (list.GetArrayElementAtIndex(j).objectReferenceValue == environment) - { - list.DeleteArrayElementAtIndex(j); - break; - } - } - } - } - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentPortalInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentPortalInspector.cs.meta deleted file mode 100644 index b74d051bc..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkEnvironmentPortalInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6316f5d087b1cc549a0e50dde789261c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkEventInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkEventInspector.cs deleted file mode 100644 index 43285be54..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkEventInspector.cs +++ /dev/null @@ -1,276 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkEvent))] -public class AkEventInspector : AkBaseInspector -{ - private readonly AkUnityEventHandlerInspector m_UnityEventHandlerInspector = new AkUnityEventHandlerInspector(); - private UnityEditor.SerializedProperty actionOnEventType; - private UnityEditor.SerializedProperty callbackData; - private UnityEditor.SerializedProperty curveInterpolation; - private UnityEditor.SerializedProperty enableActionOnEvent; - private UnityEditor.SerializedProperty transitionDuration; - private UnityEditor.SerializedProperty useCallbacks; - - public void OnEnable() - { - m_UnityEventHandlerInspector.Init(serializedObject); - - enableActionOnEvent = serializedObject.FindProperty("enableActionOnEvent"); - actionOnEventType = serializedObject.FindProperty("actionOnEventType"); - curveInterpolation = serializedObject.FindProperty("curveInterpolation"); - transitionDuration = serializedObject.FindProperty("transitionDuration"); - useCallbacks = serializedObject.FindProperty("useCallbacks"); - callbackData = serializedObject.FindProperty("Callbacks"); - - AkEditorEventPlayer.RefreshGUI += Repaint; - } - - public void OnDisable() - { - AkEditorEventPlayer.RefreshGUI -= Repaint; - } - - private void DisplayActionOnEvent() - { - if (useCallbacks.boolValue) - return; - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(enableActionOnEvent, new UnityEngine.GUIContent("Action On Event: ")); - if (!enableActionOnEvent.boolValue) - return; - - UnityEditor.EditorGUILayout.PropertyField(actionOnEventType, new UnityEngine.GUIContent("Action On EventType: ")); - UnityEditor.EditorGUILayout.PropertyField(curveInterpolation, new UnityEngine.GUIContent("Curve Interpolation: ")); - UnityEditor.EditorGUILayout.Slider(transitionDuration, 0.0f, 60.0f, new UnityEngine.GUIContent("Fade Time (secs): ")); - } - } - - private void DisplayCallbackInformation() - { - if (enableActionOnEvent.boolValue) - return; - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(useCallbacks, new UnityEngine.GUIContent("Use Callback: ")); - - if (useCallbacks.boolValue) - { - var emptyContent = new UnityEngine.GUIContent(""); - - // ensure that there is always at least one entry since we are "using" callbacks - if (callbackData.arraySize == 0) - callbackData.arraySize = 1; - - const float callbackSpacerWidth = 4; - const float removeButtonWidth = 20; - var rect = UnityEditor.EditorGUILayout.GetControlRect(); - var callbackFieldWidth = (rect.width - removeButtonWidth) / 3; - rect.width = callbackFieldWidth - callbackSpacerWidth; - - UnityEngine.GUI.Label(rect, "Game Object"); - - rect.x += callbackFieldWidth; - UnityEngine.GUI.Label(rect, "Callback Function"); - - rect.x += callbackFieldWidth; - UnityEngine.GUI.Label(rect, "Callback Flags"); - - for (var i = 0; i < callbackData.arraySize; ++i) - { - var data = callbackData.GetArrayElementAtIndex(i); - rect = UnityEditor.EditorGUILayout.GetControlRect(); - rect.width = callbackFieldWidth - callbackSpacerWidth; - UnityEditor.EditorGUI.PropertyField(rect, data.FindPropertyRelative("GameObject"), emptyContent); - - rect.x += callbackFieldWidth; - UnityEditor.EditorGUI.PropertyField(rect, data.FindPropertyRelative("FunctionName"), emptyContent); - - rect.x += callbackFieldWidth; - UnityEditor.EditorGUI.PropertyField(rect, data.FindPropertyRelative("Flags"), emptyContent); - - rect.x += callbackFieldWidth; - rect.width = removeButtonWidth; - if (UnityEngine.GUI.Button(rect, "X")) - callbackData.DeleteArrayElementAtIndex(i); - } - - if (UnityEngine.GUI.Button(UnityEditor.EditorGUILayout.GetControlRect(), "Add")) - { - var i = callbackData.arraySize++; - var data = callbackData.GetArrayElementAtIndex(i); - data.FindPropertyRelative("GameObject").objectReferenceValue = null; - data.FindPropertyRelative("FunctionName").stringValue = string.Empty; - data.FindPropertyRelative("Flags.value").intValue = 0; - } - } - else if (callbackData.arraySize == 1) - { - var data = callbackData.GetArrayElementAtIndex(0); - if (data.FindPropertyRelative("GameObject").objectReferenceValue == null) - if (string.IsNullOrEmpty(data.FindPropertyRelative("FunctionName").stringValue)) - if (data.FindPropertyRelative("Flags.value").intValue == 0) - callbackData.arraySize = 0; - } - } - } - - public override void OnChildInspectorGUI() - { - m_UnityEventHandlerInspector.OnGUI(); - - DisplayActionOnEvent(); - DisplayCallbackInformation(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - if (targets.Length == 1) - { - var akEvent = (AkEvent) target; - var eventPlaying = AkEditorEventPlayer.IsEventPlaying(akEvent); - if (eventPlaying) - { - if (UnityEngine.GUILayout.Button("Stop")) - { - UnityEngine.GUIUtility.hotControl = 0; - AkEditorEventPlayer.StopEvent(akEvent); - } - } - else - { - if (UnityEngine.GUILayout.Button("Play")) - { - UnityEngine.GUIUtility.hotControl = 0; - AkEditorEventPlayer.PlayEvent(akEvent); - } - } - } - else - { - var playingEventsSelected = false; - var stoppedEventsSelected = false; - for (var i = 0; i < targets.Length; ++i) - { - var akEventTarget = targets[i] as AkEvent; - if (akEventTarget != null) - { - if (AkEditorEventPlayer.IsEventPlaying(akEventTarget)) - { - playingEventsSelected = true; - } - else - { - stoppedEventsSelected = true; - } - - if (playingEventsSelected && stoppedEventsSelected) - { - break; - } - } - } - - if (stoppedEventsSelected && - UnityEngine.GUILayout.Button("Play Multiple")) - { - for (var i = 0; i < targets.Length; ++i) - { - var akEventTarget = targets[i] as AkEvent; - if (akEventTarget != null) - { - AkEditorEventPlayer.PlayEvent(akEventTarget); - } - } - } - - if (playingEventsSelected && - UnityEngine.GUILayout.Button("Stop Multiple")) - { - for (var i = 0; i < targets.Length; ++i) - { - var akEventTarget = targets[i] as AkEvent; - if (akEventTarget != null) - { - AkEditorEventPlayer.StopEvent(akEventTarget); - } - } - } - } - - if (UnityEngine.GUILayout.Button("Stop All")) - { - UnityEngine.GUIUtility.hotControl = 0; - AkEditorEventPlayer.StopAll(); - } - } - } - - private static class AkEditorEventPlayer - { - private static readonly System.Collections.Generic.List akEvents = new System.Collections.Generic.List(); - - public static event System.Action RefreshGUI; - - private static void CallbackHandler(object in_cookie, AkCallbackType in_type, AkCallbackInfo in_info) - { - if (in_type == AkCallbackType.AK_EndOfEvent) - { - akEvents.Remove(in_cookie as AkEvent); - - var refreshGUI = RefreshGUI; - if (refreshGUI != null) - { - refreshGUI.Invoke(); - } - } - } - - public static void PlayEvent(AkEvent akEvent) - { - if (akEvents.Contains(akEvent)) - { - return; - } - - var playingID = akEvent.data.Post(akEvent.gameObject, (uint)AkCallbackType.AK_EndOfEvent, CallbackHandler, akEvent); - if (playingID != AkSoundEngine.AK_INVALID_PLAYING_ID) - { - akEvents.Add(akEvent); - - // In the case where objects are being placed in edit mode and then previewed, their positions won't yet be updated so we ensure they're updated here. - AkSoundEngine.SetObjectPosition(akEvent.gameObject, akEvent.transform); - } - } - - public static void StopEvent(AkEvent akEvent) - { - if (akEvents.Remove(akEvent)) - { - akEvent.data.Stop(akEvent.gameObject); - } - } - - public static bool IsEventPlaying(AkEvent akEvent) - { - return akEvents.Contains(akEvent); - } - - public static void StopAll() - { - akEvents.Clear(); - AkSoundEngine.StopAll(); - } - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkEventInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkEventInspector.cs.meta deleted file mode 100644 index 3b5852716..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkEventInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ea0767463aabd3446b9261ba2c4d91d0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjListenerListDrawer.cs b/Assets/Wwise/MonoBehaviour/Editor/AkGameObjListenerListDrawer.cs deleted file mode 100644 index 509ca8dd6..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjListenerListDrawer.cs +++ /dev/null @@ -1,98 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CustomPropertyDrawer(typeof(AkGameObjListenerList))] -internal class AkGameObjListenerListDrawer : UnityEditor.PropertyDrawer -{ - private const int listenerSpacerWidth = 4; - private const int removeButtonWidth = 20; - - public override float GetPropertyHeight(UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) - { - var height = (UnityEditor.EditorGUIUtility.singleLineHeight + UnityEditor.EditorGUIUtility.standardVerticalSpacing) * - 2; - var listenerListProperty = property.FindPropertyRelative("initialListenerList"); - if (listenerListProperty != null && listenerListProperty.isArray) - { - height += (UnityEditor.EditorGUIUtility.singleLineHeight + UnityEditor.EditorGUIUtility.standardVerticalSpacing) * - listenerListProperty.arraySize + UnityEditor.EditorGUIUtility.standardVerticalSpacing; - } - - return height; - } - - public override void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, - UnityEngine.GUIContent label) - { - // Using BeginProperty / EndProperty on the parent property means that - // prefab override logic works on the entire property. - UnityEditor.EditorGUI.BeginProperty(position, label, property); - - var initialRect = position; - - position = UnityEditor.EditorGUI.PrefixLabel(position, - UnityEngine.GUIUtility.GetControlID(UnityEngine.FocusType.Passive), - new UnityEngine.GUIContent("Use Default Listeners:")); - position.height = UnityEditor.EditorGUIUtility.singleLineHeight + - UnityEditor.EditorGUIUtility.standardVerticalSpacing; - - var useDefaultListenersProperty = property.FindPropertyRelative("useDefaultListeners"); - useDefaultListenersProperty.boolValue = UnityEngine.GUI.Toggle(position, useDefaultListenersProperty.boolValue, ""); - - var listenerListProperty = property.FindPropertyRelative("initialListenerList"); - if (listenerListProperty.isArray) - { - position.height = UnityEditor.EditorGUIUtility.singleLineHeight + - UnityEditor.EditorGUIUtility.standardVerticalSpacing; - - for (var ii = 0; ii < listenerListProperty.arraySize; ++ii) - { - var listenerFieldWidth = initialRect.width - removeButtonWidth; - position.y += UnityEditor.EditorGUIUtility.singleLineHeight + UnityEditor.EditorGUIUtility.standardVerticalSpacing; - position.x = initialRect.x; - position.width = listenerFieldWidth - listenerSpacerWidth; - - var listenerProperty = listenerListProperty.GetArrayElementAtIndex(ii); - UnityEditor.EditorGUI.PropertyField(position, listenerProperty, new UnityEngine.GUIContent("Listener " + ii)); - - position.x = initialRect.x + listenerFieldWidth; - position.width = removeButtonWidth; - - if (UnityEngine.GUI.Button(position, "X")) - { - UnityEngine.GUIUtility.keyboardControl = 0; - UnityEngine.GUIUtility.hotControl = 0; - - listenerProperty.objectReferenceValue = null; - listenerListProperty.DeleteArrayElementAtIndex(ii); - --ii; - } - } - - position.x = initialRect.x; - position.width = initialRect.width; - position.y += UnityEditor.EditorGUIUtility.singleLineHeight + UnityEditor.EditorGUIUtility.standardVerticalSpacing + - UnityEditor.EditorGUIUtility.standardVerticalSpacing; - - if (UnityEngine.GUI.Button(position, "Add Listener")) - { - UnityEngine.GUIUtility.keyboardControl = 0; - UnityEngine.GUIUtility.hotControl = 0; - - var lastPosition = listenerListProperty.arraySize; - listenerListProperty.arraySize = lastPosition + 1; - - // Avoid copying the previous last array element into the newly added last position - var listenerProperty = listenerListProperty.GetArrayElementAtIndex(lastPosition); - listenerProperty.objectReferenceValue = null; - } - } - - UnityEditor.EditorGUI.EndProperty(); - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjListenerListDrawer.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkGameObjListenerListDrawer.cs.meta deleted file mode 100644 index 6580aee05..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjListenerListDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 54866ca8d91ebd74c9500d203443761f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjectInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkGameObjectInspector.cs deleted file mode 100644 index c543be2b4..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjectInspector.cs +++ /dev/null @@ -1,188 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class DefaultHandles -{ - public static bool Hidden - { - get - { - var type = typeof(UnityEditor.Tools); - var field = type.GetField("s_Hidden", - System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static); - return (bool) field.GetValue(null); - } - set - { - var type = typeof(UnityEditor.Tools); - var field = type.GetField("s_Hidden", - System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static); - field.SetValue(null, value); - } - } -} - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkGameObj))] -public class AkGameObjectInspector : UnityEditor.Editor -{ - private bool hideDefaultHandle; - private UnityEditor.SerializedProperty listeners; - private AkGameObj m_AkGameObject; - - private void OnEnable() - { - m_AkGameObject = target as AkGameObj; - listeners = serializedObject.FindProperty("m_listeners"); - - DefaultHandles.Hidden = hideDefaultHandle; - } - - private void OnDisable() - { - DefaultHandles.Hidden = false; - } - - public override void OnInspectorGUI() - { - // Unity tries to construct a AkGameObjPositionOffsetData all the time. Need this ugly workaround - // to prevent it from doing this. - if (m_AkGameObject.m_positionOffsetData != null) - { - if (!m_AkGameObject.m_positionOffsetData.KeepMe) - m_AkGameObject.m_positionOffsetData = null; - } - - var positionOffsetData = m_AkGameObject.m_positionOffsetData; - var positionOffset = UnityEngine.Vector3.zero; - - UnityEditor.EditorGUI.BeginChangeCheck(); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - var applyPosOffset = UnityEditor.EditorGUILayout.Toggle("Apply Position Offset:", positionOffsetData != null); - - if (applyPosOffset != (positionOffsetData != null)) - positionOffsetData = applyPosOffset ? new AkGameObjPositionOffsetData(true) : null; - - if (positionOffsetData != null) - { - positionOffset = UnityEditor.EditorGUILayout.Vector3Field("Position Offset", positionOffsetData.positionOffset); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - if (hideDefaultHandle) - { - if (UnityEngine.GUILayout.Button("Show Main Transform")) - { - hideDefaultHandle = false; - DefaultHandles.Hidden = hideDefaultHandle; - } - } - else if (UnityEngine.GUILayout.Button("Hide Main Transform")) - { - hideDefaultHandle = true; - DefaultHandles.Hidden = hideDefaultHandle; - } - } - else if (hideDefaultHandle) - { - hideDefaultHandle = false; - DefaultHandles.Hidden = hideDefaultHandle; - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - var isEnvironmentAware = m_AkGameObject.isEnvironmentAware; - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - isEnvironmentAware = UnityEditor.EditorGUILayout.Toggle("Environment Aware:", isEnvironmentAware); - } - - if (m_AkGameObject.gameObject.GetComponent() == null) - { - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.LabelField("Room Aware: ", ""); - if (UnityEngine.GUILayout.Button("Add AkRoomAwareObject")) - UnityEditor.Undo.AddComponent(m_AkGameObject.gameObject); - } - } - - if (UnityEditor.EditorGUI.EndChangeCheck()) - { - UnityEditor.Undo.RecordObject(target, "AkGameObj Parameter Change"); - - m_AkGameObject.m_positionOffsetData = positionOffsetData; - - if (positionOffsetData != null) - m_AkGameObject.m_positionOffsetData.positionOffset = positionOffset; - - m_AkGameObject.isEnvironmentAware = isEnvironmentAware; - } - - if (isEnvironmentAware) - RigidbodyCheck(m_AkGameObject.gameObject); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUI.BeginChangeCheck(); - UnityEditor.EditorGUILayout.PropertyField(listeners); - if (UnityEditor.EditorGUI.EndChangeCheck()) - serializedObject.ApplyModifiedProperties(); - } - } - - public static void RigidbodyCheck(UnityEngine.GameObject gameObject) - { - if (AkWwiseEditorSettings.Instance.ShowMissingRigidBodyWarning && gameObject.GetComponent() == null) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "Interactions between AkGameObj and AkEnvironment require a Rigidbody component on the object or the environment.", - UnityEditor.MessageType.Warning); - - if (UnityEngine.GUILayout.Button("Add Rigidbody")) - { - var rb = UnityEditor.Undo.AddComponent(gameObject); - rb.useGravity = false; - rb.isKinematic = true; - } - } - } - } - - private void OnSceneGUI() - { - if (m_AkGameObject.m_positionOffsetData == null) - return; - - UnityEditor.EditorGUI.BeginChangeCheck(); - - // Transform local offset to world coordinate - var pos = m_AkGameObject.transform.TransformPoint(m_AkGameObject.m_positionOffsetData.positionOffset); - - // Get new handle position - pos = UnityEditor.Handles.PositionHandle(pos, UnityEngine.Quaternion.identity); - - if (UnityEditor.EditorGUI.EndChangeCheck()) - { - UnityEditor.Undo.RecordObject(target, "Position Offset Change"); - - // Transform world offset to local coordinate - m_AkGameObject.m_positionOffsetData.positionOffset = m_AkGameObject.transform.InverseTransformPoint(pos); - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjectInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkGameObjectInspector.cs.meta deleted file mode 100644 index f02d5846d..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkGameObjectInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0fa4b84cfa041a943934a4df39c54eaa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkPortalManager.cs b/Assets/Wwise/MonoBehaviour/Editor/AkPortalManager.cs deleted file mode 100644 index 50ad4c267..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkPortalManager.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.InitializeOnLoad] -public class AkPortalManager -{ - private static AkPortalManager s_portalManager; - - public System.Collections.Generic.List EnvironmentList = - new System.Collections.Generic.List(); - - public System.Collections.Generic.Dictionary>[] - IntersectingEnvironments = - { - //All environments on the negative side of each portal(opposite to the direction of the chosen axis) - new System.Collections.Generic.Dictionary>(), - //All environments on the positive side of each portal(same direction as the chosen axis) - new System.Collections.Generic.Dictionary>() - }; - - private float m_timeStamp = UnityEngine.Time.realtimeSinceStartup; - - public System.Collections.Generic.List PortalList = - new System.Collections.Generic.List(); - - static AkPortalManager() - { - //This constructor is called before any game object is created when there is a compilation which makes the 'FindObjectsOfType' function return null. - //So we register the init function to be called at hte first update. - UnityEditor.EditorApplication.update += Init; - } - - public static void Init() - { - //Do nothing if Manager exists - if (s_portalManager == null) - { - s_portalManager = new AkPortalManager(); - s_portalManager.Populate(); - - //Register the update function to be called at each frame - UnityEditor.EditorApplication.update += s_portalManager.UpdateEnvironments; - } - - //Unregister in case we were registered - UnityEditor.EditorApplication.update -= Init; - } - - public static AkPortalManager GetManager() - { - return s_portalManager; - } - - public void Populate() - { - //Add all environments in the scene to the environment list - var akEnv = UnityEngine.Object.FindObjectsOfType(); - s_portalManager.EnvironmentList.Clear(); - s_portalManager.EnvironmentList.AddRange(akEnv); - - //Add all portals in the scene to the portal list - var akPortals = UnityEngine.Object.FindObjectsOfType(); - s_portalManager.PortalList.Clear(); - s_portalManager.PortalList.AddRange(akPortals); - - //check for portal-environment intersections and populate the IntersectingEnvironments dictionary - for (var i = 0; i < s_portalManager.PortalList.Count; i++) - s_portalManager.UpdatePortal(s_portalManager.PortalList[i]); - } - - public void UpdatePortal(AkEnvironmentPortal in_portal) - { - var envList = new System.Collections.Generic.List[2]; - - for (var i = 0; i < 2; i++) - { - if (!IntersectingEnvironments[i].TryGetValue(in_portal.GetInstanceID(), out envList[i])) - { - envList[i] = new System.Collections.Generic.List(); - IntersectingEnvironments[i][in_portal.GetInstanceID()] = envList[i]; - } - else - envList[i].Clear(); - } - - //We check if a portal intersects any environment - //Iterate in reverse order for safe removal form list while iterating - for (var i = EnvironmentList.Count - 1; i >= 0; i--) - { - if (EnvironmentList[i] != null) - { - //if there is an intersection - if (in_portal.GetComponent().bounds - .Intersects(EnvironmentList[i].GetComponent().bounds)) - { - if (UnityEngine.Vector3.Dot(in_portal.transform.rotation * in_portal.axis, - EnvironmentList[i].transform.position - in_portal.transform.position) >= 0) - envList[1].Add(EnvironmentList[i]); - else - envList[0].Add(EnvironmentList[i]); - } - } - else - EnvironmentList.RemoveAt(i); - } - } - - private void UpdateEnvironment(AkEnvironment in_env) - { - for (var i = PortalList.Count - 1; i >= 0; i--) //Iterate in reverse order for safe removal form list while iterating - { - if (PortalList[i] != null) - { - if (in_env.GetComponent().bounds - .Intersects(PortalList[i].GetComponent().bounds)) - { - System.Collections.Generic.List envList = null; - - //Get index of the list that should contain this environment - //Index = 0 means that the enviroment is on the negative side of the portal (opposite to the direction of the chosen axis) - //Index = 1 means that the enviroment is on the positive side of the portal (same direction as the chosen axis) - var index = UnityEngine.Vector3.Dot(PortalList[i].transform.rotation * PortalList[i].axis, - in_env.transform.position - PortalList[i].transform.position) >= 0 - ? 1 - : 0; - - if (!IntersectingEnvironments[index].TryGetValue(PortalList[i].GetInstanceID(), out envList)) - { - envList = new System.Collections.Generic.List(); - envList.Add(in_env); - IntersectingEnvironments[index][PortalList[i].GetInstanceID()] = envList; - } - else if (!envList.Contains(in_env)) - envList.Add(in_env); - } - } - else - PortalList.RemoveAt(i); - } - } - - public void UpdateEnvironments() - { - //Timer is reset when starting play mode and when coming back to editor mode - if (UnityEngine.Time.realtimeSinceStartup < m_timeStamp) - { - m_timeStamp = UnityEngine.Time.realtimeSinceStartup; - - //The PortalManager object doesn't get destroyed but all game objects in our lists become null - //So we populate - Populate(); - return; - } - - //The update is done once every second - if (UnityEngine.Time.realtimeSinceStartup - m_timeStamp < 1.0f) - return; - - m_timeStamp = UnityEngine.Time.realtimeSinceStartup; - - var portals = UnityEditor.Selection.GetFiltered(typeof(AkEnvironmentPortal), UnityEditor.SelectionMode.Unfiltered); - if (portals != null) - { - for (var i = 0; i < portals.Length; i++) - { - if (!PortalList.Contains((AkEnvironmentPortal) portals[i])) - PortalList.Add((AkEnvironmentPortal) portals[i]); - - UpdatePortal((AkEnvironmentPortal) portals[i]); - } - } - - var envs = UnityEditor.Selection.GetFiltered(typeof(AkEnvironment), UnityEditor.SelectionMode.Unfiltered); - if (envs != null) - { - for (var i = 0; i < envs.Length; i++) - { - if (!EnvironmentList.Contains((AkEnvironment) envs[i])) - EnvironmentList.Add((AkEnvironment) envs[i]); - - UpdateEnvironment((AkEnvironment) envs[i]); - } - } - } -} - -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkPortalManager.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkPortalManager.cs.meta deleted file mode 100644 index bc32b3b7f..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkPortalManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ad8e6aaf85f598546b2aee628a3d01e9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkRoomAwareObjectInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkRoomAwareObjectInspector.cs deleted file mode 100644 index 0aa8f407b..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkRoomAwareObjectInspector.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CustomEditor(typeof(AkRoomAwareObject))] -public class AkRoomAwareObjectInspector : UnityEditor.Editor -{ - private bool hideDefaultHandle; - private UnityEditor.SerializedProperty listeners; - private AkRoomAwareObject m_AkRoomAwareObject; - - private void OnEnable() - { - m_AkRoomAwareObject = target as AkRoomAwareObject; - } - - public override void OnInspectorGUI() - { - RigidbodyCheck(m_AkRoomAwareObject.gameObject); - ColliderCheck(m_AkRoomAwareObject.gameObject); - } - - public static void ColliderCheck(UnityEngine.GameObject gameObject) - { - if (AkWwiseEditorSettings.Instance.ShowSpatialAudioWarningMsg) - { - var collider = gameObject.GetComponent(); - if (collider == null || !collider.enabled) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "Interactions between AkRoomAwareObject and AkRoom require a Collider component on the object.", - UnityEditor.MessageType.Error); - } - } - } - } - - public static void RigidbodyCheck(UnityEngine.GameObject gameObject) - { - if (AkWwiseEditorSettings.Instance.ShowMissingRigidBodyWarning && gameObject.GetComponent() == null) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "Interactions between AkRoomAwareObject and AkRoom require a Rigidbody component on the object or the room.", - UnityEditor.MessageType.Warning); - - if (UnityEngine.GUILayout.Button("Add Rigidbody")) - { - var rb = UnityEditor.Undo.AddComponent(gameObject); - rb.useGravity = false; - rb.isKinematic = true; - } - } - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkRoomAwareObjectInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkRoomAwareObjectInspector.cs.meta deleted file mode 100644 index 8e5e98a38..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkRoomAwareObjectInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fd234e785427c3d4fbe3871c78b6dea5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkRoomInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkRoomInspector.cs deleted file mode 100644 index a824c8392..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkRoomInspector.cs +++ /dev/null @@ -1,91 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CustomEditor(typeof(AkRoom))] -public class AkRoomInspector : UnityEditor.Editor -{ - private readonly AkUnityEventHandlerInspector m_PostEventHandlerInspector = new AkUnityEventHandlerInspector(); - - private AkRoom m_AkRoom; - private UnityEditor.SerializedProperty priority; - private UnityEditor.SerializedProperty reverbAuxBus; - private UnityEditor.SerializedProperty reverbLevel; - private UnityEditor.SerializedProperty transmissionLoss; - private UnityEditor.SerializedProperty roomToneEvent; - private UnityEditor.SerializedProperty roomToneAuxSend; - - private void OnEnable() - { - m_PostEventHandlerInspector.Init(serializedObject, "triggerList", "Trigger On: ", false); - - m_AkRoom = target as AkRoom; - - reverbAuxBus = serializedObject.FindProperty("reverbAuxBus"); - reverbLevel = serializedObject.FindProperty("reverbLevel"); - transmissionLoss = serializedObject.FindProperty("transmissionLoss"); - priority = serializedObject.FindProperty("priority"); - roomToneEvent = serializedObject.FindProperty("roomToneEvent"); - roomToneAuxSend = serializedObject.FindProperty("roomToneAuxSend"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(reverbAuxBus); - UnityEditor.EditorGUILayout.PropertyField(reverbLevel); - UnityEditor.EditorGUILayout.PropertyField(transmissionLoss); - UnityEditor.EditorGUILayout.PropertyField(priority); - - WetTransmissionCheck(m_AkRoom.gameObject); - } - - UnityEditor.EditorGUILayout.LabelField("Room Tone", UnityEditor.EditorStyles.boldLabel); - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - m_PostEventHandlerInspector.OnGUI(); - UnityEditor.EditorGUILayout.PropertyField(roomToneEvent); - UnityEditor.EditorGUILayout.PropertyField(roomToneAuxSend); - } - - AkRoomAwareObjectInspector.RigidbodyCheck(m_AkRoom.gameObject); - - serializedObject.ApplyModifiedProperties(); - } - - public static void WetTransmissionCheck(UnityEngine.GameObject gameObject) - { - if (AkWwiseEditorSettings.Instance.ShowSpatialAudioWarningMsg && - gameObject.GetComponent() == null && - gameObject.GetComponent() == null) - { - // wet transmission supports box, sphere, capsule and mesh colliders - bool bSupported = false; - if (gameObject.GetComponent() != null || - gameObject.GetComponent() != null || - gameObject.GetComponent() != null || - gameObject.GetComponent() != null || - gameObject.GetComponent() != null) - bSupported = true; - - if (bSupported == false) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "Wet Transmission is currently only supported with box, sphere, capsule and mesh colliders, or if the game object also has an enabled AkSurfaceReflector component.", - UnityEditor.MessageType.Warning); - } - } - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkRoomInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkRoomInspector.cs.meta deleted file mode 100644 index 9cadd587b..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkRoomInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: dc6d2801c5299654c817f9a0a3704dd1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkRoomPortalInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkRoomPortalInspector.cs deleted file mode 100644 index 987be92e5..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkRoomPortalInspector.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkRoomPortal))] -public class AkRoomPortalInspector : UnityEditor.Editor -{ - private UnityEditor.SerializedProperty initialState; - private UnityEditor.SerializedProperty rooms; - - private readonly AkUnityEventHandlerInspector m_ClosePortalEventHandlerInspector = new AkUnityEventHandlerInspector(); - private readonly AkUnityEventHandlerInspector m_OpenPortalEventHandlerInspector = new AkUnityEventHandlerInspector(); - - private AkRoomPortal m_roomPortal; - - [UnityEditor.MenuItem("GameObject/Wwise/Room Portal", false, 1)] - public static void CreatePortal() - { - var portal = new UnityEngine.GameObject("RoomPortal"); - - UnityEditor.Undo.AddComponent(portal); - portal.GetComponent().isTrigger = true; - - UnityEditor.Selection.objects = new UnityEngine.Object[] { portal }; - } - - private void OnEnable() - { - initialState = serializedObject.FindProperty("initialState"); - rooms = serializedObject.FindProperty("rooms"); - - m_OpenPortalEventHandlerInspector.Init(serializedObject, "triggerList", "Open On: ", false); - m_ClosePortalEventHandlerInspector.Init(serializedObject, "closePortalTriggerList", "Close On: ", false); - - m_roomPortal = target as AkRoomPortal; - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(initialState); - m_OpenPortalEventHandlerInspector.OnGUI(); - m_ClosePortalEventHandlerInspector.OnGUI(); - } - - m_roomPortal.UpdateRooms(); - - var labels = new[] { "Back Room", "Front Room" }; - var tooltips = new[] { "The highest priority, active and enabled AkRoom component overlapping the back surface of this AkRoomPortal.", - "The highest priority, active and enabled AkRoom component overlapping the front surface of this AkRoomPortal." }; - - var wasEnabled = UnityEngine.GUI.enabled; - UnityEngine.GUI.enabled = false; - - for (var i = 0; i < AkRoomPortal.MAX_ROOMS_PER_PORTAL; i++) - UnityEditor.EditorGUILayout.PropertyField(rooms.GetArrayElementAtIndex(i), new UnityEngine.GUIContent(labels[i], tooltips[i]), true); - - UnityEngine.GUI.enabled = wasEnabled; - - RoomCheck(m_roomPortal); - - serializedObject.ApplyModifiedProperties(); - } - - public static void RoomCheck(AkRoomPortal portal) - { - if (AkWwiseEditorSettings.Instance.ShowSpatialAudioWarningMsg) - { - if (!portal.IsValid) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - UnityEditor.EditorGUILayout.HelpBox( - "Front and back rooms are identical. The AkRoomPortal will not be sent to Spatial Audio.", - UnityEditor.MessageType.Warning); - } - } - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkRoomPortalInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkRoomPortalInspector.cs.meta deleted file mode 100644 index 7be8c33ea..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkRoomPortalInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c339e5cacf7012d42ab2f64e25bb0d67 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkSpatialAudioListenerInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkSpatialAudioListenerInspector.cs deleted file mode 100644 index de6c1c70c..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkSpatialAudioListenerInspector.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CustomEditor(typeof(AkSpatialAudioListener))] -public class AkSpatialAudioListenerInspector : UnityEditor.Editor -{ - public override void OnInspectorGUI() - { - UnityEditor.EditorGUILayout.HelpBox( - "The current version of Spatial Audio only supports one listener. Make sure to only have one AkSpatialAudioListener active at a time.", - UnityEditor.MessageType.Info); - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkSpatialAudioListenerInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkSpatialAudioListenerInspector.cs.meta deleted file mode 100644 index e43fff782..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkSpatialAudioListenerInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6b91b708d4c4d1242b7af959667f0340 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkStateInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkStateInspector.cs deleted file mode 100644 index ff19f5e2e..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkStateInspector.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkState))] -public class AkStateInspector : AkBaseInspector -{ - private readonly AkUnityEventHandlerInspector m_UnityEventHandlerInspector = new AkUnityEventHandlerInspector(); - - private void OnEnable() - { - m_UnityEventHandlerInspector.Init(serializedObject); - } - - public override void OnChildInspectorGUI() - { - m_UnityEventHandlerInspector.OnGUI(); - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkStateInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkStateInspector.cs.meta deleted file mode 100644 index d81606c05..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkStateInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6d0f13a09154f7148b0648725de5b279 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkSwitchInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkSwitchInspector.cs deleted file mode 100644 index 3dc19091f..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkSwitchInspector.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEditor.CanEditMultipleObjects] -[UnityEditor.CustomEditor(typeof(AkSwitch))] -public class AkSwitchInspector : AkBaseInspector -{ - private readonly AkUnityEventHandlerInspector m_UnityEventHandlerInspector = new AkUnityEventHandlerInspector(); - - private void OnEnable() - { - m_UnityEventHandlerInspector.Init(serializedObject); - } - - public override void OnChildInspectorGUI() - { - m_UnityEventHandlerInspector.OnGUI(); - } -} -#endif diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkSwitchInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkSwitchInspector.cs.meta deleted file mode 100644 index 2bafba603..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkSwitchInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 65b5eedbd8ddd40419eb9e57c3ca3fbd -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkUnityEventHandlerInspector.cs b/Assets/Wwise/MonoBehaviour/Editor/AkUnityEventHandlerInspector.cs deleted file mode 100644 index 892c56c53..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkUnityEventHandlerInspector.cs +++ /dev/null @@ -1,147 +0,0 @@ -#if UNITY_EDITOR -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkUnityEventHandlerInspector -{ - private static string[] m_triggerTypeNames; - private static uint[] m_triggerTypeIDs; - private static System.Collections.Generic.Dictionary m_triggerTypes; - - ///Defines the triggers that make use of useOtherObjectMask - private static readonly string[] useOtherObjectTriggers = - { "AkTriggerEnter", "AkTriggerExit", "AkTriggerCollisionEnter", "AkTriggerCollisionExit" }; - - private string m_label = "Trigger On: "; - - private bool m_showUseOtherToggle = true; - private UnityEditor.SerializedProperty m_triggerList; - private UnityEditor.SerializedProperty m_useOtherObject; - - public void Init(UnityEditor.SerializedObject in_serializedObject, string in_listName = "triggerList", - string in_label = "Trigger On: ", bool in_showUseOtherToggle = true) - { - m_label = in_label; - m_showUseOtherToggle = in_showUseOtherToggle; - - m_triggerList = in_serializedObject.FindProperty(in_listName); - m_useOtherObject = in_serializedObject.FindProperty("useOtherObject"); - - //Get the updated list of all triggers - if (m_triggerTypes == null) - { - m_triggerTypes = AkTriggerBase.GetAllDerivedTypes(); - m_triggerTypeNames = new string[m_triggerTypes.Count]; - m_triggerTypes.Values.CopyTo(m_triggerTypeNames, 0); - m_triggerTypeIDs = new uint[m_triggerTypes.Count]; - m_triggerTypes.Keys.CopyTo(m_triggerTypeIDs, 0); - } - } - - public void OnGUI() - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - var currentTriggers = GetCurrentTriggers(); - var oldMask = BuildCurrentMaskValue(currentTriggers); - var newMask = UnityEditor.EditorGUILayout.MaskField(m_label, oldMask, m_triggerTypeNames); - - if (oldMask != newMask) - { - currentTriggers.Clear(); - for (var i = 0; i < m_triggerTypeNames.Length; i++) - { - var curTriggerID = AkUtilities.ShortIDGenerator.Compute(m_triggerTypeNames[i]); - if ((newMask & (1 << i)) != 0 && !currentTriggers.Contains(curTriggerID)) - currentTriggers.Add(curTriggerID); - } - - SaveNewTriggers(currentTriggers); - } - - if (m_showUseOtherToggle) - { - var toggleWasDisplayed = false; - - for (var i = 0; i < m_triggerTypeNames.Length; i++) - { - if ((newMask & (1 << i)) != 0 && Contain(useOtherObjectTriggers, m_triggerTypeNames[i])) - { - UnityEditor.EditorGUILayout.PropertyField(m_useOtherObject, new UnityEngine.GUIContent("Use Other Object: ")); - toggleWasDisplayed = true; - break; - } - } - - if (!toggleWasDisplayed) - m_useOtherObject.boolValue = false; - } - } - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - } - - private System.Collections.Generic.List GetCurrentTriggers() - { - var newList = new System.Collections.Generic.List(); - for (var i = 0; i < m_triggerList.arraySize; i++) - newList.Add((uint)m_triggerList.GetArrayElementAtIndex(i).intValue); - - return newList; - } - - private int GetIdIndex(uint in_ID) - { - var index = -1; - for (var i = 0; i < m_triggerTypeIDs.Length; i++) - { - if (m_triggerTypeIDs[i] == in_ID) - { - index = i; - break; - } - } - - return index; - } - - private int BuildCurrentMaskValue(System.Collections.Generic.List currentTriggers) - { - var maskToReturn = 0; - for (var i = 0; i < currentTriggers.Count; i++) - { - var idIndex = GetIdIndex(currentTriggers[i]); - if (idIndex != -1) - maskToReturn |= 1 << idIndex; - } - - return maskToReturn; - } - - private void SaveNewTriggers(System.Collections.Generic.List currentTriggers) - { - m_triggerList.ClearArray(); - for (var i = 0; i < currentTriggers.Count; i++) - { - m_triggerList.InsertArrayElementAtIndex(i); - m_triggerList.GetArrayElementAtIndex(i).intValue = (int) currentTriggers[i]; - } - } - - private bool Contain(string[] in_array, string in_value) - { - for (var i = 0; i < in_array.Length; i++) - { - if (in_array[i].Equals(in_value)) - return true; - } - - return false; - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/AkUnityEventHandlerInspector.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/AkUnityEventHandlerInspector.cs.meta deleted file mode 100644 index 423ce84a9..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/AkUnityEventHandlerInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 87ed737ef4c40f84e8565b13243f33d1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers.meta b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers.meta deleted file mode 100644 index 2c6d8fd52..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c51b77e510ad28d4ab2103a3746c175d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac.meta b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac.meta deleted file mode 100644 index ec6572c13..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 398d5d9862256bd4682b0cbffccfb11b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac/AkMacPluginActivator.cs b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac/AkMacPluginActivator.cs deleted file mode 100644 index 755b8e5e3..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac/AkMacPluginActivator.cs +++ /dev/null @@ -1,11 +0,0 @@ -#if UNITY_EDITOR -[UnityEditor.InitializeOnLoad] -public class AkMacPluginActivator -{ - static AkMacPluginActivator() - { - AkPluginActivator.BuildTargetToPlatformName.Add(UnityEditor.BuildTarget.StandaloneOSX, "Mac"); - AkBuildPreprocessor.BuildTargetToPlatformName.Add(UnityEditor.BuildTarget.StandaloneOSX, "Mac"); - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac/AkMacPluginActivator.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac/AkMacPluginActivator.cs.meta deleted file mode 100644 index d70d7bde1..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Mac/AkMacPluginActivator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cf01499c75b657f4086e3d4db4753d4e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows.meta b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows.meta deleted file mode 100644 index 3aaf504da..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 12ca6386abab4ec4298612014cc89752 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows/AkWindowsPluginActivator.cs b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows/AkWindowsPluginActivator.cs deleted file mode 100644 index 5fd585a88..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows/AkWindowsPluginActivator.cs +++ /dev/null @@ -1,13 +0,0 @@ -#if UNITY_EDITOR -[UnityEditor.InitializeOnLoad] -public class AkWindowsPluginActivator -{ - static AkWindowsPluginActivator() - { - AkPluginActivator.BuildTargetToPlatformName.Add(UnityEditor.BuildTarget.StandaloneWindows, "Windows"); - AkPluginActivator.BuildTargetToPlatformName.Add(UnityEditor.BuildTarget.StandaloneWindows64, "Windows"); - AkBuildPreprocessor.BuildTargetToPlatformName.Add(UnityEditor.BuildTarget.StandaloneWindows, "Windows"); - AkBuildPreprocessor.BuildTargetToPlatformName.Add(UnityEditor.BuildTarget.StandaloneWindows64, "Windows"); - } -} -#endif \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows/AkWindowsPluginActivator.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows/AkWindowsPluginActivator.cs.meta deleted file mode 100644 index e7c538be1..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/EditorPlatformHelpers/Windows/AkWindowsPluginActivator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 27e6821a2b15a754ea547169de00e226 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard.meta deleted file mode 100644 index b7e3a0f07..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8f0a64d280c189e47a5ad5fbb2448b04 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkBuildPreprocessor.cs b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkBuildPreprocessor.cs deleted file mode 100644 index d6c65c6b9..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkBuildPreprocessor.cs +++ /dev/null @@ -1,134 +0,0 @@ -#if UNITY_EDITOR -using System.Collections.Generic; - -public partial class AkBuildPreprocessor -{ - /// - /// User hook called to retrieve the custom platform name used to determine the base path. Do not modify platformName - /// to use default platform names. - /// - /// The custom platform name. - public delegate void CustomPlatformNameGetter(ref string platformName, UnityEditor.BuildTarget target); - - public static CustomPlatformNameGetter GetCustomPlatformName; - - public static Dictionary BuildTargetToPlatformName = new Dictionary(); - - private static string GetPlatformName(UnityEditor.BuildTarget target) - { - var platformSubDir = string.Empty; - GetCustomPlatformName?.Invoke(ref platformSubDir, target); - - if (!string.IsNullOrEmpty(platformSubDir)) - return platformSubDir; - - if (BuildTargetToPlatformName.ContainsKey(target)) - { - return BuildTargetToPlatformName[target]; - } - return target.ToString(); - } -} - - -#if UNITY_2018_1_OR_NEWER -public partial class AkBuildPreprocessor : UnityEditor.Build.IPreprocessBuildWithReport, UnityEditor.Build.IPostprocessBuildWithReport -#else -public partial class AkBuildPreprocessor : UnityEditor.Build.IPreprocessBuild, UnityEditor.Build.IPostprocessBuild -#endif -{ - public int callbackOrder - { - get { return 0; } - } - - private string destinationSoundBankFolder = string.Empty; - - public static bool CopySoundbanks(bool generate, string platformName, ref string destinationFolder) - { - if (string.IsNullOrEmpty(platformName)) - { - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Could not determine platform name for <{0}> platform", platformName); - return false; - } - - if (generate) - { - var platforms = new System.Collections.Generic.List { platformName }; - AkUtilities.GenerateSoundbanks(platforms); - } - - string sourceFolder; - if (!AkBasePathGetter.GetSoundBankPaths(platformName, out sourceFolder, out destinationFolder)) - return false; - - if (!AkUtilities.DirectoryCopy(sourceFolder, destinationFolder, true)) - { - destinationFolder = null; - UnityEngine.Debug.LogErrorFormat("WwiseUnity: Could not copy SoundBank folder for <{0}> platform", platformName); - return false; - } - - UnityEngine.Debug.LogFormat("WwiseUnity: Copied SoundBank folder to streaming assets folder <{0}> for <{1}> platform build", destinationFolder, platformName); - return true; - } - - - public static void DeleteSoundbanks(string destinationFolder) - { - if (string.IsNullOrEmpty(destinationFolder)) - return; - - System.IO.Directory.Delete(destinationFolder, true); - UnityEngine.Debug.LogFormat("WwiseUnity: Deleting streaming assets folder <{0}>", destinationFolder); - } - - public void OnPreprocessBuildInternal(UnityEditor.BuildTarget target, string path) - { -#if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - if (AkWwiseEditorSettings.Instance.CopySoundBanksAsPreBuildStep) - { - var platformName = GetPlatformName(target); - if (!CopySoundbanks(AkWwiseEditorSettings.Instance.GenerateSoundBanksAsPreBuildStep, platformName, ref destinationSoundBankFolder)) - { - UnityEngine.Debug.LogErrorFormat("WwiseUnity: SoundBank folder has not been copied for <{0}> target at <{1}>. This will likely result in a build without sound!!!", target, path); - } - } -#endif - // @todo sjl - only update for target platform - AkPluginActivator.Update(true); - AkPluginActivator.ActivatePluginsForDeployment(target, true); - } - - public void OnPostprocessBuildInternal(UnityEditor.BuildTarget target, string path) - { - AkPluginActivator.ActivatePluginsForDeployment(target, false); -#if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - DeleteSoundbanks(destinationSoundBankFolder); -#endif - destinationSoundBankFolder = string.Empty; - } - -#if UNITY_2018_1_OR_NEWER - public void OnPreprocessBuild(UnityEditor.Build.Reporting.BuildReport report) - { - OnPreprocessBuildInternal(report.summary.platform, report.summary.outputPath); - } - - public void OnPostprocessBuild(UnityEditor.Build.Reporting.BuildReport report) - { - OnPostprocessBuildInternal(report.summary.platform, report.summary.outputPath); - } -#else - public void OnPreprocessBuild(UnityEditor.BuildTarget target, string path) - { - OnPreprocessBuildInternal(target, path); - } - - public void OnPostprocessBuild(UnityEditor.BuildTarget target, string path) - { - OnPostprocessBuildInternal(target, path); - } -#endif -} -#endif // #if UNITY_EDITOR diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkBuildPreprocessor.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkBuildPreprocessor.cs.meta deleted file mode 100644 index 0816c3f14..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkBuildPreprocessor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c042e3d451bf504418bb1657cba0bd5e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkUnitySettingsParser.cs b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkUnitySettingsParser.cs deleted file mode 100644 index 2bb77b7cc..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkUnitySettingsParser.cs +++ /dev/null @@ -1,125 +0,0 @@ -#if UNITY_EDITOR - - -// Note, this code was only written to parse the AudioManager.asset file. -// It has been written to try to be as generic as possible, but might not -// work on other .asset settings files. -public class AkUnitySettingsParser -{ - public static bool SetBoolValue(string ValueName, bool ValueToSet, string ConfigFileName) - { - try - { - var SettingsPath = UnityEngine.Application.dataPath.Remove(UnityEngine.Application.dataPath.LastIndexOf("/")) + - "/ProjectSettings/" + ConfigFileName + ".asset"; - - System.IO.FileStream fs; - System.IO.BinaryReader br; - fs = System.IO.File.Open(SettingsPath, System.IO.FileMode.Open); - br = new System.IO.BinaryReader(fs); - - // Read the unsigned int at offset 0x0C in the file. - // This contains the offset at which the setting's numerical values are stored. - br.BaseStream.Seek(0x0C, System.IO.SeekOrigin.Begin); - - // For some reason, the offset is Big Endian in the file. - var SettingsOffset = GetBigEndianIntFromBinaryReader(br); - - // In the file, we start with 0x14 bytes, then a string containing the unity version, - // then 0x0C bytes, then a string containing the base class name, followed by a string containing "base". - string tempStr; - br.BaseStream.Seek(0x14, System.IO.SeekOrigin.Begin); - tempStr = GetStringFromBinaryReader(br); // Unity Version - br.BaseStream.Seek(0x0C, System.IO.SeekOrigin.Current); - tempStr = GetStringFromBinaryReader(br); // Config file Name - if (tempStr != ConfigFileName) - return false; - - tempStr = GetStringFromBinaryReader(br); // "Base" - if (tempStr != "Base") - return false; - - // This string is then followed by 24 bytes - br.BaseStream.Seek(24, System.IO.SeekOrigin.Current); - - // We then have a series of String (type), String (variable name), and 24 bytes - // We can use the type of the settings before the field we are looking for to - // find its offset after SettingsOffset. - while (br.BaseStream.Position < br.BaseStream.Length) - { - var SettingType = GetStringFromBinaryReader(br); - var SettingName = GetStringFromBinaryReader(br); - - if (SettingName == ValueName) - break; - - br.BaseStream.Seek(24, System.IO.SeekOrigin.Current); - - if (GetSizeofTypeByString(SettingType) == -1) - return false; - - SettingsOffset += GetSizeofTypeByString(SettingType); - } - - // Set the setting in the file - var bw = new System.IO.BinaryWriter(fs); - bw.Seek(SettingsOffset, System.IO.SeekOrigin.Begin); - bw.Write(ValueToSet ? (byte) 1 : (byte) 0); - bw.Close(); - fs.Close(); - } - catch (System.Exception) - { - // Error happened - return false; - } - - // Success! - return true; - } - - // Read a big endian Int, and advances the BinaryReader's position - private static int GetBigEndianIntFromBinaryReader(System.IO.BinaryReader br) - { - var tempBytes = new byte[4]; - tempBytes = br.ReadBytes(4); - return (tempBytes[0] << 24) | (tempBytes[1] << 16) | (tempBytes[2] << 8) | tempBytes[3]; - } - - // Reads a zero-terminated string at the BinaryReader's current position, and advances position - private static string GetStringFromBinaryReader(System.IO.BinaryReader br) - { - var list = new System.Collections.Generic.List(); - - // Do not add the \0 in the string, because comparison won't work - var currentByte = br.ReadByte(); - while (currentByte != 0) - { - list.Add(currentByte); - currentByte = br.ReadByte(); - } - - return System.Text.Encoding.Default.GetString(list.ToArray()); - } - - // Returns the size in bytes of a type, as specified in the .asset file - // NOTE: this function only supports types found in AudioManager.asset. - private static int GetSizeofTypeByString(string typeStr) - { - switch (typeStr) - { - case "int": - case "unsigned int": - case "float": - case "UInt32": - case "SInt32": - return 4; - case "bool": - return 1; - default: - return -1; - } - } -} - -#endif // UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkUnitySettingsParser.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkUnitySettingsParser.cs.meta deleted file mode 100644 index e6eb8eb80..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkUnitySettingsParser.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 42c10063612db864094308f78d610935 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWSAUtils.cs b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWSAUtils.cs deleted file mode 100644 index fd8b15c98..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWSAUtils.cs +++ /dev/null @@ -1,8 +0,0 @@ -public static class AkWSAUtils -{ - [UnityEditor.MenuItem("Assets/Wwise/WSA/Enable PrivateNetworkClientServer Capability")] - public static void EnablePrivateNetworkClientServer() - { - UnityEditor.PlayerSettings.WSA.SetCapability(UnityEditor.PlayerSettings.WSACapability.PrivateNetworkClientServer, true); - } -} \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWSAUtils.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWSAUtils.cs.meta deleted file mode 100644 index 859828ec2..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWSAUtils.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 597a8162855b7d94a955c2d62c3c0f73 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs deleted file mode 100644 index 0ce6a9222..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs +++ /dev/null @@ -1,329 +0,0 @@ -#if UNITY_EDITOR -using UnityEditor; - -[UnityEditor.InitializeOnLoad] -public class AkWwisePostImportCallbackSetup -{ - private static int m_scheduledMigrationStart; - private static bool m_scheduledReturnToLauncher; - private static bool m_pendingExecuteMethodCalled; - private static string s_CurrentScene; - - static AkWwisePostImportCallbackSetup() - { - var arguments = System.Environment.GetCommandLineArgs(); - if (UnityEngine.Application.isBatchMode - && System.Array.IndexOf(arguments, "-wwiseEnableWithNoGraphics") == -1) - return; - - UnityEditor.EditorApplication.delayCall += CheckMigrationStatus; - - AkUtilities.GetEventDurations = (uint eventID, ref float maximum, ref float minimum) => - { - var eventInfo = AkWwiseProjectInfo.GetData().GetEventInfo(eventID); - if (eventInfo != null) - { - minimum = eventInfo.minDuration; - maximum = eventInfo.maxDuration; - } - }; - } - - private static void CheckMigrationStatus() - { - try - { - int migrationStart; - bool returnToLauncher; - if (IsMigrationPending(out migrationStart, out returnToLauncher)) - { - m_scheduledMigrationStart = migrationStart; - m_scheduledReturnToLauncher = returnToLauncher; - ScheduleMigration(); - } - else - RefreshCallback(); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Error during migration: " + e); - } - } - - private static void ScheduleMigration() - { - // TODO: Is delayCall wiped out during a script reload? - // If not, guard against having a delayCall from a previously loaded code being run after the new loading. - - if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || UnityEditor.EditorApplication.isCompiling) - { - // Skip if not in the right mode, wait for the next callback to see if we can proceed then. - UnityEditor.EditorApplication.delayCall += ScheduleMigration; - return; - } - - try - { - WwiseSetupWizard.PerformMigration(m_scheduledMigrationStart); - - // Force the user to return to the launcher to perform the post-installation process if necessary - if (m_scheduledReturnToLauncher) - { - if (UnityEditor.EditorUtility.DisplayDialog("Wwise Migration Successful!", - "Please close Unity and go back to the Wwise Launcher to complete the installation.", "Quit")) - UnityEditor.EditorApplication.Exit(0); - } - else - UnityEditor.EditorApplication.delayCall += RefreshCallback; - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Error during migration: " + e); - } - } - - private static bool IsMigrationPending(out int migrationStart, out bool returnToLauncher) - { - migrationStart = 0; - returnToLauncher = false; - - var filename = UnityEngine.Application.dataPath + "/../.WwiseLauncherLockFile"; - - if (!System.IO.File.Exists(filename)) - return false; - - var fileContent = System.IO.File.ReadAllText(filename); - - // Instantiate the regular expression object. - var r = new System.Text.RegularExpressions.Regex( - "{\"migrateStart\":(\\d+),\"migrateStop\":(\\d+)(,\"returnToLauncher\":(true|false))?,.*}", - System.Text.RegularExpressions.RegexOptions.IgnoreCase); - - // Match the regular expression pattern against a text string. - var m = r.Match(fileContent); - - if (!m.Success || m.Groups.Count < 2 || m.Groups[1].Captures.Count < 1 || m.Groups[2].Captures.Count < 1 || - !int.TryParse(m.Groups[1].Captures[0].ToString(), out migrationStart)) - throw new System.Exception("Error in the file format of .WwiseLauncherLockFile."); - - // Handle optional properties - if (m.Groups.Count > 3 && m.Groups[4].Captures.Count > 0) - bool.TryParse(m.Groups[4].Captures[0].ToString(), out returnToLauncher); - - return true; - } - - private static void RefreshCallback() - { - PostImportFunction(); - if (WwiseSettings.Exists) - { - AkPluginActivator.Update(); - AkPluginActivator.ActivatePluginsForEditor(); - } - } - - private static void PostImportFunction() - { -#if UNITY_2018_1_OR_NEWER - UnityEditor.EditorApplication.hierarchyChanged += CheckWwiseGlobalExistance; -#else - UnityEditor.EditorApplication.hierarchyWindowChanged += CheckWwiseGlobalExistance; -#endif - UnityEditor.EditorApplication.delayCall += CheckPicker; - - if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || UnityEditor.EditorApplication.isCompiling) - return; - - try - { - if (!string.IsNullOrEmpty(AkWwiseEditorSettings.Instance.WwiseProjectPath)) - { - AkWwisePicker.Refresh(ignoreIfWaapi: true); - if (AkWwiseProjectInfo.GetData().autoPopulateEnabled) - AkWwiseWWUBuilder.StartWWUWatcher(); - } - } - catch (System.Exception e) - { - UnityEngine.Debug.Log(e.ToString()); - } - - //Check if a WwiseGlobal object exists in the current scene - CheckWwiseGlobalExistance(); - } - - private static void RefreshPlugins() - { - if (string.IsNullOrEmpty(AkWwiseProjectInfo.GetData().CurrentPluginConfig)) - AkWwiseProjectInfo.GetData().CurrentPluginConfig = AkPluginActivator.CONFIG_PROFILE; - - AkPluginActivator.ActivatePluginsForEditor(); - } - - public static void CheckPicker() - { - if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode || UnityEditor.EditorApplication.isCompiling) - { - // Skip if not in the right mode, wait for the next callback to see if we can proceed then. - UnityEditor.EditorApplication.delayCall += CheckPicker; - return; - } - - var settings = AkWwiseEditorSettings.Instance; - if (!settings.CreatedPicker) - { - // Delete all the ghost tabs (Failed to load). - var windows = UnityEngine.Resources.FindObjectsOfTypeAll(); - if (windows != null && windows.Length > 0) - { - foreach (var window in windows) - { - var windowTitle = window.titleContent.text; - - if (windowTitle.Equals("Failed to load") || windowTitle.Equals("AkWwisePicker")) - { - try - { - window.Close(); - } - catch - { - // Do nothing here, this shouldn't cause any problem, however there has been - // occurrences of Unity crashing on a null reference inside that method. - } - } - } - } - - // TODO: If no scene is loaded and we are using the demo scene, automatically load it to display it. - - // Populate the picker - AkWwiseProjectInfo.GetData(); // Load data - if (!string.IsNullOrEmpty(settings.WwiseProjectPath)) - { - AkWwiseProjectInfo.Populate(); - AkWwisePicker.InitPickerWindow(); - - if (AkWwiseProjectInfo.GetData().autoPopulateEnabled) - AkWwiseWWUBuilder.StartWWUWatcher(); - - settings.CreatedPicker = true; - settings.SaveSettings(); - } - } - - UnityEditor.EditorApplication.delayCall += CheckPendingExecuteMethod; - } - - // TODO: Put this in AkUtilities? - private static void ExecuteMethod(string method) - { - string className = null; - string methodName = null; - - var r = new System.Text.RegularExpressions.Regex("(.+)\\.(.+)", - System.Text.RegularExpressions.RegexOptions.IgnoreCase); - - var m = r.Match(method); - - if (!m.Success || m.Groups.Count < 3 || m.Groups[1].Captures.Count < 1 || m.Groups[2].Captures.Count < 1) - { - UnityEngine.Debug.LogError("WwiseUnity: Error parsing wwiseExecuteMethod parameter: " + method); - return; - } - - className = m.Groups[1].Captures[0].ToString(); - methodName = m.Groups[2].Captures[0].ToString(); - - try - { - var type = System.Type.GetType(className); - if(type == null) - { - type = System.Type.GetType(className + ", Assembly-CSharp-Editor"); - } - var clearMethod = type.GetMethod(methodName, - System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public); - clearMethod.Invoke(null, null); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Exception caught when calling " + method + ": " + e); - } - } - - private static void CheckPendingExecuteMethod() - { - var arguments = System.Environment.GetCommandLineArgs(); - var indexOfCommand = System.Array.IndexOf(arguments, "-wwiseExecuteMethod"); - - if (!m_pendingExecuteMethodCalled && indexOfCommand != -1 && arguments.Length > indexOfCommand + 1) - { - var methodToExecute = arguments[indexOfCommand + 1]; - - ExecuteMethod(methodToExecute); - m_pendingExecuteMethodCalled = true; - } - } - - // Called when changes are made to the scene and when a new scene is created. - public static void CheckWwiseGlobalExistance() - { - var activeSceneName = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name; - if (!string.IsNullOrEmpty(s_CurrentScene) && s_CurrentScene.Equals(activeSceneName)) - return; - - var settings = AkWwiseEditorSettings.Instance; - // Look for a game object which has the initializer component - var AkInitializers = UnityEngine.Object.FindObjectsOfType(); - if (AkInitializers.Length == 0) - { - if (settings.CreateWwiseGlobal) - { - //No Wwise object in this scene, create one so that the sound engine is initialized and terminated properly even if the scenes are loaded - //in the wrong order. - var objWwise = new UnityEngine.GameObject("WwiseGlobal"); - - //Attach initializer and terminator components - UnityEditor.Undo.AddComponent(objWwise); - - } - } - else if (settings.CreateWwiseGlobal == false && AkInitializers[0].gameObject.name == "WwiseGlobal") - { - UnityEditor.Undo.DestroyObjectImmediate(AkInitializers[0].gameObject); - } - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - var bankHolder = UnityEngine.Object.FindObjectOfType(); - if (bankHolder == null) - { - UnityEngine.GameObject wwiseGlobalObject = UnityEngine.GameObject.Find("WwiseGlobal"); - if (wwiseGlobalObject != null) - { - bankHolder = UnityEditor.Undo.AddComponent(wwiseGlobalObject); - } - } - - if (bankHolder!=null && bankHolder.InitBank ==null) - { - - var initBankPath = System.IO.Path.Combine("Assets",settings.GeneratedSoundbanksPath,"Init.asset"); - var initbank = UnityEditor.AssetDatabase.LoadAssetAtPath(initBankPath); - bankHolder.InitBank = initbank; - EditorUtility.SetDirty(bankHolder); - } -#endif - - if (settings.CreateWwiseListener) - { - WwiseSetupWizard.AddAkAudioListenerToMainCamera(true); - } - - - s_CurrentScene = activeSceneName; - } -} - -#endif // UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs.meta deleted file mode 100644 index ab2dca0c3..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a0e7b46d0d61a7147a143e8075ae89d2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwiseSetupWizard.cs b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwiseSetupWizard.cs deleted file mode 100644 index a1c2a5828..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwiseSetupWizard.cs +++ /dev/null @@ -1,646 +0,0 @@ -#if UNITY_EDITOR -public class WwiseSetupWizard -{ - public static void RunModify() - { - try - { - UnityEngine.Debug.Log("WwiseUnity: Running modify setup..."); - - UnityEditor.SceneManagement.EditorSceneManager.NewScene(UnityEditor.SceneManagement.NewSceneSetup.DefaultGameObjects); - - ModifySetup(); - - UnityEngine.Debug.Log("WwiseUnity: Refreshing asset database."); - UnityEditor.AssetDatabase.Refresh(); - - // IMPORTANT: This log line is parsed by the Launcher. Do not modify it. - UnityEngine.Debug.Log("WwiseUnity: End of setup, exiting Unity."); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Exception caught: " + e); - } - } - - public static void RunSetup() - { - try - { - UnityEngine.Debug.Log("WwiseUnity: Running install setup..."); - - Setup(); - - UnityEngine.Debug.Log("WwiseUnity: Refreshing asset database."); - UnityEditor.AssetDatabase.Refresh(); - - // IMPORTANT: This log line is parsed by the Launcher. Do not modify it. - UnityEngine.Debug.Log("WwiseUnity: End of setup, exiting Unity."); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Exception caught: " + e); - } - } - - public static void RunDemoSceneSetup() - { - try - { - UnityEngine.Debug.Log("WwiseUnity: Running demo scene setup..."); - - Setup(); - - UnityEditor.SceneManagement.EditorSceneManager.OpenScene("Assets/WwiseDemoScene/WwiseDemoScene.unity"); - - UnityEngine.Debug.Log("WwiseUnity: Refreshing asset database."); - UnityEditor.AssetDatabase.Refresh(); - - UnityEngine.Debug.Log("WwiseUnity: End of demo scene setup, exiting Unity."); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Exception caught: " + e); - } - } - - private static int TotalNumberOfSections = 3; - private static void UpdateProgressBar(int sectionIndex, int subSectionIndex = 0, int totalSubSections = 1) - { - subSectionIndex = UnityEngine.Mathf.Clamp(subSectionIndex, 0, totalSubSections); - sectionIndex = UnityEngine.Mathf.Clamp(sectionIndex, 0, TotalNumberOfSections); - - float progress = ((float)subSectionIndex / totalSubSections + sectionIndex) / TotalNumberOfSections; - UnityEditor.EditorUtility.DisplayProgressBar("Wwise Integration", "Migration in progress - Please wait...", progress); - } - - public static void RunMigrate() - { - try - { - UnityEngine.Debug.Log("WwiseUnity: Running migration setup..."); - UnityEngine.Debug.Log("WwiseUnity: Reading parameters..."); - - var arguments = System.Environment.GetCommandLineArgs(); - string migrateStartString = null; - var indexMigrateStart = System.Array.IndexOf(arguments, "-wwiseInstallMigrateStart"); - - if (indexMigrateStart != -1) - migrateStartString = arguments[indexMigrateStart + 1]; - else - { - UnityEngine.Debug.LogError("WwiseUnity: ERROR: Missing parameter wwiseInstallMigrateStart."); - return; - } - - int migrateStart; - - if (!int.TryParse(migrateStartString, out migrateStart)) - { - UnityEngine.Debug.LogError("WwiseUnity: ERROR: wwiseInstallMigrateStart is not a number."); - return; - } - - PerformMigration(migrateStart - 1); - - UnityEditor.AssetDatabase.SaveAssets(); - - UnityEngine.Debug.Log("WwiseUnity: Refreshing asset database."); - UnityEditor.AssetDatabase.Refresh(); - - // IMPORTANT: This log line is parsed by the Launcher. Do not modify it. - UnityEngine.Debug.Log("WwiseUnity: End of setup, exiting Unity."); - } - catch (System.Exception e) - { - UnityEngine.Debug.LogError("WwiseUnity: Exception caught: " + e); - } - } - - private static void MigrateCurrentScene(System.Type[] wwiseComponentTypes) - { - var objectTypeMap = new System.Collections.Generic.Dictionary(); - - foreach (var objectType in wwiseComponentTypes) - { - // Get all objects in the scene with the specified type. - var objects = UnityEngine.Object.FindObjectsOfType(objectType); - if (objects != null && objects.Length > 0) - objectTypeMap[objectType] = objects; - } - - for (var ii = AkUtilities.MigrationStartIndex; ii < AkUtilities.MigrationStopIndex; ++ii) - { - var migrationMethodName = "Migrate" + ii; - var preMigrationMethodName = "PreMigration" + ii; - var postMigrationMethodName = "PostMigration" + ii; - - foreach (var objectTypePair in objectTypeMap) - { - var objectType = objectTypePair.Key; - var objects = objectTypePair.Value; - var className = objectType.Name; - - var preMigrationMethodInfo = objectType.GetMethod(preMigrationMethodName, - System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); - if (preMigrationMethodInfo != null) - { - UnityEngine.Debug.Log("WwiseUnity: PreMigration step <" + ii + "> for class <" + className + ">"); - preMigrationMethodInfo.Invoke(null, null); - } - - var migrationMethodInfo = objectType.GetMethod(migrationMethodName, - System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); - if (migrationMethodInfo != null) - { - UnityEngine.Debug.Log("WwiseUnity: Migration step <" + ii + "> for class <" + className + ">"); - - // Call the migration method of each object. - foreach (var currentObject in objects) - migrationMethodInfo.Invoke(currentObject, null); - } - - var postMigrationMethodInfo = objectType.GetMethod(postMigrationMethodName, - System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); - if (postMigrationMethodInfo != null) - { - UnityEngine.Debug.Log("WwiseUnity: PostMigration step <" + ii + "> for class <" + className + ">"); - postMigrationMethodInfo.Invoke(null, null); - } - } - } - } - - private static System.Type[] GetWwiseComponentTypes() - { - var wwiseComponentTypes = new System.Collections.Generic.List(); - - var wwiseComponentFolder = UnityEngine.Application.dataPath + "/Wwise/MonoBehaviour/Runtime"; - if (System.IO.Directory.Exists(wwiseComponentFolder)) - { - var files = new System.IO.DirectoryInfo(wwiseComponentFolder).GetFiles("*.cs", System.IO.SearchOption.AllDirectories); - foreach (var file in files) - { - var className = System.IO.Path.GetFileNameWithoutExtension(file.Name); - var objectType = System.Type.GetType(className + ", AK.Wwise.Unity.MonoBehaviour"); - if (objectType != null && objectType.IsSubclassOf(typeof(UnityEngine.Object))) - { - wwiseComponentTypes.Add(objectType); - } - } - } - - return wwiseComponentTypes.ToArray(); - } - - private static void MigrateObject(UnityEngine.Object obj) - { - if (obj == null) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Missing script! Please consider resolving the missing scripts before migrating your Unity project. Any WwiseType on this object will NOT be migrated!"); - return; - } - - var migratable = obj as AK.Wwise.IMigratable; - if (migratable == null && !AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.WwiseTypes_v2018_1_6)) - return; - - var hasChanged = false; - var serializedObject = new UnityEditor.SerializedObject(obj); - if (migratable != null) - hasChanged = migratable.Migrate(serializedObject); - else - hasChanged = AK.Wwise.TypeMigration.SearchAndProcessWwiseTypes(serializedObject.GetIterator()); - - if (hasChanged) - serializedObject.ApplyModifiedPropertiesWithoutUndo(); - } - - private static void MigratePrefabs() - { - var guids = UnityEditor.AssetDatabase.FindAssets("t:Prefab", new[] { "Assets" }); - for (var i = 0; i < guids.Length; i++) - { - UpdateProgressBar(0, i, guids.Length); - - var path = UnityEditor.AssetDatabase.GUIDToAssetPath(guids[i]); - UnityEngine.Debug.Log("WwiseUnity: Migrating prefab: " + path); - - var prefabObject = UnityEditor.AssetDatabase.LoadAssetAtPath(path); - if (prefabObject == null) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Failed to migrate prefab: " + path); - continue; - } - - var objects = prefabObject.GetComponents(); - -#if UNITY_2018_3_OR_NEWER - var instanceIds = new System.Collections.Generic.List(); - foreach (var obj in objects) - { - if (obj == null) - continue; - - var id = obj.GetInstanceID(); - if (!instanceIds.Contains(id)) - instanceIds.Add(id); - } - - for (; instanceIds.Count > 0; instanceIds.RemoveAt(0)) - { - var id = instanceIds[0]; - objects = prefabObject.GetComponents(); - foreach (var obj in objects) - { - if (obj && obj.GetInstanceID() == id) - { - MigrateObject(obj); - break; - } - } - } -#else - foreach (var obj in objects) - MigrateObject(obj); -#endif - } - } - - private static string[] ScriptableObjectGuids = null; - - private static bool ShouldProcessScriptableObject(UnityEngine.Object obj) - { - if (obj == null) - return true; - - if (!(obj is UnityEngine.ScriptableObject)) - return false; - - if (obj is UnityEngine.GUISkin) - return false; - - if (obj is AkWwiseProjectData) - return false; - - if (obj is AkWwiseInitializationSettings) - return false; - - if (obj is AkCommonPlatformSettings) - return false; - - if (obj is WwiseObjectReference) - return false; - - return true; - } - - private static void MigrateScriptableObjects() - { - var guids = ScriptableObjectGuids; - if (guids == null) - return; - - var processedGuids = new System.Collections.Generic.HashSet(); - - for (var i = 0; i < guids.Length; i++) - { - UpdateProgressBar(2, i, guids.Length); - - var guid = guids[i]; - if (processedGuids.Contains(guid)) - continue; - - processedGuids.Add(guid); - - var path = UnityEditor.AssetDatabase.GUIDToAssetPath(guid); - UnityEngine.Debug.Log("WwiseUnity: Migrating ScriptableObject: " + path); - - var objects = UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path); - foreach (var obj in objects) - { - if (ShouldProcessScriptableObject(obj)) - { - MigrateObject(obj); - } - } - } - } - - private static void MigrateScenes() - { - var wwiseComponentTypes = GetWwiseComponentTypes(); - var guids = UnityEditor.AssetDatabase.FindAssets("t:Scene", new[] { "Assets" }); - for (var i = 0; i < guids.Length; i++) - { - UpdateProgressBar(1, i, guids.Length); - - var path = UnityEditor.AssetDatabase.GUIDToAssetPath(guids[i]); - UnityEngine.Debug.Log("WwiseUnity: Migrating scene: " + path); - - UnityEditor.EditorUtility.UnloadUnusedAssetsImmediate(); - - var scene = UnityEditor.SceneManagement.EditorSceneManager.OpenScene(path); - - MigrateCurrentScene(wwiseComponentTypes); - - var objects = UnityEngine.Resources.FindObjectsOfTypeAll(); - -#if UNITY_2018_3_OR_NEWER - var instanceIds = new System.Collections.Generic.List(); - foreach (var obj in objects) - { - if (obj == null) - continue; - - var id = obj.GetInstanceID(); - if (!instanceIds.Contains(id)) - instanceIds.Add(id); - } - - for (; instanceIds.Count > 0; instanceIds.RemoveAt(0)) - { - var id = instanceIds[0]; - objects = UnityEngine.Resources.FindObjectsOfTypeAll(); - foreach (var obj in objects) - { - if (obj && obj.GetInstanceID() == id) - { - MigrateObject(obj); - break; - } - } - } -#else - foreach (var obj in objects) - { - var isPrefabInstance = false; - if (obj != null) - { -#if UNITY_2018_2 - isPrefabInstance = UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource(obj) != null; -#else - isPrefabInstance = UnityEditor.PrefabUtility.GetPrefabParent(obj) != null; -#endif - - if (!isPrefabInstance) - { - var isSceneObject = !UnityEditor.EditorUtility.IsPersistent(obj); - var isEditableAndSavable = (obj.hideFlags & (UnityEngine.HideFlags.NotEditable | UnityEngine.HideFlags.DontSave)) == 0; - if (!isSceneObject || !isEditableAndSavable) - continue; - } - } - - MigrateObject(obj); - - if (isPrefabInstance) - UnityEditor.PrefabUtility.RecordPrefabInstancePropertyModifications(obj); - } -#endif - - if (UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(scene)) - if (!UnityEditor.SceneManagement.EditorSceneManager.SaveScene(scene)) - throw new System.Exception("Error occurred while saving migrated scenes."); - - UnityEditor.SceneManagement.EditorSceneManager.CloseScene(scene, true); - } - } - - public static void PerformMigration(int migrateStart) - { - UpdateProgressBar(0); - - UnityEngine.Debug.Log("WwiseUnity: Migrating from Unity Integration Version " + migrateStart + " to " + AkUtilities.MigrationStopIndex); - - AkPluginActivator.DeactivateAllPlugins(); - AkPluginActivator.Update(); - AkPluginActivator.ActivatePluginsForEditor(); - - // Get the name of the currently opened scene. - var activeScene = UnityEngine.SceneManagement.SceneManager.GetActiveScene(); - var loadedScenePath = activeScene.path; - - if (!string.IsNullOrEmpty(loadedScenePath)) - AkUtilities.FixSlashes(ref loadedScenePath, '\\', '/', false); - - UnityEditor.SceneManagement.EditorSceneManager.NewScene(UnityEditor.SceneManagement.NewSceneSetup.DefaultGameObjects); - - // obtain a list of ScriptableObjects before any migration is performed - ScriptableObjectGuids = UnityEditor.AssetDatabase.FindAssets("t:ScriptableObject", new[] { "Assets" }); - - AkUtilities.BeginMigration(migrateStart); - - if (AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.NewScriptableObjectFolder_v2019_2_0)) - { - var oldScriptableObjectPath = System.IO.Path.Combine(System.IO.Path.Combine("Assets", "Wwise"), "Resources"); - AkUtilities.MoveFolder(oldScriptableObjectPath, AkWwiseEditorSettings.WwiseScriptableObjectRelativePath); - } - - AkWwiseProjectInfo.GetData().Migrate(); - AkWwiseWWUBuilder.UpdateWwiseObjectReferenceData(); - - MigratePrefabs(); - MigrateScenes(); - MigrateScriptableObjects(); - - UnityEditor.EditorUtility.UnloadUnusedAssetsImmediate(); - - UnityEditor.SceneManagement.EditorSceneManager.NewScene(UnityEditor.SceneManagement.NewSceneSetup.DefaultGameObjects); - AkUtilities.EndMigration(); - - UpdateProgressBar(TotalNumberOfSections); - - // Reopen the scene that was opened before the migration process started. - if (!string.IsNullOrEmpty(loadedScenePath)) - UnityEditor.SceneManagement.EditorSceneManager.OpenScene(loadedScenePath); - - UnityEngine.Debug.Log("WwiseUnity: Removing lock for launcher."); - - // TODO: Moving one folder up is not nice at all. How to find the current project path? - try - { - System.IO.File.Delete(UnityEngine.Application.dataPath + "/../.WwiseLauncherLockFile"); - } - catch - { - // Ignore if not present. - } - - UnityEditor.EditorUtility.ClearProgressBar(); - } - - public static void ModifySetup() - { - var currentConfig = AkPluginActivator.GetCurrentConfig(); - - if (string.IsNullOrEmpty(currentConfig)) - currentConfig = AkPluginActivator.CONFIG_PROFILE; - - AkPluginActivator.DeactivateAllPlugins(); - AkPluginActivator.Update(); - AkPluginActivator.ActivatePluginsForEditor(); - } - - // Perform all necessary steps to use the Wwise Unity integration. - private static void Setup() - { - UnityEditor.SceneManagement.EditorSceneManager.NewScene(UnityEditor.SceneManagement.NewSceneSetup.DefaultGameObjects); - - AkPluginActivator.DeactivateAllPlugins(); - - // 0. Make sure the SoundBank directory exists - var sbPath = AkUtilities.GetFullPath(UnityEngine.Application.streamingAssetsPath, AkWwiseEditorSettings.Instance.SoundbankPath); - if (!System.IO.Directory.Exists(sbPath)) - System.IO.Directory.CreateDirectory(sbPath); - - // 1. Disable built-in audio - if (!DisableBuiltInAudio()) - { - UnityEngine.Debug.LogWarning( - "WwiseUnity: Could not disable built-in audio. Please disable built-in audio by going to Project->Project Settings->Audio, and check \"Disable Audio\"."); - } - - // 2. Create a "WwiseGlobal" game object and set the AkSoundEngineInitializer and terminator scripts - // 3. Set the SoundBank path property on AkSoundEngineInitializer - CreateWwiseGlobalObject(); - - // 5. Disable the built-in audio listener, and add AkAudioListener component to camera - if (AkWwiseEditorSettings.Instance.CreateWwiseListener) - { - AddAkAudioListenerToMainCamera(); - } - - // 6. Enable "Run In Background" in PlayerSettings (PlayerSettings.runInbackground property) - UnityEditor.PlayerSettings.runInBackground = true; - - AkPluginActivator.Update(); - AkPluginActivator.ActivatePluginsForEditor(); - - // 9. Activate WwiseIDs file generation, and point Wwise to the Assets/Wwise folder - // 10. Change the SoundBanks options so it adds Max Radius information in the Wwise project - if (!SetSoundbankSettings()) - UnityEngine.Debug.LogWarning("WwiseUnity: Could not modify Wwise Project to generate the header file!"); - - // 11. Activate XboxOne network sockets. - AkXboxOneUtils.EnableXboxOneNetworkSockets(); - } - - // Create a Wwise Global object containing the initializer and terminator scripts. Set the SoundBank path of the initializer script. - // This game object will live for the whole project; there is no need to instanciate one per scene. - private static void CreateWwiseGlobalObject() - { - // Look for a game object which has the initializer component - var AkInitializers = UnityEngine.Object.FindObjectsOfType(); - if (AkInitializers.Length > 0) - UnityEditor.Undo.DestroyObjectImmediate(AkInitializers[0].gameObject); - - var WwiseGlobalGameObject = new UnityEngine.GameObject("WwiseGlobal"); - - // attach initializer component - UnityEditor.Undo.AddComponent(WwiseGlobalGameObject); - - // Set focus on WwiseGlobal - UnityEditor.Selection.activeGameObject = WwiseGlobalGameObject; - } - - private static bool DisableBuiltInAudio() - { - UnityEditor.SerializedObject audioSettingsAsset = null; - UnityEditor.SerializedProperty disableAudioProperty = null; - - var assets = UnityEditor.AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/AudioManager.asset"); - if (assets.Length > 0) - audioSettingsAsset = new UnityEditor.SerializedObject(assets[0]); - - if (audioSettingsAsset != null) - disableAudioProperty = audioSettingsAsset.FindProperty("m_DisableAudio"); - - if (disableAudioProperty == null) - return false; - - disableAudioProperty.boolValue = true; - audioSettingsAsset.ApplyModifiedProperties(); - return true; - } - - // Modify the .wproj file to set needed SoundBank settings - private static bool SetSoundbankSettings() - { - var settings = AkWwiseEditorSettings.Instance; - if (string.IsNullOrEmpty(settings.WwiseProjectPath)) - return true; - - var r = new System.Text.RegularExpressions.Regex("_WwiseIntegrationTemp.*?([/\\\\])"); - var SoundbankPath = AkUtilities.GetFullPath(r.Replace(UnityEngine.Application.streamingAssetsPath, "$1"), settings.SoundbankPath); - var WprojPath = AkUtilities.GetFullPath(UnityEngine.Application.dataPath, settings.WwiseProjectPath); -#if UNITY_EDITOR_OSX - SoundbankPath = "Z:" + SoundbankPath; -#endif - - SoundbankPath = AkUtilities.MakeRelativePath(System.IO.Path.GetDirectoryName(WprojPath), SoundbankPath); - if (AkUtilities.EnableBoolSoundbankSettingInWproj("SoundBankGenerateHeaderFile", WprojPath)) - if (AkUtilities.SetSoundbankHeaderFilePath(WprojPath, SoundbankPath)) - return AkUtilities.EnableBoolSoundbankSettingInWproj("SoundBankGenerateMaxAttenuationInfo", WprojPath); - - return false; - } - - public static void AddAkAudioListenerToMainCamera(bool logWarning = false) - { - UnityEngine.Camera camera = UnityEngine.Camera.main; - - // Workaround for some versions of Unity not setting properly the MainCamera tag - // on the first scene of a new project - if (camera == null) - { - var cameraArray = UnityEngine.Object.FindObjectsOfType(); - if (cameraArray.Length > 0) - { - foreach (var entry in cameraArray) - { - if (entry.name == "Main Camera") - { - camera = entry; - break; - } - } - } - - if (camera == null) - { - return; - } - } - - if (camera.GetComponentInChildren()) - { - return; - } - - var oldListener = camera.gameObject.GetComponent(); - if (oldListener != null) - { - UnityEditor.Undo.DestroyObjectImmediate(oldListener); - } - - var akAudioListener = UnityEditor.Undo.AddComponent(camera.gameObject); - if (!akAudioListener) - { - return; - } - - var akGameObj = akAudioListener.GetComponentInChildren(); - if (akGameObj) - { - akGameObj.isEnvironmentAware = false; - } - - if (logWarning) - { - UnityEngine.Debug.LogWarning("Automatically added AkAudioListener to Main Camera. Go to \"Edit > Wwise Settings...\" to disable this functionality."); - } - } -} - -#endif // UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwiseSetupWizard.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwiseSetupWizard.cs.meta deleted file mode 100644 index 1943e2133..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkWwiseSetupWizard.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7a302224300958240963b759fa636d16 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkXboxOneUtils.cs b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkXboxOneUtils.cs deleted file mode 100644 index 291057313..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkXboxOneUtils.cs +++ /dev/null @@ -1,39 +0,0 @@ -public static class AkXboxOneUtils -{ - private static readonly int[] Usages = { 0, 1, 4, 7 }; - private static readonly int SessionRequirement = 0; - private static readonly int[] DeviceUsages = { 0 }; - - [UnityEditor.MenuItem("Assets/Wwise/Xbox One/Enable Network Sockets")] - public static void EnableXboxOneNetworkSockets() - { - var definitions = new[] - { - new SocketDefinition("WwiseDiscoverySocket", "24024", 1, "WwiseDiscovery"), - new SocketDefinition("WwiseCommandSocket", "24025", 0, "WwiseCommand"), - new SocketDefinition("WwiseNotificationSocket", "24026", 0, "WwiseNotification") - }; - - foreach (var def in definitions) - { - UnityEditor.PlayerSettings.XboxOne.SetSocketDefinition(def.Name, def.Port, def.Protocol, Usages, def.TemplateName, - SessionRequirement, DeviceUsages); - } - } - - private class SocketDefinition - { - public readonly string Name; - public readonly string Port; - public readonly int Protocol; - public readonly string TemplateName; - - public SocketDefinition(string name, string port, int protocol, string templateName) - { - Name = name; - Port = port; - Protocol = protocol; - TemplateName = templateName; - } - } -} \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkXboxOneUtils.cs.meta b/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkXboxOneUtils.cs.meta deleted file mode 100644 index cbd54db21..000000000 --- a/Assets/Wwise/MonoBehaviour/Editor/WwiseSetupWizard/AkXboxOneUtils.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 00a1d7fbaa288cf42ba756aa12f301e1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/LICENSE.md b/Assets/Wwise/MonoBehaviour/LICENSE.md deleted file mode 100644 index 5cfd6f070..000000000 --- a/Assets/Wwise/MonoBehaviour/LICENSE.md +++ /dev/null @@ -1,11 +0,0 @@ -The content of this file includes portions of the AUDIOKINETIC Wwise Technology -released in source code form as part of the Wwise Unity integration installer package - -Commercial License Usage - -Licensees holding valid commercial 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) 2020 Audiokinetic Inc. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/LICENSE.md.meta b/Assets/Wwise/MonoBehaviour/LICENSE.md.meta deleted file mode 100644 index 2ea272882..000000000 --- a/Assets/Wwise/MonoBehaviour/LICENSE.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7f08cabfe76e1384b86d22b300a237bd -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/README.md b/Assets/Wwise/MonoBehaviour/README.md deleted file mode 100644 index 40dc894ea..000000000 --- a/Assets/Wwise/MonoBehaviour/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Unity Wwise MonoBehaviour integration - -This package adds high-level MonoBehaviour components to use Wwise in Unity. - -## Usage - -See [Unity Wwise Components](https://www.audiokinetic.com/library/edge/?source=Unity&id=pg__wwise_components.html) for more information about how to use the package. - -## Requirements - -* AK.Wwise.Unity.API == 2020.1.0 - -## Legal - -Copyright © 2020 Audiokinetic Inc. All rights reserved. diff --git a/Assets/Wwise/MonoBehaviour/README.md.meta b/Assets/Wwise/MonoBehaviour/README.md.meta deleted file mode 100644 index adea36a8e..000000000 --- a/Assets/Wwise/MonoBehaviour/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4103ddb1e9ebf8449832a211df27d2d7 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime.meta b/Assets/Wwise/MonoBehaviour/Runtime.meta deleted file mode 100644 index 820353d88..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cb617772c91e7d345beb43159beafb54 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AK.Wwise.Unity.MonoBehaviour.asmdef b/Assets/Wwise/MonoBehaviour/Runtime/AK.Wwise.Unity.MonoBehaviour.asmdef deleted file mode 100644 index 2d3ce9037..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AK.Wwise.Unity.MonoBehaviour.asmdef +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "AK.Wwise.Unity.MonoBehaviour", - "references": [ - "AK.Wwise.Unity.API", - "Unity.Addressables", - "Unity.ResourceManager", - "AK.Wwise.Unity.API.WwiseTypes", - "AK.Wwise.Unity.Addressables" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "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 -} \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AK.Wwise.Unity.MonoBehaviour.asmdef.meta b/Assets/Wwise/MonoBehaviour/Runtime/AK.Wwise.Unity.MonoBehaviour.asmdef.meta deleted file mode 100644 index a57c0b2c0..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AK.Wwise.Unity.MonoBehaviour.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 195024c39cd46254eb4c6fd7b475de6b -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbient.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkAmbient.cs deleted file mode 100644 index 5ef4e9d48..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbient.cs +++ /dev/null @@ -1,295 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public enum MultiPositionTypeLabel -{ - Simple_Mode, - Large_Mode, - MultiPosition_Mode -} - -public class AkMultiPosEvent -{ - public bool eventIsPlaying; - public System.Collections.Generic.List list = new System.Collections.Generic.List(); - - public void FinishedPlaying(object in_cookie, AkCallbackType in_type, object in_info) - { - eventIsPlaying = false; - } -} - -[UnityEngine.AddComponentMenu("Wwise/AkAmbient")] -/// @brief Use this component to attach a Wwise Event to any object in a scene. -/// The sound can be started at various moments, dependent on the selected Unity trigger. This component is more useful for ambient sounds (sounds related to scene-bound objects) but could also be used for other purposes. -/// Since AkAmbient has AkEvent as its base class, it features the play/stop, play multiple, stop multiple and stop all buttons for previewing the associated Wwise event. -/// \sa -/// - \ref unity_use_AkEvent_AkAmbient -/// - \ref AkGameObj -/// - \ref AkEvent -/// - Integration Details - Events (Note: This is described in the Wwise SDK documentation.) -public class AkAmbient : AkEvent -{ - public static System.Collections.Generic.Dictionary multiPosEventTree = - new System.Collections.Generic.Dictionary(); - - public AkMultiPositionType MultiPositionType = AkMultiPositionType.MultiPositionType_MultiSources; - public MultiPositionTypeLabel multiPositionTypeLabel = MultiPositionTypeLabel.Simple_Mode; - - private static UnityEngine.Color SPHERE_DEFAULT_COLOR = new UnityEngine.Color(1.0f, 0.0f, 0.0f, 0.1f); - public UnityEngine.Color attenuationSphereColor= SPHERE_DEFAULT_COLOR; - - public AkAmbientLargeModePositioner[] LargeModePositions; - - public override void OnEnable() - { -#if UNITY_EDITOR - if (UnityEngine.Application.isBatchMode) - { - return; - } -#endif - if (multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode) - { - var gameObj = gameObject.GetComponents(); - for (var i = 0; i < gameObj.Length; i++) - gameObj[i].enabled = false; - - AkMultiPosEvent eventPosList; - - if (multiPosEventTree.TryGetValue(data.Id, out eventPosList)) - { - if (!eventPosList.list.Contains(this)) - eventPosList.list.Add(this); - } - else - { - eventPosList = new AkMultiPosEvent(); - eventPosList.list.Add(this); - multiPosEventTree.Add(data.Id, eventPosList); - } - - var positionArray = BuildMultiDirectionArray(eventPosList); - //Set multiple positions - AkSoundEngine.SetMultiplePositions(eventPosList.list[0].gameObject, positionArray, (ushort) positionArray.Count, - MultiPositionType); - } - base.OnEnable(); - } - - protected override void Start() - { - base.Start(); - - if (multiPositionTypeLabel == MultiPositionTypeLabel.Simple_Mode) - { - var gameObj = gameObject.GetComponents(); - for (var i = 0; i < gameObj.Length; i++) - gameObj[i].enabled = true; - } - else if (multiPositionTypeLabel == MultiPositionTypeLabel.Large_Mode) - { -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying || UnityEngine.Application.isBatchMode) - { - return; - } -#endif - var gameObj = gameObject.GetComponents(); - for (var i = 0; i < gameObj.Length; i++) - gameObj[i].enabled = false; - - var positionArray = BuildAkPositionArray(); - AkSoundEngine.SetMultiplePositions(gameObject, positionArray, (ushort)positionArray.Count, MultiPositionType); - } - } - - private void OnDisable() - { - if (multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode) - { - var eventPosList = multiPosEventTree[data.Id]; - - if (eventPosList.list.Count == 1) - multiPosEventTree.Remove(data.Id); - else - { - eventPosList.list.Remove(this); - - var positionArray = BuildMultiDirectionArray(eventPosList); - AkSoundEngine.SetMultiplePositions(eventPosList.list[0].gameObject, positionArray, (ushort) positionArray.Count, - MultiPositionType); - } - } - } - - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - if (multiPositionTypeLabel != MultiPositionTypeLabel.MultiPosition_Mode) - { - base.HandleEvent(in_gameObject); - } - else - { - var multiPositionSoundEmitter = multiPosEventTree[data.Id]; - if (multiPositionSoundEmitter.eventIsPlaying) - return; - - multiPositionSoundEmitter.eventIsPlaying = true; - - soundEmitterObject = multiPositionSoundEmitter.list[0].gameObject; - - if (enableActionOnEvent) - data.ExecuteAction(soundEmitterObject, actionOnEventType, (int)transitionDuration * 1000, curveInterpolation); - else - playingId = data.Post(soundEmitterObject, (uint)AkCallbackType.AK_EndOfEvent, multiPositionSoundEmitter.FinishedPlaying); - } - } - - public void OnDrawGizmosSelected() - { - if (!enabled) - { - return; - } - - UnityEngine.Gizmos.DrawIcon(transform.position, "WwiseAudioSpeaker.png", false); - -#if UNITY_EDITOR - if (multiPositionTypeLabel == MultiPositionTypeLabel.Large_Mode) - { - foreach (var entry in LargeModePositions) - { - if (entry != null) - { - UnityEngine.Gizmos.color = UnityEngine.Color.green; - UnityEngine.Gizmos.DrawSphere(entry.transform.position, 0.1f); - - UnityEditor.Handles.Label(entry.transform.position, entry.name); - - AkRadialEmitter radialEmitter = GetComponent(); - if (radialEmitter) - { - UnityEngine.Color SphereColor = UnityEngine.Color.yellow; - SphereColor.a = 0.25f; - UnityEngine.Gizmos.color = SphereColor; - - UnityEngine.Gizmos.DrawSphere(entry.transform.position, radialEmitter.innerRadius); - UnityEngine.Gizmos.DrawSphere(entry.transform.position, radialEmitter.outerRadius); - } - } - } - } -#endif - } - - public AkPositionArray BuildMultiDirectionArray(AkMultiPosEvent eventPosList) - { - var positionArray = new AkPositionArray((uint) eventPosList.list.Count); - for (var i = 0; i < eventPosList.list.Count; i++) - { - positionArray.Add(eventPosList.list[i].transform.position, eventPosList.list[i].transform.forward, - eventPosList.list[i].transform.up); - } - - return positionArray; - } - - private AkPositionArray BuildAkPositionArray() - { - var validPositionList = new System.Collections.Generic.List(); - - for( int i= 0; i < LargeModePositions.Length; ++i) - { - if (LargeModePositions[i] != null) - { - if (!validPositionList.Contains(LargeModePositions[i])) - { - validPositionList.Add(LargeModePositions[i]); - } - } - } - - var positionArray = new AkPositionArray((uint)validPositionList.Count); - for (int i = 0; i < validPositionList.Count; ++i) - { - positionArray.Add(validPositionList[i].Position, validPositionList[i].Forward, validPositionList[i].Up); - } - - return positionArray; - } - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - public System.Collections.Generic.List multiPositionArray = null; -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - public override bool Migrate(UnityEditor.SerializedObject obj) - { - var hasMigrated = base.Migrate(obj); - - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.AkAmbient_v2019_1_0)) - { - return hasMigrated; - } - - var multiPositionTypeLabelProperty = obj.FindProperty("multiPositionTypeLabel"); - if (multiPositionTypeLabelProperty == null) - { - return hasMigrated; - } - - if (multiPositionTypeLabelProperty.intValue != (int)MultiPositionTypeLabel.Large_Mode) - { - return hasMigrated; - } - - var multiPositionArrayProperty = obj.FindProperty("multiPositionArray"); - if (multiPositionArrayProperty == null) - { - return hasMigrated; - } - - if (multiPositionArrayProperty.arraySize == 0) - { - return hasMigrated; - } - - var largeModePositionsProperty = obj.FindProperty("LargeModePositions"); - if (largeModePositionsProperty == null) - { - return hasMigrated; - } - - largeModePositionsProperty.arraySize = multiPositionArrayProperty.arraySize; - - for (int point = 0; point < multiPositionArrayProperty.arraySize; ++point) - { - var elementProperty = multiPositionArrayProperty.GetArrayElementAtIndex(point); - - var largeModePositionElementProperty = largeModePositionsProperty.GetArrayElementAtIndex(point); - if (largeModePositionElementProperty != null) - { - var newPoint = new UnityEngine.GameObject("AkAmbientPoint" + point.ToString()); - newPoint.AddComponent(); - newPoint.transform.SetParent(transform); - newPoint.transform.position = transform.TransformPoint(elementProperty.vector3Value); - - largeModePositionElementProperty.objectReferenceValue = newPoint.GetComponent(); - } - } - - multiPositionArrayProperty.arraySize = 0; - return true; - } -#endif - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbient.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkAmbient.cs.meta deleted file mode 100644 index 4e0895e16..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbient.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e6a98c45007fbec48b47b122c40889c3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbientLargeModePositioner.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkAmbientLargeModePositioner.cs deleted file mode 100644 index 024021c9d..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbientLargeModePositioner.cs +++ /dev/null @@ -1,43 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -/// @brief Use this component to add a Large Mode position to any AkAmbient in a Scene. -/// \sa -/// - \ref unity_use_AkEvent_AkAmbient -/// - \ref AkAmbient -public class AkAmbientLargeModePositioner : UnityEngine.MonoBehaviour -{ - public UnityEngine.Vector3 Position - { - get - { - return transform.position; - } - } - - public UnityEngine.Vector3 Forward - { - get - { - return transform.forward; - } - } - - public UnityEngine.Vector3 Up - { - get - { - return transform.up; - } - } - -#if UNITY_EDITOR - void OnDrawGizmosSelected() - { - UnityEngine.Gizmos.color = UnityEngine.Color.green; - UnityEngine.Gizmos.DrawSphere(transform.position, 0.1f); - - UnityEditor.Handles.Label(transform.position, name); - } -#endif -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbientLargeModePositioner.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkAmbientLargeModePositioner.cs.meta deleted file mode 100644 index 2f74cd0e8..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkAmbientLargeModePositioner.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: da37d49e036a3cf4bb6a17e6f506ccc3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkAudioListener.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkAudioListener.cs deleted file mode 100644 index c2bc43a6e..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkAudioListener.cs +++ /dev/null @@ -1,188 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkAudioListener")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -[UnityEngine.DisallowMultipleComponent] -[UnityEngine.DefaultExecutionOrder(-50)] -///@brief Add this script on the game object that represent a listener. This is normally added to the Camera object or the Player object, but can be added to any game object when implementing 3D busses. \c isDefaultListener determines whether the game object will be considered a default listener - a listener that automatically listens to all game objects that do not have listeners attached to their AkGameObjListenerList's. -/// \sa -/// - Integrating Listeners (Note: This is described in the Wwise SDK documentation.) -public class AkAudioListener : UnityEngine.MonoBehaviour -{ - private static readonly DefaultListenerList defaultListeners = new DefaultListenerList(); - private ulong akGameObjectID = AkSoundEngine.AK_INVALID_GAME_OBJECT; - private System.Collections.Generic.List EmittersToStartListeningTo = - new System.Collections.Generic.List(); - private System.Collections.Generic.List EmittersToStopListeningTo = - new System.Collections.Generic.List(); - - public bool isDefaultListener = true; - - public static DefaultListenerList DefaultListeners - { - get { return defaultListeners; } - } - - public void StartListeningToEmitter(AkGameObj emitter) - { - EmittersToStartListeningTo.Add(emitter); - EmittersToStopListeningTo.Remove(emitter); - } - - public void StopListeningToEmitter(AkGameObj emitter) - { - EmittersToStartListeningTo.Remove(emitter); - EmittersToStopListeningTo.Add(emitter); - } - - public void SetIsDefaultListener(bool isDefault) - { - if (isDefaultListener != isDefault) - { - isDefaultListener = isDefault; - - if (isDefault) - DefaultListeners.Add(this); - else - DefaultListeners.Remove(this); - } - } - - private void Awake() - { - var akGameObj = GetComponent(); - UnityEngine.Debug.Assert(akGameObj != null); - if (akGameObj) - akGameObj.Register(); - - akGameObjectID = AkSoundEngine.GetAkGameObjectID(gameObject); - } - - private void OnEnable() - { - if (isDefaultListener) - DefaultListeners.Add(this); - } - - private void OnDisable() - { - if (isDefaultListener) - DefaultListeners.Remove(this); - } - - private void Update() - { - for (var i = 0; i < EmittersToStartListeningTo.Count; ++i) - EmittersToStartListeningTo[i].AddListener(this); - EmittersToStartListeningTo.Clear(); - - for (var i = 0; i < EmittersToStopListeningTo.Count; ++i) - EmittersToStopListeningTo[i].RemoveListener(this); - EmittersToStopListeningTo.Clear(); - } - - public ulong GetAkGameObjectID() - { - return akGameObjectID; - } - - public class BaseListenerList - { - // @todo: Use HashSet and CopyTo() with a private ulong[] - private readonly System.Collections.Generic.List listenerIdList = new System.Collections.Generic.List(); - - private readonly System.Collections.Generic.List listenerList = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List ListenerList - { - get { return listenerList; } - } - - /// - /// Uniquely adds listeners to the list - /// - /// - /// - public virtual bool Add(AkAudioListener listener) - { - if (listener == null) - return false; - - var gameObjectId = listener.GetAkGameObjectID(); - if (listenerIdList.Contains(gameObjectId)) - return false; - - listenerIdList.Add(gameObjectId); - listenerList.Add(listener); - return true; - } - - /// - /// Removes listeners from the list - /// - /// - /// - public virtual bool Remove(AkAudioListener listener) - { - if (listener == null) - return false; - - var gameObjectId = listener.GetAkGameObjectID(); - if (!listenerIdList.Remove(gameObjectId)) - return false; - - listenerList.Remove(listener); - return true; - } - - public ulong[] GetListenerIds() - { - return listenerIdList.ToArray(); - } - } - - public class DefaultListenerList : BaseListenerList - { - public override bool Add(AkAudioListener listener) - { - var ret = base.Add(listener); - if (ret && AkSoundEngine.IsInitialized()) - AkSoundEngine.AddDefaultListener(listener.gameObject); - return ret; - } - - public override bool Remove(AkAudioListener listener) - { - var ret = base.Remove(listener); - if (ret && AkSoundEngine.IsInitialized()) - AkSoundEngine.RemoveDefaultListener(listener.gameObject); - return ret; - } - } - - #region WwiseMigration - -#pragma warning disable 0414 // private field assigned but not used. - - [UnityEngine.SerializeField] - // Wwise v2016.2 and below supported up to 8 listeners[0-7]. - public int listenerId = 0; - -#pragma warning restore 0414 // private field assigned but not used. - - public void Migrate14() - { - var wasDefaultListener = listenerId == 0; - UnityEngine.Debug.Log("WwiseUnity: AkAudioListener.Migrate14 for " + gameObject.name); - isDefaultListener = wasDefaultListener; - } - - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkAudioListener.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkAudioListener.cs.meta deleted file mode 100644 index 84c7a3dc6..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkAudioListener.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4ae335524e949404bb57f1612ec4b9b5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -50 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkBank.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkBank.cs deleted file mode 100644 index 5f3cf8352..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkBank.cs +++ /dev/null @@ -1,134 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkBank")] -[UnityEngine.ExecuteInEditMode] -[UnityEngine.DefaultExecutionOrder(-75)] -/// @brief Loads and unloads a SoundBank at a specified moment. Vorbis sounds can be decompressed at a specified moment using the decode compressed data option. In that case, the SoundBank will be prepared. -public class AkBank : AkTriggerHandler -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - public AK.Wwise.Bank data = new AK.Wwise.Bank(); - - /// Decode this SoundBank upon load - public bool decodeBank = false; - - /// Check this to load the SoundBank in the background. Be careful, if Events are triggered and the SoundBank hasn't finished loading, you'll have "Event not found" errors. - public bool loadAsynchronous = false; - - /// Save the decoded SoundBank to disk for faster loads in the future - public bool saveDecodedBank = false; - - /// Reserved. - public System.Collections.Generic.List unloadTriggerList = - new System.Collections.Generic.List { DESTROY_TRIGGER_ID }; - - protected override void Awake() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; - - var reference = AkWwiseTypes.DragAndDropObjectReference; - if (reference) - { - UnityEngine.GUIUtility.hotControl = 0; - data.ObjectReference = reference; - } -#endif - - base.Awake(); - - RegisterTriggers(unloadTriggerList, UnloadBank); - } - - protected override void Start() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; -#endif - - base.Start(); - - //Call the UnloadBank function if registered to the Start Trigger - if (unloadTriggerList.Contains(START_TRIGGER_ID)) - UnloadBank(null); - } - - /// Loads the SoundBank - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - if (!loadAsynchronous) - data.Load(decodeBank, saveDecodedBank); - else - data.LoadAsync(); - } - - /// Unloads a SoundBank - public void UnloadBank(UnityEngine.GameObject in_gameObject) - { - data.Unload(); - } - - protected override void OnDestroy() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; -#endif - - base.OnDestroy(); - - UnregisterTriggers(unloadTriggerList, UnloadBank); - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public string bankName { get { return data == null ? string.Empty : data.Name; } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] valueGuid - { - get - { - if (data == null) - return null; - - var objRef = data.ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("bankName")] - private string bankNameInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueGuid")] - private byte[] valueGuidInternal; -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.WwiseTypes_v2018_1_6)) - return false; - - return AK.Wwise.TypeMigration.ProcessSingleGuidType(obj.FindProperty("data.WwiseObjectReference"), WwiseObjectType.Soundbank, - obj.FindProperty("valueGuidInternal"), obj.FindProperty("bankNameInternal")); - } -#endif - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkBank.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkBank.cs.meta deleted file mode 100644 index a10eacb18..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkBank.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d1f1a89fa3598c644a67edc70006ab8b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -75 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEarlyReflections.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkEarlyReflections.cs deleted file mode 100644 index f42904eee..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEarlyReflections.cs +++ /dev/null @@ -1,40 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkEarlyReflections")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -[UnityEngine.DisallowMultipleComponent] -///@brief Set an early reflections auxiliary bus and send volume for a particular game object. -public class AkEarlyReflections : UnityEngine.MonoBehaviour -{ - [UnityEngine.Tooltip("The early reflections auxiliary bus for all sounds playing on this particular game object. The early reflection auxiliary bus specified in the authoring tool has precedence.")] - /// The early reflections auxiliary bus for this particular game object. - /// Geometrical reflection calculation inside spatial audio is enabled for a game object if any sound playing on the game object has a valid early reflections aux bus specified in the authoring tool, - /// or if an aux bus is specified via this parameter. The early reflection auxiliary bus specified in the authoring tool has precedence. - /// Users may apply this function to avoid duplicating sounds in the actor-mixer hierarchy solely for the sake of specifying a unique early reflection bus, or in any situation where the same - /// sound should be played on different game objects with different early reflection aux buses (the early reflection bus must be left blank in the authoring tool if the user intends to specify it through the API). - public AK.Wwise.AuxBus reflectionsAuxBus = new AK.Wwise.AuxBus(); - - [UnityEngine.Range(0, 1)] - [UnityEngine.Tooltip("The early reflections send volume for all sounds playing on this particular game object. It is combined with the early reflections volume specified in the authoring tool.")] - /// The early reflections send volume for this particular game object. - /// This parameter is used to control the volume of the early reflections send. It is combined with the early reflections volume specified in the authoring tool, and is applied to all sounds playing on the game object. - /// Setting to 0.f will disable all reflection processing for this game object. Valid range 0.f-1.f. - public float reflectionsVolume = 1; - - private void OnEnable() - { - if (reflectionsAuxBus != null) - AkSoundEngine.SetEarlyReflectionsAuxSend(gameObject, reflectionsAuxBus.Id); - - AkSoundEngine.SetEarlyReflectionsVolume(gameObject, reflectionsVolume); - } - - public void SetEarlyReflectionsVolume(float volume) - { - if (reflectionsVolume != volume) - { - AkSoundEngine.SetEarlyReflectionsVolume(gameObject, volume); - reflectionsVolume = volume; - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEarlyReflections.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkEarlyReflections.cs.meta deleted file mode 100644 index 068d5dbf7..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEarlyReflections.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d47632552aa0da4428ba10a9f6e1cfc5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEmitterObstructionOcclusion.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkEmitterObstructionOcclusion.cs deleted file mode 100644 index ab76c051e..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEmitterObstructionOcclusion.cs +++ /dev/null @@ -1,43 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkEmitterObstructionOcclusion")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -/// @brief Completely obstructs/occludes the emitter of the current game object from its listeners if at least one object is between them. -public class AkEmitterObstructionOcclusion : AkObstructionOcclusion -{ - private AkGameObj m_gameObj; - - private void Awake() - { - InitIntervalsAndFadeRates(); - m_gameObj = GetComponent(); - } - - protected override void UpdateCurrentListenerList() - { - if (AkSpatialAudioListener.TheSpatialAudioListener != null && AkRoom.RoomCount > 0) - { - currentListenerList.Add(AkSpatialAudioListener.TheSpatialAudioListener); - return; - } - - if (m_gameObj.IsUsingDefaultListeners) - currentListenerList.AddRange(AkAudioListener.DefaultListeners.ListenerList); - currentListenerList.AddRange(m_gameObj.ListenerList); - } - - protected override void SetObstructionOcclusion( - System.Collections.Generic.KeyValuePair ObsOccPair) - { - if (AkSpatialAudioListener.TheSpatialAudioListener != null && AkRoom.RoomCount > 0) - AkSoundEngine.SetObjectObstructionAndOcclusion(gameObject, ObsOccPair.Key.gameObject, ObsOccPair.Value.currentValue, 0.0f); - else - AkSoundEngine.SetObjectObstructionAndOcclusion(gameObject, ObsOccPair.Key.gameObject, 0.0f, ObsOccPair.Value.currentValue); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEmitterObstructionOcclusion.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkEmitterObstructionOcclusion.cs.meta deleted file mode 100644 index 957dd6338..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEmitterObstructionOcclusion.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 696b0e79afa8c8f488bc5457df688a7d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironment.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironment.cs deleted file mode 100644 index d5401306d..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironment.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkEnvironment")] -[UnityEngine.RequireComponent(typeof(UnityEngine.Collider))] -[UnityEngine.ExecuteInEditMode] -/// @brief Use this component to define a reverb zone. This needs to be added to a collider object to work properly. See \ref unity_use_AkEnvironment_AkEnvironmentPortal. -/// @details This component can be attached to any collider. You can specify a roll-off to fade-in/out of the reverb. -/// The reverb parameters will be defined in the Wwise project, by the sound designer. All AkGameObj that are -/// "environment"-aware will receive a send value when entering the attached collider. -/// \sa -/// - \ref unity_use_AkEnvironment_AkEnvironmentPortal -/// - Integrating Environments and Game-defined Auxiliary Sends (Note: This is described in the Wwise SDK documentation.) -/// - AK::SoundEngine::SetGameObjectAuxSendValues (Note: This is described in the Wwise SDK documentation.) -public class AkEnvironment : UnityEngine.MonoBehaviour -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - public const int MAX_NB_ENVIRONMENTS = 4; - - public static AkEnvironment_CompareByPriority s_compareByPriority = new AkEnvironment_CompareByPriority(); - - public static AkEnvironment_CompareBySelectionAlgorithm s_compareBySelectionAlgorithm = - new AkEnvironment_CompareBySelectionAlgorithm(); - - //if excludeOthers, then only the environment with the excludeOthers flag set to true and with the highest priority will be active - public bool excludeOthers = false; - - //if isDefault, then this environment will be bumped out if any other is present - public bool isDefault = false; - - public AK.Wwise.AuxBus data = new AK.Wwise.AuxBus(); - - //Cache of the colliders for this environment, to avoid calls to GetComponent. - public UnityEngine.Collider Collider { get; private set; } - - //smaller number has a higher priority - public int priority = 0; - - public void Awake() - { -#if UNITY_EDITOR - var reference = AkWwiseTypes.DragAndDropObjectReference; - if (reference) - { - UnityEngine.GUIUtility.hotControl = 0; - data.ObjectReference = reference; - } -#endif - - Collider = GetComponent(); - } - - /// @brief Sorts AkEnvironments based on their priorities. - public class AkEnvironment_CompareByPriority : System.Collections.Generic.IComparer - { - public virtual int Compare(AkEnvironment a, AkEnvironment b) - { - var result = a.priority.CompareTo(b.priority); - return result == 0 && a != b ? 1 : result; - } - } - - /// @brief Sorts AkEnvironments based on the selection algorithm. - /// The selection algorithm is as follows: - /// -# Environments have priorities. - /// -# Environments have a "Default" flag. This flag effectively says that this environment will be bumped out if any other is present. - /// -# Environments have an "Exclude Other" flag. This flag will tell that this env is not overlappable with others. So, only one (the highest priority) should be selected. - public class AkEnvironment_CompareBySelectionAlgorithm : AkEnvironment_CompareByPriority - { - public override int Compare(AkEnvironment a, AkEnvironment b) - { - if (a.isDefault) - return b.isDefault ? base.Compare(a, b) : 1; - - if (b.isDefault) - return -1; - - if (a.excludeOthers) - return b.excludeOthers ? base.Compare(a, b) : -1; - - return b.excludeOthers ? 1 : base.Compare(a, b); - } - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_2)] - public int m_auxBusID { get { return (int)(data == null ? AkSoundEngine.AK_INVALID_UNIQUE_ID : data.Id); } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] valueGuid - { - get - { - if (data == null) - return null; - - var objRef = data.ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_2)] - public uint GetAuxBusID() - { - return data.Id; - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public UnityEngine.Collider GetCollider() - { - return Collider; - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("m_auxBusID")] - private int auxBusIdInternal = (int)AkSoundEngine.AK_INVALID_UNIQUE_ID; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueGuid")] - private byte[] valueGuidInternal; -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.WwiseTypes_v2018_1_6)) - return false; - - return AK.Wwise.TypeMigration.ProcessSingleGuidType(obj.FindProperty("data.WwiseObjectReference"), WwiseObjectType.AuxBus, - obj.FindProperty("valueGuidInternal"), obj.FindProperty("auxBusIdInternal")); - } -#endif - - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironment.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironment.cs.meta deleted file mode 100644 index 405aae337..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironment.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 692e16fdf21b6ae468a8a3cd39348200 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironmentPortal.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironmentPortal.cs deleted file mode 100644 index c37088484..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironmentPortal.cs +++ /dev/null @@ -1,93 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Use this component to define an area that straddles two different AkEnvironment's zones and allow mixing between both zones. \ref unity_use_AkEnvironment_AkEnvironmentPortal -[UnityEngine.AddComponentMenu("Wwise/AkEnvironmentPortal")] -[UnityEngine.RequireComponent(typeof(UnityEngine.BoxCollider))] -[UnityEngine.ExecuteInEditMode] -public class AkEnvironmentPortal : UnityEngine.MonoBehaviour -{ - public const int MAX_ENVIRONMENTS_PER_PORTAL = 2; - - ///The axis used to find the contribution of each environment - public UnityEngine.Vector3 axis = UnityEngine.Vector3.right; - - ///The array is already sorted by position. - ///The first environment is on the negative side of the portal(opposite to the direction of the chosen axis) - ///The second environment is on the positive side of the portal - public AkEnvironment[] environments = new AkEnvironment[MAX_ENVIRONMENTS_PER_PORTAL]; - - private UnityEngine.BoxCollider m_BoxCollider; - private UnityEngine.BoxCollider BoxCollider - { - get - { - if (!m_BoxCollider) - m_BoxCollider = GetComponent(); - - return m_BoxCollider; - } - } - - public bool EnvironmentsShareAuxBus - { - get - { - if (environments[0] == null) - return environments[1] == null; - - if (environments[1] == null) - return false; - - if (environments[0].data == null) - return environments[1].data == null; - - if (environments[1].data == null) - return false; - - return environments[0].data.Id == environments[1].data.Id; - } - } - - public float GetAuxSendValueForPosition(UnityEngine.Vector3 in_position, int index) - { - //total length of the portal in the direction of axis - var portalLength = UnityEngine.Vector3.Dot(UnityEngine.Vector3.Scale(BoxCollider.size, transform.lossyScale), axis); - - //transform axis to world coordinates - var axisWorld = UnityEngine.Vector3.Normalize(transform.rotation * axis); - - //Get distance form left side of the portal(opposite to the direction of axis) to the game object in the direction of axisWorld - var dist = UnityEngine.Vector3.Dot(in_position - (transform.position - portalLength * 0.5f * axisWorld), axisWorld); - dist = UnityEngine.Mathf.Clamp(dist, 0, portalLength); - - //calculate value of the environment referred by index - if (index == 0) - return (portalLength - dist) * (portalLength - dist) / (portalLength * portalLength); - - return dist * dist / (portalLength * portalLength); - } - - -#if UNITY_EDITOR - /// This enables us to detect intersections between portals and environments in the editor - [System.Serializable] - public class EnvListWrapper - { - public System.Collections.Generic.List list = new System.Collections.Generic.List(); - } - - /// Unity can't serialize an array of list so we wrap the list in a serializable class - public EnvListWrapper[] envList = - { - new EnvListWrapper(), //All environments on the negative side of each portal(opposite to the direction of the chosen axis) - new EnvListWrapper() //All environments on the positive side of each portal(same direction as the chosen axis) - }; -#endif -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironmentPortal.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironmentPortal.cs.meta deleted file mode 100644 index 8d138a6c9..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEnvironmentPortal.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f6f4eb19bf6e9624c8c0668af83d0b59 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEvent.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkEvent.cs deleted file mode 100644 index fd6b6d14a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEvent.cs +++ /dev/null @@ -1,218 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// -/// Event callback information. -/// Event callback functions can receive this structure as a parameter -/// -public class AkEventCallbackMsg -{ - ///For more information about the event callback, see the classes derived from AkCallbackInfo. - public AkCallbackInfo info; - - /// GameObject from whom the callback function was called - public UnityEngine.GameObject sender; - - ///AkSoundEngine.PostEvent callback flags. See the AkCallbackType enumeration for a list of all callbacks - public AkCallbackType type; -} - -[UnityEngine.AddComponentMenu("Wwise/AkEvent")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -/// @brief Helper class that knows a Wwise Event and when to trigger it in Unity. As of 2017.2.0, the AkEvent inspector has buttons for play/stop, play multiple, stop multiple, and stop all. -/// Play/Stop will play or stop the event such that it can be previewed both in edit mode and play mode. When multiple objects are selected, Play Multiple and Stop Multiple will play or stop the associated AkEvent for each object. -/// \sa -/// - \ref sect_edit_mode -/// - \ref unity_use_AkEvent_AkAmbient -/// - Integration Details - Events (Note: This is described in the Wwise SDK documentation.) -public class AkEvent : AkDragDropTriggerHandler -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - /// Replacement action. See AK::SoundEngine::ExecuteEventOnAction() - public AkActionOnEventType actionOnEventType = AkActionOnEventType.AkActionOnEventType_Stop; - - /// Fade curve to use with the new Action. See AK::SoundEngine::ExecuteEventOnAction() - public AkCurveInterpolation curveInterpolation = AkCurveInterpolation.AkCurveInterpolation_Linear; - - /// Enables additional options to reuse existing events. Use it to transform a Play event into a Stop event without having to define one in the Wwise Project. - public bool enableActionOnEvent = false; - - public AK.Wwise.Event data = new AK.Wwise.Event(); - protected override AK.Wwise.BaseType WwiseType { get { return data; } } - - [System.Serializable] - public class CallbackData - { - public AK.Wwise.CallbackFlags Flags; - public string FunctionName; - public UnityEngine.GameObject GameObject; - - public void CallFunction(AkEventCallbackMsg eventCallbackMsg) - { - if (((uint)eventCallbackMsg.type & Flags.value) != 0 && GameObject) - GameObject.SendMessage(FunctionName, eventCallbackMsg); - } - } - - public bool useCallbacks = false; - public System.Collections.Generic.List Callbacks = new System.Collections.Generic.List(); - - public uint playingId = AkSoundEngine.AK_INVALID_PLAYING_ID; - - /// Game object onto which the Event will be posted. By default, when empty, it is posted on the same object on which the component was added. - public UnityEngine.GameObject soundEmitterObject; - - /// Duration of the fade. See AK::SoundEngine::ExecuteEventOnAction() - public float transitionDuration = 0.0f; - - private AkEventCallbackMsg EventCallbackMsg = null; - - protected override void Start() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating || !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - if (useCallbacks) - EventCallbackMsg = new AkEventCallbackMsg { sender = gameObject }; - - base.Start(); - } - - private void Callback(object in_cookie, AkCallbackType in_type, AkCallbackInfo in_info) - { - EventCallbackMsg.type = in_type; - EventCallbackMsg.info = in_info; - - for (var i = 0; i < Callbacks.Count; ++i) - Callbacks[i].CallFunction(EventCallbackMsg); - } - - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - var gameObj = useOtherObject && in_gameObject != null ? in_gameObject : gameObject; - soundEmitterObject = gameObj; - - if (enableActionOnEvent) - { - data.ExecuteAction(gameObj, actionOnEventType, (int)transitionDuration * 1000, curveInterpolation); - return; - } - - if (useCallbacks) - { - uint flags = 0; - for (var i = 0; i < Callbacks.Count; ++i) - { - if (Callbacks[i].GameObject && !string.IsNullOrEmpty(Callbacks[i].FunctionName)) - flags |= Callbacks[i].Flags.value; - } - - if (flags != 0) - { - playingId = data.Post(gameObj, flags, Callback); - return; - } - } - - playingId = data.Post(gameObj); - } - - public void Stop(int _transitionDuration) - { - Stop(_transitionDuration, AkCurveInterpolation.AkCurveInterpolation_Linear); - } - - public void Stop(int _transitionDuration, AkCurveInterpolation _curveInterpolation) - { - data.Stop(soundEmitterObject, _transitionDuration, _curveInterpolation); - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_2)] - public int eventID { get { return (int)(data == null ? AkSoundEngine.AK_INVALID_UNIQUE_ID : data.Id); } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] valueGuid - { - get - { - if (data == null) - return null; - - var objRef = data.ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public AkEventCallbackData m_callbackData { get { return m_callbackDataInternal; } } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("eventID")] - private int eventIdInternal = (int)AkSoundEngine.AK_INVALID_UNIQUE_ID; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueGuid")] - private byte[] valueGuidInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("m_callbackData")] - private AkEventCallbackData m_callbackDataInternal = null; -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - public virtual bool Migrate(UnityEditor.SerializedObject obj) - { - var hasMigrated = false; - if (AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.WwiseTypes_v2018_1_6)) - { - hasMigrated = AK.Wwise.TypeMigration.ProcessSingleGuidType(obj.FindProperty("data.WwiseObjectReference"), WwiseObjectType.Event, - obj.FindProperty("valueGuidInternal"), obj.FindProperty("eventIdInternal")); - } - - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.AkEventCallback_v2018_1_6)) - return hasMigrated; - - var oldCallbackDataProperty = obj.FindProperty("m_callbackDataInternal"); - var oldCallbackData = oldCallbackDataProperty.objectReferenceValue as AkEventCallbackData; - if (!oldCallbackData) - return hasMigrated; - - var count = oldCallbackData.callbackFlags.Count; - if (count != oldCallbackData.callbackFunc.Count || count != oldCallbackData.callbackGameObj.Count) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Inconsistent callback data!"); - return hasMigrated; - } - - var newCallbackData = obj.FindProperty("Callbacks"); - newCallbackData.arraySize = count; - obj.FindProperty("useCallbacks").boolValue = true; - - for (var i = 0; i < count; ++i) - { - var data = newCallbackData.GetArrayElementAtIndex(i); - data.FindPropertyRelative("GameObject").objectReferenceValue = oldCallbackData.callbackGameObj[i]; - data.FindPropertyRelative("FunctionName").stringValue = oldCallbackData.callbackFunc[i]; - data.FindPropertyRelative("Flags.value").intValue = oldCallbackData.callbackFlags[i]; - UnityEngine.Debug.Log("WwiseUnity: Migrated Callback for function \"" + oldCallbackData.callbackFunc[i] + "\" on <" + oldCallbackData.callbackGameObj[i] + "> with flags <" + (AkCallbackType)oldCallbackData.callbackFlags[i] + ">."); - } - - return true; - } -#endif - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEvent.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkEvent.cs.meta deleted file mode 100644 index 787cb50d7..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEvent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: db32bda40fdd612469c878cf01da5105 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEventCallbackData.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkEventCallbackData.cs deleted file mode 100644 index 63cdf0525..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEventCallbackData.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkEventCallbackData : UnityEngine.ScriptableObject -{ - ////AkSoundEngine.PostEvent callback flags. See the AkCallbackType enumeration for a list of all callbacks - public System.Collections.Generic.List callbackFlags = new System.Collections.Generic.List(); - - ////Names of the callback functions. - public System.Collections.Generic.List callbackFunc = new System.Collections.Generic.List(); - - ////GameObject that will receive the callback - public System.Collections.Generic.List callbackGameObj = - new System.Collections.Generic.List(); - - ////The sum of the flags of all game objects. This is the flag that will be passed to AkSoundEngine.PostEvent - public int uFlags = 0; -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkEventCallbackData.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkEventCallbackData.cs.meta deleted file mode 100644 index 558eb871d..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkEventCallbackData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6d0ade48cce65ed4db55d8f827f6c4d0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObj.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObj.cs deleted file mode 100644 index cd9c38a0f..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObj.cs +++ /dev/null @@ -1,410 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkGameObj")] -[UnityEngine.DisallowMultipleComponent] -[UnityEngine.ExecuteInEditMode] //ExecuteInEditMode necessary to maintain proper state of isStaticObject. -[UnityEngine.DefaultExecutionOrder(-25)] -///@brief This component represents a sound object in your scene tracking its position and other game syncs such as Switches, RTPC and environment values. You can add this to any object that will emit sound, and it will be added to any object that an AkAudioListener is attached to. Note that if it is not present, Wwise will add it automatically, with the default values, to any Unity Game Object that is passed to Wwise. -/// \sa -/// - Integration Details - Game Objects (Note: This is described in the Wwise SDK documentation.) -/// - Integration Details - Events (Note: This is described in the Wwise SDK documentation.) -/// - Integrating Listeners (Note: This is described in the Wwise SDK documentation.) -/// - Integration Details - Switches (Note: This is described in the Wwise SDK documentation.) -/// - Integration Details - States (Note: This is described in the Wwise SDK documentation.) -/// - Integration Details - Environments and Game-defined Auxiliary Sends (Note: This is described in the Wwise SDK documentation.) -public class AkGameObj : UnityEngine.MonoBehaviour -{ - [UnityEngine.SerializeField] private AkGameObjListenerList m_listeners = new AkGameObjListenerList(); - - /// Is this object affected by Environment changes? Set to false if not affected in order to save some useless calls. Default is true. - public bool isEnvironmentAware = true; - - /// Maintains and persists the Static setting of the gameobject, which is available only in the editor. - [UnityEngine.SerializeField] private bool isStaticObject = false; - - /// Cache the bounds to avoid calls to GetComponent() - private UnityEngine.Collider m_Collider; - - private AkGameObjEnvironmentData m_envData; - - private AkGameObjPositionData m_posData; - - /// When not set to null, the position will be offset relative to the Game Object position by the Position Offset - public AkGameObjPositionOffsetData m_positionOffsetData; - - public bool IsUsingDefaultListeners - { - get { return m_listeners.useDefaultListeners; } - } - - public System.Collections.Generic.List ListenerList - { - get { return m_listeners.ListenerList; } - } - - private bool isRegistered = false; - - internal void AddListener(AkAudioListener listener) - { - m_listeners.Add(listener); - } - - internal void RemoveListener(AkAudioListener listener) - { - m_listeners.Remove(listener); - } - - public AKRESULT Register() - { - if (isRegistered) - return AKRESULT.AK_Success; - - isRegistered = true; - return AkSoundEngine.RegisterGameObj(gameObject, gameObject.name); - } - - private void SetPosition() - { - var position = GetPosition(); - var forward = GetForward(); - var up = GetUpward(); - - if (m_posData != null) - { - if (m_posData.position == position && m_posData.forward == forward && m_posData.up == up) - return; - - m_posData.position = position; - m_posData.forward = forward; - m_posData.up = up; - } - - AkSoundEngine.SetObjectPosition(gameObject, position, forward, up); - } - - private void Awake() - { -#if UNITY_EDITOR - if (!AkSoundEngine.EditorIsSoundEngineLoaded || AkUtilities.IsMigrating) - return; - - if (!UnityEditor.EditorApplication.isPlaying) - UnityEditor.EditorApplication.update += CheckStaticStatus; -#endif - - // If the object was marked as static, don't update its position to save cycles. - if (!isStaticObject) - m_posData = new AkGameObjPositionData(); - - // Cache the bounds to avoid calls to GetComponent() - m_Collider = GetComponent(); - - //Register a Game Object in the sound engine, with its name. - if (Register() == AKRESULT.AK_Success) - { - SetPosition(); - - if (isEnvironmentAware) - { - m_envData = new AkGameObjEnvironmentData(); - - if (m_Collider) - m_envData.AddAkEnvironment(m_Collider, m_Collider); - - m_envData.UpdateAuxSend(gameObject, transform.position); - } - - m_listeners.Init(this); - } - } - - private void CheckStaticStatus() - { -#if UNITY_EDITOR - if (AkUtilities.IsMigrating) - return; - - try - { - if (gameObject != null && isStaticObject != gameObject.isStatic) - { - isStaticObject = gameObject.isStatic; - UnityEditor.EditorUtility.SetDirty(this); - } - } - catch - { - UnityEditor.EditorApplication.update -= CheckStaticStatus; - } -#endif - } - - private void OnEnable() - { -#if UNITY_EDITOR - if (AkUtilities.IsMigrating) - return; -#endif - - //if enabled is set to false, then the update function wont be called - enabled = !isStaticObject; - } - -#if UNITY_EDITOR - private void OnDisable() - { - if (!UnityEditor.EditorApplication.isPlaying &&AkSoundEngine.IsInitialized()) - AkSoundEngine.UnregisterGameObj(gameObject); - } -#endif - - private void OnDestroy() - { -#if UNITY_EDITOR - if (!AkSoundEngine.EditorIsSoundEngineLoaded || AkUtilities.IsMigrating) - return; - - if (!UnityEditor.EditorApplication.isPlaying) - UnityEditor.EditorApplication.update -= CheckStaticStatus; -#endif - - // We can't do the code in OnDestroy if the gameObj is unregistered, so do it now. - var eventHandlers = gameObject.GetComponents(); - foreach (var handler in eventHandlers) - { - if (handler.triggerList.Contains(AkTriggerHandler.DESTROY_TRIGGER_ID)) - handler.DoDestroy(); - } - -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - return; -#endif - - if (AkSoundEngine.IsInitialized()) - AkSoundEngine.UnregisterGameObj(gameObject); - } - - private void Update() - { -#if UNITY_EDITOR - if (!AkSoundEngine.EditorIsSoundEngineLoaded || AkUtilities.IsMigrating || - !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - if (m_envData != null) - m_envData.UpdateAuxSend(gameObject, transform.position); - - if (!isStaticObject) - SetPosition(); - } - - /// Gets the position including the position offset, if applyPositionOffset is enabled. User can also override this method to calculate an arbitrary position. - /// \return The position. - public virtual UnityEngine.Vector3 GetPosition() - { - if (m_positionOffsetData == null) - return transform.position; - - var worldOffset = transform.rotation * m_positionOffsetData.positionOffset; - return transform.position + worldOffset; - } - - /// Gets the orientation forward vector. User can also override this method to calculate an arbitrary vector. - /// \return The forward vector of orientation. - public virtual UnityEngine.Vector3 GetForward() - { - return transform.forward; - } - - /// Gets the orientation upward vector. User can also override this method to calculate an arbitrary vector. - /// \return The upward vector of orientation. - public virtual UnityEngine.Vector3 GetUpward() - { - return transform.up; - } - - private void OnTriggerEnter(UnityEngine.Collider other) - { -#if UNITY_EDITOR - if (AkUtilities.IsMigrating || !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - if (isEnvironmentAware && m_envData != null) - m_envData.AddAkEnvironment(other, m_Collider); - } - - private void OnTriggerExit(UnityEngine.Collider other) - { -#if UNITY_EDITOR - if (AkUtilities.IsMigrating || !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - if (isEnvironmentAware && m_envData != null) - m_envData.RemoveAkEnvironment(other, m_Collider); - } - -#if UNITY_EDITOR - public void OnDrawGizmosSelected() - { - if (AkUtilities.IsMigrating) - return; - - var position = GetPosition(); - UnityEngine.Gizmos.DrawIcon(position, "WwiseAudioSpeaker.png", false); - } -#endif - - #region WwiseMigration - -#pragma warning disable 0414 // private field assigned but not used. - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - private AkGameObjPosOffsetData m_posOffsetData; - - // Wwise v2016.2 and below supported up to 8 listeners[0-7]. - private const int AK_NUM_LISTENERS = 8; - - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - /// Listener 0 by default. - private int listenerMask = 1; - -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - public void Migrate9() - { - UnityEngine.Debug.Log("WwiseUnity: AkGameObj.Migrate9 for " + gameObject.name); - - const int ALL_LISTENER_MASK = (1 << AK_NUM_LISTENERS) - 1; - if ((listenerMask & ALL_LISTENER_MASK) == ALL_LISTENER_MASK) - listenerMask = 1; - } - - public void Migrate10() - { - UnityEngine.Debug.Log("WwiseUnity: AkGameObj.Migrate10 for " + gameObject.name); - - if (m_posOffsetData != null) - { - m_positionOffsetData = new AkGameObjPositionOffsetData(true); - m_positionOffsetData.positionOffset = m_posOffsetData.positionOffset; - m_posOffsetData = null; - } - } - - private class Migration14Data - { - private readonly System.Collections.Generic.List[] listeners = - new System.Collections.Generic.List[AK_NUM_LISTENERS]; - - public Migration14Data() - { - var fullSceneListenerMask = 0; - - // Get all AkAudioListeners in the scene. - var listenerObjects = FindObjectsOfType(); - foreach (var listener in listenerObjects) - { - // Add AkGameObj to AkAudioListeners - if (listener.GetComponent() == null) - { - var akGameObj = listener.gameObject.AddComponent(); - if (akGameObj) - { - akGameObj.isEnvironmentAware = false; - UnityEngine.Debug.Log("WwiseUnity: Added AkGameObj to <" + listener.gameObject.name + ">."); - } - else - UnityEngine.Debug.LogError("WwiseUnity: Failed to add AkGameObj to <" + listener.gameObject.name + ">."); - } - - var listenerId = listener.listenerId; - if (listenerId >= 0 && listenerId < AK_NUM_LISTENERS) - { - if (listeners[listenerId] == null) - listeners[listenerId] = new System.Collections.Generic.List(); - - listeners[listenerId].Add(listener); - fullSceneListenerMask |= 1 << listenerId; - } - else - UnityEngine.Debug.LogError("WwiseUnity: Invalid listenerId <" + listenerId + "> found during migration."); - } - - if (fullSceneListenerMask == 0) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Listeners were not added via components within this Scene."); - listeners = null; - } - else - { - for (var ii = 0; ii < AK_NUM_LISTENERS; ++ii) - { - if (listeners[ii] != null && listeners[ii].Count > 1) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Multiple listeners <" + listeners[ii].Count + - "> with same listenerId <" + ii + "> found during migration."); - } - } - - if (fullSceneListenerMask == 1) - { - UnityEngine.Debug.Log("WwiseUnity: Default listeners will be used for this Scene."); - listeners = null; - } - } - } - - public void Migrate(AkGameObj akGameObj) - { - if (listeners != null) - { - for (var ii = 0; ii < AK_NUM_LISTENERS; ++ii) - { - var idMask = 1 << ii; - if ((akGameObj.listenerMask & idMask) != 0 && listeners[ii] != null) - { - foreach (var listener in listeners[ii]) - akGameObj.m_listeners.AddToInitialListenerList(listener); - } - } - } - } - } - - private static Migration14Data migration14data; - - public static void PreMigration14() - { - migration14data = new Migration14Data(); - } - - public void Migrate14() - { - UnityEngine.Debug.Log("WwiseUnity: AkGameObj.Migrate14 for " + gameObject.name); - - if (migration14data != null) - migration14data.Migrate(this); - } - - public static void PostMigration14() - { - migration14data = null; - } - -#endif - - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObj.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObj.cs.meta deleted file mode 100644 index 2d53bd7cf..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObj.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f27db6b94e477054e96392f94dc50c9d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -25 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjEnvironmentData.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjEnvironmentData.cs deleted file mode 100644 index 7e7b6ac22..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjEnvironmentData.cs +++ /dev/null @@ -1,192 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkGameObjEnvironmentData -{ - /// Contains all active environments sorted by default, excludeOthers and priority, even those inside a portal. - private readonly System.Collections.Generic.List activeEnvironments = - new System.Collections.Generic.List(); - - /// Contains all active environments sorted by priority, even those inside a portal. - private readonly System.Collections.Generic.List activeEnvironmentsFromPortals = - new System.Collections.Generic.List(); - - /// Contains all active portals. - private readonly System.Collections.Generic.List activePortals = - new System.Collections.Generic.List(); - - private readonly AkAuxSendArray auxSendValues = new AkAuxSendArray(); - private UnityEngine.Vector3 lastPosition = UnityEngine.Vector3.zero; - private bool hasEnvironmentListChanged = true; - private bool hasActivePortalListChanged = true; - private bool hasSentZero = false; - - private void AddHighestPriorityEnvironmentsFromPortals(UnityEngine.Vector3 position) - { - for (var i = 0; i < activePortals.Count; i++) - { - var portal = activePortals[i]; - if (portal.EnvironmentsShareAuxBus) - { - var env = portal.environments[0]; - if (env == null) - continue; - - var index = activeEnvironmentsFromPortals.BinarySearch(env, AkEnvironment.s_compareByPriority); - if (index < 0 || index >= AkEnvironment.MAX_NB_ENVIRONMENTS) - continue; - - var auxBusID = env.data.Id; - if (!auxSendValues.Contains(auxBusID)) - { - auxSendValues.Add(auxBusID, 1.0f); - if (auxSendValues.isFull) - return; - } - continue; - } - - for (var j = 0; j < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; j++) - { - var env = portal.environments[j]; - if (env == null) - continue; - - var index = activeEnvironmentsFromPortals.BinarySearch(env, AkEnvironment.s_compareByPriority); - if (index < 0 || index >= AkEnvironment.MAX_NB_ENVIRONMENTS) - continue; - - var auxBusID = env.data.Id; - if (!auxSendValues.Contains(auxBusID)) - { - auxSendValues.Add(auxBusID, portal.GetAuxSendValueForPosition(position, j)); - if (auxSendValues.isFull) - return; - } - } - } - } - - private void AddHighestPriorityEnvironments(UnityEngine.Vector3 position) - { - if (!auxSendValues.isFull && auxSendValues.Count() < activeEnvironments.Count) - { - for (var i = 0; i < activeEnvironments.Count; i++) - { - var env = activeEnvironments[i]; - var auxBusID = env.data.Id; - - if ((!env.isDefault || i == 0) && !auxSendValues.Contains(auxBusID)) - { - auxSendValues.Add(auxBusID, 1.0f); - - //No other environment can be added after an environment with the excludeOthers flag set to true - if (env.excludeOthers || auxSendValues.isFull) - break; - } - } - } - } - - public void UpdateAuxSend(UnityEngine.GameObject gameObject, UnityEngine.Vector3 position) - { - if (!hasEnvironmentListChanged && !hasActivePortalListChanged && lastPosition == position) - return; - - auxSendValues.Reset(); - AddHighestPriorityEnvironmentsFromPortals(position); - AddHighestPriorityEnvironments(position); - - bool isSendingZero = auxSendValues.Count() == 0; - if (!hasSentZero || !isSendingZero) - auxSendValues.SetValues(gameObject); - - hasSentZero = isSendingZero; - lastPosition = position; - hasActivePortalListChanged = false; - hasEnvironmentListChanged = false; - } - - private void TryAddEnvironment(AkEnvironment env) - { - if (env == null) - return; - - var index = activeEnvironmentsFromPortals.BinarySearch(env, AkEnvironment.s_compareByPriority); - if (index >= 0) - return; - - activeEnvironmentsFromPortals.Insert(~index, env); - - index = activeEnvironments.BinarySearch(env, AkEnvironment.s_compareBySelectionAlgorithm); - if (index < 0) - activeEnvironments.Insert(~index, env); - - hasEnvironmentListChanged = true; - } - - private void RemoveEnvironment(AkEnvironment env) - { - activeEnvironmentsFromPortals.Remove(env); - activeEnvironments.Remove(env); - hasEnvironmentListChanged = true; - } - - public void AddAkEnvironment(UnityEngine.Collider environmentCollider, UnityEngine.Collider gameObjectCollider) - { - var portal = environmentCollider.GetComponent(); - if (portal == null) - { - var env = environmentCollider.GetComponent(); - TryAddEnvironment(env); - return; - } - - activePortals.Add(portal); - hasActivePortalListChanged = true; - - for (var i = 0; i < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; i++) - TryAddEnvironment(portal.environments[i]); - } - - private bool AkEnvironmentBelongsToActivePortals(AkEnvironment env) - { - for (var i = 0; i < activePortals.Count; i++) - for (var j = 0; j < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; j++) - { - if (env == activePortals[i].environments[j]) - return true; - } - - return false; - } - - public void RemoveAkEnvironment(UnityEngine.Collider environmentCollider, UnityEngine.Collider gameObjectCollider) - { - var portal = environmentCollider.GetComponent(); - if (portal != null) - { - for (var i = 0; i < AkEnvironmentPortal.MAX_ENVIRONMENTS_PER_PORTAL; i++) - { - var env = portal.environments[i]; - if (env != null && !gameObjectCollider.bounds.Intersects(env.Collider.bounds)) - RemoveEnvironment(env); - } - - activePortals.Remove(portal); - hasActivePortalListChanged = true; - } - else - { - var env = environmentCollider.GetComponent(); - if (env != null && !AkEnvironmentBelongsToActivePortals(env)) - RemoveEnvironment(env); - } - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjEnvironmentData.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjEnvironmentData.cs.meta deleted file mode 100644 index 18d849a1a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjEnvironmentData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: adcfa58950ada274581dcaadc423c852 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjListenerList.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjListenerList.cs deleted file mode 100644 index 4bdbe3c99..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjListenerList.cs +++ /dev/null @@ -1,80 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[System.Serializable] -public class AkGameObjListenerList : AkAudioListener.BaseListenerList -{ - [System.NonSerialized] private AkGameObj akGameObj; - - [UnityEngine.SerializeField] - public System.Collections.Generic.List initialListenerList = - new System.Collections.Generic.List(); - - [UnityEngine.SerializeField] public bool useDefaultListeners = true; - - public void SetUseDefaultListeners(bool useDefault) - { - if (useDefaultListeners != useDefault) - { - useDefaultListeners = useDefault; - - if (useDefault) - { - AkSoundEngine.ResetListenersToDefault(akGameObj.gameObject); - for (var i = 0; i < ListenerList.Count; ++i) - AkSoundEngine.AddListener(akGameObj.gameObject, ListenerList[i].gameObject); - } - else - { - var Ids = GetListenerIds(); - AkSoundEngine.SetListeners(akGameObj.gameObject, Ids, Ids == null ? 0 : (uint) Ids.Length); - } - } - } - - public void Init(AkGameObj akGameObj) - { - this.akGameObj = akGameObj; - - if (!useDefaultListeners) - AkSoundEngine.SetListeners(akGameObj.gameObject, null, 0); - - for (var ii = 0; ii < initialListenerList.Count; ++ii) - initialListenerList[ii].StartListeningToEmitter(akGameObj); - } - - public override bool Add(AkAudioListener listener) - { - var ret = base.Add(listener); - if (ret && AkSoundEngine.IsInitialized()) - AkSoundEngine.AddListener(akGameObj.gameObject, listener.gameObject); - return ret; - } - - public override bool Remove(AkAudioListener listener) - { - var ret = base.Remove(listener); - if (ret && AkSoundEngine.IsInitialized()) - AkSoundEngine.RemoveListener(akGameObj.gameObject, listener.gameObject); - return ret; - } - -#if UNITY_EDITOR - public void AddToInitialListenerList(AkAudioListener listener) - { - if (!initialListenerList.Contains(listener)) - initialListenerList.Add(listener); - } - - public void RemoveFromInitialListenerList(AkAudioListener listener) - { - initialListenerList.Remove(listener); - } -#endif -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjListenerList.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjListenerList.cs.meta deleted file mode 100644 index 5db3826ca..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjListenerList.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 66382d6c68a15ef4fadf9154d33bb8e9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPosOffsetData.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPosOffsetData.cs deleted file mode 100644 index b07e3b3e0..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPosOffsetData.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -// *** THIS FILE IS KEPT FOR THE MIGRATION SYSTEM, DO NOT USE THIS CLASS !!! *** - - -// DEPRECATED -public class AkGameObjPosOffsetData : UnityEngine.ScriptableObject -{ - public UnityEngine.Vector3 positionOffset; -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPosOffsetData.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPosOffsetData.cs.meta deleted file mode 100644 index 0e9f98423..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPosOffsetData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9d9cbd2cf98d7844ba120ac0a6a50ed0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionData.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionData.cs deleted file mode 100644 index 17a74d63c..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionData.cs +++ /dev/null @@ -1,15 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkGameObjPositionData -{ - public UnityEngine.Vector3 forward; - public UnityEngine.Vector3 position; - public UnityEngine.Vector3 up; -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionData.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionData.cs.meta deleted file mode 100644 index 27d9027ec..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 84c659295ef41a144b35166fb09680b7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionOffsetData.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionOffsetData.cs deleted file mode 100644 index f14f654ea..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionOffsetData.cs +++ /dev/null @@ -1,22 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[System.Serializable] -public class AkGameObjPositionOffsetData -{ - public bool KeepMe; - public UnityEngine.Vector3 positionOffset; - - // Unity tries to construct a AkGameObjPositionOffsetData all the time. Need this ugly workaround - // to prevent it from doing this. - public AkGameObjPositionOffsetData(bool IReallyWantToBeConstructed = false) - { - KeepMe = IReallyWantToBeConstructed; - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionOffsetData.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionOffsetData.cs.meta deleted file mode 100644 index 1937fa61c..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkGameObjPositionOffsetData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e02507456ba3ebb4b8633735008da5d0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs deleted file mode 100644 index 9c8be5a93..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs +++ /dev/null @@ -1,185 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES -using AK.Wwise.Unity.WwiseAddressables; -#endif - -[UnityEngine.AddComponentMenu("Wwise/AkInitializer")] -[UnityEngine.DisallowMultipleComponent] -[UnityEngine.ExecuteInEditMode] -[UnityEngine.DefaultExecutionOrder(-100)] -/// @brief This script deals with initialization, and frame updates of the Wwise audio engine. -/// It is marked as \c DontDestroyOnLoad so it stays active for the life of the game, -/// not only one scene. Double-click the Initialization Settings entry, AkWwiseInitializationSettings, -/// to review and edit Wwise initialization settings. -/// \sa -/// - Initialize the Different Modules of the Sound Engine (Note: This is described in the Wwise SDK documentation.) -/// - AK::SoundEngine::Init() (Note: This is described in the Wwise SDK documentation.) -/// - AK::SoundEngine::Term() (Note: This is described in the Wwise SDK documentation.) -/// - AkCallbackManager -public class AkInitializer : UnityEngine.MonoBehaviour -{ - private static AkInitializer ms_Instance; -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - public AkWwiseAddressablesInitializationSettings InitializationSettings; -#else - public AkWwiseInitializationSettings InitializationSettings; -#endif - - private void Awake() - { - if (ms_Instance) - { - DestroyImmediate(this); - return; - } - - ms_Instance = this; - -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - return; - - #if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - AkWwiseFileWatcher.Instance.XMLUpdated += AkBankManager.ReloadAllBanks; - #endif -#endif - - DontDestroyOnLoad(this); - } - - private void OnEnable() - { -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - InitializationSettings =AkWwiseAddressablesInitializationSettings.Instance; -#else - InitializationSettings = AkWwiseInitializationSettings.Instance; -#endif - - if (ms_Instance == this) - AkSoundEngineController.Instance.Init(this); - } - - private void OnDisable() - { - if (ms_Instance == this) - AkSoundEngineController.Instance.OnDisable(); - } - - private void OnDestroy() - { - if (ms_Instance == this) - ms_Instance = null; - } - - private void OnApplicationPause(bool pauseStatus) - { - if (ms_Instance == this) - AkSoundEngineController.Instance.OnApplicationPause(pauseStatus); - } - - private void OnApplicationFocus(bool focus) - { - if (ms_Instance == this) - AkSoundEngineController.Instance.OnApplicationFocus(focus); - } - - private void OnApplicationQuit() - { - if (ms_Instance == this) - AkSoundEngineController.Instance.Terminate(); - } - - //Use LateUpdate instead of Update() to ensure all gameobjects positions, listener positions, environements, RTPC, etc are set before finishing the audio frame. - private void LateUpdate() - { - if (ms_Instance == this) - AkSoundEngineController.Instance.LateUpdate(); - } - -#region WwiseMigration -#if UNITY_EDITOR -#pragma warning disable 0414 // private field assigned but not used. - - // previously serialized data that will be consumed by migration - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private string basePath = string.Empty; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private string language = string.Empty; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int defaultPoolSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int lowerPoolSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int streamingPoolSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private float memoryCutoffThreshold = 0f; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int monitorPoolSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int monitorQueuePoolSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int callbackManagerBufferSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private int spatialAudioPoolSize = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private uint maxSoundPropagationDepth = 0; - [UnityEngine.HideInInspector][UnityEngine.SerializeField] private bool engineLogging = false; - -#pragma warning restore 0414 // private field assigned but not used. - - private class Migration15Data - { - bool hasMigrated = false; - - public void Migrate(AkInitializer akInitializer) - { - if (hasMigrated) - return; - - var initializationSettings = akInitializer.InitializationSettings; - if (!initializationSettings) - { -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - initializationSettings = AkWwiseAddressablesInitializationSettings.Instance; -#else - initializationSettings = AkWwiseInitializationSettings.Instance; -#endif - if (!initializationSettings) - return; - } - - initializationSettings.UserSettings.m_BasePath = akInitializer.basePath; - initializationSettings.UserSettings.m_StartupLanguage = akInitializer.language; - - initializationSettings.AdvancedSettings.m_MonitorQueuePoolSize = (uint)akInitializer.monitorQueuePoolSize * 1024; - - initializationSettings.UserSettings.m_SpatialAudioSettings.m_MaxSoundPropagationDepth = akInitializer.maxSoundPropagationDepth; - - initializationSettings.CallbackManagerInitializationSettings.IsLoggingEnabled = akInitializer.engineLogging; - - UnityEditor.EditorUtility.SetDirty(initializationSettings); - UnityEditor.AssetDatabase.SaveAssets(); - - UnityEngine.Debug.Log("WwiseUnity: Converted from AkInitializer to AkWwiseInitializationSettings."); - hasMigrated = true; - } - } - - private static Migration15Data migration15data; - - public static void PreMigration15() - { - migration15data = new Migration15Data(); - } - - public void Migrate15() - { - UnityEngine.Debug.Log("WwiseUnity: AkInitializer.Migrate15 for " + gameObject.name); - - if (migration15data != null) - migration15data.Migrate(this); - } - - public static void PostMigration15() - { - migration15data = null; - } -#endif -#endregion - } -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs.meta deleted file mode 100644 index d06f8a8b4..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a4eab75687879a445a2a2397d86a2172 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -100 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkMemBankLoader.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkMemBankLoader.cs deleted file mode 100644 index 299992f93..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkMemBankLoader.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief This class is an example of how to load banks in Wwise, if the bank data was preloaded in memory. -/// This would be useful for situations where you use the WWW class -public class AkMemBankLoader : UnityEngine.MonoBehaviour -{ - private const int WaitMs = 50; - private const long AK_BANK_PLATFORM_DATA_ALIGNMENT = AkSoundEngine.AK_BANK_PLATFORM_DATA_ALIGNMENT; - private const long AK_BANK_PLATFORM_DATA_ALIGNMENT_MASK = AK_BANK_PLATFORM_DATA_ALIGNMENT - 1; - - /// Name of the bank to load - public string bankName = ""; - - /// Is the bank localized (situated in the language-specific folders) - public bool isLocalizedBank = false; - - private string m_bankPath; - - [UnityEngine.HideInInspector] public uint ms_bankID = AkSoundEngine.AK_INVALID_BANK_ID; - - private System.IntPtr ms_pInMemoryBankPtr = System.IntPtr.Zero; - private System.Runtime.InteropServices.GCHandle ms_pinnedArray; - -#if UNITY_2018_3_OR_NEWER - private UnityEngine.Networking.UnityWebRequest ms_www; -#else - private UnityEngine.WWW ms_www; -#endif - - private void Start() - { - - if (isLocalizedBank) - LoadLocalizedBank(bankName); - else - LoadNonLocalizedBank(bankName); - } - - /// Load a SoundBank from WWW object - public void LoadNonLocalizedBank(string in_bankFilename) - { - var bankPath = "file://" + System.IO.Path.Combine(AkBasePathGetter.SoundBankBasePath, in_bankFilename); - DoLoadBank(bankPath); - } - - /// Load a language-specific bank from WWW object - public void LoadLocalizedBank(string in_bankFilename) - { - var bankPath = "file://" + System.IO.Path.Combine( - System.IO.Path.Combine(AkBasePathGetter.SoundBankBasePath, AkSoundEngine.GetCurrentLanguage()), - in_bankFilename); - DoLoadBank(bankPath); - } - - private uint AllocateAlignedBuffer(byte[] data) - { - uint uInMemoryBankSize = 0; - - // Allocate an aligned buffer - try - { - ms_pinnedArray = - System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned); - ms_pInMemoryBankPtr = ms_pinnedArray.AddrOfPinnedObject(); - uInMemoryBankSize = (uint)data.Length; - - // Array inside the WWW object is not aligned. Allocate a new array for which we can guarantee the alignment. - if ((ms_pInMemoryBankPtr.ToInt64() & AK_BANK_PLATFORM_DATA_ALIGNMENT_MASK) != 0) - { - var alignedBytes = new byte[data.Length + AK_BANK_PLATFORM_DATA_ALIGNMENT]; - var new_pinnedArray = - System.Runtime.InteropServices.GCHandle.Alloc(alignedBytes, System.Runtime.InteropServices.GCHandleType.Pinned); - var new_pInMemoryBankPtr = new_pinnedArray.AddrOfPinnedObject(); - var alignedOffset = 0; - - // New array is not aligned, so we will need to use an offset inside it to align our data. - if ((new_pInMemoryBankPtr.ToInt64() & AK_BANK_PLATFORM_DATA_ALIGNMENT_MASK) != 0) - { - var alignedPtr = (new_pInMemoryBankPtr.ToInt64() + AK_BANK_PLATFORM_DATA_ALIGNMENT_MASK) & - ~AK_BANK_PLATFORM_DATA_ALIGNMENT_MASK; - alignedOffset = (int)(alignedPtr - new_pInMemoryBankPtr.ToInt64()); - new_pInMemoryBankPtr = new System.IntPtr(alignedPtr); - } - - // Copy the bank's bytes in our new array, at the correct aligned offset. - System.Array.Copy(data, 0, alignedBytes, alignedOffset, data.Length); - - ms_pInMemoryBankPtr = new_pInMemoryBankPtr; - ms_pinnedArray.Free(); - ms_pinnedArray = new_pinnedArray; - } - } - catch - { - } - return uInMemoryBankSize; - } - - private System.Collections.IEnumerator LoadFile() - { -#if UNITY_2018_3_OR_NEWER - ms_www = UnityEngine.Networking.UnityWebRequest.Get(m_bankPath); - yield return ms_www.SendWebRequest(); - uint uInMemoryBankSize = AllocateAlignedBuffer(ms_www.downloadHandler.data); -#else - ms_www = new UnityEngine.WWW(m_bankPath); - yield return ms_www; - uint uInMemoryBankSize = AllocateAlignedBuffer(ms_www.bytes); -#endif - - var result = AkSoundEngine.LoadBankMemoryView(ms_pInMemoryBankPtr, uInMemoryBankSize, out ms_bankID); - if (result != AKRESULT.AK_Success) - UnityEngine.Debug.LogError("WwiseUnity: AkMemBankLoader: bank loading failed with result " + result); - } - - private void DoLoadBank(string in_bankPath) - { - m_bankPath = in_bankPath; - StartCoroutine(LoadFile()); - } - - private void OnDestroy() - { - if (ms_pInMemoryBankPtr != System.IntPtr.Zero) - { - var result = AkSoundEngine.UnloadBank(ms_bankID, ms_pInMemoryBankPtr); - if (result == AKRESULT.AK_Success) - ms_pinnedArray.Free(); - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkMemBankLoader.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkMemBankLoader.cs.meta deleted file mode 100644 index a529a5a3f..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkMemBankLoader.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4f9aca49f53350d43ad236969cf19bdf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkObstructionOcclusion.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkObstructionOcclusion.cs deleted file mode 100644 index de5b1b2ae..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkObstructionOcclusion.cs +++ /dev/null @@ -1,129 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public abstract class AkObstructionOcclusion : UnityEngine.MonoBehaviour -{ - private readonly System.Collections.Generic.List listenersToRemove = - new System.Collections.Generic.List(); - - protected readonly System.Collections.Generic.List currentListenerList = new System.Collections.Generic.List(); - - private readonly System.Collections.Generic.Dictionary - ObstructionOcclusionValues = new System.Collections.Generic.Dictionary(); - - protected float fadeRate; - - [UnityEngine.Tooltip("Fade time in seconds")] - /// The number of seconds for fade ins and fade outs. - public float fadeTime = 0.5f; - - [UnityEngine.Tooltip("Layers of obstructers/occluders")] - /// Indicates which layers act as obstructers/occluders. - public UnityEngine.LayerMask LayerMask = -1; - - [UnityEngine.Tooltip("Maximum distance to perform the obstruction/occlusion. Negative values mean infinite")] - /// The maximum distance at which to perform obstruction/occlusion. A negative value will be interpreted as inifinite distance. - public float maxDistance = -1.0f; - - [UnityEngine.Tooltip("The number of seconds between raycasts")] - /// The number of seconds between obstruction/occlusion checks. - public float refreshInterval = 1; - - private float refreshTime; - - protected void InitIntervalsAndFadeRates() - { - refreshTime = UnityEngine.Random.Range(0.0f, refreshInterval); - fadeRate = 1 / fadeTime; - } - - protected abstract void UpdateCurrentListenerList(); - - private void UpdateObstructionOcclusionValues() - { - // add new listeners - for (var i = 0; i < currentListenerList.Count; ++i) - { - if (!ObstructionOcclusionValues.ContainsKey(currentListenerList[i])) - ObstructionOcclusionValues.Add(currentListenerList[i], new ObstructionOcclusionValue()); - } - - // remove listeners - foreach (var ObsOccPair in ObstructionOcclusionValues) - { - if (!currentListenerList.Contains(ObsOccPair.Key)) - listenersToRemove.Add(ObsOccPair.Key); - } - - for (var i = 0; i < listenersToRemove.Count; ++i) - ObstructionOcclusionValues.Remove(listenersToRemove[i]); - - listenersToRemove.Clear(); - } - - private void CastRays() - { - if (refreshTime > refreshInterval) - { - refreshTime -= refreshInterval; - - foreach (var ObsOccPair in ObstructionOcclusionValues) - { - var listener = ObsOccPair.Key; - var ObsOccValue = ObsOccPair.Value; - - var difference = listener.transform.position - transform.position; - var magnitude = difference.magnitude; - - if (maxDistance > 0 && magnitude > maxDistance) - ObsOccValue.targetValue = ObsOccValue.currentValue; - else - { - ObsOccValue.targetValue = - UnityEngine.Physics.Raycast(transform.position, difference / magnitude, magnitude, LayerMask.value) ? 1.0f : 0.0f; - } - } - } - - refreshTime += UnityEngine.Time.deltaTime; - } - - protected abstract void SetObstructionOcclusion( - System.Collections.Generic.KeyValuePair ObsOccPair); - - private void Update() - { - currentListenerList.Clear(); - UpdateCurrentListenerList(); - UpdateObstructionOcclusionValues(); - - CastRays(); - - foreach (var ObsOccPair in ObstructionOcclusionValues) - { - if (ObsOccPair.Value.Update(fadeRate)) - SetObstructionOcclusion(ObsOccPair); - } - } - - protected class ObstructionOcclusionValue - { - public float currentValue; - public float targetValue; - - public bool Update(float fadeRate) - { - if (UnityEngine.Mathf.Approximately(targetValue, currentValue)) - return false; - - currentValue += fadeRate * UnityEngine.Mathf.Sign(targetValue - currentValue) * UnityEngine.Time.deltaTime; - currentValue = UnityEngine.Mathf.Clamp(currentValue, 0.0f, 1.0f); - return true; - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkObstructionOcclusion.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkObstructionOcclusion.cs.meta deleted file mode 100644 index 2e9c9cd53..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkObstructionOcclusion.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b3eb01883a0e7dd47a086ef86d13b0ac -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRadialEmitter.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRadialEmitter.cs deleted file mode 100644 index 73a0c3abd..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRadialEmitter.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkRadialEmitter")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -[UnityEngine.DisallowMultipleComponent] -/// @brief A radial emitter is for sounds that are not point sources, but instead originate from a region of space. -/// @details A radial emitter is described by an inner and outer radius. The radii are used in spread and distance calculations, simulating a radial sound source. -/// Since all game objects have a position and orientation, the position (center) and local axes are defined by the AkGameObj component required by this component. -public class AkRadialEmitter : UnityEngine.MonoBehaviour -{ - #region Fields - [UnityEngine.Tooltip("Define the outer radius around each sound position to simulate a radial sound source. If the listener is outside the outer radius, the spread is defined by the area that the sphere takes in the listener field of view. When the listener intersects the outer radius, the spread is exactly 50%. When the listener is in between the inner and outer radius, the spread interpolates linearly from 50% to 100%.")] - /// Define an outer radius around each sound position to simulate a radial sound source. - /// The distance used for applying attenuation curves is taken as the distance between the listener and the point on the sphere, defined by the sound position and the outer radius, that is closest to the listener. - /// The spread for each sound position is calculated as follows: - /// - If the listener is outside the outer radius, the spread is defined by the area that the sphere takes in the listener field of view. Specifically, this angle is calculated as 2.0*asinf( outerRadius / distance ), where distance is the distance between the listener and the sound position. - /// - When the listener intersects the outer radius (the listener is exactly outerRadius units away from the sound position), the spread is exactly 50%. - /// - When the listener is in between the inner and outer radius, the spread interpolates linearly from 50% to 100% as the listener transitions from the outer radius towards the inner radius. - /// Note that transmission and diffraction calculations in Spatial Audio always use the center of the sphere (the position(s) passed into \c AK::SoundEngine::SetPosition or \c AK::SoundEngine::SetMultiplePositions) for raycasting. - /// To obtain accurate diffraction and transmission calculations for radial sources, where different parts of the volume may take different paths through or around geometry, - /// it is necessary to pass multiple sound positions into \c AK::SoundEngine::SetMultiplePositions to allow the engine to 'sample' the area at different points. - public float outerRadius = 0.0f; - [UnityEngine.Tooltip("Define an inner radius around each sound position to simulate a radial sound source. If the listener is inside the inner radius, the spread is 100%.")] - /// Define an inner radius around each sound position to simulate a radial sound source. If the listener is inside the inner radius, the spread is 100%. - /// Note that transmission and diffraction calculations in Spatial Audio always use the center of the sphere (the position(s) passed into \c AK::SoundEngine::SetPosition or \c AK::SoundEngine::SetMultiplePositions) for raycasting. - /// To obtain accurate diffraction and transmission calculations for radial sources, where different parts of the volume may take different paths through or around geometry, - /// it is necessary to pass multiple sound positions into \c AK::SoundEngine::SetMultiplePositions to allow the engine to 'sample' the area at different points. - public float innerRadius = 0.0f; - #endregion - - public void SetGameObjectOuterRadius(float in_outerRadius) - { - AkSoundEngine.SetGameObjectRadius(AkSoundEngine.GetAkGameObjectID(gameObject), in_outerRadius, innerRadius); - } - - public void SetGameObjectInnerRadius(float in_innerRadius) - { - AkSoundEngine.SetGameObjectRadius(AkSoundEngine.GetAkGameObjectID(gameObject), outerRadius, in_innerRadius); - } - - public void SetGameObjectRadius(float in_outerRadius, float in_innerRadius) - { - AkSoundEngine.SetGameObjectRadius(AkSoundEngine.GetAkGameObjectID(gameObject), in_outerRadius, in_innerRadius); - } - - public void SetGameObjectRadius() - { - AkSoundEngine.SetGameObjectRadius(AkSoundEngine.GetAkGameObjectID(gameObject), outerRadius, innerRadius); - } - - public void SetGameObjectRadius(UnityEngine.GameObject in_gameObject) - { - AkSoundEngine.SetGameObjectRadius(AkSoundEngine.GetAkGameObjectID(in_gameObject), outerRadius, innerRadius); - } - - private void OnEnable() - { - SetGameObjectRadius(); - } - -#if UNITY_EDITOR - private void Update() - { - if (UnityEditor.EditorApplication.isPlaying) - SetGameObjectRadius(); - } - - private void OnDrawGizmosSelected() - { - if (!enabled) - { - return; - } - - AkAmbient Ambient = GetComponent(); - bool showSpheres = true; - if (Ambient && Ambient.multiPositionTypeLabel == MultiPositionTypeLabel.Large_Mode) - showSpheres = false; - - if (showSpheres) - { - UnityEngine.Color SphereColor = UnityEngine.Color.yellow; - SphereColor.a = 0.25f; - UnityEngine.Gizmos.color = SphereColor; - - UnityEngine.Gizmos.DrawSphere(gameObject.transform.position, innerRadius); - UnityEngine.Gizmos.DrawSphere(gameObject.transform.position, outerRadius); - } - } - - [UnityEditor.CustomEditor(typeof(AkRadialEmitter))] - public class AkRadialEmitterInspector : UnityEditor.Editor - { - private AkRadialEmitter m_AkRadialEmitter; - - private UnityEditor.SerializedProperty outerRadius; - private UnityEditor.SerializedProperty innerRadius; - - private void OnEnable() - { - m_AkRadialEmitter = target as AkRadialEmitter; - - outerRadius = serializedObject.FindProperty("outerRadius"); - innerRadius = serializedObject.FindProperty("innerRadius"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - if (m_AkRadialEmitter.outerRadius < 0.0f) - m_AkRadialEmitter.outerRadius = 0.0f; - if (m_AkRadialEmitter.innerRadius < 0.0f) - m_AkRadialEmitter.innerRadius = 0.0f; - if (m_AkRadialEmitter.innerRadius > m_AkRadialEmitter.outerRadius) - m_AkRadialEmitter.innerRadius = m_AkRadialEmitter.outerRadius; - - UnityEditor.EditorGUILayout.PropertyField(outerRadius); - UnityEditor.EditorGUILayout.PropertyField(innerRadius); - - EventCheck(m_AkRadialEmitter.gameObject); - - serializedObject.ApplyModifiedProperties(); - } - - public static void EventCheck(UnityEngine.GameObject gameObject) - { - if (AkWwiseEditorSettings.Instance.ShowSpatialAudioWarningMsg && gameObject.GetComponent() == null) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "Radial emitters are expected to emit sound. Add an AkEvent or an AkAmbient component to this game object.", - UnityEditor.MessageType.Warning); - - if (UnityEngine.GUILayout.Button("Add AkEvent")) - UnityEditor.Undo.AddComponent(gameObject); - - if (UnityEngine.GUILayout.Button("Add AkAmbient")) - UnityEditor.Undo.AddComponent(gameObject); - } - } - } - } -#endif -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRadialEmitter.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRadialEmitter.cs.meta deleted file mode 100644 index cc78e3bbe..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRadialEmitter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e526301a25a19f741b985a0af465e603 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoom.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRoom.cs deleted file mode 100644 index 09f6f9e9b..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoom.cs +++ /dev/null @@ -1,478 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkRoom")] -[UnityEngine.RequireComponent(typeof(UnityEngine.Collider))] -[UnityEngine.DisallowMultipleComponent] -/// @brief An AkRoom is an enclosed environment that can only communicate to the outside/other rooms with AkRoomPortals -/// @details The AkRoom component uses its required Collider component to determine when AkRoomAwareObjects enter and exit the room using the OnTriggerEnter and OnTriggerExit callbacks. -public class AkRoom : AkTriggerHandler -{ - public static ulong INVALID_ROOM_ID = unchecked((ulong)-1.0f); - - public static ulong GetAkRoomID(AkRoom room) - { - return room == null ? INVALID_ROOM_ID : room.GetID(); - } - - public static int RoomCount { get; private set; } - - #region Fields - - [UnityEngine.Tooltip("Higher number has a higher priority")] - /// In cases where a game object is in an area with two rooms, the higher priority room will be chosen for AK::SpatialAudio::SetGameObjectInRoom() - /// The higher the priority number, the higher the priority of a room. - public int priority = 0; - - /// The reverb auxiliary bus. - public AK.Wwise.AuxBus reverbAuxBus = new AK.Wwise.AuxBus(); - - [UnityEngine.Range(0, 1)] - /// The reverb control value for the send to the reverb aux bus. - public float reverbLevel = 1; - - [UnityEngine.Range(0, 1)] - /// Loss value modeling transmission through walls. - public float transmissionLoss = 1; - - /// Wwise Event to be posted on the room game object. - public AK.Wwise.Event roomToneEvent = new AK.Wwise.Event(); - - [UnityEngine.Range(0, 1)] - [UnityEngine.Tooltip("Send level for sounds that are posted on the room game object; adds reverb to ambience and room tones. Valid range: (0.f-1.f). A value of 0 disables the aux send.")] - /// Send level for sounds that are posted on the room game object; adds reverb to ambience and room tones. Valid range: (0.f-1.f). A value of 0 disables the aux send. - public float roomToneAuxSend = 0; - - /// This is the list of AkRoomAwareObjects that have entered this AkRoom - private System.Collections.Generic.List roomAwareObjectsEntered = new System.Collections.Generic.List(); - - /// This is the list of AkRoomAwareObjects that have entered this AkRoom while it was inactive or disabled. - private System.Collections.Generic.List roomAwareObjectsDetectedWhileDisabled = new System.Collections.Generic.List(); - - private UnityEngine.Collider roomCollider = null; - private System.Type previousColliderType; - -#if UNITY_EDITOR - private UnityEngine.Vector3 previousPosition; - private UnityEngine.Vector3 previousScale; - private UnityEngine.Quaternion previousRotation; - private UnityEngine.MeshCollider previousMeshCollider; - private UnityEngine.BoxCollider previousBoxCollider; - private UnityEngine.CapsuleCollider previousCapsuleCollider; - - private UnityEngine.Vector3 previousUp; - private UnityEngine.Vector3 previousFront; - private uint previousReverbAuxBus; - private float previousReverbLevel; - private float previousTransmissionLoss; - private float previousRoomGameObj_AuxSendLevelToSelf; - private bool previousRoomGameObj_KeepRegistered; - private ulong previousGeometryID; -#endif - - #endregion - - public bool TryEnter(AkRoomAwareObject roomAwareObject) - { - if (roomAwareObject) - { - if (isActiveAndEnabled) - { - if(!roomAwareObjectsEntered.Contains(roomAwareObject)) - roomAwareObjectsEntered.Add(roomAwareObject); - return true; - } - else - { - if (!roomAwareObjectsDetectedWhileDisabled.Contains(roomAwareObject)) - roomAwareObjectsDetectedWhileDisabled.Add(roomAwareObject); - return false; - } - } - return false; - } - - public void Exit(AkRoomAwareObject roomAwareObject) - { - if (roomAwareObject) - { - roomAwareObjectsEntered.Remove(roomAwareObject); - roomAwareObjectsDetectedWhileDisabled.Remove(roomAwareObject); - } - } - - /// Access the room's ID - public ulong GetID() - { - return AkSoundEngine.GetAkGameObjectID(gameObject); - } - - public void SetRoom() - { - ulong geometryID = GetGeometryID(); - -#if UNITY_EDITOR - if (previousUp == transform.up && - previousFront == transform.forward && - previousReverbAuxBus == reverbAuxBus.Id && - previousReverbLevel == reverbLevel && - previousTransmissionLoss == transmissionLoss && - previousRoomGameObj_AuxSendLevelToSelf == roomToneAuxSend && - previousRoomGameObj_KeepRegistered == roomToneEvent.IsValid() && - previousGeometryID == geometryID) - return; -#endif - var roomParams = new AkRoomParams - { - Up = transform.up, - Front = transform.forward, - - ReverbAuxBus = reverbAuxBus.Id, - ReverbLevel = reverbLevel, - TransmissionLoss = transmissionLoss, - - RoomGameObj_AuxSendLevelToSelf = roomToneAuxSend, - RoomGameObj_KeepRegistered = roomToneEvent.IsValid(), - }; - - RoomCount++; - AkSoundEngine.SetRoom(GetID(), roomParams, geometryID, name); - -#if UNITY_EDITOR - previousUp = transform.up; - previousFront = transform.forward; - previousReverbAuxBus = reverbAuxBus.Id; - previousReverbLevel = reverbLevel; - previousTransmissionLoss = transmissionLoss; - previousRoomGameObj_AuxSendLevelToSelf = roomToneAuxSend; - previousRoomGameObj_KeepRegistered = roomToneEvent.IsValid(); - previousGeometryID = geometryID; -#endif - - /// In case a room is disabled and re-enabled. - AkRoomManager.RegisterRoomUpdate(this); - } - -#if UNITY_EDITOR - private void Update() - { - if (UnityEditor.EditorApplication.isPlaying) - SetRoom(); - } -#endif - - private UnityEngine.Vector3 GetCapsuleScale(UnityEngine.Vector3 localScale, float radius, float height, int direction) - { - UnityEngine.Vector3 scale = new UnityEngine.Vector3(); - - switch (direction) - { - case 0: - scale.y = UnityEngine.Mathf.Max(localScale.y, localScale.z) * (radius * 2); - scale.z = scale.y; - scale.x = UnityEngine.Mathf.Max(scale.y, localScale.x * height); - break; - case 2: - scale.x = UnityEngine.Mathf.Max(localScale.x, localScale.y) * (radius * 2); - scale.y = scale.x; - scale.z = UnityEngine.Mathf.Max(scale.x, localScale.z * height); - break; - case 1: - default: - scale.x = UnityEngine.Mathf.Max(localScale.x, localScale.z) * (radius * 2); - scale.y = UnityEngine.Mathf.Max(scale.x, localScale.y * height); - scale.z = scale.x; - break; - } - - return scale; - } - - private ulong GetGeometryID() - { - ulong geometryID = AkSurfaceReflector.INVALID_GEOMETRY_ID; - - AkSurfaceReflector surfaceReflector = GetComponent(); - if (surfaceReflector && surfaceReflector.enabled) - geometryID = surfaceReflector.GetID(); - else - { - if (roomCollider == null) - roomCollider = GetComponent(); - - if (roomCollider.GetType() == typeof(UnityEngine.MeshCollider)) - { - geometryID = GetID(); - UnityEngine.MeshCollider meshCollider = GetComponent(); -#if UNITY_EDITOR - if (previousColliderType == typeof(UnityEngine.MeshCollider) && - previousMeshCollider != null && - previousMeshCollider.sharedMesh == meshCollider.sharedMesh && - previousPosition == transform.position && - previousRotation == transform.rotation && - previousScale == transform.localScale) - return geometryID; -#endif - AkSurfaceReflector.SetGeometryFromMesh(meshCollider.sharedMesh, transform, geometryID, INVALID_ROOM_ID, false, false, false); -#if UNITY_EDITOR - previousMeshCollider = meshCollider; - previousPosition = transform.position; - previousRotation = transform.rotation; - previousScale = transform.localScale; -#endif - previousColliderType = typeof(UnityEngine.MeshCollider); - } - else if (roomCollider.GetType() == typeof(UnityEngine.BoxCollider)) - { - geometryID = GetID(); - UnityEngine.BoxCollider boxCollider = GetComponent(); -#if UNITY_EDITOR - if (previousColliderType == typeof(UnityEngine.BoxCollider) && - previousBoxCollider != null && - previousPosition == roomCollider.bounds.center && - previousRotation == transform.rotation && - previousScale == new UnityEngine.Vector3(transform.localScale.x * boxCollider.size.x, - transform.localScale.y * boxCollider.size.y, - transform.localScale.z * boxCollider.size.z)) - return geometryID; -#endif - UnityEngine.GameObject tempGameObject = UnityEngine.GameObject.CreatePrimitive(UnityEngine.PrimitiveType.Cube); - UnityEngine.Mesh mesh = tempGameObject.GetComponent().sharedMesh; - - tempGameObject.transform.position = boxCollider.bounds.center; - tempGameObject.transform.rotation = transform.rotation; - UnityEngine.Vector3 roomScale = new UnityEngine.Vector3(); - roomScale.x = transform.localScale.x * boxCollider.size.x; - roomScale.y = transform.localScale.y * boxCollider.size.y; - roomScale.z = transform.localScale.z * boxCollider.size.z; - tempGameObject.transform.localScale = roomScale; - - AkSurfaceReflector.SetGeometryFromMesh(mesh, tempGameObject.transform, geometryID, INVALID_ROOM_ID, false, false, false); -#if UNITY_EDITOR - previousBoxCollider = boxCollider; - previousPosition = tempGameObject.transform.position; - previousRotation = tempGameObject.transform.rotation; - previousScale = tempGameObject.transform.localScale; -#endif - previousColliderType = typeof(UnityEngine.BoxCollider); - UnityEngine.GameObject.Destroy(tempGameObject); - } - else if (roomCollider.GetType() == typeof(UnityEngine.CapsuleCollider)) - { - geometryID = GetID(); - UnityEngine.CapsuleCollider capsuleCollider = GetComponent(); -#if UNITY_EDITOR - if (previousColliderType == typeof(UnityEngine.CapsuleCollider) && - previousCapsuleCollider != null && - previousPosition == capsuleCollider.bounds.center && - previousRotation == transform.rotation && - previousScale == GetCapsuleScale(transform.localScale, capsuleCollider.radius, capsuleCollider.height, capsuleCollider.direction)) - return geometryID; -#endif - UnityEngine.GameObject tempGameObject = UnityEngine.GameObject.CreatePrimitive(UnityEngine.PrimitiveType.Cube); - UnityEngine.Mesh mesh = tempGameObject.GetComponent().sharedMesh; - - tempGameObject.transform.position = capsuleCollider.bounds.center; - tempGameObject.transform.rotation = transform.rotation; - tempGameObject.transform.localScale = GetCapsuleScale(transform.localScale, capsuleCollider.radius, capsuleCollider.height, capsuleCollider.direction); - - AkSurfaceReflector.SetGeometryFromMesh(mesh, tempGameObject.transform, geometryID, INVALID_ROOM_ID, false, false, false); -#if UNITY_EDITOR - previousCapsuleCollider = capsuleCollider; - previousPosition = tempGameObject.transform.position; - previousRotation = tempGameObject.transform.rotation; - previousScale = tempGameObject.transform.localScale; -#endif - previousColliderType = typeof(UnityEngine.CapsuleCollider); - UnityEngine.GameObject.Destroy(tempGameObject); - } - else if (roomCollider.GetType() == typeof(UnityEngine.SphereCollider)) - { - geometryID = GetID(); -#if UNITY_EDITOR - if (previousColliderType == typeof(UnityEngine.SphereCollider) && - previousPosition == roomCollider.bounds.center && - previousScale == roomCollider.bounds.size) - return geometryID; -#endif - UnityEngine.GameObject tempGameObject = UnityEngine.GameObject.CreatePrimitive(UnityEngine.PrimitiveType.Sphere); - UnityEngine.Mesh mesh = tempGameObject.GetComponent().sharedMesh; - - tempGameObject.transform.position = roomCollider.bounds.center; - tempGameObject.transform.localScale = roomCollider.bounds.size; - - AkSurfaceReflector.SetGeometryFromMesh(mesh, tempGameObject.transform, geometryID, INVALID_ROOM_ID, false, false, false); -#if UNITY_EDITOR - previousColliderType = typeof(UnityEngine.SphereCollider); - previousPosition = tempGameObject.transform.position; - previousScale = tempGameObject.transform.localScale; -#endif - previousColliderType = typeof(UnityEngine.SphereCollider); - UnityEngine.GameObject.Destroy(tempGameObject); - } - else - { - if (previousColliderType == roomCollider.GetType()) - return geometryID; - - UnityEngine.Debug.LogWarning(name + " has an invalid collider for wet transmission. Wet Transmission will be disabled."); - // in case a geometry was added with the room's ID, remove it - if (previousColliderType == typeof(UnityEngine.MeshCollider) || - previousColliderType == typeof(UnityEngine.BoxCollider) || - previousColliderType == typeof(UnityEngine.SphereCollider) || - previousColliderType == typeof(UnityEngine.CapsuleCollider)) - AkSoundEngine.RemoveGeometry(GetID()); - - previousColliderType = roomCollider.GetType(); - } - } - - return geometryID; - } - - public override void OnEnable() - { - roomCollider = GetComponent(); - - SetRoom(); - - // if objects entered the room while disabled, enter them now - for (var i = 0; i < roomAwareObjectsDetectedWhileDisabled.Count; ++i) - AkRoomAwareManager.ObjectEnteredRoom(roomAwareObjectsDetectedWhileDisabled[i], this); - - roomAwareObjectsDetectedWhileDisabled.Clear(); - base.OnEnable(); - } - - private void OnDisable() - { - for (var i = 0; i < roomAwareObjectsEntered.Count; ++i) - { - roomAwareObjectsEntered[i].ExitedRoom(this); - AkRoomAwareManager.RegisterRoomAwareObjectForUpdate(roomAwareObjectsEntered[i]); - roomAwareObjectsDetectedWhileDisabled.Add(roomAwareObjectsEntered[i]); - } - roomAwareObjectsEntered.Clear(); - - AkRoomManager.RegisterRoomUpdate(this); - - // in case a geometry was added with the room's ID, remove it - if (previousColliderType == typeof(UnityEngine.MeshCollider) || - previousColliderType == typeof(UnityEngine.BoxCollider) || - previousColliderType == typeof(UnityEngine.SphereCollider) || - previousColliderType == typeof(UnityEngine.CapsuleCollider)) - AkSoundEngine.RemoveGeometry(GetID()); - previousColliderType = null; - - // stop sounds applied to the room game object - AkSoundEngine.StopAll(GetID()); - - RoomCount--; - AkSoundEngine.RemoveRoom(GetID()); - } - - private void OnTriggerEnter(UnityEngine.Collider in_other) - { - AkRoomAwareManager.ObjectEnteredRoom(in_other, this); - } - - private void OnTriggerExit(UnityEngine.Collider in_other) - { - AkRoomAwareManager.ObjectExitedRoom(in_other, this); - } - - public void PostRoomTone() - { - if (roomToneEvent.IsValid()) - AkSoundEngine.PostEventOnRoom(roomToneEvent.Id, GetID()); - } - - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - PostRoomTone(); - } - - public class PriorityList - { - private static readonly CompareByPriority s_compareByPriority = new CompareByPriority(); - - /// Contains all active rooms sorted by priority. - private System.Collections.Generic.List rooms = new System.Collections.Generic.List(); - - public ulong GetHighestPriorityActiveAndEnabledRoomID() - { - var room = GetHighestPriorityActiveAndEnabledRoom(); - return room == null ? INVALID_ROOM_ID : room.GetID(); - } - public AkRoom GetHighestPriorityActiveAndEnabledRoom() - { - for (int i = 0; i < rooms.Count; i++) - { - if (rooms[i].isActiveAndEnabled) - return rooms[i]; - } - - return null; - } - - public int Count { get { return rooms.Count; } } - - public void Clear() - { - rooms.Clear(); - } - - public void Add(AkRoom room) - { - var index = BinarySearch(room); - if (index < 0) - rooms.Insert(~index, room); - } - - public void Remove(AkRoom room) - { - rooms.Remove(room); - } - - public bool Contains(AkRoom room) - { - return room && rooms.Contains(room); - } - - public int BinarySearch(AkRoom room) - { - return room ? rooms.BinarySearch(room, s_compareByPriority) : -1; - } - - public AkRoom this[int index] - { - get { return rooms[index]; } - } - - private class CompareByPriority : System.Collections.Generic.IComparer - { - public virtual int Compare(AkRoom a, AkRoom b) - { - var result = a.priority.CompareTo(b.priority); - if (result == 0 && a != b) - return 1; - - return -result; // inverted to have highest priority first - } - } - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2021_1_0)] - public float wallOcclusion - { - get - { - return transmissionLoss; - } - set - { - transmissionLoss = value; - } - } - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoom.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRoom.cs.meta deleted file mode 100644 index a99de9244..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoom.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ccc628e0c5921f7479852cfe921ddf1d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareManager.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareManager.cs deleted file mode 100644 index 0fe0607e6..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareManager.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief This manager tracks the AkRoomAwareObjects and the AkRooms in which they enter and exit. -/// @details At the end of the frame, the AkRoomAwareObject is set in the highest priority AkRoom in Spatial Audio. -public static class AkRoomAwareManager -{ - private static readonly System.Collections.Generic.HashSet m_RoomAwareObjects = - new System.Collections.Generic.HashSet(); - - private static readonly System.Collections.Generic.HashSet m_RoomAwareObjectToUpdate = - new System.Collections.Generic.HashSet(); - - public static void RegisterRoomAwareObject(AkRoomAwareObject roomAwareObject) - { - m_RoomAwareObjects.Add(roomAwareObject); - RegisterRoomAwareObjectForUpdate(roomAwareObject); - } - - public static void UnregisterRoomAwareObject(AkRoomAwareObject roomAwareObject) - { - m_RoomAwareObjects.Remove(roomAwareObject); - m_RoomAwareObjectToUpdate.Remove(roomAwareObject); - } - - public static void RegisterRoomAwareObjectForUpdate(AkRoomAwareObject roomAwareObject) - { - m_RoomAwareObjectToUpdate.Add(roomAwareObject); - } - - public static void ObjectEnteredRoom(UnityEngine.Collider collider, AkRoom room) - { - if (!collider) - return; - - ObjectEnteredRoom(AkRoomAwareObject.GetAkRoomAwareObjectFromCollider(collider), room); - } - - public static void ObjectEnteredRoom(AkRoomAwareObject roomAwareObject, AkRoom room) - { - if (!roomAwareObject || !room) - return; - - var enteredRoom = room.TryEnter(roomAwareObject); - if (enteredRoom) - { - roomAwareObject.EnteredRoom(room); - RegisterRoomAwareObjectForUpdate(roomAwareObject); - } - } - - public static void ObjectExitedRoom(UnityEngine.Collider collider, AkRoom room) - { - if (!collider) - return; - - ObjectExitedRoom(AkRoomAwareObject.GetAkRoomAwareObjectFromCollider(collider), room); - } - - public static void ObjectExitedRoom(AkRoomAwareObject roomAwareObject, AkRoom room) - { - if (!roomAwareObject || !room) - return; - - room.Exit(roomAwareObject); - roomAwareObject.ExitedRoom(room); - RegisterRoomAwareObjectForUpdate(roomAwareObject); - } - - public static void UpdateRoomAwareObjects() - { - foreach (var roomAwareObject in m_RoomAwareObjectToUpdate) - { - if (m_RoomAwareObjects.Contains(roomAwareObject)) - roomAwareObject.SetGameObjectInHighestPriorityActiveAndEnabledRoom(); - } - m_RoomAwareObjectToUpdate.Clear(); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareManager.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareManager.cs.meta deleted file mode 100644 index 510137681..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b43b93c0836fa0a42ab8de904452781d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareObject.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareObject.cs deleted file mode 100644 index 2ca4b8f94..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareObject.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// -/// This component makes a GameObject aware of AkRoom components. -/// When using Spatial Audio rooms, all emitters and the spatial audio listener should have this component. -/// - -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkRoomAwareObject")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -[UnityEngine.DisallowMultipleComponent] -public class AkRoomAwareObject : UnityEngine.MonoBehaviour -{ - private static readonly System.Collections.Generic.Dictionary ColliderToRoomAwareObjectMap = new System.Collections.Generic.Dictionary(); - - public static AkRoomAwareObject GetAkRoomAwareObjectFromCollider(UnityEngine.Collider collider) - { - AkRoomAwareObject roomAwareObject = null; - return ColliderToRoomAwareObjectMap.TryGetValue(collider, out roomAwareObject) ? roomAwareObject : null; - } - - public UnityEngine.Collider m_Collider; - private readonly AkRoom.PriorityList roomPriorityList = new AkRoom.PriorityList(); - - private void Awake() - { - m_Collider = GetComponent(); - if (m_Collider != null) - ColliderToRoomAwareObjectMap.Add(m_Collider, this); - } - - private void OnEnable() - { - AkRoomAwareManager.RegisterRoomAwareObject(this); - - for (int i = 0; i < roomPriorityList.Count; ++i) - roomPriorityList[i].TryEnter(this); - } - - private void OnDisable() - { - for (int i = 0; i < roomPriorityList.Count; ++i) - roomPriorityList[i].Exit(this); - - AkRoomAwareManager.UnregisterRoomAwareObject(this); - - SetGameObjectInRoom(null); - } - - private void OnDestroy() - { - ColliderToRoomAwareObjectMap.Remove(m_Collider); - } - - public void SetGameObjectInHighestPriorityActiveAndEnabledRoom() - { - SetGameObjectInRoom(roomPriorityList.GetHighestPriorityActiveAndEnabledRoom()); - } - - private void SetGameObjectInRoom(AkRoom room) - { - AkSoundEngine.SetGameObjectInRoom(gameObject, room == null ? AkRoom.INVALID_ROOM_ID : room.GetID()); - } - - /// - /// Called when entering a room. - /// - /// The room. - public void EnteredRoom(AkRoom room) - { - roomPriorityList.Add(room); - } - - /// - /// Called when exiting a room. - /// - /// The room. - public void ExitedRoom(AkRoom room) - { - roomPriorityList.Remove(room); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareObject.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareObject.cs.meta deleted file mode 100644 index afd932a61..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomAwareObject.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 993b3937fde4a704eb1c8b379a97410c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomManager.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomManager.cs deleted file mode 100644 index d215058eb..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomManager.cs +++ /dev/null @@ -1,138 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2019 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief This manager tracks AkRoomPortals and the rooms that they connect (front and back room). -/// @details At the end of the frame, the AkRoomPortals which rooms might have changed are updated and sent to Spatial Audio. -public class AkRoomManager -{ - private readonly System.Collections.Generic.List m_Portals = - new System.Collections.Generic.List(); - - private readonly System.Collections.Generic.List m_PortalsToUpdate = - new System.Collections.Generic.List(); - - private readonly System.Collections.Generic.List m_Reflectors = - new System.Collections.Generic.List(); - - private readonly System.Collections.Generic.List m_ReflectorsToUpdate = - new System.Collections.Generic.List(); - - private static AkRoomManager m_Instance; - - public static void Init() - { - if (m_Instance == null) - m_Instance = new AkRoomManager(); - } - - public static void Terminate() - { - if (m_Instance != null) - m_Instance = null; - } - - public static void RegisterPortal(AkRoomPortal portal) - { - if (m_Instance != null) - { - if (!m_Instance.m_Portals.Contains(portal)) - { - m_Instance.m_Portals.Add(portal); - } - if (!m_Instance.m_PortalsToUpdate.Contains(portal)) - { - m_Instance.m_PortalsToUpdate.Add(portal); - } - } - } - - public static void UnregisterPortal(AkRoomPortal portal) - { - if (m_Instance != null) - { - m_Instance.m_Portals.Remove(portal); - m_Instance.m_PortalsToUpdate.Remove(portal); - } - } - - public static void RegisterReflector(AkSurfaceReflector reflector) - { - if (m_Instance != null) - { - if (!m_Instance.m_Reflectors.Contains(reflector)) - { - m_Instance.m_Reflectors.Add(reflector); - } - if (!m_Instance.m_ReflectorsToUpdate.Contains(reflector)) - { - m_Instance.m_ReflectorsToUpdate.Add(reflector); - } - } - } - - public static void UnregisterReflector(AkSurfaceReflector reflector) - { - if (m_Instance != null) - { - m_Instance.m_Reflectors.Remove(reflector); - m_Instance.m_ReflectorsToUpdate.Remove(reflector); - } - } - - public static void RegisterPortalUpdate(AkRoomPortal portal) - { - if (m_Instance != null) - { - if (m_Instance.m_Portals.Contains(portal) && !m_Instance.m_PortalsToUpdate.Contains(portal)) - { - m_Instance.m_PortalsToUpdate.Add(portal); - } - } - } - - public static void RegisterRoomUpdate(AkRoom room) - { - if (m_Instance != null) - { - for (var i = 0; i < m_Instance.m_Portals.Count; ++i) - { - var portal = m_Instance.m_Portals[i]; - if (!m_Instance.m_PortalsToUpdate.Contains(portal) && - (room == portal.frontRoom || room == portal.backRoom || portal.Overlaps(room))) - { - m_Instance.m_PortalsToUpdate.Add(portal); - } - } - for (var i = 0; i < m_Instance.m_Reflectors.Count; ++i) - { - var reflector = m_Instance.m_Reflectors[i]; - if (!m_Instance.m_ReflectorsToUpdate.Contains(reflector) && (reflector.AssociatedRoom == room)) - { - m_Instance.m_ReflectorsToUpdate.Add(reflector); - } - } - } - } - - public static void Update() - { - if (m_Instance != null) - { - for (var i = 0; i < m_Instance.m_PortalsToUpdate.Count; ++i) - { - m_Instance.m_PortalsToUpdate[i].UpdateRoomPortal(); - } - m_Instance.m_PortalsToUpdate.Clear(); - for (var i = 0; i < m_Instance.m_ReflectorsToUpdate.Count; ++i) - { - m_Instance.m_ReflectorsToUpdate[i].UpdateGeometry(); - } - m_Instance.m_ReflectorsToUpdate.Clear(); - } - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomManager.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomManager.cs.meta deleted file mode 100644 index 339f8cab6..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9eace9ba8f1dbf947a3335d6c8a64009 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortal.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortal.cs deleted file mode 100644 index 4dd22dfcf..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortal.cs +++ /dev/null @@ -1,322 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkRoomPortal")] -[UnityEngine.RequireComponent(typeof(UnityEngine.BoxCollider))] -[UnityEngine.DisallowMultipleComponent] -/// @brief An AkRoomPortal can connect two AkRoom components together. -/// @details -public class AkRoomPortal : AkTriggerHandler -{ - /// AkRoomPortals can only connect a maximum of 2 rooms. - public const int MAX_ROOMS_PER_PORTAL = 2; - public enum State - { - Closed, - Open - } - - public State initialState = State.Closed; - - private bool active = true; - public bool portalActive - { - get - { - return active; - } - set - { - active = value; - AkRoomManager.RegisterPortalUpdate(this); - } - } - - public System.Collections.Generic.List closePortalTriggerList = new System.Collections.Generic.List(); - - private ulong frontRoomID { get { return IsRoomActive(frontRoom) ? frontRoom.GetID() : AkRoom.INVALID_ROOM_ID; } } - private ulong backRoomID { get { return IsRoomActive(backRoom) ? backRoom.GetID() : AkRoom.INVALID_ROOM_ID; } } - - /// The front and back rooms connected by the portal. - /// The first room is on the negative side of the portal(opposite to the direction of the local Z axis) - /// The second room is on the positive side of the portal. - [UnityEngine.SerializeField] - private AkRoom[] rooms = new AkRoom[MAX_ROOMS_PER_PORTAL]; - - /// The list of rooms sorted by priority in front and in the back of the portal - private AkRoom.PriorityList[] roomList = { new AkRoom.PriorityList(), new AkRoom.PriorityList() }; - - public AkRoom GetRoom(int index) { return rooms[index]; } - - public AkRoom frontRoom { get { return rooms[1]; } } - public AkRoom backRoom { get { return rooms[0]; } } - - private AkTransform portalTransform; - private UnityEngine.BoxCollider portalCollider; - private bool portalSet = false; - - private void SetRoomPortal() - { - if (!enabled) - return; - - if (IsValid) - { - portalTransform.Set(portalCollider.bounds.center, transform.forward, transform.up); - var extentVector = UnityEngine.Vector3.Scale(portalCollider.size, transform.lossyScale) / 2; - // in case extent is negative, get the absolute value - AkExtent extent = new AkExtent( - UnityEngine.Mathf.Abs(extentVector.x), - UnityEngine.Mathf.Abs(extentVector.y), - UnityEngine.Mathf.Abs(extentVector.z)); - AkSoundEngine.SetRoomPortal(GetID(), portalTransform, extent, active, frontRoomID, backRoomID); - portalSet = true; - } - else - { - UnityEngine.Debug.LogError(name + " has identical front and back rooms. It will not be sent to Spatial Audio."); - if (portalSet) - AkSoundEngine.RemovePortal(GetID()); - portalSet = false; - } - } - - public void UpdateRoomPortal() - { - UpdateRooms(); - SetRoomPortal(); - } - - public bool Overlaps(AkRoom room) - { - FindOverlappingRooms(roomList); - - for (int i = 0; i < MAX_ROOMS_PER_PORTAL; ++i) - { - if (roomList[i].Contains(room)) - return true; - } - - return false; - } - - public bool IsValid { get { return frontRoomID != backRoomID; } } - - /// Access the portal's ID - public ulong GetID() { return (ulong)GetInstanceID(); } - - protected override void Awake() - { - portalCollider = GetComponent(); - portalCollider.isTrigger = true; - - portalTransform = new AkTransform(); - - // set portal in it's initial state - portalActive = initialState != State.Closed; - - RegisterTriggers(closePortalTriggerList, ClosePortal); - - base.Awake(); - } - - protected override void Start() - { - base.Start(); - - //Call the ClosePortal function if registered to the Start Trigger - if (closePortalTriggerList.Contains(START_TRIGGER_ID)) - ClosePortal(null); - } - - /// Opens the portal on trigger event - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - Open(); - } - - /// Closes the portal on trigger event - public void ClosePortal(UnityEngine.GameObject in_gameObject) - { - Close(); - } - - protected override void OnDestroy() - { - base.OnDestroy(); - - UnregisterTriggers(closePortalTriggerList, ClosePortal); - } - - public override void OnEnable() - { - UpdateRooms(); - AkRoomManager.RegisterPortal(this); - base.OnEnable(); - } - - private void OnDisable() - { - AkRoomManager.UnregisterPortal(this); - if (portalSet) - AkSoundEngine.RemovePortal(GetID()); - portalSet = false; - } - - private bool IsRoomActive(AkRoom in_room) - { - return in_room != null && in_room.isActiveAndEnabled; - } - - public void Open() - { - portalActive = true; - } - - public void Close() - { - portalActive = false; - } - - public void FindOverlappingRooms(AkRoom.PriorityList[] roomList) - { - var portalCollider = gameObject.GetComponent(); - if (portalCollider == null) - return; - - // compute halfExtents and divide the local z extent by 2 - var halfExtentZ = portalCollider.size.z / 2; - - // move the center backward - FillRoomList(UnityEngine.Vector3.forward * -halfExtentZ, roomList[0]); - - // move the center forward - FillRoomList(UnityEngine.Vector3.forward * halfExtentZ, roomList[1]); - } - - private void FillRoomList(UnityEngine.Vector3 position, AkRoom.PriorityList list) - { - list.Clear(); - - position = transform.TransformPoint(position); - var colliders = UnityEngine.Physics.OverlapSphere(position, 0, -1, UnityEngine.QueryTriggerInteraction.Collide); - - foreach (var collider in colliders) - { - var room = collider.gameObject.GetComponent(); - if (room != null && !list.Contains(room)) - list.Add(room); - } - } - - public void UpdateRooms() - { - FindOverlappingRooms(roomList); - - bool wasUpdated = false; - - for (var i = 0; i < MAX_ROOMS_PER_PORTAL; ++i) - { - var room = roomList[i].GetHighestPriorityActiveAndEnabledRoom(); - - if (room != rooms[i]) - wasUpdated = true; - - rooms[i] = room; - } - - if (wasUpdated) - AkRoomManager.RegisterPortalUpdate(this); - } - -#if UNITY_EDITOR - private void OnDrawGizmos() - { - if (!enabled) - return; - - UnityEngine.Gizmos.matrix = transform.localToWorldMatrix; - - var centreOffset = UnityEngine.Vector3.zero; - var sizeMultiplier = UnityEngine.Vector3.one; - var collider = GetComponent(); - if (collider) - { - centreOffset = collider.center; - sizeMultiplier = collider.size; - } - - // color faces - var faceCenterPos = new UnityEngine.Vector3[6]; - faceCenterPos[0] = UnityEngine.Vector3.Scale(new UnityEngine.Vector3(0.5f, 0.0f, 0.0f), sizeMultiplier); - faceCenterPos[1] = UnityEngine.Vector3.Scale(new UnityEngine.Vector3(0.0f, 0.5f, 0.0f), sizeMultiplier); - faceCenterPos[2] = UnityEngine.Vector3.Scale(new UnityEngine.Vector3(-0.5f, 0.0f, 0.0f), sizeMultiplier); - faceCenterPos[3] = UnityEngine.Vector3.Scale(new UnityEngine.Vector3(0.0f, -0.5f, 0.0f), sizeMultiplier); - faceCenterPos[4] = UnityEngine.Vector3.Scale(new UnityEngine.Vector3(0.0f, 0.0f, 0.5f), sizeMultiplier); - faceCenterPos[5] = UnityEngine.Vector3.Scale(new UnityEngine.Vector3(0.0f, 0.0f, -0.5f), sizeMultiplier); - - var faceSize = new UnityEngine.Vector3[6]; - faceSize[0] = new UnityEngine.Vector3(0, 1, 1); - faceSize[1] = new UnityEngine.Vector3(1, 0, 1); - faceSize[2] = faceSize[0]; - faceSize[3] = faceSize[1]; - faceSize[4] = new UnityEngine.Vector3(1, 1, 0); - faceSize[5] = faceSize[4]; - - UnityEngine.Gizmos.color = new UnityEngine.Color32(255, 204, 0, 100); - for (var i = 0; i < 4; i++) - { - UnityEngine.Gizmos.DrawCube(faceCenterPos[i] + centreOffset, UnityEngine.Vector3.Scale(faceSize[i], sizeMultiplier)); - } - - if (!portalActive) - { - UnityEngine.Gizmos.color = new UnityEngine.Color32(255, 204, 0, 30); - UnityEngine.Gizmos.DrawCube(faceCenterPos[4] + centreOffset, UnityEngine.Vector3.Scale(faceSize[4], sizeMultiplier)); - UnityEngine.Gizmos.DrawCube(faceCenterPos[5] + centreOffset, UnityEngine.Vector3.Scale(faceSize[5], sizeMultiplier)); - } - - // draw line in the center of the portal - var CornerCenterPos = faceCenterPos; - CornerCenterPos[0].y += 0.5f * sizeMultiplier.y; - CornerCenterPos[1].x -= 0.5f * sizeMultiplier.x; - CornerCenterPos[2].y -= 0.5f * sizeMultiplier.y; - CornerCenterPos[3].x += 0.5f * sizeMultiplier.x; - - UnityEngine.Gizmos.color = UnityEngine.Color.red; - for (var i = 0; i < 4; i++) - UnityEngine.Gizmos.DrawLine(CornerCenterPos[i] + centreOffset, CornerCenterPos[(i + 1) % 4] + centreOffset); - } -#endif - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public void SetRoom(int in_roomIndex, AkRoom in_room) - { - UnityEngine.Debug.LogFormat("SetRoom is deprecated. Highest priority, active and enabled room will be automatically chosen. Make sure room priorities and game object placements are correct."); - } - - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public void SetFrontRoom(AkRoom room) - { - UnityEngine.Debug.LogFormat("SetFrontRoom is deprecated. Highest priority, active and enabled room will be automatically chosen. Make sure room priorities and game object placements are correct."); - } - - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public void SetBackRoom(AkRoom room) - { - UnityEngine.Debug.LogFormat("SetBackRoom is deprecated. Highest priority, active and enabled room will be automatically chosen. Make sure room priorities and game object placements are correct."); - } - - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public void UpdateSoundEngineRoomIDs() - { - UpdateRoomPortal(); - } - - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public void UpdateOverlappingRooms() - { - UpdateRooms(); - } - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortal.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortal.cs.meta deleted file mode 100644 index 069de7d34..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortal.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e8ebe44e536b3d24190d9bf194f8f6e7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortalObstruction.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortalObstruction.cs deleted file mode 100644 index d7900d7eb..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortalObstruction.cs +++ /dev/null @@ -1,34 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkRoomPortalObstruction")] -[UnityEngine.RequireComponent(typeof(AkRoomPortal))] -/// @brief Completely obstructs the spatial audio portal of the current game object from the spatial audio listener if at least one object is between them. -/// @details If no spatial audio listener has been registered, there will be no obstruction. -public class AkRoomPortalObstruction : AkObstructionOcclusion -{ - private AkRoomPortal m_portal; - - private void Awake() - { - InitIntervalsAndFadeRates(); - m_portal = GetComponent(); - } - - protected override void UpdateCurrentListenerList() - { - currentListenerList.Add(AkSpatialAudioListener.TheSpatialAudioListener); - } - - protected override void SetObstructionOcclusion( - System.Collections.Generic.KeyValuePair ObsOccPair) - { - if (m_portal.IsValid) - AkSoundEngine.SetPortalObstructionAndOcclusion(m_portal.GetID(), ObsOccPair.Value.currentValue, 0.0f); - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortalObstruction.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortalObstruction.cs.meta deleted file mode 100644 index 63f5a16d1..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkRoomPortalObstruction.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 53c8f9324e708a3409541798bf8a7473 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs deleted file mode 100644 index 770633264..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs +++ /dev/null @@ -1,322 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES -using AK.Wwise.Unity.WwiseAddressables; -#endif - -public class AkSoundEngineController -{ - private static AkSoundEngineController ms_Instance; - - public static AkSoundEngineController Instance - { - get - { - if (ms_Instance == null) - ms_Instance = new AkSoundEngineController(); - - return ms_Instance; - } - } - - private AkSoundEngineController() - { -#if UNITY_EDITOR - UnityEditor.EditorApplication.pauseStateChanged += OnPauseStateChanged; -#endif - } - - ~AkSoundEngineController() - { - if (ms_Instance == this) - { -#if UNITY_EDITOR - UnityEditor.EditorApplication.pauseStateChanged -= OnPauseStateChanged; - UnityEditor.EditorApplication.update -= LateUpdate; -#endif - ms_Instance = null; - } - } - - public void LateUpdate() - { -#if UNITY_EDITOR - if (!AkSoundEngine.EditorIsSoundEngineLoaded) - return; -#endif - - //Execute callbacks that occurred in last frame (not the current update) - AkRoomManager.Update(); - AkRoomAwareManager.UpdateRoomAwareObjects(); - AkCallbackManager.PostCallbacks(); -#if !(AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES) - AkBankManager.DoUnloadBanks(); -#endif - AkSoundEngine.RenderAudio(); - } - -#if AK_WWISE_ADDRESSABLES && UNITY_ADDRESSABLES - private AkWwiseAddressablesInitializationSettings GetInitSettingsInstance() - { - return AkWwiseAddressablesInitializationSettings.Instance; - } -#else - private AkWwiseInitializationSettings GetInitSettingsInstance() - { - return AkWwiseInitializationSettings.Instance; - } -#endif - - public void Init(AkInitializer akInitializer) - { - // Only initialize the room mamanger during play. - bool initRoomManager = true; -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - initRoomManager = false; -#endif - if (initRoomManager) - AkRoomManager.Init(); - - if (akInitializer == null) - { - UnityEngine.Debug.LogError("WwiseUnity: AkInitializer must not be null. Sound engine will not be initialized."); - return; - } - -#if UNITY_EDITOR - if (UnityEngine.Application.isPlaying && !IsTheSingleOwningInitializer(akInitializer)) - { - UnityEngine.Debug.LogError("WwiseUnity: Sound engine is already initialized."); - return; - } - - var arguments = System.Environment.GetCommandLineArgs(); - if (UnityEngine.Application.isBatchMode && System.Array.IndexOf(arguments, "-wwiseEnableWithNoGraphics") < 0) - { - UnityEngine.Debug.LogWarning("WwiseUnity: Sound engine will not be initialized in batch/nographics mode. To override, specify -wwiseEnableWithNoGraphics"); - return; - } - - var isInitialized = false; - try - { - isInitialized = AkSoundEngine.IsInitialized(); - AkSoundEngine.EditorIsSoundEngineLoaded = true; - } - catch (System.DllNotFoundException) - { - AkSoundEngine.EditorIsSoundEngineLoaded = false; - UnityEngine.Debug.LogWarning("WwiseUnity: AkSoundEngine is not loaded."); - return; - } -#else - var isInitialized = AkSoundEngine.IsInitialized(); -#endif - - AkLogger.Instance.Init(); - - if (isInitialized) - { -#if UNITY_EDITOR - if (GetInitSettingsInstance().ResetSoundEngine(UnityEngine.Application.isPlaying || UnityEditor.BuildPipeline.isBuildingPlayer)) - { - UnityEditor.EditorApplication.update += LateUpdate; - } - - - if (UnityEditor.EditorApplication.isPaused && UnityEngine.Application.isPlaying) - { - AkSoundEngine.Suspend(true); - } -#else - UnityEngine.Debug.LogError("WwiseUnity: Sound engine is already initialized."); -#endif - return; - } - -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer) - return; -#endif - - if (!GetInitSettingsInstance().InitializeSoundEngine()) - return; - -#if UNITY_EDITOR - OnEnableEditorListener(akInitializer.gameObject); - UnityEditor.EditorApplication.update += LateUpdate; -#endif - } - - public void OnDisable() - { -#if UNITY_EDITOR - if (!AkSoundEngine.EditorIsSoundEngineLoaded) - return; - - OnDisableEditorListener(); -#endif - } - - public void Terminate() - { -#if UNITY_EDITOR - ClearInitializeState(); - - if (!AkSoundEngine.EditorIsSoundEngineLoaded) - return; -#endif - - GetInitSettingsInstance().TerminateSoundEngine(); - AkRoomManager.Terminate(); - } - - // In the Editor, the sound needs to keep playing when switching windows (remote debugging in Wwise, for example). - // On iOS, application interruptions are handled in the sound engine already. -#if UNITY_EDITOR || UNITY_IOS - public void OnApplicationPause(bool pauseStatus) - { - } - - public void OnApplicationFocus(bool focus) - { - } -#else - public void OnApplicationPause(bool pauseStatus) - { - ActivateAudio(!pauseStatus); - } - - public void OnApplicationFocus(bool focus) - { -#if !UNITY_ANDROID - ActivateAudio(focus, AkWwiseInitializationSettings.ActivePlatformSettings.RenderDuringFocusLoss); -#endif - } -#endif - -#if UNITY_EDITOR - // Enable/Disable the audio when pressing play/pause in the editor. - private void OnPauseStateChanged(UnityEditor.PauseState pauseState) - { - if (UnityEngine.Application.isPlaying) - { - ActivateAudio(pauseState != UnityEditor.PauseState.Paused); - } - } -#endif - -#if UNITY_EDITOR || !UNITY_IOS - private void ActivateAudio(bool activate, bool renderAnyway = false) - { - if (AkSoundEngine.IsInitialized()) - { - if (activate) - AkSoundEngine.WakeupFromSuspend(); - else - AkSoundEngine.Suspend(renderAnyway); - - AkSoundEngine.RenderAudio(); - } - } -#endif - -#if UNITY_EDITOR -#region Editor Listener - private UnityEngine.GameObject editorListenerGameObject; - - private bool IsPlayingOrIsNotInitialized - { - get { return UnityEngine.Application.isPlaying || !AkSoundEngine.IsInitialized(); } - } - - private void OnEnableEditorListener(UnityEngine.GameObject gameObject) - { - if (IsPlayingOrIsNotInitialized || editorListenerGameObject != null) - return; - - editorListenerGameObject = gameObject; - AkSoundEngine.RegisterGameObj(editorListenerGameObject, editorListenerGameObject.name); - - // Do not create AkGameObj component when adding this listener - var id = AkSoundEngine.GetAkGameObjectID(editorListenerGameObject); - AkSoundEngine.AddDefaultListener(id); - - UnityEditor.EditorApplication.update += UpdateEditorListenerPosition; - } - - private void OnDisableEditorListener() - { - if (IsPlayingOrIsNotInitialized || editorListenerGameObject == null) - return; - - UnityEditor.EditorApplication.update -= UpdateEditorListenerPosition; - - var id = AkSoundEngine.GetAkGameObjectID(editorListenerGameObject); - AkSoundEngine.RemoveDefaultListener(id); - - AkSoundEngine.UnregisterGameObj(editorListenerGameObject); - editorListenerGameObject = null; - } - - private UnityEngine.Vector3 editorListenerPosition = UnityEngine.Vector3.zero; - private UnityEngine.Vector3 editorListenerForward = UnityEngine.Vector3.zero; - private UnityEngine.Vector3 editorListenerUp = UnityEngine.Vector3.zero; - - private void UpdateEditorListenerPosition() - { - if (IsPlayingOrIsNotInitialized || editorListenerGameObject == null) - return; - - if (UnityEditor.SceneView.lastActiveSceneView == null) - return; - - var sceneViewCamera = UnityEditor.SceneView.lastActiveSceneView.camera; - if (sceneViewCamera == null) - return; - - var sceneViewTransform = sceneViewCamera.transform; - if (sceneViewTransform == null) - return; - - if (editorListenerPosition == sceneViewTransform.position && - editorListenerForward == sceneViewTransform.forward && - editorListenerUp == sceneViewTransform.up) - return; - - AkSoundEngine.SetObjectPosition(editorListenerGameObject, sceneViewTransform); - - editorListenerPosition = sceneViewTransform.position; - editorListenerForward = sceneViewTransform.forward; - editorListenerUp = sceneViewTransform.up; - } -#endregion - -#region Initialize only once - private AkInitializer TheAkInitializer = null; - - /// - /// Determines whether this AkInitializer is the single one responsible for initializing the sound engine. - /// - /// - /// Returns true when called on the first AkInitializer and false otherwise. - private bool IsTheSingleOwningInitializer(AkInitializer akInitializer) - { - if (TheAkInitializer == null && akInitializer != null) - { - TheAkInitializer = akInitializer; - return true; - } - - return false; - } - - private void ClearInitializeState() - { - TheAkInitializer = null; - } -#endregion -#endif // UNITY_EDITOR -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs.meta deleted file mode 100644 index 438de8bad..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e0bddedd415524746b63c64ff8d9b2ce -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioDebugDraw.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioDebugDraw.cs deleted file mode 100644 index 8c9276e3f..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioDebugDraw.cs +++ /dev/null @@ -1,176 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkSpatialAudioDebugDraw")] -[UnityEngine.RequireComponent(typeof(AkGameObj))] -///@brief Add this script on a GameObject to print Spatial Audio paths. -public class AkSpatialAudioDebugDraw : UnityEngine.MonoBehaviour -{ -#if UNITY_EDITOR - /// This allows you to visualize first order reflection sound paths. - public bool drawFirstOrderReflections = false; - - /// This allows you to visualize second order reflection sound paths. - public bool drawSecondOrderReflections = false; - - /// This allows you to visualize third or higher order reflection sound paths. - public bool drawHigherOrderReflections = false; - - /// This allows you to visualize geometric diffraction sound paths between an obstructed emitter and the listener. - public bool drawDiffractionPaths = false; - - private void OnDrawGizmos() - { - if (!UnityEngine.Application.isPlaying || !AkSoundEngine.IsInitialized()) - return; - - if (debugDrawData == null) - debugDrawData = new DebugDrawData(); - - if (drawFirstOrderReflections || drawSecondOrderReflections || drawHigherOrderReflections) - debugDrawData.DebugDrawEarlyReflections(gameObject, drawFirstOrderReflections, drawSecondOrderReflections, drawHigherOrderReflections); - - if (drawDiffractionPaths) - debugDrawData.DebugDrawDiffraction(gameObject); - } - - private class DebugDrawData - { - // Constants - private const uint kMaxIndirectPaths = 64; - private const uint kMaxDiffractionPaths = 16; - private readonly UnityEngine.Color32 colorLightYellow = new UnityEngine.Color32(255, 255, 121, 255); - private readonly UnityEngine.Color32 colorDarkYellow = new UnityEngine.Color32(164, 164, 0, 255); - private readonly UnityEngine.Color32 colorLightOrange = new UnityEngine.Color32(255, 202, 79, 255); - private readonly UnityEngine.Color32 colorDarkOrange = new UnityEngine.Color32(164, 115, 0, 255); - private readonly UnityEngine.Color32 colorLightRed = new UnityEngine.Color32(252, 177, 162, 255); - private readonly UnityEngine.Color32 colorDarkRed = new UnityEngine.Color32(169, 62, 39, 255); - private readonly UnityEngine.Color32 colorLightGrey = new UnityEngine.Color32(75, 75, 75, 255); - private readonly UnityEngine.Color32 colorGreen = new UnityEngine.Color32(38, 113, 88, 255); - private const float radiusSphere = 0.25f; - - // Calculated path info - private readonly AkReflectionPathInfoArray indirectPathInfoArray = new AkReflectionPathInfoArray((int)kMaxIndirectPaths); - private readonly AkDiffractionPathInfoArray diffractionPathInfoArray = new AkDiffractionPathInfoArray((int)kMaxDiffractionPaths); - - public void DebugDrawEarlyReflections(UnityEngine.GameObject gameObject, bool firstOrder, bool secondOrder, bool higherOrder) - { - var listenerPosition = UnityEngine.Vector3.zero; - var emitterPosition = UnityEngine.Vector3.zero; - uint numValidPaths = (uint)indirectPathInfoArray.Count(); - if (AkSoundEngine.QueryReflectionPaths(gameObject, 0, ref listenerPosition, ref emitterPosition, indirectPathInfoArray, out numValidPaths) != AKRESULT.AK_Success) - return; - - for (var idxPath = (int)numValidPaths - 1; idxPath >= 0; --idxPath) - { - var path = indirectPathInfoArray[idxPath]; - var order = path.numReflections; - - var colorLight = colorLightRed; - var colorDark = colorDarkRed; - - if (order == 1) - { - if (!firstOrder) - continue; - - colorLight = colorLightYellow; - colorDark = colorDarkYellow; - } - else if (order == 2) - { - if (!secondOrder) - continue; - - colorLight = colorLightOrange; - colorDark = colorDarkOrange; - } - else if (order > 2 && !higherOrder) - continue; - - var listenerPt = listenerPosition; - - for (var idxSeg = (int)path.numPathPoints - 1; idxSeg >= 0; --idxSeg) - { - var pt = path.GetPathPoint((uint)idxSeg); - - UnityEngine.Debug.DrawLine(listenerPt, pt, path.isOccluded ? colorLightGrey : colorLight); - - UnityEngine.Gizmos.color = path.isOccluded ? colorLightGrey : colorLight; - UnityEngine.Gizmos.DrawWireSphere(pt, radiusSphere / 2 / order); - - if (!path.isOccluded) - { - var surface = path.GetAcousticSurface((uint)idxSeg); - DrawLabelInFrontOfCam(pt, surface.strName, 100000, colorDark); - } - - float dfrnAmount = path.GetDiffraction((uint)idxSeg); - if (dfrnAmount > 0) - { - string dfrnAmountStr = dfrnAmount.ToString("0.#%"); - DrawLabelInFrontOfCam(pt, dfrnAmountStr, 100000, colorDark); - } - - listenerPt = pt; - } - - if (!path.isOccluded) - { - // Finally the last path segment towards the emitter. - UnityEngine.Debug.DrawLine(listenerPt, emitterPosition, path.isOccluded ? colorLightGrey : colorLight); - } - } - } - - public void DebugDrawDiffraction(UnityEngine.GameObject gameObject) - { - var listenerPosition = UnityEngine.Vector3.zero; - var emitterPosition = UnityEngine.Vector3.zero; - uint numValidPaths = (uint)diffractionPathInfoArray.Count(); - if (AkSoundEngine.QueryDiffractionPaths(gameObject, 0, ref listenerPosition, ref emitterPosition, diffractionPathInfoArray, out numValidPaths) != AKRESULT.AK_Success) - return; - - for (var idxPath = (int)numValidPaths - 1; idxPath >= 0; --idxPath) - { - var path = diffractionPathInfoArray[idxPath]; - if (path.nodeCount <= 0) - continue; - - var prevPt = listenerPosition; - - for (var idxSeg = 0; idxSeg < (int)path.nodeCount; ++idxSeg) - { - var pt = path.GetNodes((uint)idxSeg); - UnityEngine.Debug.DrawLine(prevPt, pt, colorGreen); - - float angle = path.GetAngles((uint)idxSeg) / UnityEngine.Mathf.PI; - if (angle > 0) - { - string angleStr = angle.ToString("0.#%"); - DrawLabelInFrontOfCam(pt, angleStr, 100000, colorGreen); - } - - prevPt = pt; - } - - UnityEngine.Debug.DrawLine(prevPt, emitterPosition, colorGreen); - } - } - } - - private static DebugDrawData debugDrawData = null; - - private static void DrawLabelInFrontOfCam(UnityEngine.Vector3 position, string name, float distance, UnityEngine.Color c) - { - var style = new UnityEngine.GUIStyle(); - var oncam = UnityEngine.Camera.current.WorldToScreenPoint(position); - - if (oncam.x >= 0 && oncam.x <= UnityEngine.Camera.current.pixelWidth && oncam.y >= 0 && - oncam.y <= UnityEngine.Camera.current.pixelHeight && oncam.z > 0 && oncam.z < distance) - { - style.normal.textColor = c; - UnityEditor.Handles.Label(position, name, style); - } - } -#endif -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioDebugDraw.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioDebugDraw.cs.meta deleted file mode 100644 index 0d01f4830..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioDebugDraw.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 114c31abbe4bbf947afdba0ae901ecb0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioEmitter.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioEmitter.cs deleted file mode 100644 index 927338008..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioEmitter.cs +++ /dev/null @@ -1,210 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -///@brief (DEPRECATED) This script is deprecated as of 2019.2. Early reflections, Diffraction and Room Reverb can all be enabled per sound in the Sound Property Editor of the Authoring. -/// @details Some functionalities were moved to different components. See the AkEarlyReflections and AkSpatialAudioDebugDraw components for more details. -public class AkSpatialAudioEmitter : UnityEngine.MonoBehaviour -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - [UnityEngine.Header("Early Reflections")] - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, the early reflections auxiliary bus can be set per sound, in the Authoring tool, or per game object, with the AkEarlyReflections component.")] - /// (DEPRECATED) As of 2019.2, the early reflections auxiliary bus can be set per sound, in the Authoring tool, or per game object, with the AkEarlyReflections component. - public AK.Wwise.AuxBus reflectAuxBus = new AK.Wwise.AuxBus(); - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, the Reflection Max Path Length is set by the sound's Attenuation Max Distance value in the Authoring tool.")] - /// (DEPRECATED) As of 2019.2, the Reflection Max Path Length is set by the sound's Attenuation Max Distance value in the Authoring tool. - public float reflectionMaxPathLength = 1000; - [UnityEngine.Range(0, 1)] - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, the early reflections send volume can be set per sound, in the Authoring tool, or for all sunds playing on a game object, with the AkEarlyReflections component.")] - /// (DEPRECATED) As of 2019.2, the early reflections send volume can be set per sound, in the Authoring tool, or for all sunds playing on a game object, with the AkEarlyReflections component. - public float reflectionsAuxBusGain = 1; - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, the Reflection Order is set in the Spatial Audio Initialization Settings.")] - /// (DEPRECATED) As of 2019.2, the Reflection Order is set in the Spatial Audio Initialization Settings. - public uint reflectionsOrder = 1; - - [UnityEngine.Header("Rooms")] - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, the Room Reverb Aux Bus Gain is set by the Game-Defined Auxiliary Sends Volume in the Sound Property Editor in the Authoring tool.")] - /// (DEPRECATED) As of 2019.2, the Room Reverb Aux Bus Gain is set by the Game-Defined Auxiliary Sends Volume in the Sound Property Editor in the Authoring tool. - public float roomReverbAuxBusGain = 1; - - [UnityEngine.Header("Geometric Diffraction")] - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool.")] - /// (DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool. - public uint diffractionMaxEdges = 0; - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool.")] - /// (DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool. - public uint diffractionMaxPaths = 0; - [UnityEngine.Tooltip("(DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool.")] - /// (DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool. - public uint diffractionMaxPathLength = 0; - -#if UNITY_EDITOR - [UnityEngine.Header("Debug Draw")] - - [UnityEngine.Tooltip("(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")] - /// (DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component. - public bool drawFirstOrderReflections = false; - [UnityEngine.Tooltip("(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")] - /// (DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component. - public bool drawSecondOrderReflections = false; - [UnityEngine.Tooltip("(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")] - /// (DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component. - public bool drawHigherOrderReflections = false; - [UnityEngine.Tooltip("(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")] - /// (DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component. - public bool drawDiffractionPaths = false; - - [UnityEditor.CustomEditor(typeof(AkSpatialAudioEmitter))] - [UnityEditor.CanEditMultipleObjects] - private class Editor : UnityEditor.Editor - { - private UnityEditor.SerializedProperty reflectAuxBus; - private UnityEditor.SerializedProperty reflectionMaxPathLength; - private UnityEditor.SerializedProperty reflectionsAuxBusGain; - private UnityEditor.SerializedProperty reflectionsOrder; - - private UnityEditor.SerializedProperty roomReverbAuxBusGain; - - private UnityEditor.SerializedProperty diffractionMaxEdges; - private UnityEditor.SerializedProperty diffractionMaxPaths; - private UnityEditor.SerializedProperty diffractionMaxPathLength; - - private UnityEditor.SerializedProperty drawFirstOrderReflections; - private UnityEditor.SerializedProperty drawSecondOrderReflections; - private UnityEditor.SerializedProperty drawHigherOrderReflections; - private UnityEditor.SerializedProperty drawDiffractionPaths; - - public void OnEnable() - { - reflectAuxBus = serializedObject.FindProperty("reflectAuxBus"); - reflectionMaxPathLength = serializedObject.FindProperty("reflectionMaxPathLength"); - reflectionsAuxBusGain = serializedObject.FindProperty("reflectionsAuxBusGain"); - reflectionsOrder = serializedObject.FindProperty("reflectionsOrder"); - - roomReverbAuxBusGain = serializedObject.FindProperty("roomReverbAuxBusGain"); - - diffractionMaxEdges = serializedObject.FindProperty("diffractionMaxEdges"); - diffractionMaxPaths = serializedObject.FindProperty("diffractionMaxPaths"); - diffractionMaxPathLength = serializedObject.FindProperty("diffractionMaxPathLength"); - - drawFirstOrderReflections = serializedObject.FindProperty("drawFirstOrderReflections"); - drawSecondOrderReflections = serializedObject.FindProperty("drawSecondOrderReflections"); - drawHigherOrderReflections = serializedObject.FindProperty("drawHigherOrderReflections"); - drawDiffractionPaths = serializedObject.FindProperty("drawDiffractionPaths"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - var wasEnabled = UnityEngine.GUI.enabled; - UnityEngine.GUI.enabled = false; - - UnityEditor.EditorGUILayout.PropertyField(reflectAuxBus, new UnityEngine.GUIContent("Reflect Aux Bus", "(DEPRECATED) As of 2019.2, the early reflections auxiliary bus can be set per sound, in the Authoring tool, or per game object, with the AkEarlyReflections component.")); - UnityEditor.EditorGUILayout.PropertyField(reflectionMaxPathLength, new UnityEngine.GUIContent("Reflection Max Path Length", "(DEPRECATED) As of 2019.2, the Reflection Max Path Length is set by the sound's Attenuation Max Distance value in the Authoring tool.")); - UnityEditor.EditorGUILayout.PropertyField(reflectionsAuxBusGain, new UnityEngine.GUIContent("Reflections Aux Bus Gain", "(DEPRECATED) As of 2019.2, the early reflections send volume can be set per sound, in the Authoring tool, or for all sunds playing on a game object, with the AkEarlyReflections component.")); - UnityEditor.EditorGUILayout.PropertyField(reflectionsOrder, new UnityEngine.GUIContent("Reflections Order", "(DEPRECATED) As of 2019.2, the Reflection Order is set in the Spatial Audio Initialization Settings.")); - - UnityEditor.EditorGUILayout.PropertyField(roomReverbAuxBusGain, new UnityEngine.GUIContent("Room Reverb Aux Bus Gain", "(DEPRECATED) As of 2019.2, the Room Reverb Aux Bus Gain is set by the Game-Defined Auxiliary Sends Volume in the Sound Property Editor in the Authoring tool.")); - - UnityEditor.EditorGUILayout.PropertyField(diffractionMaxEdges, new UnityEngine.GUIContent("Diffraction Max Edges", "(DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool.")); - UnityEditor.EditorGUILayout.PropertyField(diffractionMaxPaths, new UnityEngine.GUIContent("Diffraction Max Paths", "(DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool.")); - UnityEditor.EditorGUILayout.PropertyField(diffractionMaxPathLength, new UnityEngine.GUIContent("Diffraction Max Path Length", "(DEPRECATED) As of 2019.2, diffraction is enabled in the Sound Property Editor in the Authoring tool.")); - - UnityEditor.EditorGUILayout.PropertyField(drawFirstOrderReflections, new UnityEngine.GUIContent("Draw First Order Reflections", "(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")); - UnityEditor.EditorGUILayout.PropertyField(drawSecondOrderReflections, new UnityEngine.GUIContent("Draw Second Order Reflections", "(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")); - UnityEditor.EditorGUILayout.PropertyField(drawHigherOrderReflections, new UnityEngine.GUIContent("Draw Higher Order Reflections", "(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")); - UnityEditor.EditorGUILayout.PropertyField(drawDiffractionPaths, new UnityEngine.GUIContent("Draw Diffraction Paths", "(DEPRECATED) Spatial Audio Debug Drawing were moved to the new AkSpatialAudioDebugDraw component.")); - - UnityEngine.GUI.enabled = wasEnabled; - - // button to add AkEarlyReflections - bool bShowButton = false; - foreach (var obj in targets) - { - AkSpatialAudioEmitter spatialAudioEmitter = obj as AkSpatialAudioEmitter; - if (spatialAudioEmitter.gameObject.GetComponent() == null) - bShowButton = true; - } - - if (bShowButton) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "If you want to keep setting Early Reflections per game object, consider adding an AkEarlyReflections component.", - UnityEditor.MessageType.Warning); - - if (UnityEngine.GUILayout.Button("Add AkEarlyReflections")) - { - foreach (var obj in targets) - { - AkSpatialAudioEmitter spatialAudioEmitter = obj as AkSpatialAudioEmitter; - if (spatialAudioEmitter.gameObject.GetComponent() == null) - { - var er = UnityEditor.Undo.AddComponent(spatialAudioEmitter.gameObject); - er.reflectionsAuxBus.ObjectReference = spatialAudioEmitter.reflectAuxBus.ObjectReference; - er.reflectionsVolume = spatialAudioEmitter.reflectionsAuxBusGain; - } - } - } - } - } - - // button to add AkSpatialAudioDebugDraw - bShowButton = false; - foreach (var obj in targets) - { - AkSpatialAudioEmitter spatialAudioEmitter = obj as AkSpatialAudioEmitter; - if (spatialAudioEmitter.gameObject.GetComponent() == null) - bShowButton = true; - } - - if (bShowButton) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "For debugging purposes, early reflection and diffraction paths can be shown in the scene with the AkSpatialAudioDebugDraw component.", - UnityEditor.MessageType.Warning); - - if (UnityEngine.GUILayout.Button("Add AkSpatialAudioDebugDraw")) - { - foreach (var obj in targets) - { - AkSpatialAudioEmitter spatialAudioEmitter = obj as AkSpatialAudioEmitter; - if (spatialAudioEmitter.gameObject.GetComponent() == null) - { - var dd = UnityEditor.Undo.AddComponent(spatialAudioEmitter.gameObject); - dd.drawFirstOrderReflections = spatialAudioEmitter.drawFirstOrderReflections; - dd.drawSecondOrderReflections = spatialAudioEmitter.drawSecondOrderReflections; - dd.drawHigherOrderReflections = spatialAudioEmitter.drawHigherOrderReflections; - dd.drawDiffractionPaths = spatialAudioEmitter.drawDiffractionPaths; - } - } - } - } - } - - serializedObject.ApplyModifiedProperties(); - } - } - - #region WwiseMigration - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.NewScriptableObjectFolder_v2019_2_0)) - return false; - - UnityEditor.Undo.AddComponent(gameObject); - - return true; - } - #endregion -#endif -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioEmitter.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioEmitter.cs.meta deleted file mode 100644 index af806b0e2..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioEmitter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4831e9b5c3b18c546b3d082a5519fb71 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioListener.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioListener.cs deleted file mode 100644 index b21dc79be..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioListener.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkSpatialAudioListener")] -[UnityEngine.RequireComponent(typeof(AkAudioListener))] -[UnityEngine.RequireComponent(typeof(AkRoomAwareObject))] -[UnityEngine.DisallowMultipleComponent] -///@brief Add this script on the game object that represent a listener. This is normally added to the Camera object or the Player object, but can be added to any game object when implementing 3D busses. \c isDefaultListener determines whether the game object will be considered a default listener - a listener that automatically listens to all game objects that do not have listeners attached to their AkGameObjListenerList's. -/// \sa -/// - Integrating Listeners (Note: This is described in the Wwise SDK documentation.) -public class AkSpatialAudioListener : UnityEngine.MonoBehaviour -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - private static AkSpatialAudioListener s_SpatialAudioListener; - private static readonly SpatialAudioListenerList spatialAudioListeners = new SpatialAudioListenerList(); - private AkAudioListener AkAudioListener; - - /// - /// Returns the "single" spatial audio listener. - /// - public static AkAudioListener TheSpatialAudioListener - { - get { return s_SpatialAudioListener != null ? s_SpatialAudioListener.AkAudioListener : null; } - } - - /// - /// Returns the list of active Unity Game Objects that are designated to be spatial audio listeners. - /// - public static SpatialAudioListenerList SpatialAudioListeners - { - get { return spatialAudioListeners; } - } - - private void Awake() - { - AkAudioListener = GetComponent(); - } - - private void OnEnable() - { - spatialAudioListeners.Add(this); - } - - private void OnDisable() - { - spatialAudioListeners.Remove(this); - } - - /// - /// This class represents the list of active Unity Game Objects that are designated to be spatial audio listeners. - /// Currently, only one spatial audio listener can be active at a time. - /// - public class SpatialAudioListenerList - { - private readonly System.Collections.Generic.List listenerList = - new System.Collections.Generic.List(); - - public System.Collections.Generic.List ListenerList - { - get { return listenerList; } - } - - /// - /// Uniquely adds listeners to the list - /// - /// - /// - public bool Add(AkSpatialAudioListener listener) - { - if (listener == null) - return false; - - if (listenerList.Contains(listener)) - return false; - - listenerList.Add(listener); - Refresh(); - return true; - } - - /// - /// Removes listeners from the list - /// - /// - /// - public bool Remove(AkSpatialAudioListener listener) - { - if (listener == null) - return false; - - if (!listenerList.Remove(listener)) - return false; - - Refresh(); - return true; - } - - private void Refresh() - { - if (ListenerList.Count == 1) - { - if (s_SpatialAudioListener != null) - AkSoundEngine.UnregisterSpatialAudioListener(s_SpatialAudioListener.gameObject); - - s_SpatialAudioListener = ListenerList[0]; - - AkSoundEngine.RegisterSpatialAudioListener(s_SpatialAudioListener.gameObject); - } - else if (ListenerList.Count == 0 && s_SpatialAudioListener != null) - { - AkSoundEngine.UnregisterSpatialAudioListener(s_SpatialAudioListener.gameObject); - s_SpatialAudioListener = null; - } - } - } - -#if UNITY_EDITOR - #region WwiseMigration - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.NewScriptableObjectFolder_v2019_2_0)) - return false; - - UnityEditor.Undo.AddComponent(gameObject); - - return true; - } - #endregion -#endif -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioListener.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioListener.cs.meta deleted file mode 100644 index 7b5d7b8d4..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSpatialAudioListener.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 257865e72e0784f478546aede851ca3e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkState.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkState.cs deleted file mode 100644 index 9b1be9636..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkState.cs +++ /dev/null @@ -1,94 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkState")] -[UnityEngine.DefaultExecutionOrder(-20)] -/// @brief This will call \c AkSoundEngine.SetState() whenever the selected Unity event is triggered. For example this component could be set on a Unity collider to trigger when an object enters it. -/// \sa -/// - Integration Details - States (Note: This is described in the Wwise SDK documentation.) -public class AkState : AkDragDropTriggerHandler -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - public AK.Wwise.State data = new AK.Wwise.State(); - protected override AK.Wwise.BaseType WwiseType { get { return data; } } - - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - data.SetValue(); - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public int valueID { get { return (int)(data == null ? AkSoundEngine.AK_INVALID_UNIQUE_ID : data.Id); } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public int groupID { get { return (int)(data == null ? AkSoundEngine.AK_INVALID_UNIQUE_ID : data.GroupId); } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] valueGuid - { - get - { - if (data == null) - return null; - - var objRef = data.ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] groupGuid - { - get - { - if (data == null) - return null; - - var objRef = data.GroupWwiseObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueID")] - private int valueIdInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("groupID")] - private int groupIdInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueGuid")] - private byte[] valueGuidInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("groupGuid")] - private byte[] groupGuidInternal; -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.WwiseTypes_v2018_1_6)) - return false; - - return AK.Wwise.TypeMigration.ProcessDoubleGuidType(obj.FindProperty("data.WwiseObjectReference"), WwiseObjectType.State, - obj.FindProperty("valueGuidInternal"), obj.FindProperty("valueIdInternal"), - obj.FindProperty("groupGuidInternal"), obj.FindProperty("groupIdInternal")); - } -#endif - - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkState.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkState.cs.meta deleted file mode 100644 index 290c145d1..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkState.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 99b3ab61e0f25f44ba5be56f14dd716e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -20 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSurfaceReflector.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkSurfaceReflector.cs deleted file mode 100644 index c7d1b786a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSurfaceReflector.cs +++ /dev/null @@ -1,520 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -[UnityEngine.AddComponentMenu("Wwise/Spatial Audio/AkSurfaceReflector")] -[UnityEngine.ExecuteInEditMode] -///@brief This component converts the provided mesh into Spatial Audio Geometry. -///@details This component takes a mesh as a parameter. The triangles of the mesh are sent to Spatial Audio by calling SpatialAudio::AddGeometrySet(). The triangles reflect sounds that have an associated early reflections bus. If diffraction is enabled on this component, spatial audio also finds edges on the provided mesh, which diffract sounds that are diffraction enabled. -public class AkSurfaceReflector : UnityEngine.MonoBehaviour -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - public static ulong INVALID_GEOMETRY_ID = unchecked((ulong)-1.0f); - - [UnityEngine.Tooltip("The mesh to send to Spatial Audio as a Geometry Set. If this GameObject has a MeshFilter component, you can leave this parameter to None to use the same mesh for Spatial Audio. Otherwise, this parameter lets you import a different mesh for Spatial Audio purposes. We recommend using a simplified mesh.")] - /// The mesh to send to Spatial Audio as a Geometry Set. We recommend using a simplified mesh. - public UnityEngine.Mesh Mesh; - - [UnityEngine.Tooltip("The acoustic texture per submesh. The acoustic texture represents the surface of the geometry. An acoustic texture is a set of absorption levels that will filter the sound reflected from the geometry.")] - /// The acoustic texture per submesh. The acoustic texture represents the surface of the geometry. An acoustic texture is a set of absorption levels that will filter the sound reflected from the geometry. - public AK.Wwise.AcousticTexture[] AcousticTextures = new AK.Wwise.AcousticTexture[1]; - - [UnityEngine.Tooltip("The transmission loss value per submesh. The transmission loss value is a control value used to adjust sound parameters. Typically, a value of 1.0 represents total sound loss, and a value of 0.0 indicates that sound can be transmitted through the geometry without any loss. Default value : 1.0.")] - [UnityEngine.Range(0, 1)] - /// The transmission loss value per submesh. The transmission loss value is a control value used to adjust sound parameters. Typically, a value of 1.0 represents total sound loss, and a value of 0.0 indicates that sound can be transmitted through the geometry without any loss. Default value : 1.0. - public float[] TransmissionLossValues = new[] { 1.0f }; - - [UnityEngine.Tooltip("Enable or disable geometric diffraction for this mesh.")] - /// Switch to enable or disable geometric diffraction for this mesh. - public bool EnableDiffraction = true; - - [UnityEngine.Tooltip("Enable or disable geometric diffraction on boundary edges for this mesh. Boundary edges are edges that are connected to only one triangle.")] - /// Switch to enable or disable geometric diffraction on boundary edges for this mesh. Boundary edges are edges that are connected to only one triangle. - public bool EnableDiffractionOnBoundaryEdges = false; - - [UnityEngine.Tooltip("Optional room with which this surface reflector is associated. It is recommended to associate geometry with a particular room if the geometry is fully contained within the room and the room does not share any geometry with any other rooms. Doing so reduces the search space for ray casting performed by reflection and diffraction calculations.")] - /// Optional room with which this surface reflector is associated. It is recommended to associate geometry with a particular room if the geometry is fully contained within the room and the room does not share any geometry with any other rooms. Doing so reduces the search space for ray casting performed by reflection and diffraction calculations. - public AkRoom AssociatedRoom = null; - -#if UNITY_EDITOR - private UnityEngine.Mesh previousMesh; - private UnityEngine.Vector3 previousPosition; - private UnityEngine.Vector3 previousScale; - private UnityEngine.Quaternion previousRotation; - private AkRoom previousAssociatedRoom; - private bool previousEnableDiffraction; - private bool previousEnableDiffractionOnBoundaryEdges; - private AK.Wwise.AcousticTexture[] previousAcousticTextures = new AK.Wwise.AcousticTexture[1]; - private float[] previousTransmissionLossValues = new[] { 1.0f }; -#endif - - public ulong GetID() - { - return (ulong)GetInstanceID(); - } - - public static void SetGeometryFromMesh( - UnityEngine.Mesh mesh, - UnityEngine.Transform transform, - ulong geometryID, - ulong associatedRoomID, - bool enableDiffraction, - bool enableDiffractionOnBoundaryEdges, - bool enableTriangles, - AK.Wwise.AcousticTexture[] acousticTextures = null, - float[] transmissionLossValues = null, - string name = "") - { - var vertices = mesh.vertices; - - // Remove duplicate vertices - var vertRemap = new int[vertices.Length]; - var uniqueVerts = new System.Collections.Generic.List(); - var vertDict = new System.Collections.Generic.Dictionary(); - - for (var v = 0; v < vertices.Length; ++v) - { - int vertIdx = 0; - if (!vertDict.TryGetValue(vertices[v], out vertIdx)) - { - vertIdx = uniqueVerts.Count; - uniqueVerts.Add(vertices[v]); - vertDict.Add(vertices[v], vertIdx); - } - vertRemap[v] = vertIdx; - } - - int vertexCount = uniqueVerts.Count; - var vertexArray = new UnityEngine.Vector3[vertexCount]; - - for (var v = 0; v < vertexCount; ++v) - { - var point = transform.TransformPoint(uniqueVerts[v]); - vertexArray[v].x = point.x; - vertexArray[v].y = point.y; - vertexArray[v].z = point.z; - } - - int surfaceCount = mesh.subMeshCount; - - var numTriangles = mesh.triangles.Length / 3; - if ((mesh.triangles.Length % 3) != 0) - { - UnityEngine.Debug.LogFormat("SetGeometryFromMesh({0}): Wrong number of triangles", mesh.name); - } - - using (var surfaceArray = new AkAcousticSurfaceArray(surfaceCount)) - using (var triangleArray = new AkTriangleArray(numTriangles)) - { - int triangleArrayIdx = 0; - - for (var s = 0; s < surfaceCount; ++s) - { - var surface = surfaceArray[s]; - var triangles = mesh.GetTriangles(s); - var triangleCount = triangles.Length / 3; - if ((triangles.Length % 3) != 0) - { - UnityEngine.Debug.LogFormat("SetGeometryFromMesh({0}): Wrong number of triangles in submesh {1}", mesh.name, s); - } - - AK.Wwise.AcousticTexture acousticTexture = null; - float occlusionValue = 1.0f; - - if (acousticTextures != null && s < acousticTextures.Length) - acousticTexture = acousticTextures[s]; - - if (transmissionLossValues != null && s < transmissionLossValues.Length) - occlusionValue = transmissionLossValues[s]; - - surface.textureID = acousticTexture == null ? AK.Wwise.AcousticTexture.InvalidId : acousticTexture.Id; - surface.transmissionLoss = occlusionValue; - surface.strName = name + "_" + mesh.name + "_" + s; - - for (var i = 0; i < triangleCount; ++i) - { - var triangle = triangleArray[triangleArrayIdx]; - - triangle.point0 = (ushort)vertRemap[triangles[3 * i + 0]]; - triangle.point1 = (ushort)vertRemap[triangles[3 * i + 1]]; - triangle.point2 = (ushort)vertRemap[triangles[3 * i + 2]]; - triangle.surface = (ushort)s; - - if (triangle.point0 != triangle.point1 && triangle.point0 != triangle.point2 && triangle.point1 != triangle.point2) - { - ++triangleArrayIdx; - } - else - { - UnityEngine.Debug.LogFormat("SetGeometryFromMesh({0}): Skipped degenerate triangle({1}, {2}, {3}) in submesh {4}", mesh.name, 3 * i + 0, 3 * i + 1, 3 * i + 2, s); - } - } - } - - if (triangleArrayIdx > 0) - { - AkSoundEngine.SetGeometry( - geometryID, - triangleArray, - (uint)triangleArrayIdx, - vertexArray, - (uint)vertexArray.Length, - surfaceArray, - (uint)surfaceArray.Count(), - associatedRoomID, - enableDiffraction, - enableDiffractionOnBoundaryEdges, - enableTriangles); - } - else - { - UnityEngine.Debug.LogFormat("SetGeometry({0}): No valid triangle was found. Geometry was not set", mesh.name); - } - } - } - - public void SetAssociatedRoom(AkRoom room) - { - if (AssociatedRoom != room) - { - AssociatedRoom = room; - UpdateGeometry(); - if (AssociatedRoom != null) - AkRoomManager.RegisterReflector(this); - else - AkRoomManager.UnregisterReflector(this); - } - } - - /// - /// Sends the mesh's triangles and their acoustic texture to Spatial Audio - /// - public void SetGeometry() - { - if (!AkSoundEngine.IsInitialized()) - return; - - if (Mesh == null) - { - UnityEngine.Debug.LogFormat("SetGeometry({0}): No mesh found!", gameObject.name); - return; - } - - - SetGeometryFromMesh( - Mesh, - transform, - GetID(), - AkRoom.GetAkRoomID(AssociatedRoom && AssociatedRoom.enabled ? AssociatedRoom : null), - EnableDiffraction, - EnableDiffractionOnBoundaryEdges, - true, - AcousticTextures, - TransmissionLossValues, - name); - } - - /// - /// Update the surface reflector's geometry in Spatial Audio. - /// - public void UpdateGeometry() - { - SetGeometry(); - } - - /// - /// Remove the surface reflector's geometry from Spatial Audio. - /// - public void RemoveGeometry() - { - AkSoundEngine.RemoveGeometry(GetID()); - } - - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public static void RemoveGeometrySet(UnityEngine.MeshFilter meshFilter) - { - if (meshFilter != null) - AkSoundEngine.RemoveGeometry(GetAkGeometrySetID(meshFilter)); - } - - private void Awake() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; - - var reference = AkWwiseTypes.DragAndDropObjectReference; - if (reference) - { - UnityEngine.GUIUtility.hotControl = 0; - - if (AcousticTextures == null || AcousticTextures.Length < 1) - AcousticTextures = new AK.Wwise.AcousticTexture[1]; - - if (AcousticTextures[0] == null) - AcousticTextures[0] = new AK.Wwise.AcousticTexture(); - - AcousticTextures[0].ObjectReference = reference; - } - - if (!UnityEditor.EditorApplication.isPlaying) - return; -#endif - - if (Mesh == null) - { - var meshFilter = GetComponent(); - if (meshFilter != null) - Mesh = meshFilter.sharedMesh; - } - } - - private void OnEnable() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating || !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - SetGeometry(); - if (AssociatedRoom != null) - AkRoomManager.RegisterReflector(this); - } - - private void OnDisable() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating || !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - RemoveGeometry(); - AkRoomManager.UnregisterReflector(this); - } - -#if UNITY_EDITOR - - private void Update() - { - if (!UnityEditor.EditorApplication.isPlaying) - return; - - if (previousMesh != Mesh || - previousPosition != transform.position || - previousRotation != transform.rotation || - previousScale != transform.localScale || - previousEnableDiffraction != EnableDiffraction || - previousEnableDiffractionOnBoundaryEdges != EnableDiffractionOnBoundaryEdges || - previousAcousticTextures != AcousticTextures || - previousTransmissionLossValues != TransmissionLossValues) - UpdateGeometry(); - - if (previousAssociatedRoom != AssociatedRoom) - SetAssociatedRoom(AssociatedRoom); - - previousAssociatedRoom = AssociatedRoom; - previousMesh = Mesh; - previousPosition = transform.position; - previousRotation = transform.rotation; - previousScale = transform.localScale; - previousEnableDiffraction = EnableDiffraction; - previousEnableDiffractionOnBoundaryEdges = EnableDiffractionOnBoundaryEdges; - previousAcousticTextures = AcousticTextures; - previousTransmissionLossValues = TransmissionLossValues; - } - - [UnityEditor.CustomEditor(typeof(AkSurfaceReflector))] - [UnityEditor.CanEditMultipleObjects] - private class Editor : UnityEditor.Editor - { - private AkSurfaceReflector m_AkSurfaceReflector; - - private UnityEditor.SerializedProperty Mesh; - private UnityEditor.SerializedProperty AcousticTextures; - private UnityEditor.SerializedProperty TransmissionLossValues; - private UnityEditor.SerializedProperty EnableDiffraction; - private UnityEditor.SerializedProperty EnableDiffractionOnBoundaryEdges; - private UnityEditor.SerializedProperty AssociatedRoom; - - public void OnEnable() - { - m_AkSurfaceReflector = target as AkSurfaceReflector; - - Mesh = serializedObject.FindProperty("Mesh"); - AcousticTextures = serializedObject.FindProperty("AcousticTextures"); - TransmissionLossValues = serializedObject.FindProperty("TransmissionLossValues"); - EnableDiffraction = serializedObject.FindProperty("EnableDiffraction"); - EnableDiffractionOnBoundaryEdges = serializedObject.FindProperty("EnableDiffractionOnBoundaryEdges"); - AssociatedRoom = serializedObject.FindProperty("AssociatedRoom"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - UnityEditor.EditorGUILayout.PropertyField(Mesh); - - UnityEditor.EditorGUILayout.PropertyField(AcousticTextures, true); - CheckArraySize(m_AkSurfaceReflector, m_AkSurfaceReflector.AcousticTextures.Length, "acoustic textures"); - - UnityEditor.EditorGUILayout.PropertyField(TransmissionLossValues, true); - CheckArraySize(m_AkSurfaceReflector, m_AkSurfaceReflector.TransmissionLossValues.Length, "transmission loss values"); - - UnityEditor.EditorGUILayout.PropertyField(EnableDiffraction); - if (EnableDiffraction.boolValue) - UnityEditor.EditorGUILayout.PropertyField(EnableDiffractionOnBoundaryEdges); - - UnityEditor.EditorGUILayout.PropertyField(AssociatedRoom); - - serializedObject.ApplyModifiedProperties(); - } - - public static void CheckArraySize(AkSurfaceReflector surfaceReflector, int length, string name) - { - if (surfaceReflector != null && surfaceReflector.Mesh != null) - { - int maxSize = surfaceReflector.Mesh.subMeshCount; - - if (length > maxSize) - { - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.HelpBox( - "There are more " + name + " than the Mesh has submeshes. Additional ones will be ignored.", - UnityEditor.MessageType.Warning); - } - } - } - } - } -#endif - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public static ulong GetAkGeometrySetID(UnityEngine.MeshFilter meshFilter) - { - return (ulong)meshFilter.GetInstanceID(); - } - - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public static void AddGeometrySet( - AK.Wwise.AcousticTexture acousticTexture, - UnityEngine.MeshFilter meshFilter, - ulong roomID, bool enableDiffraction, - bool enableDiffractionOnBoundaryEdges, - bool enableTriangles) - { - if (!AkSoundEngine.IsInitialized()) - return; - - if (meshFilter == null) - { - UnityEngine.Debug.LogFormat("AddGeometrySet: No mesh found!"); - return; - } - - var AcousticTextures = new[] { acousticTexture }; - - var OcclusionValues = new[] { 1.0f }; - - SetGeometryFromMesh( - meshFilter.sharedMesh, - meshFilter.transform, - GetAkGeometrySetID(meshFilter), - roomID, - enableDiffraction, - enableDiffractionOnBoundaryEdges, - enableTriangles, - AcousticTextures, - OcclusionValues, - meshFilter.name); - } - - // for migration purpose, have a single acoustic texture parameter as a setter - [System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] - public AK.Wwise.AcousticTexture AcousticTexture - { - get - { - return (AcousticTextures == null || AcousticTextures.Length < 1) ? null : AcousticTextures[0]; - } - set - { - var numAcousticTextures = (Mesh == null) ? 1 : Mesh.subMeshCount; - if (AcousticTextures == null || AcousticTextures.Length < numAcousticTextures) - AcousticTextures = new AK.Wwise.AcousticTexture[numAcousticTextures]; - - for (int i = 0; i < numAcousticTextures; ++i) - AcousticTextures[i] = new AK.Wwise.AcousticTexture { WwiseObjectReference = value != null ? value.WwiseObjectReference : null }; - } - } - - - [System.Obsolete(AkSoundEngine.Deprecation_2021_1_0)] - public float[] OcclusionValues - { - get - { - return TransmissionLossValues; - } - set - { - TransmissionLossValues = value; - } - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("AcousticTexture")] - private AK.Wwise.AcousticTexture AcousticTextureInternal = new AK.Wwise.AcousticTexture(); -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.NewScriptableObjectFolder_v2019_2_0)) - return false; - - var hasChanged = false; - - var numAcousticTextures = 1; - var meshProperty = obj.FindProperty("Mesh"); - if (meshProperty != null) - { - var meshFilter = GetComponent(); - if (meshFilter) - { - var sharedMesh = meshFilter.sharedMesh; - if (sharedMesh) - { - hasChanged = true; - meshProperty.objectReferenceValue = sharedMesh; - numAcousticTextures = sharedMesh.subMeshCount; - } - } - } - - var oldwwiseObjRefProperty = obj.FindProperty("AcousticTextureInternal.WwiseObjectReference"); - if (oldwwiseObjRefProperty != null) - { - var objectReferenceValue = oldwwiseObjRefProperty.objectReferenceValue; - if (objectReferenceValue != null) - { - hasChanged = true; - var acousticTextures = obj.FindProperty("AcousticTextures"); - acousticTextures.arraySize = numAcousticTextures; - for (int i = 0; i < numAcousticTextures; ++i) - acousticTextures.GetArrayElementAtIndex(i).FindPropertyRelative("WwiseObjectReference").objectReferenceValue = objectReferenceValue; - } - } - - return hasChanged; - } -#endif - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSurfaceReflector.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkSurfaceReflector.cs.meta deleted file mode 100644 index f199b695e..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSurfaceReflector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a3745e74c894cf44ab1f5e3fc85eea54 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSwitch.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkSwitch.cs deleted file mode 100644 index 71d78cade..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSwitch.cs +++ /dev/null @@ -1,94 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.AddComponentMenu("Wwise/AkSwitch")] -[UnityEngine.DefaultExecutionOrder(-10)] -/// @brief This will call AkSoundEngine.SetSwitch() whenever the selected Unity event is triggered. For example, this component could be set on a Unity collider to trigger when an object enters it. -/// \sa -/// - Integration Details - Switches (Note: This is described in the Wwise SDK documentation.) -public class AkSwitch : AkDragDropTriggerHandler -#if UNITY_EDITOR - , AK.Wwise.IMigratable -#endif -{ - public AK.Wwise.Switch data = new AK.Wwise.Switch(); - protected override AK.Wwise.BaseType WwiseType { get { return data; } } - - public override void HandleEvent(UnityEngine.GameObject in_gameObject) - { - data.SetValue(useOtherObject && in_gameObject != null ? in_gameObject : gameObject); - } - - #region Obsolete - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public int valueID { get { return (int)(data == null ? AkSoundEngine.AK_INVALID_UNIQUE_ID : data.Id); } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public int groupID { get { return (int)(data == null ? AkSoundEngine.AK_INVALID_UNIQUE_ID : data.GroupId); } } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] valueGuid - { - get - { - if (data == null) - return null; - - var objRef = data.ObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - - [System.Obsolete(AkSoundEngine.Deprecation_2018_1_6)] - public byte[] groupGuid - { - get - { - if (data == null) - return null; - - var objRef = data.GroupWwiseObjectReference; - return !objRef ? null : objRef.Guid.ToByteArray(); - } - } - #endregion - - #region WwiseMigration -#pragma warning disable 0414 // private field assigned but not used. - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueID")] - private int valueIdInternal = (int)AkSoundEngine.AK_INVALID_UNIQUE_ID; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("groupID")] - private int groupIdInternal = (int)AkSoundEngine.AK_INVALID_UNIQUE_ID; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("valueGuid")] - private byte[] valueGuidInternal; - [UnityEngine.HideInInspector] - [UnityEngine.SerializeField] - [UnityEngine.Serialization.FormerlySerializedAs("groupGuid")] - private byte[] groupGuidInternal; -#pragma warning restore 0414 // private field assigned but not used. - -#if UNITY_EDITOR - bool AK.Wwise.IMigratable.Migrate(UnityEditor.SerializedObject obj) - { - if (!AkUtilities.IsMigrationRequired(AkUtilities.MigrationStep.WwiseTypes_v2018_1_6)) - return false; - - return AK.Wwise.TypeMigration.ProcessDoubleGuidType(obj.FindProperty("data.WwiseObjectReference"), WwiseObjectType.Switch, - obj.FindProperty("valueGuidInternal"), obj.FindProperty("valueIdInternal"), - obj.FindProperty("groupGuidInternal"), obj.FindProperty("groupIdInternal")); - } -#endif - - #endregion -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkSwitch.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkSwitch.cs.meta deleted file mode 100644 index 532f38790..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkSwitch.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 94aa552a2efec3b43b78b28416c7a91c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -10 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTerminator.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTerminator.cs deleted file mode 100644 index e4820aa3a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTerminator.cs +++ /dev/null @@ -1,12 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2012 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.DisallowMultipleComponent] -public class AkTerminator : UnityEngine.MonoBehaviour -{ -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTerminator.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTerminator.cs.meta deleted file mode 100644 index 0ecd8bc67..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTerminator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7f59ececaab17294eb4b3fa30426bc72 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 100 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerBase.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerBase.cs deleted file mode 100644 index f752dec49..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerBase.cs +++ /dev/null @@ -1,62 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Base class for the generic triggering mechanism for Wwise Integration. -/// All Wwise components will use this mechanism to drive their behavior. -/// Derive from this class to add your own triggering condition, as described in \ref unity_add_triggers -public abstract class AkTriggerBase : UnityEngine.MonoBehaviour -{ - /// Delegate declaration for all Wwise Triggers. - public delegate void Trigger( - UnityEngine.GameObject in_gameObject ///< in_gameObject is used to pass "Collidee" objects when Colliders are used. Some components have the option "Use other object", this is the object they'll use. - ); - - /// All components reacting to the trigger will be registered in this delegate. - public Trigger triggerDelegate = null; - - public static System.Collections.Generic.Dictionary GetAllDerivedTypes() - { - var derivedTypes = new System.Collections.Generic.Dictionary(); - - var baseType = typeof(AkTriggerBase); - -#if UNITY_WSA && !UNITY_EDITOR - var baseTypeInfo = System.Reflection.IntrospectionExtensions.GetTypeInfo(baseType); - var typeInfos = baseTypeInfo.Assembly.DefinedTypes; - - foreach (var typeInfo in typeInfos) - { - if (typeInfo.IsClass && (typeInfo.IsSubclassOf(baseType) || baseTypeInfo.IsAssignableFrom(typeInfo) && baseType != typeInfo.AsType())) - { - var typeName = typeInfo.Name; - derivedTypes.Add(AkUtilities.ShortIDGenerator.Compute(typeName), typeName); - } - } -#else - var types = baseType.Assembly.GetTypes(); - - for (var i = 0; i < types.Length; i++) - { - if (types[i].IsClass && - (types[i].IsSubclassOf(baseType) || baseType.IsAssignableFrom(types[i]) && baseType != types[i])) - { - var typeName = types[i].Name; - derivedTypes.Add(AkUtilities.ShortIDGenerator.Compute(typeName), typeName); - } - } -#endif - - //Add the Awake, Start and Destroy triggers and build the displayed list. - derivedTypes.Add(AkUtilities.ShortIDGenerator.Compute("Awake"), "Awake"); - derivedTypes.Add(AkUtilities.ShortIDGenerator.Compute("Start"), "Start"); - derivedTypes.Add(AkUtilities.ShortIDGenerator.Compute("Destroy"), "Destroy"); - - return derivedTypes; - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerBase.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerBase.cs.meta deleted file mode 100644 index 5dd4be7fa..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 419c445312767f04da6b3c5212a07418 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionEnter.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionEnter.cs deleted file mode 100644 index ae7ee94cc..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionEnter.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// -public class AkTriggerCollisionEnter : AkTriggerBase -{ - public UnityEngine.GameObject triggerObject = null; - - private void OnCollisionEnter(UnityEngine.Collision in_other) - { - if (triggerDelegate != null && (triggerObject == null || triggerObject == in_other.gameObject)) - triggerDelegate(in_other.gameObject); - } - - private void OnTriggerEnter(UnityEngine.Collider in_other) - { - if (triggerDelegate != null && (triggerObject == null || triggerObject == in_other.gameObject)) - triggerDelegate(in_other.gameObject); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionEnter.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionEnter.cs.meta deleted file mode 100644 index 944a01b70..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionEnter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7019647fb669bac48a729fd8c3342149 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionExit.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionExit.cs deleted file mode 100644 index 9507313b2..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionExit.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// -public class AkTriggerCollisionExit : AkTriggerBase -{ - public UnityEngine.GameObject triggerObject = null; - - private void OnCollisionExit(UnityEngine.Collision in_other) - { - if (triggerDelegate != null && (triggerObject == null || triggerObject == in_other.gameObject)) - triggerDelegate(in_other.gameObject); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionExit.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionExit.cs.meta deleted file mode 100644 index 3ec2bacf4..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerCollisionExit.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7855505801e40e64491a687fe5a90939 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerDisable.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerDisable.cs deleted file mode 100644 index 03ea3c674..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerDisable.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkTriggerDisable : AkTriggerBase -{ - private void OnDisable() - { - if (triggerDelegate != null) - triggerDelegate(null); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerDisable.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerDisable.cs.meta deleted file mode 100644 index 8c6d181ca..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerDisable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 207e43f79e918e047b626dda69d96646 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnable.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnable.cs deleted file mode 100644 index 79e35289e..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnable.cs +++ /dev/null @@ -1,13 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_2)] -public class AkTriggerEnable : AkTriggerBase -{ -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnable.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnable.cs.meta deleted file mode 100644 index 9346e018a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ec1821531aa54b54b8d70bb45100ecca -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnter.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnter.cs deleted file mode 100644 index b9baacd15..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnter.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// -public class AkTriggerEnter : AkTriggerBase -{ - public UnityEngine.GameObject triggerObject = null; - - private void OnTriggerEnter(UnityEngine.Collider in_other) - { - if (triggerDelegate != null && (triggerObject == null || triggerObject == in_other.gameObject)) - triggerDelegate(in_other.gameObject); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnter.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnter.cs.meta deleted file mode 100644 index ef4c2153a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerEnter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 996ff7da7303c51408d093f0adc26418 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerExit.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerExit.cs deleted file mode 100644 index 5c56842ae..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerExit.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// -public class AkTriggerExit : AkTriggerBase -{ - public UnityEngine.GameObject triggerObject = null; - - private void OnTriggerExit(UnityEngine.Collider in_other) - { - if (triggerDelegate != null && (triggerObject == null || triggerObject == in_other.gameObject)) - triggerDelegate(in_other.gameObject); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerExit.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerExit.cs.meta deleted file mode 100644 index aca91d09a..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerExit.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b20ad1e45ce31a6449e1ed7c57631d8c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerHandler.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerHandler.cs deleted file mode 100644 index 59248e06b..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerHandler.cs +++ /dev/null @@ -1,186 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public abstract class AkTriggerHandler : UnityEngine.MonoBehaviour -{ - public const int AWAKE_TRIGGER_ID = 1151176110; - public const int START_TRIGGER_ID = 1281810935; - public const int DESTROY_TRIGGER_ID = unchecked((int)3936390293); - public const int ON_ENABLE_TRIGGER_ID = -320808462; - - ///Since our mask is a 32 bits integer, we can't have more than 32 triggers - public const int MAX_NB_TRIGGERS = 32; - - ///Will contain the types of all the triggers derived from AkTriggerBase at runtime - public static System.Collections.Generic.Dictionary triggerTypes = AkTriggerBase.GetAllDerivedTypes(); - - private bool didDestroy; - - ///List containing the enabled triggers. - public System.Collections.Generic.List triggerList = new System.Collections.Generic.List { START_TRIGGER_ID }; - - ///This property is usefull only when used with colliders. When enabled, the target of the action will be the other colliding object. When disabled, it will be the current object. - public bool useOtherObject = false; - - public abstract void HandleEvent(UnityEngine.GameObject in_gameObject); - - protected virtual void Awake() - { - RegisterTriggers(triggerList, HandleEvent); - } - - protected virtual void Start() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; -#endif - - if (triggerList.Contains(START_TRIGGER_ID)) - HandleEvent(null); - } - - protected virtual void OnDestroy() - { - if (!didDestroy) - DoDestroy(); - } - - public void DoDestroy() - { - UnregisterTriggers(triggerList, HandleEvent); - didDestroy = true; - } - - public virtual void OnEnable() - { - if (triggerList.Contains(ON_ENABLE_TRIGGER_ID)) - HandleEvent(null); - } - - protected void RegisterTriggers(System.Collections.Generic.List in_triggerList, AkTriggerBase.Trigger in_delegate) - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; -#endif - - foreach (uint triggerID in in_triggerList) - { - switch (triggerID) - { - case AWAKE_TRIGGER_ID: - case START_TRIGGER_ID: - case unchecked((uint)DESTROY_TRIGGER_ID): - case unchecked((uint)ON_ENABLE_TRIGGER_ID): - continue; - } - - var triggerName = string.Empty; - if (triggerTypes.TryGetValue(triggerID, out triggerName)) - { - var trigger = (AkTriggerBase)GetComponent(System.Type.GetType(triggerName)); - if (trigger == null) - trigger = (AkTriggerBase)gameObject.AddComponent(System.Type.GetType(triggerName)); - trigger.triggerDelegate += in_delegate; - } - } - - if (in_triggerList.Contains(AWAKE_TRIGGER_ID)) - in_delegate(null); - } - - protected void UnregisterTriggers(System.Collections.Generic.List in_triggerList, AkTriggerBase.Trigger in_delegate) - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; -#endif - - foreach (uint triggerID in in_triggerList) - { - switch (triggerID) - { - case AWAKE_TRIGGER_ID: - case START_TRIGGER_ID: - case unchecked((uint)DESTROY_TRIGGER_ID): - case unchecked((uint)ON_ENABLE_TRIGGER_ID): - continue; - } - - var triggerName = string.Empty; - if (triggerTypes.TryGetValue(triggerID, out triggerName)) - { - var trigger = (AkTriggerBase)GetComponent(System.Type.GetType(triggerName)); - if (trigger != null) - { - trigger.triggerDelegate -= in_delegate; - if (trigger.triggerDelegate == null) -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - { - //Do nothing - } - else -#endif - Destroy(trigger); - } - } - } - - if (in_triggerList.Contains(DESTROY_TRIGGER_ID)) - in_delegate(null); - } -} - -[UnityEngine.ExecuteInEditMode] -public abstract class AkDragDropTriggerHandler : AkTriggerHandler -{ - protected abstract AK.Wwise.BaseType WwiseType { get; } - - protected override void Awake() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating) - return; - - var reference = AkWwiseTypes.DragAndDropObjectReference; - if (reference) - { - UnityEngine.GUIUtility.hotControl = 0; - WwiseType.ObjectReference = reference; - } - - if (!UnityEditor.EditorApplication.isPlaying) - return; -#endif - - base.Awake(); - } - - protected override void Start() - { -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - return; -#endif - - base.Start(); - } - - protected override void OnDestroy() - { -#if UNITY_EDITOR - if (UnityEditor.BuildPipeline.isBuildingPlayer || AkUtilities.IsMigrating || !UnityEditor.EditorApplication.isPlaying) - return; -#endif - - base.OnDestroy(); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerHandler.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerHandler.cs.meta deleted file mode 100644 index 0211adccd..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerHandler.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a0ca8fb3dc0eca6489e84aa65e5fabb2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseDown.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseDown.cs deleted file mode 100644 index 0befd948c..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseDown.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkTriggerMouseDown : AkTriggerBase -{ - private void OnMouseDown() - { - if (triggerDelegate != null) - triggerDelegate(null); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseDown.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseDown.cs.meta deleted file mode 100644 index c23b158aa..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseDown.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 88a4aa679b763ec49b26fad846d6ef86 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseEnter.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseEnter.cs deleted file mode 100644 index 2c6cae633..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseEnter.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkTriggerMouseEnter : AkTriggerBase -{ - private void OnMouseEnter() - { - if (triggerDelegate != null) - triggerDelegate(null); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseEnter.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseEnter.cs.meta deleted file mode 100644 index 0132f4fa6..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseEnter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f5b351be85453d9429c156c5febd4d13 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseExit.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseExit.cs deleted file mode 100644 index 829a9c1a3..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseExit.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkTriggerMouseExit : AkTriggerBase -{ - private void OnMouseExit() - { - if (triggerDelegate != null) - triggerDelegate(null); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseExit.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseExit.cs.meta deleted file mode 100644 index 70ea00a3d..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseExit.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d7d7e329b504e114cbeeaf7564eaade2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseUp.cs b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseUp.cs deleted file mode 100644 index 6bd7a6af3..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseUp.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -public class AkTriggerMouseUp : AkTriggerBase -{ - private void OnMouseUp() - { - if (triggerDelegate != null) - triggerDelegate(null); - } -} - -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseUp.cs.meta b/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseUp.cs.meta deleted file mode 100644 index 38a905d8c..000000000 --- a/Assets/Wwise/MonoBehaviour/Runtime/AkTriggerMouseUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f71dc4e8f953d0c4395d8c1854c174e7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/MonoBehaviour/package.json b/Assets/Wwise/MonoBehaviour/package.json deleted file mode 100644 index 9d3188f5f..000000000 --- a/Assets/Wwise/MonoBehaviour/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "com.audiokinetic.wwise.monobehaviour", - "version": "2020.1.0", - "displayName": "Wwise Unity MonoBehaviour", - "description": "Wwise Integration in Unity using MonoBehaviour", - "unity": "2018.4", - "unityRelease": "17f1", - "dependencies": { - "com.audiokinetic.wwise.api": "2020.1.0" - }, - "keywords": [ - "Wwise", - "wwise", - "audiokinetic", - "ak", - "Audiokinetic", - "monobehaviour", - "MonoBehaviour" - ], - "author": { - "name": "Audokinetic Inc.", - "email": "info@audiokinetic.com", - "url": "https://www.audiokinetic.com" - } -} \ No newline at end of file diff --git a/Assets/Wwise/MonoBehaviour/package.json.meta b/Assets/Wwise/MonoBehaviour/package.json.meta deleted file mode 100644 index c1be75c3a..000000000 --- a/Assets/Wwise/MonoBehaviour/package.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: af679e3f27390ce41b659b56b637a2dc -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects.meta b/Assets/Wwise/ScriptableObjects.meta deleted file mode 100644 index ed67d9266..000000000 --- a/Assets/Wwise/ScriptableObjects.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3cc06455bb6b29d46b015f8e9d508218 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/AkWwiseInitializationSettings.asset b/Assets/Wwise/ScriptableObjects/AkWwiseInitializationSettings.asset deleted file mode 100644 index 979a72d17..000000000 --- a/Assets/Wwise/ScriptableObjects/AkWwiseInitializationSettings.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e58eec96aa54a44dd97b8e06790c8245de673351dc867f23757ee381f072ba0 -size 2233 diff --git a/Assets/Wwise/ScriptableObjects/Event.meta b/Assets/Wwise/ScriptableObjects/Event.meta deleted file mode 100644 index 1d7785250..000000000 --- a/Assets/Wwise/ScriptableObjects/Event.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e1a89f7d3994a9d42b1861e3d5e58751 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Event/44FA1280-D160-4DB5-B7EB-AA6E4CFBB17A.asset b/Assets/Wwise/ScriptableObjects/Event/44FA1280-D160-4DB5-B7EB-AA6E4CFBB17A.asset deleted file mode 100644 index a55376ddb..000000000 --- a/Assets/Wwise/ScriptableObjects/Event/44FA1280-D160-4DB5-B7EB-AA6E4CFBB17A.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e57f2ee6d517df3cf7ac93019a71e278b7aacd448f246e9f24d669a6d13b17b9 -size 507 diff --git a/Assets/Wwise/ScriptableObjects/Mac.asset b/Assets/Wwise/ScriptableObjects/Mac.asset deleted file mode 100644 index 3f3dd4afc..000000000 --- a/Assets/Wwise/ScriptableObjects/Mac.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72a1a22d192f8b5185131a9d3f7d227b2f66e817ab62ebc75cffaba7f571523d -size 4432 diff --git a/Assets/Wwise/ScriptableObjects/Soundbank.meta b/Assets/Wwise/ScriptableObjects/Soundbank.meta deleted file mode 100644 index 7d9d332a4..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 830ef170f6ac22747a105095d1a6ade4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/86130C21-81DD-4DB8-902A-F172CCD79666.asset b/Assets/Wwise/ScriptableObjects/Soundbank/86130C21-81DD-4DB8-902A-F172CCD79666.asset deleted file mode 100644 index 755b31c75..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/86130C21-81DD-4DB8-902A-F172CCD79666.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:113640da836ef6c133c87c9cece60e82a1e1d4c22418a9e5059e820d76088490 -size 504 diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/86130C21-81DD-4DB8-902A-F172CCD79666.asset.meta b/Assets/Wwise/ScriptableObjects/Soundbank/86130C21-81DD-4DB8-902A-F172CCD79666.asset.meta deleted file mode 100644 index 61ae384c7..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/86130C21-81DD-4DB8-902A-F172CCD79666.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1f7596d26fd55df42a4027d547caa78a -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/9666AE65-5566-4CB3-8EBB-B13773790485.asset b/Assets/Wwise/ScriptableObjects/Soundbank/9666AE65-5566-4CB3-8EBB-B13773790485.asset deleted file mode 100644 index 478bf457d..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/9666AE65-5566-4CB3-8EBB-B13773790485.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:559a60cb17edf31718473c677a129fdfd3460b41736ba7b01249140cf159bacd -size 508 diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/9666AE65-5566-4CB3-8EBB-B13773790485.asset.meta b/Assets/Wwise/ScriptableObjects/Soundbank/9666AE65-5566-4CB3-8EBB-B13773790485.asset.meta deleted file mode 100644 index 72319610d..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/9666AE65-5566-4CB3-8EBB-B13773790485.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 15d729df072fc9b43a33df5ed8251c1b -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/C9859C1F-8091-4698-B763-771998230C81.asset b/Assets/Wwise/ScriptableObjects/Soundbank/C9859C1F-8091-4698-B763-771998230C81.asset deleted file mode 100644 index ed9780c3b..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/C9859C1F-8091-4698-B763-771998230C81.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:257f243c0e4dd784eeaaee15d9d0c90f233718b0d5fcec30ec5d5b82b71665d3 -size 511 diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/C9859C1F-8091-4698-B763-771998230C81.asset.meta b/Assets/Wwise/ScriptableObjects/Soundbank/C9859C1F-8091-4698-B763-771998230C81.asset.meta deleted file mode 100644 index bf044fa5c..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/C9859C1F-8091-4698-B763-771998230C81.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a7732beaad7876944963e11a5bb037d8 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/FA8840A4-46A9-455E-BF88-D7239E2E6D72.asset b/Assets/Wwise/ScriptableObjects/Soundbank/FA8840A4-46A9-455E-BF88-D7239E2E6D72.asset deleted file mode 100644 index 80344d6e2..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/FA8840A4-46A9-455E-BF88-D7239E2E6D72.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b618cb47fb1eadcc2477deb15cb474adaf81c9d2d7a4ee7ba2149aa4fa7a8a6 -size 505 diff --git a/Assets/Wwise/ScriptableObjects/Soundbank/FA8840A4-46A9-455E-BF88-D7239E2E6D72.asset.meta b/Assets/Wwise/ScriptableObjects/Soundbank/FA8840A4-46A9-455E-BF88-D7239E2E6D72.asset.meta deleted file mode 100644 index 76b86042f..000000000 --- a/Assets/Wwise/ScriptableObjects/Soundbank/FA8840A4-46A9-455E-BF88-D7239E2E6D72.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: be557f5797521904d8f254bfbd064b49 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Windows.asset b/Assets/Wwise/ScriptableObjects/Windows.asset deleted file mode 100644 index 08015e7ce..000000000 --- a/Assets/Wwise/ScriptableObjects/Windows.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3736bd88171943913fa9a1f3025efafb66d61aeaa959ac6e3da052f86c1717c0 -size 4467 diff --git a/Assets/Wwise/ScriptableObjects/Windows.asset.meta b/Assets/Wwise/ScriptableObjects/Windows.asset.meta deleted file mode 100644 index f9c303be1..000000000 --- a/Assets/Wwise/ScriptableObjects/Windows.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3818a38871f099c4ab0aaa601c10dd5a -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline.meta b/Assets/Wwise/Timeline.meta deleted file mode 100644 index 16d787e80..000000000 --- a/Assets/Wwise/Timeline.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cd7fccb2d4d62a14c8ad4207b51df1d3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/CHANGELOG.md b/Assets/Wwise/Timeline/CHANGELOG.md deleted file mode 100644 index 0de229443..000000000 --- a/Assets/Wwise/Timeline/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -# Version 2020.1.0 - -- First official version as a package \ No newline at end of file diff --git a/Assets/Wwise/Timeline/CHANGELOG.md.meta b/Assets/Wwise/Timeline/CHANGELOG.md.meta deleted file mode 100644 index 8532c668e..000000000 --- a/Assets/Wwise/Timeline/CHANGELOG.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c8e06c4f8035236419053edd89fc03dd -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Editor.meta b/Assets/Wwise/Timeline/Editor.meta deleted file mode 100644 index 6aedc6326..000000000 --- a/Assets/Wwise/Timeline/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 21efe598aa65a5a4da36e31bf54263ee -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Editor/AK.Wwise.Unity.Timeline.Editor.asmdef b/Assets/Wwise/Timeline/Editor/AK.Wwise.Unity.Timeline.Editor.asmdef deleted file mode 100644 index 6785cc792..000000000 --- a/Assets/Wwise/Timeline/Editor/AK.Wwise.Unity.Timeline.Editor.asmdef +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "AK.Wwise.Unity.Timeline.Editor", - "references": [ - "AK.Wwise.Unity.API", - "AK.Wwise.Unity.Timeline", - "Unity.Timeline", - "AK.Wwise.Unity.API.Editor", - "AK.Wwise.Unity.API.WwiseTypes" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [ - { - "name": "com.unity.timeline", - "expression": "1.1.0", - "define": "AK_ENABLE_TIMELINE" - } - ], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Editor/AK.Wwise.Unity.Timeline.Editor.asmdef.meta b/Assets/Wwise/Timeline/Editor/AK.Wwise.Unity.Timeline.Editor.asmdef.meta deleted file mode 100644 index c8f405ba4..000000000 --- a/Assets/Wwise/Timeline/Editor/AK.Wwise.Unity.Timeline.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 06f45916fae81c341ae1a93ff35d24d5 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Editor/AkEventPlayableInspector.cs b/Assets/Wwise/Timeline/Editor/AkEventPlayableInspector.cs deleted file mode 100644 index 0848ebab8..000000000 --- a/Assets/Wwise/Timeline/Editor/AkEventPlayableInspector.cs +++ /dev/null @@ -1,201 +0,0 @@ -#if UNITY_EDITOR -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -[UnityEditor.CustomEditor(typeof(AkEventPlayable))] -public class AkEventPlayableInspector : UnityEditor.Editor -{ - private AkEventPlayable m_AkEventPlayable; - private UnityEditor.SerializedProperty akEvent; - private UnityEditor.SerializedProperty emitterObjectRef; - private UnityEditor.SerializedProperty retriggerEvent; - private UnityEditor.SerializedProperty UseWwiseEventDuration; - private UnityEditor.SerializedProperty StopEventAtClipEnd; - private UnityEditor.SerializedProperty blendInCurve; - private UnityEditor.SerializedProperty blendOutCurve; - - public void OnEnable() - { - m_AkEventPlayable = target as AkEventPlayable; - if (m_AkEventPlayable == null) - return; - - akEvent = serializedObject.FindProperty("akEvent"); - emitterObjectRef = serializedObject.FindProperty("emitterObjectRef"); - retriggerEvent = serializedObject.FindProperty("retriggerEvent"); - UseWwiseEventDuration = serializedObject.FindProperty("UseWwiseEventDuration"); - StopEventAtClipEnd = serializedObject.FindProperty("StopEventAtClipEnd"); - blendInCurve = serializedObject.FindProperty("blendInCurve"); - blendOutCurve = serializedObject.FindProperty("blendOutCurve"); - } - - public override void OnInspectorGUI() - { - UnityEditor.EditorGUILayout.HelpBox(AkSoundEngine.Deprecation_2019_2_0, UnityEditor.MessageType.Warning); - - serializedObject.Update(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(akEvent, new UnityEngine.GUIContent("Event: ")); - UnityEditor.EditorGUILayout.PropertyField(emitterObjectRef, new UnityEngine.GUIContent("Override Track Object: ")); - UnityEditor.EditorGUILayout.PropertyField(blendInCurve); - UnityEditor.EditorGUILayout.PropertyField(blendOutCurve); - } - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(UseWwiseEventDuration, new UnityEngine.GUIContent("Use Wwise Event Duration: ", "The clip duration is set to the duration of the Wwise Event")); - - if (!UpdateClipInformation(m_AkEventPlayable.owningClip, m_AkEventPlayable.akEvent, serializedObject, UseWwiseEventDuration.boolValue)) - { - UnityEditor.EditorGUILayout.HelpBox(string.Format("The duration of the Wwise event \"{0}\" has not been determined. Playback for this event may be inconsistent. " + - "Ensure that the event is associated with a generated SoundBank!", m_AkEventPlayable.akEvent.Name), UnityEditor.MessageType.Warning); - } - - if (!UseWwiseEventDuration.boolValue) - { - var StopEventAtClipEndValue = StopEventAtClipEnd.boolValue; - var retriggerEventValue = retriggerEvent.boolValue; - - UnityEditor.EditorGUILayout.PropertyField(StopEventAtClipEnd, new UnityEngine.GUIContent("Stop Event At End of clip: ")); - UnityEditor.EditorGUILayout.PropertyField(retriggerEvent, new UnityEngine.GUIContent("Loop: ", "When checked, an event will loop until the end of the clip.")); - - if (retriggerEvent.boolValue && !StopEventAtClipEnd.boolValue) - { - if (!retriggerEventValue) - StopEventAtClipEnd.boolValue = true; - else if (StopEventAtClipEndValue) - retriggerEvent.boolValue = false; - } - } - } - - serializedObject.ApplyModifiedProperties(); - } - - private static void UpdateProgressBar(int index, int count) - { - float progress = (float)index / count; - UnityEditor.EditorUtility.DisplayProgressBar("Wwise Integration", "Fixing clip durations of AkEventPlayables...", progress); - } - - [UnityEditor.InitializeOnLoadMethod] - public static void SetupSoundbankSetting() - { - AkUtilities.EnableBoolSoundbankSettingInWproj("SoundBankGenerateEstimatedDuration", AkWwiseEditorSettings.WwiseProjectAbsolutePath); - - UnityEditor.EditorApplication.update += RunOnce; - AkWwiseFileWatcher.Instance.XMLUpdated += UpdateAllClips; - } - - private static void RunOnce() - { - UpdateAllClips(); - UnityEditor.EditorApplication.update -= RunOnce; - } - - private static void UpdateAllClips() - { - var guids = UnityEditor.AssetDatabase.FindAssets("t:AkEventPlayable", new[] { "Assets" }); - if (guids.Length < 1) - return; - - var processedGuids = new System.Collections.Generic.HashSet(); - - for (var i = 0; i < guids.Length; i++) - { - UpdateProgressBar(i, guids.Length); - - var guid = guids[i]; - if (processedGuids.Contains(guid)) - continue; - - processedGuids.Add(guid); - - var path = UnityEditor.AssetDatabase.GUIDToAssetPath(guid); - var objects = UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path); - var instanceIds = new System.Collections.Generic.List(); - foreach (var obj in objects) - { - if (obj == null) - continue; - - var id = obj.GetInstanceID(); - if (!instanceIds.Contains(id)) - instanceIds.Add(id); - } - - for (; instanceIds.Count > 0; instanceIds.RemoveAt(0)) - { - var id = instanceIds[0]; - objects = UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path); - foreach (var obj in objects) - { - if (obj && obj.GetInstanceID() == id) - { - var playable = obj as AkEventPlayable; - if (playable) - { - var serializedObject = new UnityEditor.SerializedObject(playable); - var setClipDuration = serializedObject.FindProperty("UseWwiseEventDuration").boolValue; - UpdateClipInformation(playable.owningClip, playable.akEvent, serializedObject, setClipDuration); - serializedObject.ApplyModifiedProperties(); - } - - break; - } - } - } - } - - UnityEditor.EditorUtility.ClearProgressBar(); - } - - /// - /// The minimum clip duration. This value is set to 1/60 of a second which generally represents the time of 1 frame. - /// - private const double MinimumDurationInSeconds = 1.0 / 60; - - /// - /// Updates the associated clip information and the event durations. - /// - /// Returns true if the Wwise event is found in the project data. - private static bool UpdateClipInformation(UnityEngine.Timeline.TimelineClip clip, AK.Wwise.Event akEvent, - UnityEditor.SerializedObject serializedObject, bool setClipDuration) - { - var clipDuration = MinimumDurationInSeconds; - var eventInfo = AkWwiseProjectInfo.GetData().GetEventInfo(akEvent.Id); - if (eventInfo != null) - { - serializedObject.FindProperty("eventDurationMin").floatValue = eventInfo.minDuration; - serializedObject.FindProperty("eventDurationMax").floatValue = eventInfo.maxDuration; - - if (eventInfo.maxDuration > clipDuration) - clipDuration = eventInfo.maxDuration; - } - - if (clip != null) - { - clip.displayName = akEvent.Name; - if (setClipDuration) - clip.duration = clipDuration; - } - - return eventInfo != null && eventInfo.maxDuration > 0; - } -} - -#endif // AK_ENABLE_TIMELINE -#endif //#if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Editor/AkEventPlayableInspector.cs.meta b/Assets/Wwise/Timeline/Editor/AkEventPlayableInspector.cs.meta deleted file mode 100644 index a1e1c9c4b..000000000 --- a/Assets/Wwise/Timeline/Editor/AkEventPlayableInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7d810f7bf3f7f0a45b0e6f7731e2a84c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Editor/AkRTPCPlayableInspector.cs b/Assets/Wwise/Timeline/Editor/AkRTPCPlayableInspector.cs deleted file mode 100644 index d4093f083..000000000 --- a/Assets/Wwise/Timeline/Editor/AkRTPCPlayableInspector.cs +++ /dev/null @@ -1,76 +0,0 @@ -#if UNITY_EDITOR -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -[UnityEditor.CustomEditor(typeof(AkRTPCPlayable))] -public class AkRTPCPlayableInspector : UnityEditor.Editor -{ - private UnityEditor.SerializedProperty Behaviour; - private UnityEditor.SerializedProperty overrideTrackObject; - private AkRTPCPlayable playable; - private UnityEditor.SerializedProperty RTPCObject; - private UnityEditor.SerializedProperty setRTPCGlobally; - - public void OnEnable() - { - playable = target as AkRTPCPlayable; - - setRTPCGlobally = serializedObject.FindProperty("setRTPCGlobally"); - overrideTrackObject = serializedObject.FindProperty("overrideTrackObject"); - RTPCObject = serializedObject.FindProperty("RTPCObject"); - Behaviour = serializedObject.FindProperty("template"); - - if (playable != null && playable.OwningClip != null) - playable.OwningClip.displayName = playable.Parameter.Name; - } - - public override void OnInspectorGUI() - { - UnityEditor.EditorGUILayout.HelpBox(AkSoundEngine.Deprecation_2019_2_0, UnityEditor.MessageType.Warning); - - serializedObject.Update(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - if (setRTPCGlobally != null) - { - UnityEditor.EditorGUILayout.PropertyField(setRTPCGlobally, new UnityEngine.GUIContent("Set RTPC Globally: ")); - if (!setRTPCGlobally.boolValue) - { - if (overrideTrackObject != null) - { - UnityEditor.EditorGUILayout.PropertyField(overrideTrackObject, - new UnityEngine.GUIContent("Override Track Object: ")); - if (overrideTrackObject.boolValue) - { - if (RTPCObject != null) - UnityEditor.EditorGUILayout.PropertyField(RTPCObject, new UnityEngine.GUIContent("RTPC Object: ")); - } - } - } - } - } - - if (Behaviour != null) - UnityEditor.EditorGUILayout.PropertyField(Behaviour, new UnityEngine.GUIContent("Animated Value: "), true); - - if (playable != null && playable.OwningClip != null) - playable.OwningClip.displayName = playable.Parameter.Name; - - serializedObject.ApplyModifiedProperties(); - } -} - -#endif // AK_ENABLE_TIMELINE -#endif //#if UNITY_EDITOR \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Editor/AkRTPCPlayableInspector.cs.meta b/Assets/Wwise/Timeline/Editor/AkRTPCPlayableInspector.cs.meta deleted file mode 100644 index b86d6e67b..000000000 --- a/Assets/Wwise/Timeline/Editor/AkRTPCPlayableInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a7acaf55ba9989c48aa4ef368dfd906a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Editor/AkRTPCTrackInspector.cs b/Assets/Wwise/Timeline/Editor/AkRTPCTrackInspector.cs deleted file mode 100644 index 40d64bd06..000000000 --- a/Assets/Wwise/Timeline/Editor/AkRTPCTrackInspector.cs +++ /dev/null @@ -1,30 +0,0 @@ -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -[UnityEditor.CustomEditor(typeof(AkRTPCTrack))] -public class AkRTPCTrackInspector : UnityEditor.Editor -{ - private UnityEditor.SerializedProperty Parameter; - - public void OnEnable() - { - Parameter = serializedObject.FindProperty("Parameter"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(Parameter, new UnityEngine.GUIContent("Parameter: ")); - } - - serializedObject.ApplyModifiedProperties(); - } -} -#endif //AK_ENABLE_TIMELINE diff --git a/Assets/Wwise/Timeline/Editor/AkRTPCTrackInspector.cs.meta b/Assets/Wwise/Timeline/Editor/AkRTPCTrackInspector.cs.meta deleted file mode 100644 index c0743bea7..000000000 --- a/Assets/Wwise/Timeline/Editor/AkRTPCTrackInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 290bd48655e065b4b8e3f8a3dd264ff3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/LICENSE.md b/Assets/Wwise/Timeline/LICENSE.md deleted file mode 100644 index 5cfd6f070..000000000 --- a/Assets/Wwise/Timeline/LICENSE.md +++ /dev/null @@ -1,11 +0,0 @@ -The content of this file includes portions of the AUDIOKINETIC Wwise Technology -released in source code form as part of the Wwise Unity integration installer package - -Commercial License Usage - -Licensees holding valid commercial 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) 2020 Audiokinetic Inc. \ No newline at end of file diff --git a/Assets/Wwise/Timeline/LICENSE.md.meta b/Assets/Wwise/Timeline/LICENSE.md.meta deleted file mode 100644 index 2d8451437..000000000 --- a/Assets/Wwise/Timeline/LICENSE.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8ab0b7bf03a2aa24b94c05de6b5b2105 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/README.md b/Assets/Wwise/Timeline/README.md deleted file mode 100644 index 635a36dc7..000000000 --- a/Assets/Wwise/Timeline/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Unity Wwise Timeline - -This package adds support for using Wwise Event and RTPC in the Unity Timeline. - -## Usage - -See [Unity Wwise Timeline Documentation](https://www.audiokinetic.com/library/edge/?source=Unity&id=unity_timeline.html) for more information about how to use the package. - -## Requirements - -* Unity.Timeline >= 1.1.0 - -## Legal - -Copyright © 2020 Audiokinetic Inc. All rights reserved. diff --git a/Assets/Wwise/Timeline/README.md.meta b/Assets/Wwise/Timeline/README.md.meta deleted file mode 100644 index 05832e5b1..000000000 --- a/Assets/Wwise/Timeline/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: f69b78f0307e5e1409907ad513f70ac4 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime.meta b/Assets/Wwise/Timeline/Runtime.meta deleted file mode 100644 index 44372f816..000000000 --- a/Assets/Wwise/Timeline/Runtime.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6351622ef6227a24f9e6d4e5b7b942a7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AK.Wwise.Unity.Timeline.asmdef b/Assets/Wwise/Timeline/Runtime/AK.Wwise.Unity.Timeline.asmdef deleted file mode 100644 index 044c5db02..000000000 --- a/Assets/Wwise/Timeline/Runtime/AK.Wwise.Unity.Timeline.asmdef +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "AK.Wwise.Unity.Timeline", - "references": [ - "AK.Wwise.Unity.API", - "AK.Wwise.Unity.MonoBehavior", - "Unity.Timeline", - "AK.Wwise.Unity.API.WwiseTypes" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [ - { - "name": "com.unity.timeline", - "expression": "1.1.0", - "define": "AK_ENABLE_TIMELINE" - } - ], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Runtime/AK.Wwise.Unity.Timeline.asmdef.meta b/Assets/Wwise/Timeline/Runtime/AK.Wwise.Unity.Timeline.asmdef.meta deleted file mode 100644 index 7d19c334a..000000000 --- a/Assets/Wwise/Timeline/Runtime/AK.Wwise.Unity.Timeline.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: eaf23581d1c70cd48bd2d6ad59f72470 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkEventPlayable.cs b/Assets/Wwise/Timeline/Runtime/AkEventPlayable.cs deleted file mode 100644 index 608c468a1..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkEventPlayable.cs +++ /dev/null @@ -1,86 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief A playable asset containing a Wwise event that can be placed within a \ref AkEventTrack in a timeline. -/// @details Use this class to play Wwise events from a timeline and synchronise them to the animation. Events will be emitted from the GameObject that is bound to the AkEventTrack. Use the overrideTrackEmitterObject option to choose a different GameObject from which to emit the Wwise event. -/// \sa -/// - \ref AkEventTrack -/// - \ref AkEventPlayableBehavior -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -public class AkEventPlayable : UnityEngine.Playables.PlayableAsset, UnityEngine.Timeline.ITimelineClipAsset -{ - public AK.Wwise.Event akEvent = new AK.Wwise.Event(); - - [UnityEngine.SerializeField] - private AkCurveInterpolation blendInCurve = AkCurveInterpolation.AkCurveInterpolation_Linear; - [UnityEngine.SerializeField] - private AkCurveInterpolation blendOutCurve = AkCurveInterpolation.AkCurveInterpolation_Linear; - - [UnityEngine.SerializeField] - private UnityEngine.ExposedReference emitterObjectRef; - - public float eventDurationMax = -1f; - public float eventDurationMin = -1f; - - [System.NonSerialized] - public UnityEngine.Timeline.TimelineClip owningClip; - - [UnityEngine.SerializeField] - private bool retriggerEvent = false; - - public bool UseWwiseEventDuration = true; - - [UnityEngine.SerializeField] - private bool StopEventAtClipEnd = true; - - UnityEngine.Timeline.ClipCaps UnityEngine.Timeline.ITimelineClipAsset.clipCaps - { - get { return UnityEngine.Timeline.ClipCaps.Looping | UnityEngine.Timeline.ClipCaps.Blending; } - } - - public override UnityEngine.Playables.Playable CreatePlayable(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject owner) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph); - - var eventObject = emitterObjectRef.Resolve(graph.GetResolver()); - if (eventObject == null) - eventObject = owner; - - if (eventObject == null || akEvent == null) - return playable; - - var b = playable.GetBehaviour(); - b.akEvent = akEvent; - b.blendInCurve = blendInCurve; - b.blendOutCurve = blendOutCurve; - - if (owningClip != null) - { - b.easeInDuration = (float)owningClip.easeInDuration; - b.easeOutDuration = (float)owningClip.easeOutDuration; - b.blendInDuration = (float)owningClip.blendInDuration; - b.blendOutDuration = (float)owningClip.blendOutDuration; - } - else - b.easeInDuration = b.easeOutDuration = b.blendInDuration = b.blendOutDuration = 0; - - b.retriggerEvent = retriggerEvent; - b.StopEventAtClipEnd = StopEventAtClipEnd; - b.eventObject = eventObject; - b.overrideTrackEmitterObject = eventObject != null; - b.eventDurationMin = eventDurationMin; - b.eventDurationMax = eventDurationMax; - return playable; - } -} - -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Runtime/AkEventPlayable.cs.meta b/Assets/Wwise/Timeline/Runtime/AkEventPlayable.cs.meta deleted file mode 100644 index d8a914bcf..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkEventPlayable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 419fcea83f3f8f840a576fd7d61bae34 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkEventPlayableBehavior.cs b/Assets/Wwise/Timeline/Runtime/AkEventPlayableBehavior.cs deleted file mode 100644 index 83ebfc031..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkEventPlayableBehavior.cs +++ /dev/null @@ -1,367 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Defines the behavior of a \ref AkEventPlayable within a \ref AkEventTrack. -/// \sa -/// - \ref AkEventTrack -/// - \ref AkEventPlayable -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -public class AkEventPlayableBehavior : UnityEngine.Playables.PlayableBehaviour -{ - private float currentDuration = -1f; - private float currentDurationProportion = 1f; - private bool eventIsPlaying; - private bool fadeinTriggered; - private bool fadeoutTriggered; - private float previousEventStartTime; - - private const uint CallbackFlags = (uint)(AkCallbackType.AK_EndOfEvent | AkCallbackType.AK_Duration); - - private void CallbackHandler(object in_cookie, AkCallbackType in_type, AkCallbackInfo in_info) - { - if (in_type == AkCallbackType.AK_EndOfEvent) - { - eventIsPlaying = fadeinTriggered = fadeoutTriggered = false; - } - else if (in_type == AkCallbackType.AK_Duration) - { - var estimatedDuration = (in_info as AkDurationCallbackInfo).fEstimatedDuration; - currentDuration = estimatedDuration * currentDurationProportion / 1000f; - } - } - -#if UNITY_EDITOR - private static bool CanPostEvents - { - get { return UnityEditor.SessionState.GetBool("AkEventPlayableBehavior.CanPostEvents", true); } - set { UnityEditor.SessionState.SetBool("AkEventPlayableBehavior.CanPostEvents", value); } - } - - [UnityEditor.InitializeOnLoadMethod] - private static void DetermineCanPostEvents() - { - UnityEditor.Compilation.CompilationPipeline.assemblyCompilationFinished += (string text, UnityEditor.Compilation.CompilerMessage[] messages) => - { - if (!UnityEditor.EditorApplication.isPlaying) - CanPostEvents = false; - }; - - UnityEditor.EditorApplication.playModeStateChanged += (UnityEditor.PlayModeStateChange playMode) => - { - if (playMode == UnityEditor.PlayModeStateChange.ExitingEditMode) - CanPostEvents = true; - }; - } -#endif - - [System.Flags] - private enum Actions - { - None = 0, - Playback = 1 << 0, - Retrigger = 1 << 1, - DelayedStop = 1 << 2, - Seek = 1 << 3, - FadeIn = 1 << 4, - FadeOut = 1 << 5 - } - private Actions requiredActions; - - private const int scrubPlaybackLengthMs = 100; - - public AK.Wwise.Event akEvent; - - public float eventDurationMax; - public float eventDurationMin; - - public float blendInDuration; - public float blendOutDuration; - public float easeInDuration; - public float easeOutDuration; - - public AkCurveInterpolation blendInCurve; - public AkCurveInterpolation blendOutCurve; - - public UnityEngine.GameObject eventObject; - - public bool retriggerEvent; - private bool wasScrubbingAndRequiresRetrigger; - public bool StopEventAtClipEnd; - - public bool overrideTrackEmitterObject; - - private bool IsScrubbing(UnityEngine.Playables.FrameData info) - { -#if !UNITY_2018_2_OR_NEWER - // We disable scrubbing in edit mode, due to an issue with how FrameData.EvaluationType is handled in edit mode. - // This is a known issue and Unity are aware of it: https://fogbugz.unity3d.com/default.asp?953109_kitf7pso0vmjm0m0 - if (!UnityEngine.Application.isPlaying) - return false; -#endif - return info.evaluationType == UnityEngine.Playables.FrameData.EvaluationType.Evaluate; - } - - public override void PrepareFrame(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info) - { - base.PrepareFrame(playable, info); - - if (akEvent == null) - return; - - var shouldPlay = ShouldPlay(playable); - if (IsScrubbing(info) && shouldPlay) - { - requiredActions |= Actions.Seek; - - if (!eventIsPlaying) - { - requiredActions |= Actions.Playback | Actions.DelayedStop; - CheckForFadeInFadeOut(playable); - } - } - else if (!eventIsPlaying && (requiredActions & Actions.Playback) == 0) - { - // The clip is playing but the event hasn't been triggered. We need to start the event and jump to the correct time. - requiredActions |= Actions.Retrigger; - CheckForFadeInFadeOut(playable); - } - else - { - CheckForFadeOut(playable, UnityEngine.Playables.PlayableExtensions.GetTime(playable)); - } - } - - private const float alph = 0.05f; - - public override void OnBehaviourPlay(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info) - { - base.OnBehaviourPlay(playable, info); - - if (akEvent == null) - return; - - var shouldPlay = ShouldPlay(playable); - if (!shouldPlay) - return; - - requiredActions |= Actions.Playback; - - if (IsScrubbing(info)) - { - wasScrubbingAndRequiresRetrigger = true; - // If we've explicitly set the playhead, only play a small snippet. - requiredActions |= Actions.DelayedStop; - } - else if (GetProportionalTime(playable) > alph) - { - // we need to jump to the correct position in the case where the event is played from some non-start position. - requiredActions |= Actions.Seek; - } - - CheckForFadeInFadeOut(playable); - } - - public override void OnBehaviourPause(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info) - { - wasScrubbingAndRequiresRetrigger = false; - - base.OnBehaviourPause(playable, info); - if (eventObject != null && akEvent != null && StopEventAtClipEnd) - { - StopEvent(); - } - } - - public override void ProcessFrame(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info, object playerData) - { - base.ProcessFrame(playable, info, playerData); - - if (akEvent == null) - return; - - if (!overrideTrackEmitterObject) - { - var obj = playerData as UnityEngine.GameObject; - if (obj != null) - eventObject = obj; - } - - if (eventObject == null) - return; - - if ((requiredActions & Actions.Playback) != 0) - PlayEvent(); - - if ((requiredActions & Actions.Seek) != 0) - SeekToTime(playable); - - if ((retriggerEvent || wasScrubbingAndRequiresRetrigger) && (requiredActions & Actions.Retrigger) != 0) - RetriggerEvent(playable); - - if ((requiredActions & Actions.DelayedStop) != 0) - StopEvent(scrubPlaybackLengthMs); - - if (!fadeinTriggered && (requiredActions & Actions.FadeIn) != 0) - TriggerFadeIn(playable); - - if (!fadeoutTriggered && (requiredActions & Actions.FadeOut) != 0) - TriggerFadeOut(playable); - - requiredActions = Actions.None; - } - - /** Check the playable time against the Wwise event duration to see if playback should occur. - */ - private bool ShouldPlay(UnityEngine.Playables.Playable playable) - { - var previousTime = UnityEngine.Playables.PlayableExtensions.GetPreviousTime(playable); - var currentTime = UnityEngine.Playables.PlayableExtensions.GetTime(playable); - if (previousTime == 0.0 && System.Math.Abs(currentTime - previousTime) > 1.0) - return false; - - if (retriggerEvent) - return true; - - // If max and min duration values from metadata are equal, we can assume a deterministic event. - if (eventDurationMax == eventDurationMin && eventDurationMin != -1f) - return currentTime < eventDurationMax; - - currentTime -= previousEventStartTime; - - var maxDuration = currentDuration == -1f ? (float)UnityEngine.Playables.PlayableExtensions.GetDuration(playable) : currentDuration; - return currentTime < maxDuration; - } - - private void CheckForFadeInFadeOut(UnityEngine.Playables.Playable playable) - { - var currentClipTime = UnityEngine.Playables.PlayableExtensions.GetTime(playable); - if (blendInDuration > currentClipTime || easeInDuration > currentClipTime) - requiredActions |= Actions.FadeIn; - - CheckForFadeOut(playable, currentClipTime); - } - - private void CheckForFadeOut(UnityEngine.Playables.Playable playable, double currentClipTime) - { - var timeLeft = UnityEngine.Playables.PlayableExtensions.GetDuration(playable) - currentClipTime; - if (blendOutDuration >= timeLeft || easeOutDuration >= timeLeft) - requiredActions |= Actions.FadeOut; - } - - private void TriggerFadeIn(UnityEngine.Playables.Playable playable) - { - var currentClipTime = UnityEngine.Playables.PlayableExtensions.GetTime(playable); - var fadeDuration = UnityEngine.Mathf.Max(easeInDuration, blendInDuration) - currentClipTime; - if (fadeDuration > 0) - { - fadeinTriggered = true; - akEvent.ExecuteAction(eventObject, AkActionOnEventType.AkActionOnEventType_Pause, 0, blendOutCurve); - akEvent.ExecuteAction(eventObject, AkActionOnEventType.AkActionOnEventType_Resume, (int)(fadeDuration * 1000), blendInCurve); - } - } - - private void TriggerFadeOut(UnityEngine.Playables.Playable playable) - { - fadeoutTriggered = true; - - var fadeDuration = UnityEngine.Playables.PlayableExtensions.GetDuration(playable) - UnityEngine.Playables.PlayableExtensions.GetTime(playable); - akEvent.ExecuteAction(eventObject, AkActionOnEventType.AkActionOnEventType_Stop, (int)(fadeDuration * 1000), blendOutCurve); - } - - private void StopEvent(int transition = 0) - { - if (!eventIsPlaying) - return; - - akEvent.Stop(eventObject, transition); - -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - eventIsPlaying = false; -#endif - } - - private bool PostEvent() - { - fadeinTriggered = fadeoutTriggered = false; - - uint playingID; - -#if UNITY_EDITOR - if (!CanPostEvents) - { - playingID = AkSoundEngine.AK_INVALID_PLAYING_ID; - } - else if (!UnityEditor.EditorApplication.isPlaying) - { - playingID = akEvent.Post(eventObject); - } - else -#endif - { - playingID = akEvent.Post(eventObject, CallbackFlags, CallbackHandler, null); - } - - eventIsPlaying = playingID != AkSoundEngine.AK_INVALID_PLAYING_ID; - return eventIsPlaying; - } - - private void PlayEvent() - { - if (!PostEvent()) - return; - - currentDurationProportion = 1f; - previousEventStartTime = 0f; - } - - private void RetriggerEvent(UnityEngine.Playables.Playable playable) - { - wasScrubbingAndRequiresRetrigger = false; - - if (!PostEvent()) - return; - - currentDurationProportion = 1f - SeekToTime(playable); - previousEventStartTime = (float)UnityEngine.Playables.PlayableExtensions.GetTime(playable); - } - - private float GetProportionalTime(UnityEngine.Playables.Playable playable) - { - // If max and min duration values from metadata are equal, we can assume a deterministic event. - if (eventDurationMax == eventDurationMin && eventDurationMin != -1f) - { - // If the timeline clip has length greater than the event duration, we want to loop. - return (float)UnityEngine.Playables.PlayableExtensions.GetTime(playable) % eventDurationMax / eventDurationMax; - } - - var currentTime = (float)UnityEngine.Playables.PlayableExtensions.GetTime(playable) - previousEventStartTime; - var maxDuration = currentDuration == -1f ? (float)UnityEngine.Playables.PlayableExtensions.GetDuration(playable) : currentDuration; - // If the timeline clip has length greater than the event duration, we want to loop. - return currentTime % maxDuration / maxDuration; - } - - // Seek to the current time, taking looping into account. - private float SeekToTime(UnityEngine.Playables.Playable playable) - { - var proportionalTime = GetProportionalTime(playable); - if (proportionalTime >= 1f) // Avoids Wwise "seeking beyond end of event: audio will stop" error. - return 1f; - - -#if UNITY_EDITOR - if (!CanPostEvents) - return proportionalTime; -#endif - - if (eventIsPlaying) - AkSoundEngine.SeekOnEvent(akEvent.Id, eventObject, proportionalTime); - - return proportionalTime; - } -} -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Runtime/AkEventPlayableBehavior.cs.meta b/Assets/Wwise/Timeline/Runtime/AkEventPlayableBehavior.cs.meta deleted file mode 100644 index 34bb4ddcd..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkEventPlayableBehavior.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 07f807d0e0fc7ac4286a1b0431b255f6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkEventTrack.cs b/Assets/Wwise/Timeline/Runtime/AkEventTrack.cs deleted file mode 100644 index afdb52687..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkEventTrack.cs +++ /dev/null @@ -1,43 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.Timeline.TrackColor(0.855f, 0.8623f, 0.870f)] -[UnityEngine.Timeline.TrackClipType(typeof(AkEventPlayable))] -[UnityEngine.Timeline.TrackBindingType(typeof(UnityEngine.GameObject))] -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -#if UNITY_2019_1_OR_NEWER -[UnityEngine.Timeline.HideInMenu] -#endif -/// @brief A track within timeline that holds \ref AkEventPlayable clips. -/// @details AkEventTracks are bound to a specific GameObject, which is the default emitter for all of the \ref AkEventPlayable clips. There is an option to override this in /ref AkEventPlayable. -/// \sa -/// - \ref AkEventPlayable -/// - \ref AkEventPlayableBehavior -public class AkEventTrack : UnityEngine.Timeline.TrackAsset -{ - public override UnityEngine.Playables.Playable CreateTrackMixer(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject go, int inputCount) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph); - UnityEngine.Playables.PlayableExtensions.SetInputCount(playable, inputCount); - - var clips = GetClips(); - foreach (var clip in clips) - { - var akEventPlayable = clip.asset as AkEventPlayable; - akEventPlayable.owningClip = clip; - } - - return playable; - } -} -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Runtime/AkEventTrack.cs.meta b/Assets/Wwise/Timeline/Runtime/AkEventTrack.cs.meta deleted file mode 100644 index 9c5949a3c..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkEventTrack.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6fbcaf2d557e5734b86f8a355c8ecac3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkRTPCPlayable.cs b/Assets/Wwise/Timeline/Runtime/AkRTPCPlayable.cs deleted file mode 100644 index 86d2e6209..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkRTPCPlayable.cs +++ /dev/null @@ -1,86 +0,0 @@ -#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE -//-------------------------------------------------------------------------------------------- -// The representation of the Timeline Clip -//-------------------------------------------------------------------------------------------- - -[System.Serializable] -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -public class AkRTPCPlayable : UnityEngine.Playables.PlayableAsset, UnityEngine.Timeline.ITimelineClipAsset -{ - public bool overrideTrackObject = false; - public UnityEngine.ExposedReference RTPCObject; - - public bool setRTPCGlobally = false; - public AkRTPCPlayableBehaviour template = new AkRTPCPlayableBehaviour(); - - public AK.Wwise.RTPC Parameter { get; set; } - - public UnityEngine.Timeline.TimelineClip OwningClip { get; set; } - - UnityEngine.Timeline.ClipCaps UnityEngine.Timeline.ITimelineClipAsset.clipCaps - { - get { return UnityEngine.Timeline.ClipCaps.Looping & UnityEngine.Timeline.ClipCaps.Extrapolation & UnityEngine.Timeline.ClipCaps.Blending; } - } - - public override UnityEngine.Playables.Playable CreatePlayable(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject go) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph, template); - var b = playable.GetBehaviour(); - b.overrideTrackObject = overrideTrackObject; - b.setRTPCGlobally = setRTPCGlobally; - b.rtpcObject = overrideTrackObject ? RTPCObject.Resolve(graph.GetResolver()) : go; - b.parameter = Parameter; - return playable; - } -} - - -//-------------------------------------------------------------------------------------------- -// The behaviour template. -//-------------------------------------------------------------------------------------------- - -[System.Serializable] -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -public class AkRTPCPlayableBehaviour : UnityEngine.Playables.PlayableBehaviour -{ - [UnityEngine.SerializeField] - private float RTPCValue = 0.0f; - - public bool setRTPCGlobally { set; private get; } - - public bool overrideTrackObject { set; private get; } - - public UnityEngine.GameObject rtpcObject { set; private get; } - - public AK.Wwise.RTPC parameter { set; private get; } - - public override void ProcessFrame(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info, - object playerData) - { - if (parameter != null) - { - // If we are overriding the track object, the rtpcObject will have been resolved in AkRTPCPlayable::CreatePlayable(). - if (!overrideTrackObject) - { - // At this point, rtpcObject will have been set to the timeline owner object in AkRTPCPlayable::CreatePlayable(). - // If the track object is null, we keep using the timeline owner object. Otherwise, we swap it for the track object. - var obj = playerData as UnityEngine.GameObject; - if (obj != null) - rtpcObject = obj; - } - - if (setRTPCGlobally || rtpcObject == null) - parameter.SetGlobalValue(RTPCValue); - else - parameter.SetValue(rtpcObject, RTPCValue); - } - - base.ProcessFrame(playable, info, playerData); - } -} -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Runtime/AkRTPCPlayable.cs.meta b/Assets/Wwise/Timeline/Runtime/AkRTPCPlayable.cs.meta deleted file mode 100644 index 9325c6f8a..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkRTPCPlayable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b78e8735b738fee479b23bbdf2834e23 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkRTPCTrack.cs b/Assets/Wwise/Timeline/Runtime/AkRTPCTrack.cs deleted file mode 100644 index 9f7b99bc5..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkRTPCTrack.cs +++ /dev/null @@ -1,52 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -[UnityEngine.Timeline.TrackColor(0.32f, 0.13f, 0.13f)] -// Specifies the type of Playable Asset this track manages -[UnityEngine.Timeline.TrackClipType(typeof(AkRTPCPlayable))] -// Use if the track requires a binding to a scene object or asset -[UnityEngine.Timeline.TrackBindingType(typeof(UnityEngine.GameObject))] -[System.Obsolete(AkSoundEngine.Deprecation_2019_2_0)] -#if UNITY_2019_1_OR_NEWER -[UnityEngine.Timeline.HideInMenu] -#endif -public class AkRTPCTrack : UnityEngine.Timeline.TrackAsset -{ - public AK.Wwise.RTPC Parameter; - - // override the type of mixer playable used by this track - public override UnityEngine.Playables.Playable CreateTrackMixer(UnityEngine.Playables.PlayableGraph graph, - UnityEngine.GameObject go, int inputCount) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph, inputCount); - setPlayableProperties(); - return playable; - } - - public void setPlayableProperties() - { - var clips = GetClips(); - foreach (var clip in clips) - { - var clipPlayable = (AkRTPCPlayable) clip.asset; - clipPlayable.Parameter = Parameter; - clipPlayable.OwningClip = clip; - } - } - - public void OnValidate() - { - var clips = GetClips(); - foreach (var clip in clips) - { - var clipPlayable = (AkRTPCPlayable) clip.asset; - clipPlayable.Parameter = Parameter; - } - } -} - -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. \ No newline at end of file diff --git a/Assets/Wwise/Timeline/Runtime/AkRTPCTrack.cs.meta b/Assets/Wwise/Timeline/Runtime/AkRTPCTrack.cs.meta deleted file mode 100644 index 768f68817..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkRTPCTrack.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5ea7ba49ef527784bbcde137403d8c71 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineEventPlayable.cs b/Assets/Wwise/Timeline/Runtime/AkTimelineEventPlayable.cs deleted file mode 100644 index b15c1faf3..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineEventPlayable.cs +++ /dev/null @@ -1,627 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -/// @brief Defines the behavior of a \ref AkTimelineEventPlayable within a \ref AkTimelineEventTrack. -/// \sa -/// - \ref AkTimelineEventTrack -/// - \ref AkTimelineEventPlayable -public class AkTimelineEventPlayableBehavior : UnityEngine.Playables.PlayableBehaviour -{ - private float currentDuration = -1f; - private float currentDurationProportion = 1f; - private bool eventIsPlaying; - private bool fadeinTriggered; - private bool fadeoutTriggered; - private float previousEventStartTime; - - private const uint CallbackFlags = (uint)(AkCallbackType.AK_EndOfEvent | AkCallbackType.AK_Duration); - - private void CallbackHandler(object in_cookie, AkCallbackType in_type, AkCallbackInfo in_info) - { - if (in_type == AkCallbackType.AK_EndOfEvent) - { - eventIsPlaying = fadeinTriggered = fadeoutTriggered = false; - } - else if (in_type == AkCallbackType.AK_Duration) - { - var estimatedDuration = (in_info as AkDurationCallbackInfo).fEstimatedDuration; - currentDuration = estimatedDuration * currentDurationProportion / 1000f; - } - } - -#if UNITY_EDITOR - private static bool CanPostEvents - { - get { return UnityEditor.SessionState.GetBool("AkTimelineEventPlayableBehavior.CanPostEvents", true); } - set { UnityEditor.SessionState.SetBool("AkTimelineEventPlayableBehavior.CanPostEvents", value); } - } - - [UnityEditor.InitializeOnLoadMethod] - private static void DetermineCanPostEvents() - { - UnityEditor.Compilation.CompilationPipeline.assemblyCompilationFinished += (string text, UnityEditor.Compilation.CompilerMessage[] messages) => - { - if (!UnityEditor.EditorApplication.isPlaying) - CanPostEvents = false; - }; - - UnityEditor.EditorApplication.playModeStateChanged += (UnityEditor.PlayModeStateChange playMode) => - { - if (playMode == UnityEditor.PlayModeStateChange.ExitingEditMode) - CanPostEvents = true; - }; - } -#endif - - [System.Flags] - private enum Actions - { - None = 0, - Playback = 1 << 0, - Retrigger = 1 << 1, - DelayedStop = 1 << 2, - Seek = 1 << 3, - FadeIn = 1 << 4, - FadeOut = 1 << 5 - } - private Actions requiredActions; - - private const int scrubPlaybackLengthMs = 100; - - public AK.Wwise.Event akEvent; - - public float eventDurationMax; - public float eventDurationMin; - - public float blendInDuration; - public float blendOutDuration; - public float easeInDuration; - public float easeOutDuration; - - public AkCurveInterpolation blendInCurve; - public AkCurveInterpolation blendOutCurve; - - public UnityEngine.GameObject eventObject; - - public bool retriggerEvent; - private bool wasScrubbingAndRequiresRetrigger; - public bool StopEventAtClipEnd; - - private bool IsScrubbing(UnityEngine.Playables.FrameData info) - { -#if !UNITY_2018_2_OR_NEWER - // We disable scrubbing in edit mode, due to an issue with how FrameData.EvaluationType is handled in edit mode. - // This is a known issue and Unity are aware of it: https://fogbugz.unity3d.com/default.asp?953109_kitf7pso0vmjm0m0 - if (!UnityEngine.Application.isPlaying) - return false; -#endif -#if UNITY_EDITOR - return !UnityEngine.Application.isPlaying && info.evaluationType == UnityEngine.Playables.FrameData.EvaluationType.Evaluate; -#else - return false; -#endif - } - - public override void PrepareFrame(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info) - { - base.PrepareFrame(playable, info); - - if (akEvent == null) - return; - - var shouldPlay = ShouldPlay(playable); - if (IsScrubbing(info) && shouldPlay) - { - requiredActions |= Actions.Seek; - - if (!eventIsPlaying) - { - requiredActions |= Actions.Playback | Actions.DelayedStop; - CheckForFadeInFadeOut(playable); - } - } - else if (!eventIsPlaying && (requiredActions & Actions.Playback) == 0) - { - // The clip is playing but the event hasn't been triggered. We need to start the event and jump to the correct time. - requiredActions |= Actions.Retrigger; - CheckForFadeInFadeOut(playable); - } - else - { - CheckForFadeOut(playable, UnityEngine.Playables.PlayableExtensions.GetTime(playable)); - } - } - - private const float alph = 0.05f; - - public override void OnBehaviourPlay(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info) - { - base.OnBehaviourPlay(playable, info); - - if (akEvent == null) - return; - - var shouldPlay = ShouldPlay(playable); - if (!shouldPlay) - return; - - requiredActions |= Actions.Playback; - - if (IsScrubbing(info)) - { - wasScrubbingAndRequiresRetrigger = true; - // If we've explicitly set the playhead, only play a small snippet. - requiredActions |= Actions.DelayedStop; - } - else if (GetProportionalTime(playable) > alph) - { - // we need to jump to the correct position in the case where the event is played from some non-start position. - requiredActions |= Actions.Seek; - } - - CheckForFadeInFadeOut(playable); - } - - public override void OnBehaviourPause(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info) - { - wasScrubbingAndRequiresRetrigger = false; - - base.OnBehaviourPause(playable, info); - if (eventObject != null && akEvent != null && StopEventAtClipEnd) - { - StopEvent(); - } - } - - public override void ProcessFrame(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info, object playerData) - { - base.ProcessFrame(playable, info, playerData); - - if (akEvent == null) - return; - - var obj = playerData as UnityEngine.GameObject; - if (obj != null) - eventObject = obj; - - if (eventObject == null) - return; - - if ((requiredActions & Actions.Playback) != 0) - PlayEvent(); - - if ((requiredActions & Actions.Seek) != 0) - SeekToTime(playable); - - if ((retriggerEvent || wasScrubbingAndRequiresRetrigger) && (requiredActions & Actions.Retrigger) != 0) - RetriggerEvent(playable); - - if ((requiredActions & Actions.DelayedStop) != 0) - StopEvent(scrubPlaybackLengthMs); - - if (!fadeinTriggered && (requiredActions & Actions.FadeIn) != 0) - TriggerFadeIn(playable); - - if (!fadeoutTriggered && (requiredActions & Actions.FadeOut) != 0) - TriggerFadeOut(playable); - - requiredActions = Actions.None; - } - - /** Check the playable time against the Wwise event duration to see if playback should occur. - */ - private bool ShouldPlay(UnityEngine.Playables.Playable playable) - { - var previousTime = UnityEngine.Playables.PlayableExtensions.GetPreviousTime(playable); - var currentTime = UnityEngine.Playables.PlayableExtensions.GetTime(playable); - -#if UNITY_EDITOR - // In editor, do not automatically play the event if the cursor is already in the section. - if (!UnityEditor.EditorApplication.isPlaying) - { - if (previousTime == 0.0 && System.Math.Abs(currentTime - previousTime) > 1.0) - return false; - } -#endif - - if (retriggerEvent) - return true; - - // If max and min duration values from metadata are equal, we can assume a deterministic event. - if (eventDurationMax == eventDurationMin && eventDurationMin != -1f) - return currentTime < eventDurationMax; - - currentTime -= previousEventStartTime; - - var maxDuration = currentDuration == -1f ? (float)UnityEngine.Playables.PlayableExtensions.GetDuration(playable) : currentDuration; - return currentTime < maxDuration; - } - - private void CheckForFadeInFadeOut(UnityEngine.Playables.Playable playable) - { - var currentClipTime = UnityEngine.Playables.PlayableExtensions.GetTime(playable); - if (blendInDuration > currentClipTime || easeInDuration > currentClipTime) - requiredActions |= Actions.FadeIn; - - CheckForFadeOut(playable, currentClipTime); - } - - private void CheckForFadeOut(UnityEngine.Playables.Playable playable, double currentClipTime) - { - var timeLeft = UnityEngine.Playables.PlayableExtensions.GetDuration(playable) - currentClipTime; - if (blendOutDuration >= timeLeft || easeOutDuration >= timeLeft) - requiredActions |= Actions.FadeOut; - } - - private void TriggerFadeIn(UnityEngine.Playables.Playable playable) - { - var currentClipTime = UnityEngine.Playables.PlayableExtensions.GetTime(playable); - var fadeDuration = UnityEngine.Mathf.Max(easeInDuration, blendInDuration) - currentClipTime; - if (fadeDuration > 0) - { - fadeinTriggered = true; - akEvent.ExecuteAction(eventObject, AkActionOnEventType.AkActionOnEventType_Pause, 0, blendOutCurve); - akEvent.ExecuteAction(eventObject, AkActionOnEventType.AkActionOnEventType_Resume, (int)(fadeDuration * 1000), blendInCurve); - } - } - - private void TriggerFadeOut(UnityEngine.Playables.Playable playable) - { - fadeoutTriggered = true; - - var fadeDuration = UnityEngine.Playables.PlayableExtensions.GetDuration(playable) - UnityEngine.Playables.PlayableExtensions.GetTime(playable); - akEvent.ExecuteAction(eventObject, AkActionOnEventType.AkActionOnEventType_Stop, (int)(fadeDuration * 1000), blendOutCurve); - } - - private void StopEvent(int transition = 0) - { - if (!eventIsPlaying) - return; - - akEvent.Stop(eventObject, transition); - -#if UNITY_EDITOR - if (!UnityEditor.EditorApplication.isPlaying) - eventIsPlaying = false; -#endif - } - - private bool PostEvent() - { - fadeinTriggered = fadeoutTriggered = false; - - uint playingID; - -#if UNITY_EDITOR - if (!CanPostEvents) - { - playingID = AkSoundEngine.AK_INVALID_PLAYING_ID; - } - else if (!UnityEditor.EditorApplication.isPlaying) - { - playingID = akEvent.Post(eventObject); - } - else -#endif - { - playingID = akEvent.Post(eventObject, CallbackFlags, CallbackHandler, null); - } - - eventIsPlaying = playingID != AkSoundEngine.AK_INVALID_PLAYING_ID; - return eventIsPlaying; - } - - private void PlayEvent() - { - if (!PostEvent()) - return; - - currentDurationProportion = 1f; - previousEventStartTime = 0f; - } - - private void RetriggerEvent(UnityEngine.Playables.Playable playable) - { - wasScrubbingAndRequiresRetrigger = false; - - if (!PostEvent()) - return; - - currentDurationProportion = 1f - SeekToTime(playable); - previousEventStartTime = (float)UnityEngine.Playables.PlayableExtensions.GetTime(playable); - } - - private float GetProportionalTime(UnityEngine.Playables.Playable playable) - { - // If max and min duration values from metadata are equal, we can assume a deterministic event. - if (eventDurationMax == eventDurationMin && eventDurationMin != -1f) - { - // If the timeline clip has length greater than the event duration, we want to loop. - return (float)UnityEngine.Playables.PlayableExtensions.GetTime(playable) % eventDurationMax / eventDurationMax; - } - - var currentTime = (float)UnityEngine.Playables.PlayableExtensions.GetTime(playable) - previousEventStartTime; - var maxDuration = currentDuration == -1f ? (float)UnityEngine.Playables.PlayableExtensions.GetDuration(playable) : currentDuration; - // If the timeline clip has length greater than the event duration, we want to loop. - return currentTime % maxDuration / maxDuration; - } - - // Seek to the current time, taking looping into account. - private float SeekToTime(UnityEngine.Playables.Playable playable) - { - var proportionalTime = GetProportionalTime(playable); - if (proportionalTime >= 1f) // Avoids Wwise "seeking beyond end of event: audio will stop" error. - return 1f; - -#if UNITY_EDITOR - if (!CanPostEvents) - return proportionalTime; -#endif - - if (eventIsPlaying) - AkSoundEngine.SeekOnEvent(akEvent.Id, eventObject, proportionalTime); - - return proportionalTime; - } -} - -/// @brief A playable asset containing a Wwise event that can be placed within a \ref AkTimelineEventTrack in a timeline. -/// @details Use this class to play Wwise events from a timeline and synchronize them to the animation. Events will be emitted from the GameObject that is bound to the AkTimelineEventTrack. -/// \sa -/// - \ref AkTimelineEventTrack -/// - \ref AkTimelineEventPlayableBehavior -public class AkTimelineEventPlayable : UnityEngine.Playables.PlayableAsset, UnityEngine.Timeline.ITimelineClipAsset -{ - public AK.Wwise.Event akEvent = new AK.Wwise.Event(); - - [UnityEngine.SerializeField] - private AkCurveInterpolation blendInCurve = AkCurveInterpolation.AkCurveInterpolation_Linear; - [UnityEngine.SerializeField] - private AkCurveInterpolation blendOutCurve = AkCurveInterpolation.AkCurveInterpolation_Linear; - - public float eventDurationMax = -1f; - public float eventDurationMin = -1f; - - [System.NonSerialized] - public UnityEngine.Timeline.TimelineClip owningClip; - - [UnityEngine.SerializeField] - private bool retriggerEvent = false; - - public bool UseWwiseEventDuration = true; - - [UnityEngine.SerializeField] - private bool StopEventAtClipEnd = true; - - UnityEngine.Timeline.ClipCaps UnityEngine.Timeline.ITimelineClipAsset.clipCaps - { - get { return UnityEngine.Timeline.ClipCaps.Looping | UnityEngine.Timeline.ClipCaps.Blending; } - } - - public override UnityEngine.Playables.Playable CreatePlayable(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject owner) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph); - if (akEvent == null) - return playable; - - var b = playable.GetBehaviour(); - b.akEvent = akEvent; - b.blendInCurve = blendInCurve; - b.blendOutCurve = blendOutCurve; - - if (owningClip != null) - { - b.easeInDuration = (float)owningClip.easeInDuration; - b.easeOutDuration = (float)owningClip.easeOutDuration; - b.blendInDuration = (float)owningClip.blendInDuration; - b.blendOutDuration = (float)owningClip.blendOutDuration; - } - else - b.easeInDuration = b.easeOutDuration = b.blendInDuration = b.blendOutDuration = 0; - - b.retriggerEvent = retriggerEvent; - b.StopEventAtClipEnd = StopEventAtClipEnd; - b.eventObject = owner; - b.eventDurationMin = eventDurationMin; - b.eventDurationMax = eventDurationMax; - return playable; - } - -#if UNITY_EDITOR - [UnityEditor.CustomEditor(typeof(AkTimelineEventPlayable))] - public class Editor : UnityEditor.Editor - { - private AkTimelineEventPlayable m_AkTimelineEventPlayable; - private UnityEditor.SerializedProperty akEvent; - private UnityEditor.SerializedProperty retriggerEvent; - private UnityEditor.SerializedProperty UseWwiseEventDuration; - private UnityEditor.SerializedProperty StopEventAtClipEnd; - private UnityEditor.SerializedProperty blendInCurve; - private UnityEditor.SerializedProperty blendOutCurve; - - public void OnEnable() - { - m_AkTimelineEventPlayable = target as AkTimelineEventPlayable; - if (m_AkTimelineEventPlayable == null) - return; - - akEvent = serializedObject.FindProperty("akEvent"); - retriggerEvent = serializedObject.FindProperty("retriggerEvent"); - UseWwiseEventDuration = serializedObject.FindProperty("UseWwiseEventDuration"); - StopEventAtClipEnd = serializedObject.FindProperty("StopEventAtClipEnd"); - blendInCurve = serializedObject.FindProperty("blendInCurve"); - blendOutCurve = serializedObject.FindProperty("blendOutCurve"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(akEvent, new UnityEngine.GUIContent("Event: ")); - UnityEditor.EditorGUILayout.PropertyField(blendInCurve); - UnityEditor.EditorGUILayout.PropertyField(blendOutCurve); - } - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(UseWwiseEventDuration, new UnityEngine.GUIContent("Use Wwise Event Duration: ", "The clip duration is set to the duration of the Wwise Event")); - - if (!UpdateClipInformation(m_AkTimelineEventPlayable.owningClip, m_AkTimelineEventPlayable.akEvent, serializedObject, UseWwiseEventDuration.boolValue)) - { - UnityEditor.EditorGUILayout.HelpBox(string.Format("The duration of the Wwise event \"{0}\" has not been determined. Playback for this event may be inconsistent. " + - "Ensure that the event is associated with a generated SoundBank!", m_AkTimelineEventPlayable.akEvent.Name), UnityEditor.MessageType.Warning); - } - - if (!UseWwiseEventDuration.boolValue) - { - var StopEventAtClipEndValue = StopEventAtClipEnd.boolValue; - var retriggerEventValue = retriggerEvent.boolValue; - - UnityEditor.EditorGUILayout.PropertyField(StopEventAtClipEnd, new UnityEngine.GUIContent("Stop Event At End Of Clip: ")); - UnityEditor.EditorGUILayout.PropertyField(retriggerEvent, new UnityEngine.GUIContent("Loop: ", "When checked, an event will loop until the end of the clip.")); - - if (retriggerEvent.boolValue && !StopEventAtClipEnd.boolValue) - { - if (!retriggerEventValue) - StopEventAtClipEnd.boolValue = true; - else if (StopEventAtClipEndValue) - retriggerEvent.boolValue = false; - } - } - } - - serializedObject.ApplyModifiedProperties(); - } - - private static void UpdateProgressBar(int index, int count) - { - float progress = (float)index / count; - UnityEditor.EditorUtility.DisplayProgressBar("Wwise Integration", "Fixing clip durations of AkTimelineEventPlayables...", progress); - } - - [UnityEditor.InitializeOnLoadMethod] - public static void SetupSoundbankSetting() - { - AkUtilities.EnableBoolSoundbankSettingInWproj("SoundBankGenerateEstimatedDuration", AkWwiseEditorSettings.WwiseProjectAbsolutePath); - - UnityEditor.EditorApplication.update += RunOnce; - AkWwiseFileWatcher.Instance.XMLUpdated += UpdateAllClips; - } - - private static void RunOnce() - { - UpdateAllClips(); - UnityEditor.EditorApplication.update -= RunOnce; - } - - private static void UpdateAllClips() - { - var guids = UnityEditor.AssetDatabase.FindAssets("t:AkTimelineEventPlayable", new[] { "Assets" }); - if (guids.Length < 1) - return; - - var processedGuids = new System.Collections.Generic.HashSet(); - - for (var i = 0; i < guids.Length; i++) - { - UpdateProgressBar(i, guids.Length); - - var guid = guids[i]; - if (processedGuids.Contains(guid)) - continue; - - processedGuids.Add(guid); - - var path = UnityEditor.AssetDatabase.GUIDToAssetPath(guid); - var objects = UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path); - var instanceIds = new System.Collections.Generic.List(); - foreach (var obj in objects) - { - if (obj == null) - continue; - - var id = obj.GetInstanceID(); - if (!instanceIds.Contains(id)) - instanceIds.Add(id); - } - - for (; instanceIds.Count > 0; instanceIds.RemoveAt(0)) - { - var id = instanceIds[0]; - objects = UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path); - foreach (var obj in objects) - { - if (obj && obj.GetInstanceID() == id) - { - var playable = obj as AkTimelineEventPlayable; - if (playable) - { - var serializedObject = new UnityEditor.SerializedObject(playable); - var setClipDuration = serializedObject.FindProperty("UseWwiseEventDuration").boolValue; - UpdateClipInformation(playable.owningClip, playable.akEvent, serializedObject, setClipDuration); - serializedObject.ApplyModifiedProperties(); - } - break; - } - } - } - } - - UnityEditor.EditorUtility.ClearProgressBar(); - } - - /// - /// The minimum clip duration. This value is set to 1/60 of a second which generally represents the time of 1 frame. - /// - private const double MinimumDurationInSeconds = 1.0 / 60; - - /// - /// Updates the associated clip information and the event durations. - /// - /// Returns true if the Wwise event is found in the project data. - private static bool UpdateClipInformation(UnityEngine.Timeline.TimelineClip clip, AK.Wwise.Event akEvent, - UnityEditor.SerializedObject serializedObject, bool setClipDuration) - { - var clipDuration = MinimumDurationInSeconds; - var maxDuration = -1.0f; - var minDuration = -1.0f; - - AkUtilities.GetEventDurations(akEvent.Id, ref maxDuration, ref minDuration); - if (maxDuration != -1.0f) - { - serializedObject.FindProperty("eventDurationMin").floatValue = minDuration; - serializedObject.FindProperty("eventDurationMax").floatValue = maxDuration; - - if (maxDuration > clipDuration) - clipDuration = maxDuration; - } - - if (clip != null) - { - clip.displayName = akEvent.Name; - if (setClipDuration) - clip.duration = clipDuration; - } - - return maxDuration != -1.0f; - } - } - -#endif //#if UNITY_EDITOR -} - -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineEventPlayable.cs.meta b/Assets/Wwise/Timeline/Runtime/AkTimelineEventPlayable.cs.meta deleted file mode 100644 index 84d8142af..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineEventPlayable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3223e1ae83677c04db9d173bfe79d7da -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineEventTrack.cs b/Assets/Wwise/Timeline/Runtime/AkTimelineEventTrack.cs deleted file mode 100644 index 447aea79a..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineEventTrack.cs +++ /dev/null @@ -1,39 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[UnityEngine.Timeline.TrackColor(0.855f, 0.8623f, 0.870f)] -[UnityEngine.Timeline.TrackClipType(typeof(AkTimelineEventPlayable))] -[UnityEngine.Timeline.TrackBindingType(typeof(UnityEngine.GameObject))] -/// @brief A track within timeline that holds \ref AkTimelineEventPlayable clips. -/// @details AkTimelineEventTracks are bound to specific GameObjects, which are the default emitters for all of the associated \ref AkTimelineEventPlayable clips. -/// \sa -/// - \ref AkTimelineEventPlayable -/// - \ref AkTimelineEventPlayableBehavior -public class AkTimelineEventTrack : UnityEngine.Timeline.TrackAsset -{ - public override UnityEngine.Playables.Playable CreateTrackMixer(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject go, int inputCount) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph); - UnityEngine.Playables.PlayableExtensions.SetInputCount(playable, inputCount); - - var clips = GetClips(); - foreach (var clip in clips) - { - var eventPlayable = clip.asset as AkTimelineEventPlayable; - eventPlayable.owningClip = clip; - } - - return playable; - } -} -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineEventTrack.cs.meta b/Assets/Wwise/Timeline/Runtime/AkTimelineEventTrack.cs.meta deleted file mode 100644 index 9432cac25..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineEventTrack.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8b823c1a0a235894ba3b7745110ac39a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcPlayable.cs b/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcPlayable.cs deleted file mode 100644 index 7604f11bf..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcPlayable.cs +++ /dev/null @@ -1,116 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -////////////////////////////////////////////////////////////////////// -// -// Copyright (c) 2020 Audiokinetic Inc. / All Rights Reserved -// -////////////////////////////////////////////////////////////////////// - -[System.Serializable] -public class AkTimelineRtpcPlayableBehaviour : UnityEngine.Playables.PlayableBehaviour -{ - [UnityEngine.SerializeField] - private float value = 0.0f; - - public AK.Wwise.RTPC RTPC { set; get; } - public bool setGlobally { set; get; } - public UnityEngine.GameObject gameObject { set; get; } - - public override void ProcessFrame(UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData frameData, object playerData) - { - base.ProcessFrame(playable, frameData, playerData); - if (RTPC == null) - return; - - var obj = playerData as UnityEngine.GameObject; - if (obj != null) - gameObject = obj; - - if (setGlobally) - RTPC.SetGlobalValue(value); - else if (gameObject) - RTPC.SetValue(gameObject, value); - } -} - -public class AkTimelineRtpcPlayable : UnityEngine.Playables.PlayableAsset, UnityEngine.Timeline.ITimelineClipAsset -{ - public AK.Wwise.RTPC RTPC = new AK.Wwise.RTPC(); - public bool setGlobally = false; - public AkTimelineRtpcPlayableBehaviour template = new AkTimelineRtpcPlayableBehaviour(); - - public void SetupClipDisplay() - { -#if UNITY_EDITOR - if (owningClip != null) - owningClip.displayName = RTPC.Name; -#endif - } - - public UnityEngine.Timeline.TimelineClip owningClip { get; set; } - - UnityEngine.Timeline.ClipCaps UnityEngine.Timeline.ITimelineClipAsset.clipCaps - { - get { return UnityEngine.Timeline.ClipCaps.Looping & UnityEngine.Timeline.ClipCaps.Extrapolation & UnityEngine.Timeline.ClipCaps.Blending; } - } - - public override UnityEngine.Playables.Playable CreatePlayable(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject gameObject) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph, template); - var b = playable.GetBehaviour(); - b.RTPC = RTPC; - b.setGlobally = setGlobally; - b.gameObject = gameObject; - return playable; - } - -#if UNITY_EDITOR - [UnityEditor.CustomEditor(typeof(AkTimelineRtpcPlayable))] - public class Editor : UnityEditor.Editor - { - private AkTimelineRtpcPlayable playable; - private UnityEditor.SerializedProperty RTPC; - private UnityEditor.SerializedProperty setGlobally; - private UnityEditor.SerializedProperty Behaviour; - - public void OnEnable() - { - playable = target as AkTimelineRtpcPlayable; - if (playable) - playable.SetupClipDisplay(); - - RTPC = serializedObject.FindProperty("RTPC"); - setGlobally = serializedObject.FindProperty("setGlobally"); - Behaviour = serializedObject.FindProperty("template"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing); - - using (new UnityEditor.EditorGUILayout.VerticalScope("box")) - { - UnityEditor.EditorGUILayout.PropertyField(RTPC, new UnityEngine.GUIContent("RTPC: ")); - UnityEditor.EditorGUILayout.PropertyField(setGlobally, new UnityEngine.GUIContent("Set Globally: ")); - } - - if (Behaviour != null) - UnityEditor.EditorGUILayout.PropertyField(Behaviour, new UnityEngine.GUIContent("Animated Value: "), true); - - if (playable) - playable.SetupClipDisplay(); - - serializedObject.ApplyModifiedProperties(); - } - } - -#endif //#if UNITY_EDITOR -} -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcPlayable.cs.meta b/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcPlayable.cs.meta deleted file mode 100644 index 375c26597..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcPlayable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b332aa80f675bbb45acc67af4b60a233 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcTrack.cs b/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcTrack.cs deleted file mode 100644 index 27bb54d7e..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcTrack.cs +++ /dev/null @@ -1,37 +0,0 @@ -#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. -#if !UNITY_2019_1_OR_NEWER -#define AK_ENABLE_TIMELINE -#endif -#if AK_ENABLE_TIMELINE - -[UnityEngine.Timeline.TrackColor(0.32f, 0.13f, 0.13f)] -// Specifies the type of Playable Asset this track manages -[UnityEngine.Timeline.TrackClipType(typeof(AkTimelineRtpcPlayable))] -// Use if the track requires a binding to a scene object or asset -[UnityEngine.Timeline.TrackBindingType(typeof(UnityEngine.GameObject))] -public class AkTimelineRtpcTrack : UnityEngine.Timeline.TrackAsset -{ - public override UnityEngine.Playables.Playable CreateTrackMixer(UnityEngine.Playables.PlayableGraph graph, UnityEngine.GameObject gameObject, int inputCount) - { - var playable = UnityEngine.Playables.ScriptPlayable.Create(graph, inputCount); - - var clips = GetClips(); - foreach (var clip in clips) - { - var rtpcPlayable = (clip.asset as AkTimelineRtpcPlayable); - rtpcPlayable.owningClip = clip; - rtpcPlayable.SetupClipDisplay(); - } - - return playable; - } - - public void OnValidate() - { - var clips = GetClips(); - foreach (var clip in clips) - (clip.asset as AkTimelineRtpcPlayable).SetupClipDisplay(); - } -} -#endif // AK_ENABLE_TIMELINE -#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. diff --git a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcTrack.cs.meta b/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcTrack.cs.meta deleted file mode 100644 index ec41a2d11..000000000 --- a/Assets/Wwise/Timeline/Runtime/AkTimelineRtpcTrack.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 145c22505b002a34e806e5ab7406dc23 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Timeline/package.json b/Assets/Wwise/Timeline/package.json deleted file mode 100644 index 9c55685d9..000000000 --- a/Assets/Wwise/Timeline/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "com.audiokinetic.wwise.timeline", - "version": "2020.1.0", - "displayName": "Wwise Unity Timeline", - "description": "Wwise support for Unity timeline", - "unity": "2018.4", - "unityRelease": "17f1", - "dependencies": { - "com.unity.timeline": "1.1.0" - }, - "keywords": [ - "Wwise", - "wwise", - "timeline", - "audiokinetic", - "ak", - "Audiokinetic", - "Timeline" - ], - "author": { - "name": "Audokinetic Inc.", - "email": "info@audiokinetic.com", - "url": "https://www.audiokinetic.com" - } -} \ No newline at end of file diff --git a/Assets/Wwise/Timeline/package.json.meta b/Assets/Wwise/Timeline/package.json.meta deleted file mode 100644 index 660310507..000000000 --- a/Assets/Wwise/Timeline/package.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6a8c3cb644c32fa418078b259fa66b0d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Tools.meta b/Assets/Wwise/Tools.meta deleted file mode 100644 index 443223721..000000000 --- a/Assets/Wwise/Tools.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 734a00b1260a1264897b86168c2c4eba -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Tools/WwiseIDConverter.py b/Assets/Wwise/Tools/WwiseIDConverter.py deleted file mode 100644 index 1d11e76fd..000000000 --- a/Assets/Wwise/Tools/WwiseIDConverter.py +++ /dev/null @@ -1,97 +0,0 @@ -''' -Created on Mar 12, 2013 - -@author: bli -''' - -import sys, os, argparse -from os.path import exists, join, dirname, abspath -ScriptDir = abspath(dirname(__file__)) -g_PosixLinebreak = '\n' - -class WwiseIDConverter(object): - '''Convert Wwise soundbank ID header from C++ to C#. Save it under the same folder of the input header.''' - - def __init__(self, inHeader): - self.inHeader = inHeader - outDir = dirname(self.inHeader) - self.outHeader = join(outDir, 'Wwise_IDs.cs') - - def Convert(self): - lines = self._ImportFile(self.inHeader) - - # Extract ID part - IDStartKey = 'namespace' - startLine = self._FindKeyLine(lines, IDStartKey) - IDEndKey = '#endif' - endLine = self._FindKeyLine(lines, IDEndKey) - lines = lines[startLine : endLine] - - # Use C# class for namespace - CType = 'namespace' - CSType = 'public class' - self._ReplaceLineByLine(lines, CType, CSType) - - # Replace "public class AK" with "namespace AK" - CType = 'public class AK' - CSType = 'namespace AK' - self._ReplaceLineByLine(lines, CType, CSType) - - # Replace AK type with C# types - CType = 'static const AkUniqueID' - CSType = 'public static uint' - self._ReplaceLineByLine(lines, CType, CSType) - - outDir = abspath(dirname(self.outHeader)) - if not os.path.exists(outDir): - os.makedirs(outDir) - self._ExportFile(self.outHeader, lines) - - def _ImportFile(self, inputFile): - rawLines = [] - with open(inputFile) as f: - rawLines = f.readlines() - f.close() - - return rawLines - - def _ExportFile(self, outputFile, outputLines): - # append line separators if none - for ll in range(len(outputLines)): - hasNoLinebreak = outputLines[ll].find(os.linesep) == -1 and outputLines[ll].find(g_PosixLinebreak) == -1 - if hasNoLinebreak: - outputLines[ll] += g_PosixLinebreak - - with open(outputFile, 'w') as f: - f.writelines(outputLines) - f.close() - - - def _FindKeyLine(self, lines, key): - keyLineNumber = 0 - for ll in range(len(lines)): - foundKey = lines[ll].find(key) != -1 - if foundKey: - keyLineNumber = ll - break - return keyLineNumber - - def _ReplaceLineByLine(self, lines, inPattern, outPattern): - for ll in range(len(lines)): - namespaceStartCol = lines[ll].find(inPattern) - foundNamespace = namespaceStartCol != -1 - if foundNamespace: - lines[ll] = lines[ll].replace(inPattern, outPattern) - -if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Convert Wwise SoundBank ID C++ header into C# for Unity. Generated in the same folder.') - parser.add_argument('WwiseIDHeader', action='store', default='UndefinedHeader', help='Full path to Wwise SoundBank ID C++ header, e.g., Wwise_IDs.h') - - args = parser.parse_args() - inHeader = args.WwiseIDHeader - if not exists(inHeader): - raise RuntimeError('Input header file does not exist: {}'.format(inHeader)) - - converter = WwiseIDConverter(inHeader) - converter.Convert() - diff --git a/Assets/Wwise/Tools/WwiseIDConverter.py.meta b/Assets/Wwise/Tools/WwiseIDConverter.py.meta deleted file mode 100644 index f43696e82..000000000 --- a/Assets/Wwise/Tools/WwiseIDConverter.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9f46cfc26023b604bb63647594156a19 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Wwise/Version.txt b/Assets/Wwise/Version.txt deleted file mode 100644 index 1505197c0..000000000 --- a/Assets/Wwise/Version.txt +++ /dev/null @@ -1,7 +0,0 @@ -Wwise Unity Integration Version Info: - -Based on Wwise SDK: 2021.1.1 Build 7601 - -Unity Integration Bundle: 2021.1.1.2102 - -Unity Integration Version: 19 diff --git a/Assets/Wwise/Version.txt.meta b/Assets/Wwise/Version.txt.meta deleted file mode 100644 index 55a038937..000000000 --- a/Assets/Wwise/Version.txt.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 14aed8b172a1ceb4f823a354fec65b04 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/WwiseSettings.xml b/Assets/WwiseSettings.xml deleted file mode 100644 index 6a0bc871b..000000000 --- a/Assets/WwiseSettings.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - true - false - Audio/GeneratedSoundBanks - true - false - false - true - true - - E:\Applications\Wwise 2021.1.1.7601 - ../Aetheria-Economy_WwiseProject/Aetheria-Economy_WwiseProject.wproj - true - 8080 - 127.0.0.1 - \ No newline at end of file diff --git a/Assets/WwiseSettings.xml.meta b/Assets/WwiseSettings.xml.meta deleted file mode 100644 index cc1152667..000000000 --- a/Assets/WwiseSettings.xml.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 49e6ab291d3ffe7419ed9aa64a07b435 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/GameData/PlayerSettings.msgpack b/GameData/PlayerSettings.msgpack index 9e30e2f53..4dad7299e 100644 --- a/GameData/PlayerSettings.msgpack +++ b/GameData/PlayerSettings.msgpack @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aaa76a06923681820d73bc0ad70852506bc95b5706c031feb2a8a6a43ed74f88 -size 23260 +oid sha256:1b7db794d34390ff645362a65aef2fa32cb63936d68486be84b7025f1828575b +size 33189