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

Using GetSourceMultiplePlayPositions() we tried to track all source play positions of an event, but we didn't get it work.  This is our current implementation:

Post Event code as used for GetSourcePlayPosition (works for GetSourcePlayPosition  but apparently not for GetSourceMultiplePlayPositions):

testEventId = AkSoundEngine.PostEvent(AK.EVENTS.TEST, gameObject, (uint)(AkCallbackType.AK_EnableGetSourcePlayPosition | AkCallbackType.AK_EndOfEvent), FinishedPlaying, null);

Call to GetSourceMultiplePlayPositions Method:

AKRESULT result = AkSoundEngine.GetSourceMultiplePlayPositions(testEventId, audioNode, mediaID, msTime, ref io_Positions, true);

'result' was always Ak.Fail in our tests. Is there something we are missing or is the method just not supported for the Unity version of wwise?

in General Discussion by Dominic P. (270 points)
edited by Dominic P.
Hi there, I'm having a similar issue. Did you ever find out a solution to this?
Hi Blake!

This is some time ago now, but we managed it to work. If I remember correctly, we did not initalize the array of audioNode, mediaID, msTime to the same size as setin the io_Positions parameter. In our working solution, we set io_Positions=5 and the arrays audioNode, mediaID, msTime have the same size(eg.  uint[] mediaID = new uint[5];). Though badly documented the method works as expected.

Hope that helps you...
That seems to do the trick! Thanks so much for your reply.
You are welcome ;-)

Please sign-in or register to answer this question.

...