Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

PrepareEvent fails for bank loaded with BankLoadMemoryView

0 votes

I am having a problem where we load a bank with BankLoadMemoryView.  The bank loads properly (and the profiler tells me it's loaded).  Later, I go to prepare an event defined in that bank, and it fails with Ak_Fail.  I've tracked down what is going on (I think) and am curious if anyone knows of a workaround.

  1. BankLoadMemoryView is called and internally to wwise, the bank is put into a hash list with the key being the bank id and the in memory pointer that was passed to BankLoadMemoryView
  2. PrepareEvent is called later.  We have the bank id for the event and then then wwise tries to locate the bank itself in the hast list with the key that is used for the hash list is the bank id and null (and not the in memory pointer).  Therefore, the bank is not found, we try to load it again (and it's already loaded) and that fails and then PrepareEvent fails with Ak_Fail.

The bank is in the list, but it was added into the list with the in memory pointer, and then searched in PrepareEvent without using the in memory pointer.  Has anyone seen this before, or know of a workaround?  Thanks.

asked Jul 8, 2021 in General Discussion by Mark A. (100 points)

Please sign-in or register to answer this question.

...