社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

+4 投票

Hi, I'm trying to split the application using wWise with no success.

First, I tried to remove in AkInitializer.cs all the initializing code from the Awake method and I created a static method to initialize. When my app start, after I checked the OBB file is loaded, I copy the Init.bk file from the streaming data path to the persistent data path.

Then I call my Initialize method in AkInitializer.cs with an added line for AkSoundEngine.AddBasePath that add my path to where I copied my file.

No error in the console but no sound in the game.

 

I then tried to use AkMemBankLoader in my first scene where the sound bank was loaded. this component is added to a GameObject that is never destroyed. Then again, no sound in my application.

I then added in the project settings AK_LOAD_BANK_IN_MEMORY but then I found that AkInitializer.cs was calling a method in AkMemBankLoader witch is not even static so it's impossible to build with this error.

 

Could someone who successfully build a split android application on Unity help me please?

分类:General Discussion | 用户: Mathieu C. (150 分)

2 个回答

+2 投票
Hey !

I'm trying to do the exact same thing, with sound banks downloaded into the persistent data path. The path I'm adding looks like this > /storage/emulated/0/Android/data/com.companyname.projectname/files/Audio/GeneratedSoundBanks/Android/

I'm getting this path by combining persistent data path and base path from Wwise. When I check inside the device storage, the folder exists and so does the bank I try to load, but when I log the AKRESULT of the LoadBank, I'm getting "AK_FileNotFound"

Is there something I'm missing ? I don't get errors or exceptions besides what I manually log, and obivously I get no sounds out of the device

Have someone found a solution to this ? The Wwise documention state it should be doable

Note : When I put the banks into the streaming assets and package them with the build, everything works fine, so the sound banks are not at fault.
用户: Cédric B. (190 分)
+1 投票
I have exactly the same problem as Cedric, using Unity 5.3 and Wwise v2015.1.1.
No matter what I call as an argument of AkSoundEngine.AddBasePath, I get AK_FileNotFound.
I've been trying absolute and relative paths to the sounbank file and its parent folder.
Could anyone provide an example of correctly called AkSoundEngine.AddBasePath in split-apk Android?
用户: Michal K. (180 分)
...