@minecraft
    正在准备搜索索引...

    类 SoundDurationInfo实验性

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

    索引

    属性

    duration: number

    Gets the total duration of the sound in seconds.

    isActive: boolean

    Gets whether the sound is still being tracked.

    方法

    • 世界修改

      返回 number

      Current playback position in seconds, measured from the beginning of the sound.

      Returns the current playback position within the sound, in seconds, measured from the beginning of the sound.