Getting audio file duration 4.2

Hello!

I’m trying to randomize the starting point of an audio loop. I’ve been able to do it successfully when I put the min and max range in manually (see the Manual Duration Value Entry screenshot) . But when I’m attempting to get UE to detect the duration automatically, it doesn’t seem to be returning the actual total audio length. (See the Auto Duration Value Method screenshot.) The values on the Printscreen ARE changing but the actual audio playback is not.


I’m sure I’m missing something and it’s probably something simple. I’m new to Blueprints though, so please be understanding and point me in the right direction.

Thanks!

Nate

Figured it out with some support. You have to use the wave and not the cue as it defaults looping sounds cues to 10,000 for the duration. This will drastically mess up the playback! Here’s the revised blueprint.