feat: added fmod
This commit is contained in:
		
							parent
							
								
									c803300dce
								
							
						
					
					
						commit
						3471c31c32
					
				
					 416 changed files with 39455 additions and 171 deletions
				
			
		
							
								
								
									
										8
									
								
								Assets/Plugins/FMOD/platforms/linux/lib.meta
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Plugins/FMOD/platforms/linux/lib.meta
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: b28687fd18577ce4c838b916a4ed5c54 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64.meta
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64.meta
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: f99f1bb123ca3b6449fc49fc745c0fed | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64/libfmodstudio.so
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64/libfmodstudio.so
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,65 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 9063aa11b1fcfcf4cb6030a076d14a30 | ||||
| PluginImporter: | ||||
|   serializedVersion: 1 | ||||
|   iconMap: {} | ||||
|   executionOrder: {} | ||||
|   isPreloaded: 0 | ||||
|   platformData: | ||||
|     Android: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: AnyCPU | ||||
|     Any: | ||||
|       enabled: 0 | ||||
|       settings: {} | ||||
|     Editor: | ||||
|       enabled: 1 | ||||
|       settings: | ||||
|         CPU: x86_64 | ||||
|         DefaultValueInitialized: true | ||||
|         OS: AnyOS | ||||
|     Linux: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     Linux64: | ||||
|       enabled: 1 | ||||
|       settings: | ||||
|         CPU: x86_64 | ||||
|     LinuxUniversal: | ||||
|       enabled: 1 | ||||
|       settings: | ||||
|         CPU: AnyCPU | ||||
|     OSXIntel: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     OSXIntel64: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     OSXUniversal: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     SamsungTV: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         STV_MODEL: STANDARD_15 | ||||
|     Win: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     Win64: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     iOS: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CompileFlags:  | ||||
|         FrameworkDependencies:  | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64/libfmodstudioL.so
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64/libfmodstudioL.so
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,33 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: fca9337417f86ee4c86b182bad5e759e | ||||
| 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 | ||||
|         OS: Linux | ||||
|   - first: | ||||
|       Standalone: Linux64 | ||||
|     second: | ||||
|       enabled: 1 | ||||
|       settings: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64/libresonanceaudio.so
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Plugins/FMOD/platforms/linux/lib/x86_64/libresonanceaudio.so
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,69 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: bca6f630c310b4945b52486d2ed1da0a | ||||
| timeCreated: 1511469552 | ||||
| licenseType: Free | ||||
| PluginImporter: | ||||
|   serializedVersion: 1 | ||||
|   iconMap: {} | ||||
|   executionOrder: {} | ||||
|   isPreloaded: 0 | ||||
|   isOverridable: 0 | ||||
|   platformData: | ||||
|     Android: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: ARMv7 | ||||
|     Any: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: AnyCPU | ||||
|     Editor: | ||||
|       enabled: 1 | ||||
|       settings: | ||||
|         CPU: x86_64 | ||||
|         DefaultValueInitialized: true | ||||
|         OS: Linux | ||||
|     Linux: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     Linux64: | ||||
|       enabled: 1 | ||||
|       settings: | ||||
|         CPU: x86_64 | ||||
|     LinuxUniversal: | ||||
|       enabled: 1 | ||||
|       settings: | ||||
|         CPU: x86_64 | ||||
|     OSXIntel: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     OSXIntel64: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     OSXUniversal: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     SamsungTV: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         STV_MODEL: STANDARD_15 | ||||
|     Win: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: None | ||||
|     Win64: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CPU: AnyCPU | ||||
|     iOS: | ||||
|       enabled: 0 | ||||
|       settings: | ||||
|         CompileFlags:  | ||||
|         FrameworkDependencies:  | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Plugins/FMOD/platforms/linux/src.meta
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Plugins/FMOD/platforms/linux/src.meta
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: fb8b6c816014ed44ebc2db5f8dc5e03e | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										108
									
								
								Assets/Plugins/FMOD/platforms/linux/src/PlatformLinux.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										108
									
								
								Assets/Plugins/FMOD/platforms/linux/src/PlatformLinux.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,108 @@ | |||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
| #if UNITY_EDITOR | ||||
| using UnityEditor; | ||||
| #endif | ||||
| 
 | ||||
| #if UNITY_STANDALONE_LINUX && !UNITY_EDITOR | ||||
| namespace FMOD | ||||
| { | ||||
|     public partial class VERSION | ||||
|     { | ||||
|         public const string dll = "fmodstudio" + dllSuffix; | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| namespace FMOD.Studio | ||||
| { | ||||
|     public partial class STUDIO_VERSION | ||||
|     { | ||||
|         public const string dll = "fmodstudio" + dllSuffix; | ||||
|     } | ||||
| } | ||||
| #endif | ||||
| 
 | ||||
| namespace FMODUnity | ||||
| { | ||||
| #if UNITY_EDITOR | ||||
|     [InitializeOnLoad] | ||||
| #endif | ||||
|     public class PlatformLinux : Platform | ||||
|     { | ||||
|         static PlatformLinux() | ||||
|         { | ||||
|             Settings.AddPlatformTemplate<PlatformLinux>("b7716510a1f36934c87976f3a81dbf3d"); | ||||
|         } | ||||
| 
 | ||||
|         public override string DisplayName { get { return "Linux"; } } | ||||
|         public override void DeclareRuntimePlatforms(Settings settings) | ||||
|         { | ||||
|             settings.DeclareRuntimePlatform(RuntimePlatform.LinuxPlayer, this); | ||||
|         } | ||||
| 
 | ||||
| #if UNITY_EDITOR | ||||
|         public override IEnumerable<BuildTarget> GetBuildTargets() | ||||
|         { | ||||
|             yield return BuildTarget.StandaloneLinux64; | ||||
|         } | ||||
| 
 | ||||
|         public override Legacy.Platform LegacyIdentifier { get { return Legacy.Platform.Linux; } } | ||||
| 
 | ||||
|         protected override BinaryAssetFolderInfo GetBinaryAssetFolder(BuildTarget buildTarget) | ||||
|         { | ||||
|             return new BinaryAssetFolderInfo("linux", "Plugins"); | ||||
|         } | ||||
| 
 | ||||
|         protected override IEnumerable<FileRecord> GetBinaryFiles(BuildTarget buildTarget, bool allVariants, string suffix) | ||||
|         { | ||||
|             yield return new FileRecord(string.Format("x86_64/libfmodstudio{0}.so", suffix)); | ||||
|         } | ||||
| 
 | ||||
|         protected override IEnumerable<FileRecord> GetOptionalBinaryFiles(BuildTarget buildTarget, bool allVariants) | ||||
|         { | ||||
|             if (allVariants) | ||||
|             { | ||||
|                 yield return new FileRecord("x86_64/libfmod.so"); | ||||
|                 yield return new FileRecord("x86_64/libfmodL.so"); | ||||
|             } | ||||
| 
 | ||||
|             yield return new FileRecord("x86_64/libgvraudio.so"); | ||||
|             yield return new FileRecord("x86_64/libresonanceaudio.so"); | ||||
|         } | ||||
| 
 | ||||
|         protected override IEnumerable<string> GetObsoleteFiles() | ||||
|         { | ||||
|             yield return "platforms/linux/lib/x86/libfmodstudio.so"; | ||||
|             yield return "platforms/linux/lib/x86/libfmodstudioL.so"; | ||||
|         } | ||||
| #endif | ||||
| 
 | ||||
|         public override string GetPluginPath(string pluginName) | ||||
|         { | ||||
|             return string.Format("{0}/lib{1}.so", GetPluginBasePath(), pluginName); | ||||
|         } | ||||
| 
 | ||||
| #if UNITY_EDITOR | ||||
|         public override OutputType[] ValidOutputTypes | ||||
|         { | ||||
|             get | ||||
|             { | ||||
|                 return sValidOutputTypes; | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         private static OutputType[] sValidOutputTypes = { | ||||
|            new OutputType() { displayName = "Pulse Audio", outputType = FMOD.OUTPUTTYPE.PULSEAUDIO }, | ||||
|            new OutputType() { displayName = "Advanced Linux Sound Architecture", outputType = FMOD.OUTPUTTYPE.ALSA }, | ||||
|         }; | ||||
| #endif | ||||
| 
 | ||||
|         public override List<CodecChannelCount> DefaultCodecChannels { get { return staticCodecChannels; } } | ||||
| 
 | ||||
|         private static List<CodecChannelCount> staticCodecChannels = new List<CodecChannelCount>() | ||||
|         { | ||||
|             new CodecChannelCount { format = CodecType.FADPCM, channels = 0 }, | ||||
|             new CodecChannelCount { format = CodecType.Vorbis, channels = 32 }, | ||||
|         }; | ||||
|     } | ||||
| } | ||||
|  | @ -0,0 +1,11 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 73549a74f689f0849a8271d9e908c514 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gerard Gascón
						Gerard Gascón