Skip to content

Bare metal

Five targets, one profile: iclforge::ac3_minimal, the minimum-footprint build of the codec — one static library, no exceptions, no RTTI, decode-only or encode-only, and none of the direct-form transform tables. What differs between the targets is the part and, on parts with no floating-point unit, the arithmetic tier the decoder runs in.

AC-4 is built from its own libraries (libs/ac4), the decoder only: no bare-metal build has the AC-4 encoder. The Cortex-M3 leg probes it, and the ESP32-P4 decodes it behind CONFIG_ICLFORGE_AC4, to 5.1 in real time. The ESP32-S3 decodes it with its state in PSRAM, under QEMU in CI and on a board, where 2.0 keeps up (phase D14c). The ESP32-C6 and the ESP32-C3 build it in the fixed-point tier; a decode does not fit a C6 beside WiFi, and on a board the play is refused. A Hearth sink built with the decoder takes AC-4 in a Sendspin group on the P4 and the S3 (Hearth); the published P4 and S3 sink images have the decoder, the C6's has it off.

TrueHD (libs/truehd) is an option of the component, CONFIG_ICLFORGE_TRUEHD, and of the Hearth sink's truehd overlay; no published image has it. firmware/truehd-probe has measured its decoder on a board for the ESP32-C6, -S3 and -P4, and on the ESP32-S3 5.1 at 24 bit took 0.93 of real time with the sink's memory settings and 1.095 without them (one run each, no Wi-Fi, no I2S; a 5.1 play through the sink took 1.20 and does not keep up). The variant table has the row, and the roadmap the work.

The variant table keeps codec support, Hearth support, distribution and evidence separate.

Bare-metal and ESP32 support by variant

Capability Cortex-M3 ESP32-S3 ESP32-P4 ESP32-C3 ESP32-C6 ESPHome/S3
AC-3 and E-AC-3 decode Source
emulation
all fixtures
Source
confirmed on hardware
all fixtures in real time
Source
confirmed on hardware
all fixtures and the stream set in real time; no network in the probe
Limited
emulation
12 of 14; the two 7.1.4 rows are skipped on a heap budget
Limited
confirmed on hardware
all except 7.1.4 fit; most real time with Wi-Fi
Limited
built and tested in CI
AC-3 only; the configuration is checked, the firmware is not compiled
AC-4 decode Source
emulation
six streams in float and in fixed point; PCM hashes pinned
Limited
confirmed on hardware
behind CONFIG_ICLFORGE_AC4, state in PSRAM; 2.0 in real time on a board, 5.1 slower
Limited
confirmed on hardware
behind CONFIG_ICLFORGE_AC4; 2.0 and 5.1 in real time, 5.1.4 slower
Unavailable
builds in fixed point; does not fit the 400 KB of SRAM
Unavailable
builds in fixed point; on a board no stream fits beside Wi-Fi and the Hearth sink, and a play is refused
Unavailable
TrueHD and MLP decode Unavailable
the probes and the ESP-IDF component do not build it
Unavailable
the probes and the ESP-IDF component do not build it
Unavailable
the probes and the ESP-IDF component do not build it
Unavailable
the probes and the ESP-IDF component do not build it
Unavailable
the probes and the ESP-IDF component do not build it
Unavailable
the probes and the ESP-IDF component do not build it
AC-3 and E-AC-3 encode Source
emulation
six fixture rows
Limited
confirmed on hardware
correct; widest layouts miss real time
Unavailable
not measured
Unavailable
not validated
Unavailable
not validated
Unavailable
Atmos object reconstruction Source
emulation
fixture coverage
Source
confirmed on hardware
placed onto 7.1.4
Source
confirmed on hardware
placed onto 7.1.4 in real time
Limited
emulation
correct under QEMU; speed unmeasured
Limited
confirmed on hardware
correct; 5.6x to 6.7x real time
Unavailable
AC-3 only
Hearth Sendspin sink Unavailable Source
confirmed on hardware
two-board group run; no DAC connected; AC-3 and E-AC-3, and 2.0 AC-4 in a build with the decoder
Limited
confirmed on hardware
paired 2.0 stream over Wi-Fi through the onboard C6; TDM not opened on v1.3 silicon; no DAC; AC-4 to 5.1 in a build with the decoder
Unavailable Limited
confirmed on hardware
two-board group run with S3; stereo only; AC-4 arrives as PCM; no DAC; CI builds it and cannot run it
Unavailable
not yet a media_player or speaker
Downloadable firmware Unavailable
build from source
Next release
built and tested in CI
packaged by CI; no release carries it yet
Next release
built and tested in CI
packaged by CI, one image for silicon v1.x and one for v3.x with a panel; no release carries it yet
Unavailable
probe target only
Next release
built and tested in CI
4 MB and 16 MB images packaged by CI; no release carries them yet
Unavailable
external component source

Whether a part is viable at all comes down to floating point, not RAM — the comparison across the wider ESP32 family, why the ESP32-P4 was declined as an S3 replacement, and the complementary C6 / S3 / P4 sink modules on one dual-ES9080 PCB, are on ESP32-C3 → Why this part.

Which page

  • Building the library itself for a part with no operating system? Start at Cortex-M3 — it's the reference leg CI measures the profile on, and the page that explains what the profile gives up.
  • Have an ESP32-S3 board? ESP32-S3 is real time on real hardware, with two example players (i2s_player, hearth_sink) that drive I2S, and the Sendspin sink. AC-3 and E-AC-3 only.
  • Have an ESP32-C3 (or another part with no FPU)? ESP32-C3 covers the fixed-point tier and what has and hasn't been measured on it. AC-3 and E-AC-3 only.
  • Have an ESP32-C6? ESP32-C6 has the fixed-point and float tiers timed on a board, with and without WiFi and a stream arriving, and which streams fit. AC-3 and E-AC-3 only.
  • Have an ESP32-P4? ESP32-P4 is the "best" tier of the shared sink family. Its probe is real time on every fixture with no network, and hearth_sink plays a paired Sendspin stream over Wi-Fi through the board's onboard ESP32-C6. If the board is pre-production silicon like the one this was measured on, the page also has a chip-revision trap worth reading before flashing anything. It decodes AC-4 behind a switch, from an HTTP source or a Sendspin group: 2.0 and 5.1 in real time, 5.1.4 slower (AC-4).
  • Porting, tuning or debugging memory on an ESP32 board? ESP32 memory layout has the flash map, the internal RAM split, what lives in PSRAM, the heap floors and what each codec costs on the S3, the C6 and the P4, side by side.
  • Building with ESPHome instead of raw ESP-IDF? ESPHome is the external component. It decodes AC-3 only, and it is not a media_player or speaker source.
  • Building hearth_sink for a dev kit, adding a Kconfig key or changing a board's configuration? ESP32 build profiles has the locked configuration of each board, the guard CI holds a build to, the commands to build a board from its profile, and what a change to one has to carry.
  • Changing the ESP32 firmware, or a decoder it links? Testing and benchmarking the boards says what is tested on the host, under QEMU and in CI, what needs a board, and how a board's plays are held to a recorded baseline.

Where to go next

  • Platforms is one level up — the full routing table across every target, not only the bare-metal ones.
  • Capabilities — the complete codec surface; the table above records where minimum-footprint targets narrow it.