Open source · Apache 2.0

OAAT

Open Advanced Audio Transport

The open-source alternative to RAAT. Bit-perfect, multi-room, zero DRM. Sub-millisecond sync — measured, not promised.

July 2026

PTS-scheduled playback has landed: endpoints in a zone now start on the same controller-clock tick, with a measured start skew of 38–880 µs between endpoints, held over time by a continuous drift servo.

The Problem

  • ✗DLNA works everywhere but sounds mediocre: no sync, no gapless, HTTP pull model, XML/SOAP verbosity, renderer-controlled playback.
  • ✗RAAT sounds perfect but is proprietary: paid certification, closed source, locked to Roon ecosystem, DRM-entangled.
  • ✗AirPlay / Chromecast are platform-locked, limited to 48 kHz / 24-bit, and apply lossy transcoding.

The Solution

  • ✓Open source — Apache 2.0: free for any use, including commercial, with zero certification costs.
  • ✓Bit-perfect transport — PCM up to 768 kHz / 32-bit, native DSD up to DSD512. Zero resampling.
  • ✓Server-push, UDP audio — PTP-inspired clock sync, PTS-scheduled playback, sub-millisecond multi-room (measured), gapless.
  • ✓Rust-first — Zero-copy, async, no GC. A conforming endpoint in ~1500 lines.

Key Specifications

38 µs

Multi-room start skew — best measured

PCM 768/32

Max PCM resolution

DSD512

Native DSD support

< 200 ms

Play-to-sound latency

~1500 LOC

Endpoint implementation

Apache 2.0

License — Apache 2.0

Protocol Comparison

FeatureOAATRAATDLNAAirPlay 2ChromecastOpenHome
LicenseApache 2.0ProprietaryUPnP ForumAppleGoogleBSD
Cert costFreePaidFeeMFiCast SDKFree
Bit-perfectYesYesDependsNoNoYes
Max PCM768/32768/32Varies48/2448/24Varies
DSD nativeYesYesDoP onlyNoNoDoP
Multi-room sync< 1 ms (measured)< 1 msNoneAppleGoogleLimited
GaplessYesYesUnreliableYesYesYes
Latency< 200 ms~150 ms1-5 s~2 s~1 s1-5 s
DRMNoneMQANoneFairPlayWidevineNone
Endpoint LOC~1500N/A~5000+N/AN/A~3000+
Open sourceYesNoYesReverse-engNoYes

For Hardware Manufacturers

Implement the HAL trait — just 5 methods — and get a fully conforming OAAT endpoint in ~1500 lines of Rust. Zero certification cost; commercial products need a license from Mozaiklabs.

trait OaatHal {
    fn configure_output(&mut self, format: AudioFormat) -> Result<()>;
    fn write_frames(&mut self, data: &[u8], frames: usize) -> Result<usize>;
    fn buffer_level(&self) -> usize;
    fn set_volume(&mut self, level: u8) -> Result<()>;
    fn actual_sample_rate(&self) -> Option<f64>;
}

Works on Raspberry Pi, ESP32 with external DAC, FPGA-based streamers, and general-purpose computers.

Manufacturer partner programme

For Software Projects

Embed the oaat-controller crate in your music server to gain multi-room, bit-perfect streaming to any OAAT endpoint. Five API calls to get started.

// 1. Discover endpoints on the LAN
let endpoints = oaat::discover().await?;

// 2. Create a zone
let zone = oaat::zone_create(&[ep1, ep2]).await?;

// 3. Negotiate format
zone.format_propose(pcm_24_192_stereo).await?;

// 4. Stream audio
zone.play(audio_source).await?;

// 5. Control playback
zone.pause().await?;

Compatible with Volumio, moOde, HiFiBerryOS, or any Rust/C/Python project via FFI/PyO3 bindings.

How It Works

sequenceDiagram
    participant C as Controller<br/>(Music Server)
    participant E as Endpoint<br/>(DAC / Speaker)

    Note over C,E: 1. Discovery (mDNS/DNS-SD)
    E->>C: _oaat._tcp announcement<br/>name, capabilities, port

    Note over C,E: 2. Session Setup (TCP :9740)
    C->>E: Hello (protocol version, clock port)
    E->>C: HelloAck (capabilities)
    C->>E: FormatPropose (PCM 24/192)
    E->>C: FormatAccept ✓<br/>(sent once the DAC is open)

    Note over C,E: 3. Clock Sync (UDP :9742)
    E->>C: SyncRequest t1
    C->>E: SyncResponse t1, t2, t3
    Note right of E: offset = ((t2-t1)+(t3-t4))/2<br/>EMA filter α=0.125<br/>adaptive cadence on jitter

    Note over C,E: 4. Audio Stream (UDP :9741)
    C->>E: AudioPacket [seq=0, PTS, PCM data]
    C->>E: AudioPacket [seq=1, PTS, PCM data]
    C->>E: AudioPacket [seq=2, PTS, PCM data]
    Note right of E: Playback starts on the PTS tick<br/>drift servo keeps the lock

Multi-Room Synchronization

graph TD
    C["🎵 Controller<br/>(Tune Server)"] -->|"same PTS<br/>UDP audio"| E1["🔊 Living Room<br/>ESS 9038 · PCM 24/192"]
    C -->|"same PTS<br/>UDP audio"| E2["🔊 Kitchen<br/>HifiBerry · PCM 24/96"]
    C -->|"same PTS<br/>UDP audio"| E3["🔊 Bedroom<br/>Allo Boss · PCM 24/192"]

    E1 <-.->|"clock sync"| C
    E2 <-.->|"clock sync"| C
    E3 <-.->|"clock sync"| C

    style C fill:#4a90d9,stroke:#333,color:#fff
    style E1 fill:#50c878,stroke:#333,color:#fff
    style E2 fill:#50c878,stroke:#333,color:#fff
    style E3 fill:#50c878,stroke:#333,color:#fff
1

Discovery

Endpoints announce via mDNS/DNS-SD (_oaat._tcp). Zero configuration required. The controller discovers all endpoints on the LAN within seconds.

2

Negotiate & Sync

TCP control channel for session management. Format negotiation ensures bit-perfect delivery, and the accept is only sent once the DAC is actually open. Endpoint-initiated, PTP-inspired clock sync over UDP aligns all endpoints to sub-millisecond accuracy.

3

Stream

Audio flows over UDP with presentation timestamps: every endpoint starts playback on the same controller-clock tick, and a drift servo keeps DAC crystals locked over time. Optional FLAC compression for Wi-Fi. Gapless playback with pre-negotiated track transitions.

Join the Open Audio Future

OAAT is being developed as part of Tune. The protocol is open — contributions, feedback, and implementations from the community are welcome.

Built by Mozaiklabs · Powering Tune · Manufacturers