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