Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Events not able to be posted on UE4 actor's EndPlay

+1 vote
It looks like a recent version of the UE4 plugin code has made it so calling PostEvent on an actor where IsActorBeingDestroyed() returns true fails to post the event. This workflow worked in previous versions of the plugin, and has caused a lot of performance problems in our event workflow due to game objects not properly being cleaned up in WWise now due to the stop events not being posted. It seems like a common pattern to start a looping sound on BeginPlay and subsequently call a stop event on EndPlay. The inability to post events during destruction would require us to create an entire pre-destruction code path to call solely for audio events.

Is there a good reason for this behavior? As I said, we were doing it before and did not notice and side effects. But perhaps something changed in WWise to warrant this? But on the off chance this was just an over zealous engineer trying to be safe, I'd really like to see it reverted as it creates a lot of seemingly unnecessary work for users of the plugin with what feels like a common event workflow.
asked Sep 25, 2018 in General Discussion by Matt F. (110 points)

Please sign-in or register to answer this question.

...