Skip to content

An ESP32-C6 sink

hearth_sink runs on the ESP32-C6 as a stereo Sendspin player. It plays AC-3 and E-AC-3 streams of up to two coded channels. A wider stream is refused before a decoder opens for it, and the console says why once per stream.

The limit is memory, not decode speed. The C6 has no PSRAM, so the player's buffers and WiFi's receive buffers share the internal RAM. On a board on 2026-09-22, AC-3 and E-AC-3 5.1 each stopped within about 12 seconds when the decoder could not allocate its working memory. The part does decode 5.1 in real time with WiFi running: see the ESP32-C6 platform page. The E-AC-3 decoder has used less memory since (its 5.1 peak in the fixed tier is 109,806 bytes now, from 164,066), and the sink has not been run again on a board to see whether the limit has moved.

Karaoke streams

A karaoke stream (bsmod 7 above 1/0) of AC-3 or E-AC-3 has five coded channels and an LFE at 3/2, wider than the two this board decodes, so Hearth decodes it and applies the reproduction there, and the C6 plays the stereo PCM it is sent as a plain Sendspin player. That is the same for both codecs, and the board lists eac3 among its karaoke codecs without that changing it: the channel limit applies regardless. On a C6 on 2026-10-12 Hearth said "This sink decodes AC-3 up to 2 channels, and this stream has 6, so it is decoded here and folded to 2.0 PCM" (and the same for E-AC-3), and the board reported itself as a player@v1 and no levels of its own. Hearth's live karaoke cases compare a board's own outputs with the host's decode, so they skip a board like this one and say why. The reproduction a listener hears from a C6 is the desktop's, and it is the same one every other member of a group plays (Karaoke).

The C6 build does not decode AC-4. CONFIG_ICLFORGE_AC4 builds the decoder for this part in the fixed-point tier, and the decoder does not fit beside WiFi: 2.0 peaks at 286,365 bytes, where the part has about 236,000 free with WiFi up, and 117 KB with the sink and its player up (ESP32-C6). A play of an AC-4 stream on the board is refused (why: "memory") and the board runs on. A C6 sink takes AC-4 programmes from Hearth as PCM. An ESP32-P4 or an ESP32-S3 built with sdkconfig.ac4 decodes AC-4 a Sendspin group sends it (ESP32-P4).

A stereo group of a C6 and an S3 has played ten minutes with no underrun on either board (example README). idf.py qemu does not support the C6, so CI builds its image but only a board runs it.

Pairing, groups and firmware updates work the same as on the S3; see An ESP32-S3 sink and Sink firmware. This page covers what differs on the C6.

Which image

CI builds two C6 images, and a release carries both:

Image For
hearth-sink-esp32c6 A C6 module with 4 MB of flash, the least any C6 module has
hearth-sink-esp32c6-16mb A C6 module with 16 MB of flash

Sink firmware — Which image explains how to check a board's flash size and install from a release.

Build and flash

From firmware/hearth-sink in an ESP-IDF terminal:

idf.py set-target esp32c6
idf.py "-DSDKCONFIG_DEFAULTS=sdkconfig.defaults;sdkconfig.hw;sdkconfig.sendspin;sdkconfig.c6;sdkconfig.sendspin-c6" build
idf.py -p PORT flash monitor

For a module with 16 MB of flash, add ;sdkconfig.flash16mb at the end of the list so the build uses the larger partition table.

sdkconfig.c6 and sdkconfig.sendspin-c6 record why each setting has the value it has, from measurements on a board: the ring size, the DMA queue and WiFi's code kept in flash. The example's README covers running it on a C6.