SoundDuration alternative that properly supports MP3s and WAVs

GitHub
No Ogg support unfortunately because they require 64 bit integers to be read to parse.
Should work pretty flawlessly for WAVs since they’re really simple, not 100% sure about MP3s though. Works for the few MP3s I’ve tested so far but there may be some issues with particular files, let me know if you find any such issues.

2 Likes

There is a difference between your script and this one: https://steamcommunity.com/sharedfiles/filedetails/?id=903541818 ?

1 Like

From reading the description on the one you linked that is for WAVs only, mine supports MP3s as well.

2 Likes

Oh, great job! I’m going to use this now.

1 Like