社区问答

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

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

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

0 投票

Hi

I'm using Wwise 2015.1.4 (64 Bit) Build 5497, Unity 5.3.2f1 and testing on an Android 5.0 device.

The soundbank are folders named after the OS (Audio\GeneratedSoundBanks\Android\), and this works for pc (Audio\GeneratedSoundbanks\Windows\).

I have the Soundbank Path (relative to StreamingAssets folder) in Unity set as Audio/GeneratedSoundBanks/.

But when I build and run the game on my phone, looking at logcat using Android Studio, I can see that the soundbanks can't be found. I'm getting these errors:

05-16 21:53:22.848 23023-23041/com.chase I/Unity: WwiseUnity: Setting base SoundBank path to Audio/GeneratedSoundBanks/Android/
AkBasePathGetter:GetValidBasePath() (at C:\Users\Dicky\Dropbox\Repositories\Chase\Assets\Wwise\Deployment\Components\AkBasePathGetter.cs:216)
AkInitializer:Initialize() (at C:\Users\Dicky\Dropbox\Repositories\Chase\Assets\Wwise\Deployment\Components\AkInitializer.cs:141)
AkInitializer:Awake() (at C:\Users\Dicky\Dropbox\Repositories\Chase\Assets\Wwise\Deployment\Components\AkInitializer.cs:83)
(Filename: C Line: 0)
05-16 21:53:23.068 23023-23041/com.chase I/Unity: WwiseUnity: Sound engine initialized.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
AkInitializer:Initialize() (at C:\Users\Dicky\Dropbox\Repositories\Chase\Assets\Wwise\Deployment\Components\AkInitializer.cs:166)
AkInitializer:Awake() (at C:\Users\Dicky\Dropbox\Repositories\Chase\Assets\Wwise\Deployment\Components\AkInitializer.cs:83)
(Filename: C Line: 0)
05-16 21:53:23.068 23023-23176/com.chase I/AKDEBUG: AK Error: 
05-16 21:53:23.068 23023-23176/com.chase I/AKDEBUG: File not found: Init.bnk
05-16 21:53:23.068 23023-23176/com.chase I/AKDEBUG: AK Error: 
05-16 21:53:23.068 23023-23176/com.chase I/AKDEBUG: Bank Load Failed
05-16 21:53:23.078 23023-23041/com.chase E/Unity: WwiseUnity: Failed load Init.bnk with result: AK_FileNotFound

As you can see, it looks like there are some hardcoded filepaths in there - C:\Users\Dicky\Dropbox\Repositories\Chase\Assets\Wwise\Deployment\Components\AkInitializer.cs:181. Naturally that file path doesn't exist on my phone. I would have thought Wwise and Unity would be using relative paths.

If anyone has any idea what I'm doing wrong please let me know.

Thanks

Dicky

分类:General Discussion | 用户: Dicky M. (250 分)

2 个回答

0 投票
Hi I worked it out. Although in Unity I had specified where the soundbanks were through Edit>Wwise Settings> SoundBank Path, I found that the scripts were still expecting it them to live in Audio/GeneratedSoundBanks/. Once I had changed my soundbanks to live there instead, the build started working.
用户: Dicky M. (250 分)
0 投票
you can check whether the basepath for Initialization on android is same to the soundbanks path.

soundbanks path:

   Edit > Project Settings > Wwise Editor > Asset Management > SoundBanks Path

 

Initialization basepath:

   Edit > Project Settings > Wwise Initialization > Comon User Settings > Base Path

   (which is save to Android.asset in your unity project)
用户: taolu x. (140 分)
...