AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

AkSoundEngine.LoadBank returns AK_InvalidParameters with an Android device.

+2 支持
When I load obb file with LoadBank method, I got AK_InvalidParameters error.
I can get the values of ms_pInMemoryBankPtr and in_uInMemoryBankSize.
I confirmed the in_uInMemoryBankSize shows correct size.
 
It sounds when I unckecked the split build and delete the symbol, AK_LOAD_BANK_IN_MEMORY.
 
And also, Windows enviroment doesn't occur this error.
Nothing to do with split build check and in memory symbol.
 
Does anyone have any solutions?
 
 
---Wwise
tried Wwise version
2013.2.8
 
Source
AkMemBankLoader.cs
 
Code
AKRESULT result = AkSoundEngine.LoadBank(ms_pInMemoryBankPtr, in_uInMemoryBankSize, out ms_bankID);
 
Line
82
 
 
---Android
Android device
Galaxy S5
 
Android version
4.4.2
 
 
---Unity
Unity version
4.6.1f1
 
Unity Settings
-player settings->android tab
--Publishing Settings -> Split Application Binary : checked
--Other Settings -> Scripting Define Symbols : AK_LOAD_BANK_IN_MEMORY
 
 
this error occured ver 2013.2.4 as well.
太郎 (120 ポイント) 2015 2/12 質問 General Discussion

回答 1

–1 支持
Certain platforms (like Android) need the memory to be aligned, and it seems our C# allocator does not do it correctly. I have opened a bug to track this issue.
Benoit S. (Audiokinetic) (16,020 ポイント) 2015 2/16 回答
Benoit S. (Audiokinetic) 2015 2/16 編集
Has there been any update on this issue?
We are currently pulling our hairs on managing the obb split. We're on Unity 4.6.x
The fix is included in the 2014.1.5 and 2015.1+ integrations.

You should note that the AkMemBankLoader.cs might need some tweaking for it to work correctly with your specific needs.
...