Questions et réponses de la communauté

Bienvenue sur le forum de questions et réponses d'Audiokinetic, propulsé par la communauté. C'est l'endroit où les utilisateurs de Wwise et Strata s'entraident. Pour obtenir une aide directe de notre équipe, veuillez utiliser la page « Tickets de soutien ». Pour signaler un bug, utilisez l'option Bug Report dans l'Audiokinetic Launcher. (Veuillez noter que les rapports de bug soumis au forum questions-réponses seront rejetés. L'utilisation de notre système de rapport de bug dédié garantit que votre rapport est vu par les bonnes personnes et a les meilleures chances d'être corrigé.)

Pour obtenir rapidement les meilleures réponses, suivez ces conseils lorsque vous posez une question :

  • Soyez précis : qu'essayez-vous de réaliser ou quel est le problème spécifique que vous rencontrez ?
  • Pensez à inclure les détails importants : incluez des détails tels que les versions de Wwise et du moteur de jeu, le système d'exploitation, etc.
  • Expliquez ce que vous avez essayé de faire : indiquez aux autres les mesures que vous avez déjà prises pour essayer de résoudre le problème.
  • Concentrez-vous sur les faits : décrivez les aspects techniques de votre problème. Se concentrer sur le problème aide les autres personnes à trouver rapidement une solution.

+1 vote

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

dans General Discussion par Jakob Hougaard Andersen (180 points)

1 Réponse

0 votes

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

par Dan M. (2.6k points)
Thanks for your answer, Dan.
I will check out alternatives to virtual voices.
...