Initial Wwise Integration
Created wwise project Integrated inventory UI sounds Improved projectile weapon behavior (randomized start position, stopped them from self-destructing at target range when airburst is disabled)
This commit is contained in:
parent
b53e4aec8c
commit
db8c3c7779
1019 changed files with 76372 additions and 110 deletions
|
|
@ -0,0 +1,14 @@
|
|||
public partial class AkSoundEngine
|
||||
{
|
||||
#if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_WSA
|
||||
/// <summary>
|
||||
/// Converts "AkOSChar*" C-strings to C# strings.
|
||||
/// </summary>
|
||||
/// <param name="ptr">"AkOSChar*" memory pointer passed to C# as an IntPtr.</param>
|
||||
/// <returns>Converted string.</returns>
|
||||
public static string StringFromIntPtrOSString(System.IntPtr ptr)
|
||||
{
|
||||
return StringFromIntPtrWString(ptr);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b05269b6c1babda43af19241293cb966
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_WSA
|
||||
public partial class AkBasePathGetter
|
||||
{
|
||||
static string DefaultPlatformName = "Windows";
|
||||
}
|
||||
#endif
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 45bdbb076d1d6d94590323f2fc583a8b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
#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<AkWindowsSettings>("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
|
||||
{
|
||||
public enum AudioAPI
|
||||
{
|
||||
None = 0,
|
||||
Wasapi = 1 << 0,
|
||||
XAudio2 = 1 << 1,
|
||||
DirectSound = 1 << 2,
|
||||
Default = ~0,
|
||||
}
|
||||
|
||||
[UnityEngine.Tooltip("Main audio API to use. Leave set to \"Default\" for the default audio sink. This value will be ignored if a valid \"AudioDeviceShareset\" is provided.")]
|
||||
[AkEnumFlag(typeof(AudioAPI))]
|
||||
public AudioAPI m_AudioAPI = AudioAPI.Default;
|
||||
|
||||
[UnityEngine.Tooltip("Only used when \"AudioAPI\" is \"DirectSound\", sounds will be muted if set to false when the game loses the focus.")]
|
||||
public bool m_GlobalFocus = true;
|
||||
|
||||
public override void CopyTo(AkPlatformInitSettings settings)
|
||||
{
|
||||
#if (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_EDITOR_WIN || UNITY_WSA
|
||||
settings.eAudioAPI = (AkAudioAPI)m_AudioAPI;
|
||||
settings.bGlobalFocus = m_GlobalFocus;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
[UnityEngine.HideInInspector]
|
||||
public AkCommonUserSettings UserSettings;
|
||||
|
||||
[UnityEngine.HideInInspector]
|
||||
public PlatformAdvancedSettings AdvancedSettings;
|
||||
|
||||
[UnityEngine.HideInInspector]
|
||||
public AkCommonCommSettings CommsSettings;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8267fe3409141cf4a98053b8bd1a9c11
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue