How to get length of audio stream (in second)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By

I want to create timeline (for something like a musicplayer). Is there any intelligent way to get length of an audio stream? I tried:

var length = $AudioStreamPlayer.get_length()
print (length)

but no success…

:bust_in_silhouette: Reply From: rakkarage

ya get_length but on the sample (AudioStreamSample base class AudioStream) not player


i think :slight_smile:

You saved my life…! :smiley: | 2020-08-28 07:09