@minecraft
    Preparing search index...

    Class SoundDurationInfoBeta

    Provides duration and playback information for a sound whose definition declares a duration.

    Index

    Properties

    duration: number

    Gets the total duration of the sound in seconds.

    isActive: boolean

    Gets whether the sound is still being tracked.

    Methods

    • World mutation

      Returns number

      Elapsed playback time in seconds.

      Returns the elapsed playback time of the sound, in seconds, since it started playing.