Trying to get current playtime from audio component

Hi, I’m trying to the the current playtime from my audio components but it’s always returning 0.
Does this look correct?


It’s so surprisingly difficult to get the current playtime from an audio component that I feel like I’ve missed something obvious.
I’ve spent weeks trying to figure this out and I just feel like it shouldn’t be this hard.

Is it definitely passing both if conditions? Have you used the debugging tools to have a look at the values etc?

Simple test try returning something like 10.0f as your default if it doesn’t hit those if branches, see if it still returns 0

The log prints 0 from the value of ActiveSound.PlaybackTime inside the lambda function.

Thanks for the suggestions but I have moved on.
I implemented FTickableGameObject and just put a timer that runs alongside the audio playing.
It’s stupid, it’s ugly, it’s bad for performance, it’s all around bad practice, but it’s all I’ve got and now I’m going to release an engine subsystem on the marketplace that implements a tick function, which is gross.