在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

"ArgumentNullException: Value cannot be null." after enabling Decode Compressed Data in AKBank

0 投票

Currently using Unity 2019.4.8f1, Wwise 2019.2.5 and 2019.2.8

Tried in Wwise Adventure Game for 2019.2.5, 2019.2.8 and other projects, the error will occur after enabling Decode Compressed Data function.

After checking the codes, it turned out that AkWwiseInitializationSettings.InitializeSoundEngine() cannot be called, so that AkBasePathGetter.DecodedBankFullPath can't be assigned

so that when running DecodableBankHandle, error will occur when it comes to line 246: decodedBankPath = System.IO.Path.Combine(decodedBankFullPath, language);

 

Any idea about how to solve this problem, or is there other ways to decode vorbis while loading and save the decoded bank? Thanks!

 

 

Detailed error is as below:

ArgumentNullException: Value cannot be null.
Parameter name: path1
System.IO.Path.Combine (System.String path1, System.String path2) (at <fb001e01371b4adca20013e0ac763896>:0)
AkBankManager+DecodableBankHandle..ctor (System.String name, System.Boolean save) (at Assets/Wwise/Deployment/API/Handwritten/Common/AkBankManager.cs:246)
AkBankManager.LoadBank (System.String name, System.Boolean decodeBank, System.Boolean saveDecodedBank) (at Assets/Wwise/Deployment/API/Handwritten/Common/AkBankManager.cs:96)
AK.Wwise.Bank.Load (System.Boolean decodeBank, System.Boolean saveDecodedBank) (at Assets/Wwise/Deployment/API/Handwritten/Common/WwiseTypes/AkWwiseBank.cs:22)
AkBank.HandleEvent (UnityEngine.GameObject in_gameObject) (at Assets/Wwise/Deployment/Components/AkBank.cs:69)
AkTriggerHandler.Start () (at Assets/Wwise/Deployment/Components/AkTriggerHandler.cs:44)
AkBank.Start () (at Assets/Wwise/Deployment/Components/AkBank.cs:58)

 

最新提问 1月 20, 2021 分类:General Discussion | 用户: BigWatermelonPi (240 分)
标签修改 1月 21, 2021 用户:BigWatermelonPi

1个回答

0 投票
Hey BigWatermelonPi.

Thanks for reporting this. I added a quick reply here > https://www.audiokinetic.com/qa/8028/strange-error-when-using-decode-compressed-function-unity
最新回答 1月 21, 2021 用户: Mads Maretty S. (Audiokinetic) (39,400 分)
Thank you! I'll follow that post
...