Script API - v1.26.40.20
    Preparing search index...

    Class SoundDurationInfoBeta

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

    export class SoundDurationInfo {
    private constructor();
    readonly duration: number;
    readonly isActive: boolean;
    getPlaybackPosition(): number;
    }
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    duration: number

    Gets the total duration of the sound in seconds.

    This property can't be read in early-execution mode.

    isActive: boolean

    Gets whether the sound is still being tracked.

    This property can't be read in early-execution mode.

    Methods

    • Returns number

      Elapsed playback time in seconds.

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

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.