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,

I want to fluctuate the value of MaxDistance for certain AttenuationCurves depending on the game situation.
However, in the current state of Wwise, MaxDistance cannot be controlled by RTPC.
Is there any way to vary the MaxDistance of specific AttenuationCurves from the program side?
Or, if there is another way, I would like to know about it.
dans General Discussion par ヒロシ (110 points)
In Unity I managed to do this using AkSoundEngine.SetScalingFactor(gameObject, float). To call this function I had to register the gameObject first and because I do this it doesn't automatically create an AkGameObj component during runtime. This is what I call on Awake to scale the distance with my GameObject transform scale:
        gameObject.AddComponent<AkGameObj>();
        AkSoundEngine.RegisterGameObj(gameObject);
        AkSoundEngine.SetScalingFactor(gameObject, transform.lossyScale.x);

https://www.audiokinetic.com/en/library/edge/?source=SDK&id=ak_soundengine_registergameobj.html

https://www.audiokinetic.com/en/library/edge/?source=SDK&id=ak_soundengine_setscalingfactor.html

1 Réponse

0 votes
A work around would be to have a switch with your different situations for a given sound and have a different attenuation for each blend/situations under that switch (Same sound, different attenuations). This workflow does not scale well though...

Would be nice indeed to be able to vary the attenuations with an RTPC!
par Nikola Viel (1.6k points)
I am looking to do something similar - there is a node in Unreal "Set Attenuation Scaling Factor" - but it seems this will apply to all sounds playing on that AK Component.

In my case, I would like to use a switch (or RTPC) to select a specific attenuator when triggering a sound. Would save me a lot of trouble if I could do this on whole categories of sounds.... because yeah, duplicating thousands of sounds into switch containers would be a lot of busywork to manage.
...