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

    Class FoaDecoder

    The FOA rotate-and-decode graph. Wire source → input and output → wherever.

    Index
    input: ChannelSplitterNode

    Feed the 4-channel source here.

    output: ChannelMergerNode

    Stereo out.

    rotationGains: GainNode[][] = []

    rotationGains[i][j]: rotated dipole i (Y, Z, X order as ACN 1..3) ← source dipole j.

    nodes: AudioNode[] = []
    lastRotation: Matrix3 = ...
    disposed: boolean = false
    context: BaseAudioContext
    • Point the field at the camera: the world-fixed bed is heard from the camera's orientation. Cheap and idempotent — unchanged rotations return without touching a param.

      Parameters

      • q: Quaternion

      Returns void