openmixer — generated API reference
    Preparing search index...

    Function buildDemoTopology

    • Build a working demo console over freshly-created virtual PipeWire nodes: N input nodes (one per input channel), M output nodes (one per output bus — the allocation's aux buses), and a stereo main node. The returned DemoTopology.options wires each channel's source to an input node's source ports and the main bus to the main node's sink ports, and carries the allocation so import('./software-mixer-loader.js').buildSoftwareAdapter seeds the full aux / group / matrix / DCA layer. The output-bus → output-node routing is returned separately (it is applied live once the buses have been created at adapter connect).

      Parameters

      • alloc: ConsoleAllocation

        the console allocation (input count N + bus counts; M = its aux count)

      • factory: DemoNodeFactory

        the node-creation seam (real PipeWire, or a fake in tests)

      Returns Promise<DemoTopology>

      the demo topology (software options, node handles, bus routing, teardown)