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.

+1 vote
We are planning to write a custom plug-in to analyze and segment microphone recordings during gameplay. We would like the send a custom data structure containing our analysis data (length of note, frequency, etc.) from the Wwise plug-in to Unity for visualization. What is the best approach for this? Thank you!
in General Discussion by Ryan M. (120 points)

1 Answer

+2 votes

I do not know if it is the best approach, but at least it has worked for us. We implemented a custom plug-in, which calculates the spectrogram of currently playing audio files. This data we then visualize in Unity (basically this is provided by GetSpectrogramData() in Unity, but we could not use it anymore after switching to WWise ).

 To get the data out of the plugin and into Unity, we used DLLImport to integrate  the WWise plugin dll directly into a monobehavoir script. Then you need two exported functions in the dll. First submit (basically a memory pointer) your custom data array to the dll and second to read out updated data regularly (in our case each frame in Update()). If you do not already know, have a look on how to integrate native plugins(your wwise plugin is native) into unity and how to "marshall" data from c# to c(++).

Hope this helps! 

by Dominic P. (270 points)
Good idea - I was wondering if it was possible to great a single dll that is both a Wwise plug-in and Unity plug-in. Seems it is possible - will give it a try, thanks!
...