コミュニティQ&A

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

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

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

+1 支持

Hi guys, 

I have a game where many different ambient looping sounds are positioned around the game. In order for all of them not to be processed when they are not heard, I was thinking about using the virtual voice settings to send them to virtual voices when below volume threshold (like explained here: https://www.audiokinetic.com/learn/videos/kKQrz5DRg4s/).
But when I made a quick test with many sounds going to virtual voices, I got the error mentioned here https://www.audiokinetic.com/library/edge/?source=Help&id=ErrorCode_VirtualVoiceLimit where it says that it is bad practice, and that "This sound needs to be stopped by an explicit Stop Event". 

So my main question is: is this a bad way to do it, and do I need to make events to start and stop based on triggers instead?

Best, Jakob

Jakob Hougaard Andersen (180 ポイント) General Discussion

回答 1

0 支持

Hi Jakob,

I would consider this bad practice.

Good rule of thumb if you are going to use virtual voices - only use a virtual voice type decision about the state of a sound if the game wouldn't be able to make a better decision.

Your game will have lots of information about the spatial relationship of your listener and these sounds ( how far away they are, if they are audible directly or if a wall blocks them ).

A simple solution might be to define all your ambient sounds as positions in the world and once per frame check if the listener is sufficiently close to maybe hear them. If they are PostEvent, if they are not stop that event!

You can use virtual voices to make the final determination about whether a sound you've deemed potentially audible is actual rendered physically or not once its working with a tiny subset of sounds.

Try to avoid inversion of responsibility from the game to a piece of middleware if at all possible.

> But when I made a quick test with many sounds going to virtual voices, I got the error mentioned here https://www.audiokinetic.com/library/edge/?source=Help&id=ErrorCode_VirtualVoiceLimit where it says that it is bad practice, and that "This sound needs to be stopped by an explicit Stop Event". 

This specific error sounds like you may have chosen the wrong virtual voice behaviour.

Best,

Dan Murray

Dan M. (2.6k ポイント)
Thanks for your answer, Dan.
I will check out alternatives to virtual voices.
...