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.

0 votes
I've got a looping sound in Wwise which is set to loop infinitely. I have two separate events - one that simply plays the loop sound and other one just stops it.

I call the play event from Unreal Engine which works fine but when I call the stop event the sound doesn't stop. Doesn't work for 2D or 3D sounds.

Is it possible to call stop events on looping sounds? If not, is there a different/best practice way to stop looping sounds? (i.e less convoluted than setting volume to 0 and then destroying the object).
dans General Discussion par Mirren MN (110 points)

1 Réponse

0 votes
Hi! Are you sure that you call the stop event on the same object you started the sound from? Or you can change the stop event's scope to "global" so it will stop the sound on every object.
par Radek Karnik (990 points)
Hey :)
I had two separate events - one to play (worked fine) and another to stop. Both referencing the same SFX object.
Does the stop event have to be on the same play event? I thought calling an event laid out like that would just play then immediately stop it...
I don't mean same SFX object in Wwise but same game object in your UE project. You can (and should) do it using two separate events in Wwise. I am not sure how UE works but if it's the same like in Unity, you have to call both events on the same game object in your scene or set the scope of your stop event in Wwise to "Global" (there is a column for it in event editor in Wwise). If you do it the second way, it will stop all referenced events playing on all the object in your scene.  Another way to Stop all sounds is to call ak.soundengine.stopAll from the code on given object. Hope it's clear :)
Thank you so much for this answer! Had an audio bug I was trying to fix for weeks and this answer fixed it for me :)
...