The projects of the tree¶
The repository is a monorepo of projects: libraries under libs/, the programs of each product
under apps/, the code several programs compile in under apps/shared/, the language bindings
under bindings/, the firmware under firmware/, and the examples and cross-project tests. Every
one is a row of tools/checks/projects.json, which says what it may use;
check_layering.py holds every #include and every CMake link line of the tree to it, and the CI
planners read the same rows to decide what a change builds (CI lane partitions).
This page is generated from it.
A library uses only libraries. A program, a binding, a firmware project and an example use
libraries (a program also the shared code, a firmware project also the firmware library it is
built on) and never another program or firmware project, and no library uses a program. An
internal project is never installed, and no installed header includes one. A header another
project includes is under the project's include/ or a directory its row exposes. Each project's
tests are beside it, and ctest -L <project> runs them.
Libraries¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
ac3 |
libs/ac3/ |
The AC-3 and E-AC-3 codec, including Joint Object Coding (Atmos objects) and EMDF object signing, with loudness metering, level analysis and quality measurement. | base, dsp, objects, render |
app-media, app-project, baremetal, capi, crucible, demo-android, demo-wasm, esp-idf, esp-idf-host-tests, esphome, examples, forge, hearth, hearth-sink, python, sink, tests |
core |
ac4 |
libs/ac4/ |
The AC-4 decoder and encoder, with the sync frames, table of contents and presentations both work through. | base, dsp, objects, render |
app-media, baremetal, capi, crucible, demo-wasm, esp-idf, examples, forge, hearth, python, sink, tests |
core |
adm |
libs/adm/ |
ADM and BW64 reading and writing, and the mapping between ADM objects and the Atmos encoder and decoder. | iab, objects |
examples, forge |
core |
audio (internal) |
libs/audio/ |
Live capture, IEC 61937 passthrough delivery, shared-mode monitor playback and the OSC object-position source: the OS-specific audio code of the project. Internal; never installed. | base, render, containers, objects |
crucible, demo-android, forge, hearth, hearth-android |
core |
base |
libs/base/ |
What every codec and service builds on and none owns: the bit reader and writer, the speaker vocabulary, the level and loudness meters, WAV reading and writing, the CPU probe, the signing key with SHA-256 and HMAC-SHA-256, the content-signature core (ECDSA P-256, X.509 chains, Thrift) that no codec owns, the scalar building blocks of the arithmetic tiers and the build version. | nothing | ac3, ac4, audio, baremetal, containers, crucible, crypto-bench, demo-android, dsp, esp-idf, esp-idf-host-tests, examples, forge, hearth, iab, objects, python, render, tests, truehd, truehd-probe |
core |
capi |
libs/capi/ |
The C API over the AC-3, AC-4 and TrueHD libraries and the lyrics reader: plain C11, opaque handles and POD structs, for bindings and callers that cannot link C++23. | ac3, ac4, lyrics, truehd |
examples, rust |
core |
containers |
libs/containers/ |
The codec-blind carriage: IEC 61937 burst packing and detection (TrueHD's MAT included), the Matroska, MP4 and MPEG-TS writers and readers (TrueHD included), and IAMF reading and writing. | base |
app-media, audio, crucible, demo-android, examples, forge, hearth, python, sink |
core |
device (internal) |
libs/device/ |
The device-side logic of the ESP32 sinks and players that needs no SDK, so that the host tests it: the interleave and the slot conversion, the playout and DAC queue models, the sink planner, the Improv provisioning protocol, the pairing records and the firmware image rules. Header-only. Internal; never installed. | nothing | esp-idf, esp-idf-host-tests, hearth, hearth-sink |
core |
dsp |
libs/dsp/ |
The signal processing more than one library uses: the FFT, the QMF bank, the offline sample-rate converter and filter sections, and the tiered (float and fixed-point) kernels AC-4 builds at its decode tier. | base |
ac3, ac4, baremetal, esp-idf, esp-idf-host-tests, forge, hearth, hearth-sink, objects, tests |
core |
iab |
libs/iab/ |
SMPTE ST 2098-2 Immersive Audio Bitstream reading and writing, as bare bitstreams and in MXF. | base |
adm, examples, forge |
core |
lyrics (internal) |
libs/lyrics/ |
Timed lyrics: an LRC file, in UTF-8 or UTF-16, read into lines of timed words and written back, the file's place beside a media item, the stateless cursor that says which line and word a playing position is in, and the editing a tap timer needs (a line's start, a word's start, an estimate by letters). Standard library only, so that Hearth, Crucible, the sink firmware and the browser can all link it. Internal; never installed. | nothing | app-cdg-picture, app-text-encoding, capi, crucible, demo-wasm, esp-idf, forge, hearth, hearth-android, hearth-sink, python, sink |
core |
objects |
libs/objects/ |
The object-audio model: an object's position and path over time, the placement an encoder is handed each frame, and the Object Audio Metadata payload of ETSI TS 103 420 with the EMDF container it travels in. | base, dsp |
ac3, ac4, adm, app-media, audio, baremetal, crucible, demo-wasm, esp-idf, esp-idf-host-tests, examples, forge, hearth, python, render, sink |
core |
pitch (internal) |
libs/pitch/ |
A singing voice's pitch: a fundamental-frequency tracker (the McLeod Pitch Method, written from the paper), a reference melody as a contour on a fixed grid or as notes, and a pitch score of one against the other with an estimate of how early or late the singer is, and a check that says when a microphone is mostly the played signal coming back from the speakers. Standard library only, so that Hearth, the browser and the sink firmware can all link it. Internal; never installed. | nothing | demo-wasm, hearth |
core |
render |
libs/render/ |
From what a decoder produced to what the speakers want: layouts and their text form, routing, per-output trim and delay, the bed and object renderer and the panning under it. | base, objects |
ac3, ac4, app-media, audio, baremetal, esp-idf, esp-idf-host-tests, examples, forge, hearth, hearth-sink, sink |
core |
sendspin (internal) |
libs/sendspin/ |
The Sendspin protocol: the server half Hearth's engine uses and the player half its test sink and the ESP32 sinks use. Internal; never installed. | time-filter |
esp-idf, esp-idf-host-tests, hearth, hearth-android, hearth-sink, sink |
core |
sink (internal) |
libs/sink/ |
A Sendspin sink a program runs: it listens and advertises, pairs, admits servers as the specification ranks them, keeps the identity and the pairing records, answers the roles a server lists, and hands each stream it is sent to an output the program supplies: the pass-through output hands the coded bursts on, and the decoding output (AC-3, E-AC-3, AC-4) decodes and renders them and hands the samples to a PcmSink. It was Hearth's test sink, which writes WAV files; the Android app gives the receiver the bytes. Internal; never installed. | ac3, ac4, containers, lyrics, objects, render, sendspin, truehd |
hearth, hearth-android |
core |
truehd |
libs/truehd/ |
The TrueHD and MLP bitstream (access units, major sync, restart and block headers, the check values), the lossless decoder and the TrueHD encoder. | base |
app-media, capi, crucible, demo-wasm, esp-idf, esp-idf-host-tests, forge, hearth, python, sink, tests, truehd-probe |
core |
Vendored code¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
time-filter |
external/time-filter/ |
The vendored clock-synchronisation filter that Sendspin keeps its players in time with. | nothing | sendspin |
core |
Shared code of the programs¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
app-cdg-picture (internal) |
apps/shared/cdg-picture/ |
The picture of a CD+G disc as a window shows it: the disc as images by position, the source a controller gives them through, and the Qt Quick item that draws them. Internal; compiled into the programs. | lyrics |
crucible, forge, hearth |
windows, linux, macos |
app-media (internal) |
apps/shared/media/ |
The media code the programs compile in: container input, stream playback, recording sinks, the AC-4 object renderer. Internal; compiled into Forge, Hearth and Crucible. | ac3, ac4, containers, objects, render, truehd |
forge, hearth |
windows, linux, macos |
app-preferences (internal) |
apps/shared/preferences/ |
The settings store and its migration, shared by the desktop programs. Internal; compiled into the programs. | nothing | crucible, forge, hearth |
windows, linux, macos |
app-project (internal) |
apps/shared/project/ |
The project file the Forge GUI and forge share: its document and the command line it stands for. Internal; compiled into the programs. | ac3 |
forge |
windows, linux, macos |
app-text-encoding (internal) |
apps/shared/text-encoding/ |
The legacy code pages a lyrics file can be read in, converted to UTF-8 by the operating system (MultiByteToWideChar, iconv) as the decoder libs/lyrics asks a program for. Internal; linked by forge and the Forge GUI. | lyrics |
forge |
windows, linux, macos |
app-theme (internal) |
apps/shared/theme/ |
The theme and system-theme detection the desktop programs share. Internal; compiled into the programs. | nothing | crucible, forge, hearth |
windows, linux, macos |
Programs¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
crucible |
apps/crucible/ |
Crucible: the Atmos monitoring bed and its virtual output device, for Windows, Linux and macOS. | ac3, ac4, audio, base, containers, lyrics, objects, truehd, app-cdg-picture, app-preferences, app-theme |
nothing | windows, linux, macos |
demo-android |
apps/demos/android/ |
The Android (Shield) demo application. | ac3, audio, base, containers |
nothing | android |
demo-wasm |
apps/demos/wasm/ |
The browser demos, built with Emscripten. | ac3, ac4, lyrics, objects, pitch, truehd |
nothing | wasm |
forge |
apps/forge/ |
Forge: the command-line tool (forge) and the desktop application (forge-gui) for encoding, decoding, analysis and QC of AC-3, E-AC-3 and AC-4, and, in the command-line tool only, for decoding, analysis, wrapping and encoding of TrueHD. | ac3, ac4, adm, audio, base, containers, dsp, iab, lyrics, objects, render, truehd, app-cdg-picture, app-media, app-preferences, app-project, app-text-encoding, app-theme |
nothing | windows, linux, macos |
hearth |
apps/hearth/ |
Hearth: the reference player: its engine (the queue, the transport, the output decision), the Qt application, and the test sink and test server. | ac3, ac4, audio, base, containers, device, dsp, lyrics, objects, pitch, render, sendspin, sink, truehd, app-cdg-picture, app-media, app-preferences, app-theme |
nothing | windows, linux, macos |
hearth-android |
apps/hearth/android/ |
Hearth for Android: a Sendspin sink for Android TV, advertised on the network, paired with from Hearth and playing what it sends. A foreground service owns one iclforge::sink; the screens are platform Views over JNI. | audio, lyrics, sendspin, sink |
nothing | android |
Bindings¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
js |
bindings/js/ |
The npm package over the WebAssembly build. | nothing | nothing | wasm, npm |
python |
bindings/python/ |
The Python binding: the iclforge wheel, built with scikit-build-core. | ac3, ac4, base, containers, lyrics, objects, truehd |
nothing | python |
rust |
bindings/rust/ |
The Rust crates: iclforge and iclforge-sys over the C API. | capi |
nothing | rust |
Firmware libraries¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
esp-idf |
firmware/esp-idf/ |
The ESP-IDF component: the codec and player for the ESP32-S3, C3, C6 and P4, with its examples. | ac3, ac4, base, device, dsp, lyrics, objects, render, sendspin, truehd |
esp-idf-host-tests, hearth-sink |
esp |
Firmware¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
baremetal |
firmware/baremetal/ |
The minimum-footprint probes: the Cortex-M3 build under QEMU, the ESP32 images and the fixtures they decode. | ac3, ac4, base, dsp, objects, render |
nothing | esp |
crypto-bench |
firmware/crypto-bench/ |
The measurement image that prices SHA-256, HMAC and the Sendspin AEAD on an ESP32 board against the portable code, with the bit-exact checks; the P4X kit takes it over OTA and it returns itself. | base |
nothing | esp |
esp-idf-host-tests |
firmware/esp-idf-host-tests/ |
The host build of the ESP-IDF component's TrueHD player over stand-ins for the part's kernel, heap and clock: the Catch2 tests, the block-path bench and the stage bench. Kept outside firmware/esp-idf, which ESP-IDF scans for components. | ac3, base, device, dsp, esp-idf, objects, render, sendspin, truehd |
nothing | core |
esphome |
firmware/esphome/ |
The ESPHome external component that brings the ESP-IDF component into an ESPHome build. | ac3 |
nothing | esp |
hearth-sink |
firmware/hearth-sink/ |
Hearth's sink firmware for the ESP32 boards, a Sendspin player built on the ESP-IDF component. | ac3, device, dsp, esp-idf, lyrics, render, sendspin |
nothing | esp |
truehd-probe |
firmware/truehd-probe/ |
The measurement image that decodes the TrueHD fixtures on an ESP32 board, checks each against FFmpeg's PCM hash and prints the time, heap and stack the decoder takes; the board is written back afterwards. | base, truehd |
nothing | esp |
Examples¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
examples |
examples/ |
The library's example programs, in C++ and Python. | ac3, ac4, adm, base, capi, containers, iab, objects, render |
nothing | core |
Tests¶
| Project | Path | What it is | Uses | Used by | CI lanes |
|---|---|---|---|---|---|
tests |
tests/ |
What every test binary is built with (iclforge::test_support) and the performance tests. | ac3, ac4, base, dsp, truehd |
nothing | core |
The libraries¶
flowchart LR
ac3["ac3"]
ac4["ac4"]
adm["adm"]
audio(["audio"])
base["base"]
capi["capi"]
containers["containers"]
device(["device"])
dsp["dsp"]
iab["iab"]
lyrics(["lyrics"])
objects["objects"]
pitch(["pitch"])
render["render"]
sendspin(["sendspin"])
sink(["sink"])
time_filter["time-filter"]
truehd["truehd"]
ac3 --> base
ac3 --> dsp
ac3 --> objects
ac3 --> render
ac4 --> base
ac4 --> dsp
ac4 --> objects
ac4 --> render
adm --> iab
adm --> objects
audio --> base
audio --> render
audio --> containers
audio --> objects
capi --> ac3
capi --> ac4
capi --> lyrics
capi --> truehd
containers --> base
dsp --> base
iab --> base
objects --> base
objects --> dsp
render --> base
render --> objects
sendspin --> time_filter
sink --> ac3
sink --> ac4
sink --> containers
sink --> lyrics
sink --> objects
sink --> render
sink --> sendspin
sink --> truehd
truehd --> base
An arrow is uses; a rounded box is an internal library.
What the table allows by name¶
Uses the kinds forbid and the tree has on purpose, each with its reason. One that excuses nothing fails the check.
| From | To | Where | Why |
|---|---|---|---|
esp-idf-host-tests |
esp-idf |
firmware/esp-idf-host-tests/bench_truehd_block_path.cpp, firmware/esp-idf-host-tests/test_truehd_block_path.cpp |
The host tests drive the component's TrueHD stream through its private header (truehd_stream.hpp), as the host build of the player's own sources; they used to sit inside firmware/esp-idf, which ESP-IDF scans for components. |
ac4 |
app-media |
libs/ac4/tests/decoder/test_object_render.cpp |
The one test of the object renderer builds its streams with the AC-4 tests' own helper (decoder/objects.hpp, which includes the encoder's private headers), so it stays in libs/ac4/tests and compiles apps/shared/media/src/ac4_object_render.cpp into ac4's test binary: a library's test using an app-library. |