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/win/lib.meta
Normal file
8
Assets/Plugins/FMOD/platforms/win/lib.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4ad89dfcd36045640a8e902f16b09363
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
Assets/Plugins/FMOD/platforms/win/lib/x86.meta
Normal file
9
Assets/Plugins/FMOD/platforms/win/lib/x86.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 03f590b69e4afe14fa1c73f89a98a203
|
||||
folderAsset: yes
|
||||
timeCreated: 1432606678
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86/fmodstudio.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86/fmodstudio.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -0,0 +1,78 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1550e5c882b8c2445a1f14f8b1b23d41
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Android:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
Linux:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
Linux64:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
LinuxUniversal:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXIntel:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXIntel64:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
OSXUniversal:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
SamsungTV:
|
||||
enabled: 0
|
||||
settings:
|
||||
STV_MODEL: STANDARD_13
|
||||
WP8:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DontProcess: False
|
||||
PlaceholderPath:
|
||||
Win:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Win64:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DontProcess: False
|
||||
PlaceholderPath:
|
||||
SDK: AnySDK
|
||||
iOS:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86/fmodstudioL.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86/fmodstudioL.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 90c40cff242d15a48b1c8fd9bc3de80a
|
||||
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
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86/resonanceaudio.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86/resonanceaudio.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -0,0 +1,55 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b2c11f1e03736f748bd861d7bf4f8952
|
||||
timeCreated: 1511469552
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Android:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
Linux:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
Linux64:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
LinuxUniversal:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXIntel:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXIntel64:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXUniversal:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Win:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Win64:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
Assets/Plugins/FMOD/platforms/win/lib/x86_64.meta
Normal file
9
Assets/Plugins/FMOD/platforms/win/lib/x86_64.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8105cca2fc4eb2e488e010278c3ea1bf
|
||||
folderAsset: yes
|
||||
timeCreated: 1432606678
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86_64/fmodstudio.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86_64/fmodstudio.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -0,0 +1,78 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 684d4d47a018ed14080e15f4c99b8e86
|
||||
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: Windows
|
||||
Linux:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
Linux64:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
LinuxUniversal:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXIntel:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
OSXIntel64:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXUniversal:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
SamsungTV:
|
||||
enabled: 0
|
||||
settings:
|
||||
STV_MODEL: STANDARD_13
|
||||
WP8:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DontProcess: False
|
||||
PlaceholderPath:
|
||||
Win:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
Win64:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DontProcess: False
|
||||
PlaceholderPath:
|
||||
SDK: AnySDK
|
||||
iOS:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86_64/fmodstudioL.dll
(Stored with Git LFS)
Normal file
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86_64/fmodstudioL.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -0,0 +1,33 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dfeb435e451dfc94c9cbaee19edec977
|
||||
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: Windows
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86_64/resonanceaudio.dll
Normal file
BIN
Assets/Plugins/FMOD/platforms/win/lib/x86_64/resonanceaudio.dll
Normal file
Binary file not shown.
|
@ -0,0 +1,50 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4c8fb9b92ea2eae4f9112a3941c4f128
|
||||
timeCreated: 1511469552
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Android:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
Linux:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
Linux64:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
OSXIntel:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OSXIntel64:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
Win:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
Win64:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Plugins/FMOD/platforms/win/src.meta
Normal file
8
Assets/Plugins/FMOD/platforms/win/src.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e3438d4d60981a7489133b13b11958ec
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
171
Assets/Plugins/FMOD/platforms/win/src/PlatformWindows.cs
Normal file
171
Assets/Plugins/FMOD/platforms/win/src/PlatformWindows.cs
Normal file
|
@ -0,0 +1,171 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
namespace FMOD
|
||||
{
|
||||
public partial class VERSION
|
||||
{
|
||||
#if UNITY_STANDALONE_WIN
|
||||
public const string dll = "fmodstudio" + dllSuffix;
|
||||
#elif UNITY_WSA
|
||||
public const string dll = "fmod" + dllSuffix;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
namespace FMOD.Studio
|
||||
{
|
||||
public partial class STUDIO_VERSION
|
||||
{
|
||||
#if UNITY_STANDALONE_WIN || UNITY_WSA
|
||||
public const string dll = "fmodstudio" + dllSuffix;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace FMODUnity
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[InitializeOnLoad]
|
||||
#endif
|
||||
public class PlatformWindows : Platform
|
||||
{
|
||||
static PlatformWindows()
|
||||
{
|
||||
Settings.AddPlatformTemplate<PlatformWindows>("2c5177b11d81d824dbb064f9ac8527da");
|
||||
}
|
||||
|
||||
public override string DisplayName { get { return "Windows"; } }
|
||||
public override void DeclareRuntimePlatforms(Settings settings)
|
||||
{
|
||||
settings.DeclareRuntimePlatform(RuntimePlatform.WindowsPlayer, this);
|
||||
settings.DeclareRuntimePlatform(RuntimePlatform.WSAPlayerX86, this);
|
||||
settings.DeclareRuntimePlatform(RuntimePlatform.WSAPlayerX64, this);
|
||||
settings.DeclareRuntimePlatform(RuntimePlatform.WSAPlayerARM, this);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public override IEnumerable<BuildTarget> GetBuildTargets()
|
||||
{
|
||||
yield return BuildTarget.StandaloneWindows;
|
||||
yield return BuildTarget.StandaloneWindows64;
|
||||
yield return BuildTarget.WSAPlayer;
|
||||
}
|
||||
|
||||
public override Legacy.Platform LegacyIdentifier { get { return Legacy.Platform.Windows; } }
|
||||
#endif
|
||||
|
||||
#if UNITY_WINRT_8_1 || UNITY_WSA_10_0
|
||||
public override string GetBankFolder()
|
||||
{
|
||||
return "ms-appx:///Data/StreamingAssets";
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_EDITOR
|
||||
protected override BinaryAssetFolderInfo GetBinaryAssetFolder(BuildTarget buildTarget)
|
||||
{
|
||||
switch (buildTarget)
|
||||
{
|
||||
case BuildTarget.StandaloneWindows:
|
||||
case BuildTarget.StandaloneWindows64:
|
||||
return new BinaryAssetFolderInfo("win", "Plugins");
|
||||
case BuildTarget.WSAPlayer:
|
||||
return new BinaryAssetFolderInfo("uwp", "Plugins/UWP");
|
||||
default:
|
||||
throw new System.ArgumentException("Unrecognised build target: " + buildTarget);
|
||||
}
|
||||
}
|
||||
|
||||
protected override IEnumerable<FileRecord> GetBinaryFiles(BuildTarget buildTarget, bool allVariants, string suffix)
|
||||
{
|
||||
string dllSuffix = suffix + ".dll";
|
||||
|
||||
switch (buildTarget)
|
||||
{
|
||||
case BuildTarget.StandaloneWindows:
|
||||
yield return new FileRecord("x86/fmodstudio" + dllSuffix);
|
||||
break;
|
||||
case BuildTarget.StandaloneWindows64:
|
||||
yield return new FileRecord("x86_64/fmodstudio" + dllSuffix);
|
||||
break;
|
||||
case BuildTarget.WSAPlayer:
|
||||
foreach (string architecture in new[] { "arm", "x64", "x86" })
|
||||
{
|
||||
yield return new FileRecord(string.Format("{0}/fmod{1}", architecture, dllSuffix));
|
||||
yield return new FileRecord(string.Format("{0}/fmodstudio{1}", architecture, dllSuffix));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new System.NotSupportedException("Unrecognised Build Target");
|
||||
}
|
||||
}
|
||||
|
||||
protected override IEnumerable<FileRecord> GetOptionalBinaryFiles(BuildTarget buildTarget, bool allVariants)
|
||||
{
|
||||
switch (buildTarget)
|
||||
{
|
||||
case BuildTarget.StandaloneWindows:
|
||||
yield return new FileRecord("x86/gvraudio.dll");
|
||||
yield return new FileRecord("x86/resonanceaudio.dll");
|
||||
break;
|
||||
case BuildTarget.StandaloneWindows64:
|
||||
yield return new FileRecord("x86_64/gvraudio.dll");
|
||||
yield return new FileRecord("x86_64/resonanceaudio.dll");
|
||||
break;
|
||||
case BuildTarget.WSAPlayer:
|
||||
yield break;
|
||||
default:
|
||||
throw new System.NotSupportedException("Unrecognised Build Target");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool SupportsAdditionalCPP(BuildTarget target)
|
||||
{
|
||||
return target != BuildTarget.WSAPlayer;
|
||||
}
|
||||
#endif
|
||||
|
||||
public override string GetPluginPath(string pluginName)
|
||||
{
|
||||
#if UNITY_STANDALONE_WIN
|
||||
#if UNITY_64
|
||||
return string.Format("{0}/X86_64/{1}.dll", GetPluginBasePath(), pluginName);
|
||||
#else
|
||||
return string.Format("{0}/X86/{1}.dll", GetPluginBasePath(), pluginName);
|
||||
#endif
|
||||
#else // UNITY_WSA
|
||||
return string.Format("{0}.dll", pluginName);
|
||||
#endif
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
public override OutputType[] ValidOutputTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
return sValidOutputTypes;
|
||||
}
|
||||
}
|
||||
|
||||
private static OutputType[] sValidOutputTypes = {
|
||||
new OutputType() { displayName = "Windows Audio Session API", outputType = FMOD.OUTPUTTYPE.WASAPI },
|
||||
new OutputType() { displayName = "Windows Sonic", outputType = FMOD.OUTPUTTYPE.WINSONIC },
|
||||
};
|
||||
|
||||
public override int CoreCount { get { return MaximumCoreCount; } }
|
||||
#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: 9660e62d6232af242877f0cc2b90c63d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue