Skip to content

Quick start

Choose the path that matches what you want to run:

Goal Instructions
Install the forge and forge-gui applications Install Forge
Build the library, CLI, and tests from source Continue below
Install or build an ESP32 network player Sink firmware for a published image, or an ESP32-S3 sink or an ESP32-C6 sink to build one
Use another platform or interface Choose a platform

Build from source

This path builds the library, CLI, and tests on Windows or Linux. See Building from source for macOS, all presets and options, and troubleshooting.

Prerequisites

Version Notes
A compiler MSVC (VS 2026), clang-cl 22, GCC 16, or Clang 22 C++23. One preset per compiler.
CMake ≥ 3.28
Ninja any recent The presets hard-code the Ninja generator.
vcpkg any recent; set ICL_VCPKG_STORE and the first configure makes one, or set VCPKG_ROOT The presets use it (see building.md). Supplies fmt, Catch2 and the libraries of the default Hearth build (plus Boost/Tracy only for the opt-in adm/profiling features — see building.md).
Qt 6.5+ prebuilt for the GUI; 6.8+ for Hearth's window and Crucible, which are skipped without it Not needed for the library and CLI. The Windows x64 presets build the GUI, so they need it or -DICLFORGE_BUILD_GUI=OFF. Never from vcpkg — see building.md.

Configure, build, and test

From any shell — a Developer PowerShell is not required, the presets chainload the MSVC environment themselves:

cmake --preset config-windows-msvc-debug
cmake --build --preset build-windows-msvc-debug
ctest --preset test-windows-msvc-debug

Swap msvc for llvm to build with clang-cl instead.

export ICL_VCPKG_STORE=$HOME/.cache/icl/vcpkg   # once; or VCPKG_ROOT=/path/to/vcpkg
cmake --preset config-linux-gcc-debug
cmake --build --preset build-linux-gcc-debug
ctest --preset test-linux-gcc-debug

Swap gcc for llvm to build with Clang. The GUI defaults off on Linux; enable it with -DICLFORGE_BUILD_GUI=ON.

The vcpkg toolchain supplies fmt, Catch2 and Hearth's libraries, the preset selects the compiler, and ctest runs the test suite and compiled examples. The tools are written to build/<preset>/bin/. Building from source covers release presets, workflow presets, and compiler-detection errors.

Encode and decode from the command line

forge reads the format from the stream, so one decode command takes AC-3, E-AC-3, AC-4, TrueHD or MLP. With a 48 kHz stereo in.wav:

forge encode in.wav out.ac3 448 couple
forge ac4-encode in.wav out.ac4 192
forge truehd-encode in.wav out.thd
forge probe out.ac4
forge decode out.ac4 out.wav

The TrueHD stream is lossless: forge decode out.thd back.wav gives the samples that went in, as a 24-bit WAV.

forge help lists every command and forge help <command> gives one command's options; the CLI reference has the grammars.

Call the library from C++

Two headers and about a dozen lines to encode a frame. This is excerpted from examples/encode_ac3.cpp, with the error handling elided:

#include "iclforge/ac3/core/tables.hpp"
#include "iclforge/ac3/encoder/encoder.hpp"

// Heap-allocated: FrameEncoder carries several KB of MDCT scratch/history state.
auto encoder = std::make_unique<iclforge::ac3::FrameEncoder>(iclforge::ac3::EncoderConfig{
    .bitrate_kbps = 448,
    .acmod = iclforge::ac3::Acmod::k3_2,  // L, C, R, SL, SR
    .lfe = true,
});

// Table 5.8 order, LFE last, exactly kSamplesPerFrame (1536) samples each.
std::vector<std::vector<float>> pcm(6, std::vector<float>(iclforge::ac3::kSamplesPerFrame));
// encode_frame takes a span of spans, so the views must outlive the call.
const std::vector<std::span<const float>> views{pcm.begin(), pcm.end()};

for (int frame = 0; frame < 31; ++frame) {
    fill_with_audio(pcm, frame, 48000.0);
    if (const auto encoded = encoder->encode_frame(views)) {
        write(stream, *encoded);  // one complete syncframe
    }
}

Next steps

  • Library — C++ API, modules, and package integration.
  • CLI reference — encode, decode, inspect, and validate from a shell.
  • GUI guide — file and live audio, objects, metadata, and quality checks.
  • Crucible — capture and position desktop applications.
  • Hearth — the desktop player, its ESP32 network sinks and the Android TV sink.
  • Karaoke — playing, timing, singing and making karaoke streams.