[BUG] Audio Duration not working

Hello TorQueMoD,

So I opened up your project and discovered why you are getting the incorrect audio duration each time you call the sound wave to play.

In your case, you had an array of Sound Base class, which it does allow for Sound Waves or Sound Cues. For simplicity I created/converted that array into an ‘Array of Sound Waves’ to be called to play between a random range of 0 and 3. The main issue with your setup is you were calling the ‘Get’ from the Sound Base array two separate times, which is why the duration usually didn’t match up with the sound that was being called to play.

If you use the modified setup I have implemented below, Pressing the ‘J’ Key will get a random sound wave in the array, set that as the Sound Wave variable to be played, then you can call from that set to get the duration and other attributes of the Sound Wave.

Let me know if you have further questions or need additional assistance.

Thank you,