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

Soundbank not found in Android - hardcoded path?

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

最新提问 5月 16, 2016 分类: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.
最新回答 5月 26, 2016 用户: 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)
最新回答 11月 8, 2021 用户: taolu x. (140 分)
...