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.

Custom-built Wwise effect plugin doesn't work in either in Unity Editor or Build

0 votes

Hi, I've encountered a weird integration problem. My development environment is
- Wwise 2019.2.8.7432
- Wwise Unity integration 2019.2.8.7432
- Unity 2019.4.17.1
I built a custom effect plug-in through the Wwise Plugin Pipeline and wanted to try it out in the Unity. However, I found it didn't work either in Editor or Build. The interesting thing is that once I connected the Unity editor to Wwise profiler, the plug-in would work as expected. When the profiler is disconnected, the plug-in doesn't work as well.
Any thought about this problem? Any help would be appreciated.
Thanks,
- tezika

asked Jan 28, 2021 in General Discussion by tezika (110 points)

1 Answer

–1 vote
Hi,

It's hard to tell without more details, but I just fixed a similar problem this morning (no sound in game until I profile in Authoring). Turns out that I had a type mismatch between the definition of a property in the XML file and its handling in GetBankParameters function (Authoring side). When a plug-in is loaded into a game, its SetParamBlock function (SoundEngine side) is called to fetch parameters from the generated soundbanks, which in my case gives me -inf for the duration parameter because, when I generated the soundbanks, I tried to read a 64-bit float from a 32-bit property. When connecting the Authoring to the game for profiling, the SetParam function (SoundEngine side) is called to update each individual property. This time, the sound engine was able to retrieve the correct value for the duration parameter.

Few points to check:
- Make sure that the type of the properties in the XML file exactly match the types that are read/written in GetBankParameters.
- Make sure that the order (and the types) of the properties that are read in SetParamBlock is exactly the same as the order (and the types) that is written to the soundbanks in GetBankParameters.

Hope that helps,

Olivier
answered Jan 29, 2021 by Olivier B. (120 points)
Hi Olivier,
Thanks for your help. I've already checked the two points you come up. Unfortunately, it still didn't work well in the Unity. There is something may be noticeable is that even I used some native Wwise plugin, such as AKFlanger, it still wouldn't work until I connected the profiler.
...