Skip to content

Commit 4339bf2

Browse files
committed
WG-74100: Update for Wwise 23.1.7
Change-Id: I1c7111dfa00dacf053e2ff0901b17250b0bfd188
1 parent 523c3ba commit 4339bf2

7 files changed

Lines changed: 10 additions & 20 deletions

Editor/AkAddressablesEditorSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal static AkAddressablesSettings LoadSettings()
7777

7878

7979
settings.MetadataPath = "WwiseAddressablesMetadata";
80-
settings.UseSampleMetadataPreserver = false;
80+
settings.UseSampleMetadataPreserver = true;
8181
}
8282
}
8383
catch (System.Exception exception)

Editor/Samples/WwiseAssetMetadataPreserver.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace AK.Wwise.Unity.WwiseAddressables
2929
/*
3030
This class provides the functionality preserve and restore Wwise addressable asset group and label metadata.
3131
This information is lost when the assets are deleted, and clearing the Wwise addressable asset folder is
32-
the simplest way to repair broken WwiseAddressableSounbanks.
32+
the simplest way to repair broken WwiseAddressableSoundBanks.
3333
This class should be seen as an example of how to implement this functionality and not a complete solution.
3434
*/
3535
[InitializeOnLoad]
@@ -56,8 +56,8 @@ public static void UnbindMetaDataDelegate()
5656
}
5757

5858
//Creates a AddressableMetadata asset for each Addressable wwise asset that keeps track of groups and labels.
59-
//Metadata assets are created in their own folder in a heirarchy matching the wwise assets
60-
//The folder heirarchy and asset name are used to match the assets on import
59+
//Metadata assets are created in their own folder in a hierarchy matching the wwise assets
60+
//The folder hierarchy and asset name are used to match the assets on import
6161
[UnityEditor.MenuItem("Assets/Wwise/Addressables/Serialize addressable asset metadata")]
6262
public static void PreserveAllWwiseAssetMetadata()
6363
{

Editor/WwiseBankImporter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ in a written agreement between you and Audiokinetic Inc.
2222
using System.IO;
2323
using UnityEngine;
2424

25-
#if UNITY_2020_2_OR_NEWER
2625
using UnityEditor.AssetImporters;
27-
#else
28-
using UnityEditor.Experimental.AssetImporters;
29-
#endif
3026

3127
namespace AK.Wwise.Unity.WwiseAddressables
3228
{

Editor/WwiseStreamingAssetImporter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ in a written agreement between you and Audiokinetic Inc.
2424
using System.IO;
2525
using System.Security.Cryptography;
2626

27-
#if UNITY_2020_2_OR_NEWER
2827
using UnityEditor.AssetImporters;
29-
#else
30-
using UnityEditor.Experimental.AssetImporters;
31-
#endif
3228

3329
namespace AK.Wwise.Unity.WwiseAddressables
3430
{

Runtime/AkAddressableBankManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ public string WriteableMediaDirectory
9191
{
9292
get
9393
{
94-
string pdp = UnityEngine.Application.persistentDataPath;
95-
return WwiseMajorVersion >= 2022 ? Path.Combine(pdp, "Media") : pdp;
94+
return Path.Combine(UnityEngine.Application.persistentDataPath, "Media");
9695
}
9796
}
9897

@@ -145,7 +144,6 @@ public void UnloadAllBanks(bool clearBankDictionary = true)
145144
{
146145
m_AddressableBanks.Clear();
147146
}
148-
149147
}
150148

151149
public void ReloadAllBanks()

Runtime/AkWwiseAddressablesInitializationSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class AkWwiseAddressablesInitializationSettings : AkWwiseInitializationSe
4646
}
4747
}
4848

49-
#if !WWISE_ADDRESSABLES_POST_2023
49+
#if !WWISE_ADDRESSABLES_POST_2023 && !WWISE_ADDRESSABLES_23_1_OR_LATER
5050
protected override void LoadInitBank()
5151
{
5252
AkAddressableBankManager.Instance.LoadInitBank();

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "com.audiokinetic.wwise.addressables",
3-
"version": "2023.1.5",
3+
"version": "2023.1.6",
44
"displayName": "Wwise Unity Addressables",
55
"description": "Wwise Unity Addressables",
6-
"unity": "2018.4",
7-
"unityRelease": "4f1",
6+
"unity": "2021.3",
7+
"unityRelease": "32f1",
88
"dependencies": {
99
"com.unity.addressables": "1.21.20"
1010
},
@@ -16,7 +16,7 @@
1616
"Audiokinetic"
1717
],
1818
"author": {
19-
"name": "Audokinetic Inc.",
19+
"name": "Audiokinetic Inc.",
2020
"email": "info@audiokinetic.com",
2121
"url": "https://www.audiokinetic.com"
2222
}

0 commit comments

Comments
 (0)