Audio Loom - v0.3.0
    Preparing search index...

    Interface DistanceThresholdEvent

    Event emitted when a distance threshold is crossed.

    interface DistanceThresholdEvent {
        instanceId: string;
        key: string;
        group: string;
        threshold: number;
        distance: number;
        direction: "entering" | "leaving";
    }
    Index

    Properties

    instanceId: string

    The instance or channel ID of the sound.

    key: string

    Audio key being played.

    group: string

    Audio group the sound belongs to.

    threshold: number

    The threshold that was crossed.

    distance: number

    Current distance from the listener.

    direction: "entering" | "leaving"

    Direction of crossing: 'entering' (getting closer) or 'leaving' (getting further).