Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

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

0 votes

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)

 

asked Jan 20 in General Discussion by BigWatermelonPi (100 points)
retagged Jan 21 by BigWatermelonPi

1 Answer

0 votes
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
answered Jan 21 by Mads Maretty S. (Audiokinetic) (10,240 points)
Thank you! I'll follow that post
...