Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

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

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
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.
...