fmod / fmod-for-unreal

FMOD Studio integration with Unreal.
https://fmod.com/resources/documentation-unreal
MIT License
202 stars 84 forks source link

Patch: Trigger Delegate callback when programmer sound stops #73

Closed sirjofri closed 1 year ago

sirjofri commented 1 year ago

FMODAudioComponent.cpp.txt FMODAudioComponent.h.txt

These two attached patches add a new Unreal delegate OnSoundStopped that's triggered when a programmer sound finishes playing but the event is still playing.

In our setup we start an event with programmer sounds (from an audio table) for each dialogue line, and we want to get notified when the currently playing dialogue line ends. This patch allows us to bind to that new delegate and get notified about that.

Note that there are a few comments in the patches you surely want to adjust.

Thank you

Connor-FMOD commented 1 year ago

Hi,

Thank you for the suggestion, I have passed it onto our development team to look into further.

sirjofri commented 1 year ago

This change seems to be added to the latest 5.1 version, if I see that correctly? Guess we can close this ticket then...

Connor-FMOD commented 1 year ago

Hi,

Yes, your suggestions were added in the latest update. The ticket can be closed.