feat: added fmod
This commit is contained in:
parent
c803300dce
commit
3471c31c32
416 changed files with 39455 additions and 171 deletions
97
Assets/Plugins/FMOD/platforms/tvos/src/PlatformAppleTV.cs
Normal file
97
Assets/Plugins/FMOD/platforms/tvos/src/PlatformAppleTV.cs
Normal file
|
@ -0,0 +1,97 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
#if UNITY_TVOS && !UNITY_EDITOR
|
||||
namespace FMOD
|
||||
{
|
||||
public partial class VERSION
|
||||
{
|
||||
public const string dll = "__Internal";
|
||||
}
|
||||
}
|
||||
|
||||
namespace FMOD.Studio
|
||||
{
|
||||
public partial class STUDIO_VERSION
|
||||
{
|
||||
public const string dll = "__Internal";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace FMODUnity
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[InitializeOnLoad]
|
||||
#endif
|
||||
public class PlatformAppleTV : Platform
|
||||
{
|
||||
static PlatformAppleTV()
|
||||
{
|
||||
Settings.AddPlatformTemplate<PlatformAppleTV>("e7a046c753c3c3d4aacc91f6597f310d");
|
||||
}
|
||||
|
||||
public override string DisplayName { get { return "Apple TV"; } }
|
||||
public override void DeclareRuntimePlatforms(Settings settings)
|
||||
{
|
||||
settings.DeclareRuntimePlatform(RuntimePlatform.tvOS, this);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public override IEnumerable<BuildTarget> GetBuildTargets()
|
||||
{
|
||||
yield return BuildTarget.tvOS;
|
||||
}
|
||||
|
||||
public override Legacy.Platform LegacyIdentifier { get { return Legacy.Platform.AppleTV; } }
|
||||
|
||||
protected override BinaryAssetFolderInfo GetBinaryAssetFolder(BuildTarget buildTarget)
|
||||
{
|
||||
return new BinaryAssetFolderInfo("tvos", "Plugins/tvOS");
|
||||
}
|
||||
|
||||
protected override IEnumerable<FileRecord> GetBinaryFiles(BuildTarget buildTarget, bool allVariants, string suffix)
|
||||
{
|
||||
if (allVariants || PlayerSettings.tvOS.sdkVersion == tvOSSdkVersion.Device)
|
||||
{
|
||||
yield return new FileRecord(string.Format("libfmodstudiounityplugin{0}.a", suffix));
|
||||
}
|
||||
|
||||
if (allVariants || PlayerSettings.tvOS.sdkVersion == tvOSSdkVersion.Simulator)
|
||||
{
|
||||
yield return new FileRecord(string.Format("libfmodstudiounitypluginsimulator{0}.a", suffix));
|
||||
}
|
||||
}
|
||||
|
||||
public override bool SupportsAdditionalCPP(BuildTarget target)
|
||||
{
|
||||
return PlatformIOS.StaticSupportsAdditionalCpp();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
public override void LoadPlugins(FMOD.System coreSystem, Action<FMOD.RESULT, string> reportResult)
|
||||
{
|
||||
PlatformIOS.StaticLoadPlugins(this, coreSystem, reportResult);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public override OutputType[] ValidOutputTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
return sValidOutputTypes;
|
||||
}
|
||||
}
|
||||
|
||||
private static OutputType[] sValidOutputTypes = {
|
||||
new OutputType() { displayName = "Core Audio", outputType = FMOD.OUTPUTTYPE.COREAUDIO },
|
||||
};
|
||||
#endif
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 17eea195bdfbf014e91ba7620ee491f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue