Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

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)

 

in General Discussion by BigWatermelonPi (240 points)
retagged 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
by Mads Maretty S. (Audiokinetic) (40.2k points)
Thank you! I'll follow that post
...