How to stop sounds played with "Notify - PlaySound" in AnimInstance ?

anonymous_user_e1600e71
Tue, 05 Jul 2016 09:20:27 +0000
Audio

Hi everyone,

I’m currently working on animations.

I have some “hard coded” animation among a dialog sound (since I’m not using FaceFX). So when an animation starts, I play the dialog sound using a “Notify - PlaySound”. This works pretty much as I want to.

But how can I stop the sound when the animation is cut off before the end ? For now, the sound will just continue to play even if the animation is stopped.

What I found so far:

Use a custom C++ AnimInstance class which store all the possible sounds for my animations but it’s dirty as f*** and really not convenient.

Create a custom AnimNotifyState and overriding Received_NotifyBegin & Received_NotifyBegin for each animation which is better but still not very convenient.

Use a Matinee for each animations

What do you guys think about that ?

Thanks for reading. Best regards.

16 posts - 5 participants