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

    Interface DistanceCallbackConfig

    Configuration for distance-based callbacks on a 3D sound.

    interface DistanceCallbackConfig {
        thresholds: number[];
        onThresholdCross: DistanceCallback;
        checkInterval?: number;
    }
    Index

    Properties

    thresholds: number[]

    Distance thresholds to monitor (in world units). Callbacks are triggered when the sound crosses these distances.

    onThresholdCross: DistanceCallback

    Callback function invoked when a threshold is crossed.

    checkInterval?: number

    How often to check distances (in milliseconds). Lower values are more responsive but use more CPU.

    100