Hi,
My engine version : 4.8
I believe this issue occurs on 4.9 and master too, because there is no change in this code since 4.8.
The function from the topic in some circumstances can calculate wrong CurrentAdjustVolumeMultiplier value = 1.#INF0000
because there is possibility to divide by 0.
This line of code:
CurrentAdjustVolumeMultiplier += (TargetAdjustVolumeMultiplier - CurrentAdjustVolumeMultiplier) * DeltaTime / (TargetAdjustVolumeStopTime - PlaybackTime);
in my case for looped sound:
PlaybackTime = 3.10002732
TargetAdjustVolumeStopTime = 3.10002732
will give something divided by 0.f
I’ve changed this line of code:
if( PlaybackTime <= TargetAdjustVolumeStopTime )
to
if( PlaybackTime < TargetAdjustVolumeStopTime )
And it seems it solves dividing by 0 issue. What do you guys think about my solution?
Regards