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

Hello,

I'm trying to integrate motion in a Unity game using WWise and I can't figure out where to find the "player index between 0 to 3" to identify which controller to setup using AK::SoundEngine::AddOutput. Where do I get this information?

 

Thank you,

Louis-André

 

PS: I use this page as reference: https://www.audiokinetic.com/library/edge/?source=SDK&id=integrating_elements_motion.html

in General Discussion by Louis-André G. (100 points)

1 Answer

0 votes

Hi there, looking at the link you referenced there's this line:

To simplify the setup when using a single controller, a default device ID is supported. By using "0", the Motion sink will target the first connected device that supports motion.

So as in the example provided for a single controller, you should just be able to pass in 0 and Wwise will associate it with the first connected controller. 

That link also refers to this method if you need to find another device ID: https://www.audiokinetic.com/library/edge/?source=SDK&id=namespace_a_k_1_1_sound_engine_aed62774067dccb22babc5ca54619ecb0.html#aed62774067dccb22babc5ca54619ecb0

by Mike P. (520 points)
...