# wardbecksystems/ward-beck-audio-tap architecture

> Architecture diagram of the GitHub repository wardbecksystems/ward-beck-audio-tap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wardbecksystems/ward-beck-audio-tap
- Repository: https://github.com/wardbecksystems/ward-beck-audio-tap

## Overview

Ward-Beck Audio Tap is a daemon for virtual audio routing, broadcast metering, test points and AoIP visibility. The main user workflow is to select desktop audio through the local API, route it through the patchbay’s virtual buses, and expose audio to MXL rings and AES67 streams for monitoring. Additional branches cover network discovery, test-point receivers, pipeline inspection, diagnostics and setup. The excerpts establish the host/plugin structure and several service calls; links for unsampled plugin routes and subsystem interactions are omitted or marked unverified.

Main entry points: [`host/src/http.rs`](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/host/src/http.rs) (HTTP API), [`apps/mxl/src/lib.rs`](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/lib.rs) (MXL domains and rings), [`apps/aes67/src/lib.rs`](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aes67/src/lib.rs) (AES67 transmitters), [`plugin/src/lib.rs`](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/plugin/src/lib.rs) (Plugin contract)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_host["Host and contract"]
  node_daemon["TAP daemon<br/>[main.rs]"]
  node_http["HTTP API<br/>[http.rs]"]
  node_contract["Plugin contract<br/>[lib.rs]"]
  node_services["Shared services<br/>[services.rs]"]
end

subgraph group_audio["Audio routing and meters"]
  node_patchbay["Virtual patchbay<br/>[lib.rs]"]
  node_mxl[("MXL domains and rings<br/>[lib.rs]")]
  node_mxl_process["MXL flow processing<br/>[spitters.rs]"]
  node_inserts["Audio inserts<br/>[lib.rs]"]
  node_receivers["Test-point receivers<br/>[lib.rs]"]
  node_ams81["AMS-81 fold-down<br/>[ams81.rs]"]
  node_hardware["Hardware audio<br/>[headphones.rs]"]
  node_mxl_stage["MXL transforms<br/>[arpeggio.rs]"]
  node_mxl_batch["MXL batch flows<br/>[batch.rs]"]
  node_mxl_multichannel["Multichannel flows<br/>[multichannel.rs]"]
end

subgraph group_network["Network audio"]
  node_aes67["AES67 transmitters<br/>[lib.rs]"]
  node_aoip["AoIP listeners<br/>[lib.rs]"]
  node_inflate["SAP payload inflate<br/>[inflate.rs]"]
  node_discovery["Stream discovery<br/>[lib.rs]"]
  node_nmos_discovery["NMOS discovery<br/>[nmos.rs]"]
  node_sdp["SDP parsing<br/>[sdp.rs]"]
  node_nmos["NMOS services<br/>[lib.rs]"]
  node_bluetooth["Bluetooth devices<br/>[lib.rs]"]
end

subgraph group_operations["Operations and inspection"]
  node_pipeline["Pipeline inspection<br/>[lib.rs]"]
  node_diagnostics["Diagnostics bundle<br/>[lib.rs]"]
  node_setup["Setup guidance<br/>[lib.rs]"]
  node_cbc["CBC test set<br/>[lib.rs]"]
  node_watermark["Watermark decoding<br/>[lib.rs]"]
end

node_user(("Operator"))

node_user -->|"controls via API"| node_http
node_daemon -->|"plugs applications"| node_contract
node_daemon -->|"uses HTTP server"| node_http
node_http -.->|"dispatches routes"| node_contract
node_patchbay -->|"starts generators"| node_mxl
node_aes67 -->|"reads flow rings"| node_mxl
node_aes67 -->|"queries MXL service"| node_services
node_aes67 -->|"reads receiver service"| node_receivers
node_receivers -->|"reads SAP sessions"| node_aoip
node_mxl_process -->|"uses transforms"| node_mxl_stage
node_mxl_process -->|"uses batch flows"| node_mxl_batch
node_mxl -.->|"supports multichannel"| node_mxl_multichannel
node_aoip -->|"inflates payload"| node_inflate
node_discovery -->|"uses NMOS discovery"| node_nmos_discovery
node_nmos_discovery -->|"uses SDP helpers"| node_sdp
node_pipeline -.->|"inspects shared memory"| node_mxl
node_contract -->|"offers service slots"| node_services
node_http -.->|"routes source controls"| node_patchbay
node_http -.->|"serves diagnostics"| node_diagnostics

click node_daemon "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/host/src/main.rs"
click node_http "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/host/src/http.rs"
click node_contract "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/plugin/src/lib.rs"
click node_services "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/plugin/src/services.rs"
click node_patchbay "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/patchbay/src/lib.rs"
click node_mxl "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/lib.rs"
click node_mxl_process "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/spitters.rs"
click node_inserts "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/inserts/src/lib.rs"
click node_receivers "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/receivers/src/lib.rs"
click node_ams81 "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/receivers/src/ams81.rs"
click node_hardware "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/hardware/src/headphones.rs"
click node_aes67 "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aes67/src/lib.rs"
click node_aoip "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aoip/src/lib.rs"
click node_inflate "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aoip/src/inflate.rs"
click node_discovery "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/discovery/src/lib.rs"
click node_nmos_discovery "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/discovery/src/nmos.rs"
click node_sdp "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/discovery/src/sdp.rs"
click node_nmos "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/nmos/src/lib.rs"
click node_bluetooth "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/bluetooth/src/lib.rs"
click node_pipeline "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/pipeline/src/lib.rs"
click node_diagnostics "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/diagnostics/src/lib.rs"
click node_setup "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/setup/src/lib.rs"
click node_cbc "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/cbc/src/lib.rs"
click node_watermark "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/watermark/src/lib.rs"
click node_mxl_stage "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/arpeggio.rs"
click node_mxl_batch "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/batch.rs"
click node_mxl_multichannel "https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/multichannel.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_daemon,node_http,node_contract,node_services toneBlue
class node_patchbay,node_mxl,node_mxl_process,node_inserts,node_receivers,node_ams81,node_hardware,node_mxl_stage,node_mxl_batch,node_mxl_multichannel toneAmber
class node_aes67,node_aoip,node_inflate,node_discovery,node_nmos_discovery,node_sdp,node_nmos,node_bluetooth toneMint
class node_pipeline,node_diagnostics,node_setup,node_cbc,node_watermark toneRose
class node_user toneIndigo
```

## Components

### Host and contract

- [TAP daemon](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/host/src/main.rs): `host/src/main.rs`
- [HTTP API](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/host/src/http.rs): `host/src/http.rs`
- [Plugin contract](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/plugin/src/lib.rs): `plugin/src/lib.rs`
- [Shared services](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/plugin/src/services.rs): `plugin/src/services.rs`

### Audio routing and meters

- [Virtual patchbay](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/patchbay/src/lib.rs): `apps/patchbay/src/lib.rs`
- [MXL domains and rings](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/lib.rs): `apps/mxl/src/lib.rs`
- [MXL flow processing](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/spitters.rs): `apps/mxl/src/spitters.rs`
- [Audio inserts](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/inserts/src/lib.rs): `apps/inserts/src/lib.rs`
- [Test-point receivers](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/receivers/src/lib.rs): `apps/receivers/src/lib.rs`
- [AMS-81 fold-down](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/receivers/src/ams81.rs): `apps/receivers/src/ams81.rs`
- [Hardware audio](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/hardware/src/headphones.rs): `apps/hardware/src/headphones.rs`
- [MXL transforms](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/arpeggio.rs): `apps/mxl/src/arpeggio.rs`
- [MXL batch flows](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/batch.rs): `apps/mxl/src/batch.rs`
- [Multichannel flows](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/mxl/src/multichannel.rs): `apps/mxl/src/multichannel.rs`

### Network audio

- [AES67 transmitters](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aes67/src/lib.rs): `apps/aes67/src/lib.rs`
- [AoIP listeners](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aoip/src/lib.rs): `apps/aoip/src/lib.rs`
- [SAP payload inflate](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/aoip/src/inflate.rs): `apps/aoip/src/inflate.rs`
- [Stream discovery](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/discovery/src/lib.rs): `apps/discovery/src/lib.rs`
- [NMOS discovery](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/discovery/src/nmos.rs): `apps/discovery/src/nmos.rs`
- [SDP parsing](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/discovery/src/sdp.rs): `apps/discovery/src/sdp.rs`
- [NMOS services](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/nmos/src/lib.rs): `apps/nmos/src/lib.rs`
- [Bluetooth devices](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/bluetooth/src/lib.rs): `apps/bluetooth/src/lib.rs`

### Operations and inspection

- [Pipeline inspection](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/pipeline/src/lib.rs): `apps/pipeline/src/lib.rs`
- [Diagnostics bundle](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/diagnostics/src/lib.rs): `apps/diagnostics/src/lib.rs`
- [Setup guidance](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/setup/src/lib.rs): `apps/setup/src/lib.rs`
- [CBC test set](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/cbc/src/lib.rs): `apps/cbc/src/lib.rs`
- [Watermark decoding](https://github.com/wardbecksystems/ward-beck-audio-tap/blob/main/apps/watermark/src/lib.rs): `apps/watermark/src/lib.rs`

### Other components

- **Operator**

## Connections

- Operator → HTTP API: controls via API (evidence: `README.md`)
- TAP daemon → Plugin contract: plugs applications (evidence: `host/src/main.rs`)
- TAP daemon → HTTP API: uses HTTP server (evidence: `host/src/main.rs`)
- HTTP API → Plugin contract: dispatches routes
- Virtual patchbay → MXL domains and rings: starts generators (evidence: `apps/patchbay/src/lib.rs`)
- AES67 transmitters → MXL domains and rings: reads flow rings (evidence: `apps/aes67/src/lib.rs`)
- AES67 transmitters → Shared services: queries MXL service (evidence: `apps/aes67/src/lib.rs`)
- AES67 transmitters → Test-point receivers: reads receiver service (evidence: `apps/aes67/src/lib.rs`)
- Test-point receivers → AoIP listeners: reads SAP sessions (evidence: `apps/receivers/src/lib.rs`)
- MXL flow processing → MXL transforms: uses transforms (evidence: `apps/mxl/src/spitters.rs`)
- MXL flow processing → MXL batch flows: uses batch flows (evidence: `apps/mxl/src/spitters.rs`)
- MXL domains and rings → Multichannel flows: supports multichannel (evidence: `apps/mxl/src/lib.rs`)
- AoIP listeners → SAP payload inflate: inflates payload (evidence: `apps/aoip/src/lib.rs`)
- Stream discovery → NMOS discovery: uses NMOS discovery (evidence: `apps/discovery/src/lib.rs`)
- NMOS discovery → SDP parsing: uses SDP helpers (evidence: `apps/discovery/src/nmos.rs`)
- Pipeline inspection → MXL domains and rings: inspects shared memory
- Plugin contract → Shared services: offers service slots (evidence: `plugin/src/lib.rs`)
- HTTP API → Virtual patchbay: routes source controls
- HTTP API → Diagnostics bundle: serves diagnostics
