コミュニティQ&A

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

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

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

0 支持

We are not able to use AK::SoundEngine::SetRTPCValueByPlayingID without getting an error.

Let me describe the use case:

  1. Trigger a sound, register for the end of event callback, and keep the playing ID
  2. Each game frame call AK::SoundEngine::SetRTPCValueByPlayingID to update the RTPC

The callback that will tell us that the sound is finished is being queued by our game engine to be processed on the game thread. Hence, the last time we call AK::SoundEngine::SetRTPCValueByPlayingID we always receive an error that the sound is not playing anymore. The next frame the callback is being processed by the game engine (that was queued), so we eventually stop trying updating the RTPC but one frame too late.

 

For sure, I could try to not use my system that process the callback on the game thread and do something custom for when I call SetRTPCValueByPlayingID but I find it is a lot of work. Also, I don't care that much to send one extra RPTC value to garbage (this would be better than getting an error each time we use SetRTPCByPlayingID.

 

Would it be possible to not output an error message when using SetRTPCValueByPlayingID? At least add add a new error type, so we can decide to mute this error in the output log of our game. Is there a way to mute specific errors in the Wwise profiler. If not, that would partially solve our problem.

 

My current solution to mute the error is to call AK::SoundEngine::Query::GetPlayingIDsFromGameObject prior to AK::SoundEngine::SetRTPCValueByPlayingID, so I can know if the sound has just finished playing or not. However, I don't find the solution optimal.

 

Also, I was wondering why the SetRTPCValueByPlayingID function is doing a lock to find the game object.  AK::SoundEngine::SeekOnEvent doesn't do that and we just pass the game object id.

 

Thanks

 

Stéphane B. (200 ポイント) General Discussion

Please sign-in or register to answer this question.

...