Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface SoundNodeDeps

    Everything a node needs from the engine, as ports.

    interface SoundNodeDeps {
        listener: AudioListener;
        bus: GainNode;
        panningModel: PanningModel;
        parent: Object3D;
        onStarted(name: string): void;
        onEnded(name: string): void;
        resolveAttachCenter?(): Vector3 | null;
        registerFoaDecoder?(decoder: FoaDecoder): void;
        unregisterFoaDecoder?(decoder: FoaDecoder): void;
    }
    Index
    listener: AudioListener
    bus: GainNode

    The bus gain node this node routes into (already attrs.bus).

    panningModel: PanningModel
    parent: Object3D

    The node's placeholder group (carries the node transform); voices attach here.

    • World-space centre of the attach_to node, or null while it is unknown.

      Returns Vector3 | null