コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

+1 支持

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?

Dominic P. (270 ポイント) General Discussion
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.

...