Is there a way to stop or pause a sound?

I need a sound to stop playing when a variable in the simulation is false and
the sound to play when the variable is true. I created an Event with type
“stop” in wwise. When I use the profiler in Wwise I see the event in stop but
it does not stop the sound in the simulation

Yes, have a look at the sound properties, LowerBound , UpperBound under or
the tag any of these can be used for your purpuse. Best, Raul

Hi @Simbol ,

While this works for SimVar sounds, can it be applied to Animation Triggers?
I’ve come across many cases where sounds are tied to an animation and suit a
loop sample (canopy sliding, lever foley, wing folding etc), however I cannot
find a way to stop animation sounds. I have tried creating Stop events in
Wwise and calling them as such

Nothing seems to work however. Can you please advise?

Alternatively is there a way to access an animations current value for Simvar
sounds? UpperBound and LowerBound only apply to Simvars/Localvars, and it
seems very inefficient to have to create an Lvar and update it with the
animation value for the sole purpose of passing that through to Wwise.

Thanks Dan FlyingIron Simulations

Animation sounds are animation sounds, to stop an animation sound, well you
have to stop the animation… You will need to drive the animation yourself for
this purpose, or do a full wise event instead and not use animation sounds.
think outside of the box… wink. Best, Raul

Actually, animation sounds don’t stop with the animation, they only trigger a
sound to play when specified by the triggers. That’s the reason for my
question - can animation sounds be told to ‘stop’ with the animation? Wwise
events can only be triggered by Simvars/Lvars, so it is not possible to use an
animation to drive them unless you pass through the animation value as an Lvar

Although I am not a WWISE expert (I know only the basics), the company that
did my products WWISE sounds was able to put specific sounds directly from
WWISE for animations, for example the Yoke movements, windows shades movements
and many more. So if I move the yoke very fast you hear the noise… but when I
stop, the noise stops immediately. Therefore for your requirement the best
course of action would be to trigger these types of sound that you want to
stop from WWISE and feed the correct variable for it. Bear in min that most
animations would either run from a A: var or an L: Var… and when you have
animations running via Z:, O: or I: Vars… these normally trigger some events
back to update A:VARS in order to receive an external state for the status of
the component and animate it properly. Otherwise you would have animation sync
issues where the base sim variable has changed and then the animation does
nothing… for example a switch that controls the gears or landing lights… if
the animation is only based on a Z:var when the base sim variable for gear or
landing light changes, independently from your input events (via external
tools, user loading from runway and variable set via .flt files, or user
hitting G or L key) the lever or switch would NOT MOVE. So Although I
understand your concerns, the reality is all animations would eventually
either run or update an A var (SimVar) or an L Var. If they don’t, you will
run into troubles anyway because many end users link airplanes to AAO,
StreamDeck, FSIUPC, Custom panels, joystick hardware inputs, etc. and they
would be unable to link any of these external tools to your product properly.
So if you follow well know standards for the SDK, and use WWISE correctly, all
should work without problems. The best is to learn WWISE to exploit sound
capabilities for animations the best way posible. Best, Raul

Hello @MikeNolan To control a sound with an
animation you need to use the attributes Animation & Model instead of Simvar
Index & Units, for example :

      1.  WwiseEvent=" Sound_For_Test_1" WwiseData="true" NodeName="Node_Test_1" Model="Interior" Animation=”Animation_Test_1">  

You can find the documentation about those two attributes
here.

Best Regards, Yohan

Hi @Yoanito, thanks very much for your answer!
That is exactly what I was looking for! Somehow I never saw that functionality
in the attributes table. Much appreciated, Dan

Hey Raul, Thanks for getting back to me and providing a detailed response.
I’ll take that into account, I hadn’t thought too much about different types
of Vars outside of Simvars & Lvars. Much appreciated Thanks Dan