Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    A specialized subclass of the BaseEffectSource which describes a point-based source of sound.

    PointEffectSource

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    The data of this source.

    object: object | null

    Some other object which is responsible for this source.

    shape: Polygon

    The geometric shape of the effect source which is generated later.

    sourceId: string

    The source id linked to this effect source.

    suppression: Record<string, boolean> = {}

    Records of suppression strings with a boolean value. If any of this record is true, the source is suppressed.

    _flags: Record<string, number | boolean> = {}

    A collection of boolean flags which control rendering and refresh behavior for the source.

    defaultData: BaseEffectSourceData = ...

    Effect source default data.

    effectsCollection: string

    The target collection into the effects canvas group.

    sourceType: string = "sound"

    Accessors

    • get active(): boolean

      Is this source currently active? A source is active if it is attached to an effect collection and is not disabled or suppressed.

      Returns boolean

    • get attached(): boolean

      Is this source attached to an effect collection?

      Returns boolean

    • get effectsCollection(): any

      Returns any

    • get elevation(): number

      The elevation bound to this source.

      Returns number

    • get level(): documents.Level

      The level this source is in.

      Returns documents.Level

    • get suppressed(): boolean

      Is this source temporarily suppressed?

      Returns boolean

    • get updateId(): number

      Returns the update ID associated with this source. The update ID is increased whenever the shape of the source changes.

      Returns number

    • get x(): number

      The x-coordinate of the point source origin.

      Returns number

    • get y(): number

      The y-coordinate of the point source origin.

      Returns number

    Methods

    • Returns any

    • Add this BaseEffectSource instance to the active collection.

      Returns void

    • Steps that must be performed when the source is destroyed.

      Returns void

    • Get the effective volume at which an AmbientSound source should be played for a certain listener.

      Parameters

      • listener: ElevatedPoint
      • Optionaloptions: { easing?: boolean } = {}

      Returns number

    • Refresh the state and uniforms of the source. Only active sources are refreshed.

      Returns void

    • Remove this BaseEffectSource instance from the active collection.

      Returns void

    • Protected

      Subclass specific configuration steps. Occurs after data initialization and shape computation. Only called if the source is attached and not disabled.

      Parameters

      Returns void

    • Protected

      Create the polygon shape (or shapes) for this source using configured data.

      Returns void