Repository navigation
Developer documentation
This is the developer documentation for EqualizerAPO-XT. It is for people who want to review, build or experiment with the source, or write their own APO. If you only want to use the software, see the user documentation.
Disclaimer: this documentation is written to the best of our knowledge. It is neither complete nor guaranteed to be free of errors.
XT is a Windows project. The C++ projects target the Visual Studio 2022 / 2026 toolset with the Windows 10 SDK; the GUI tools are built with Qt. The original Equalizer APO build expected libraries installed under C:\Program Files; XT instead keeps every dependency under a local deps/ folder and provides a setup script that fetches them.
-
Visual Studio 2022 Build Tools (or 2026), including the components
Microsoft.VisualStudio.Component.VC.Tools.x86.x64andMicrosoft.VisualStudio.Component.VC.ATL. ATL is required — without it theEqualizerAPO.dlllink step cannot findatls.lib. The XT projects build with the VS 2026 toolsetv145; on a VS 2022 machine pass/p:PlatformToolset=v143. -
Python 3 — used only to unpack the Qt archives with
py7zrwhen7zis not onPATH. -
Qt 6.12.0 (MSVC 2022 x64) — installed under
Qt/6.12.0/msvc2022_64/by the setup script, straight from Qt's online repository and checked against pinned SHA-256 hashes. Needed by the Configuration Editor, the Device Selector and the Update Checker. -
External libraries — not committed to the repository: FFTW, libsndfile, muParserX, TCLAP, Google Highway, the MIT-licensed Steinberg VST3 pluginterfaces, and the Steinberg ASIO SDK 2.3.4 (fetched by SHA-256, taken under the SDK's GPL version 3 option) for the ASIO wrapper. They are placed under
deps/at build time. -
Velopack (
vpkCLI,dotnet tool install -g vpk) — used only by CI to package the binaries into theSetup.exe/.nupkgartifacts. Local development does not need it.
The script setup-build.ps1 downloads the binary dependencies (per SIMD variant), clones the header-only libraries (TCLAP, Highway and the VST3 pluginterfaces), and installs Qt. See setup-build.ps1 and Local dependency setup for the exact layout and the MSBuild / qmake commands.
The repository is organized around the following components. EqualizerAPO.sln contains the native MSBuild projects; the Editor is built from Editor/Editor.pro in the normal CI path.
-
Common — a static library with the filter engine (
FilterEngine,FilterConfiguration,IFilter), the individual filter implementations underfilters/, the muParserX extensions underparser/, and shared modules grouped underaudio/,dsp/,platform/,runtime/,services/,text/, andvst/. The convolution code lives inlibHybridConv-0.1.1/. The other projects link against it. -
EqualizerAPO — the Audio Processing Object DLL (
EqualizerAPO.dll). It contains the COM boilerplate, implements the APO interfaces, and calls into the Common filter engine. Being ATL-based, it needsatls.lib. -
Editor — the Qt-based Configuration Editor.
Editor.exeis the Velopack package's main executable and handles every Velopack install/update/uninstall hook throughservices/install/ApoRegistrationandservices/update/VelopackBootstrap. - DeviceSelector — the Qt utility shown after the first install so the user can pick the audio devices to register the APO for. It replaces the original Configurator.
- Benchmark — a console program for testing the audio processing without installing it on a device. Handy for experimenting with filter types and measuring performance.
- VoicemeeterClient — a helper for Voicemeeter integration.
- SubwooferRoutingCore — the shared, MIT-licensed subwoofer-routing DSP and state compiler used by both the APO command and the standalone plug-in.
-
SubwooferRoutingVst3 — the standalone
EAPO XT Subwoofer RoutingVST3 plug-in, linked to the shared core. -
Installer — the small Win32
EqualizerAPO-XT-Setup.exefront door that detects architecture/SIMD support, verifies the chosen release asset, and launches its Velopack installer. -
EqualizerAPOAsio — the ASIO wrapper DLL (
EqualizerAPOAsio.dll) a DAW loads: toward the application an ASIO driver, behind it either a hardware ASIO driver or Windows endpoints opened in WASAPI exclusive mode (asio/WasapiExclusiveTarget), and a processor seam over which each buffer goes to the engine host. x64 builds also produce the 32-bit wrapper underx86\; ARM64 does not. -
EqualizerAPOHost —
EqualizerAPOHost.exe, the out-of-process engine host the wrapper talks to over a shared-memory ring (asio/StreamRing). One per session, started on demand, gone a minute after the last stream. -
Tests — the suites
HybridConvTests,EditorLogicTests,EngineOrchestrationTests,AudioRegressionTestsandAsioTests, theTestVst2PluginandTestVst3Pluginhost fixtures, theFakeAsioDriverandAsioSupportfixtures, and four probes:ApoHostProbe(hostsEqualizerAPO.dllfor one endpoint without the audio engine),CaptureProbe(plays a tone into one endpoint and measures it on another over WASAPI, including small engine periods),AsioProbe(opens a target through the wrapper the way a DAW does) andVstPreviewProbe. -
Setup — the sample configuration files (
config/) and the documentation.urlshortcuts that the CI packaging step bundles into the Velopack output.
CI lives in .github/workflows/build.yml: it builds the x64 sse2, avx, avx2, avx512 and avx10_1 variants plus ARM64 neon, then calls vpk pack to produce the per-channel installers (see the installation section and SIMD build matrix). Pull requests build AVX2 only. A push to main builds all six and creates a release only when the automatic version step produces a new version; docs-, CI- and refactor-only pushes skip the build matrix. Manual workflow runs build all six. Beside the build the workflow runs cppcheck (a blocking gate at a zero baseline), memcheck (the runtime suites rebuilt with AddressSanitizer), pester (the build scripts' own tests), cross-variant-compare, and capture-gate: on a hosted runner it installs the VB-CABLE driver (pinned by SHA-256), stages the built product through its own install hook, registers the APO on the cable through the Device Selector and measures that a recording app hears the configured preamp in the default and communications modes, measures the playback side at the engine's smallest period with a convolution in the configuration, and opens the endpoint's ASIO entry through COM the way a DAW does. The packaging step fails if a precompiled header or a generated source gets into the installer (every installer between v2.38.0 and v2.48.0 was about 250 MB for that reason), and if windeployqt emits a plugin folder its manifest does not know. publish-wiki.yml separately publishes changes under Wiki/github-wiki/ to this wiki. The original NSIS installer has been removed.
An APO (Audio Processing Object) is a user-space module loaded by the Windows Audio Service to process sample data before it reaches the device driver. APOs are normally shipped with the audio driver and signed so they cannot bypass audio DRM. There are two kinds: GFX (global effect, applied after the streams are mixed) and LFX (local effect, applied before mixing). An output device can have one GFX and one LFX APO; an input device can have one LFX APO. An APO is a COM object identified by a GUID under which it is registered. Microsoft's documents Custom Audio Effects and Reusing System Effects describe the model and provide samples.
Adding a custom APO means clearing two obstacles: the audio engine must be allowed to load unsigned APOs, and the device's existing APO must be chained to the custom one so it keeps working. The registry changes that make the Windows Audio Service load the DLL are:
- Under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Audio, set the DWORDDisableProtectedAudioDGto1. This turns off the APO signature check so unsigned APOs load. Applications that need a protected audio path may then change behaviour or refuse to output audio. - Register the APO COM class under
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\<GUID>. Set a class name as the key's default value, create theInprocServer32subkey with the DLL path as its default value, and setThreadingModelappropriately. - Create
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioEngine\AudioProcessingObjects\<GUID>. This is normally done by the DDK functionRegisterAPO(declared inaudioenginebaseapo.h);UnregisterAPOremoves it. - Register the APO for a device under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render\<endpoint GUID>\FxProperties(theRenderpath is output devices;Captureis input devices). InFxProperties, the value{d04e05a6-594b-4fb6-a80d-01af5eed7d1d},1holds an LFX APO's GUID and...,2a GFX APO's. These usually already point at the driver's APOs, so registering the custom APO means replacing one value and saving the original elsewhere (Equalizer APO stores it underHKEY_LOCAL_MACHINE\SOFTWARE\EqualizerAPO\Child APOs) — both to restore it on uninstall and to load and call the original APO so it keeps working. Since Windows 8.1 the values ending in,5(LFX) and,6(GFX) are also used, and when an APO is registered through them, one registered through the old,1/,2values is ignored. Also since 8.1 the values{d3993a3f-99c2-4402-b5ec-a92a0367664b},5and,6specify processing modes (type MULTI_SZ); a mode the list omits is a mode the engine never instantiates the APO for. XT lists a slot it populates for every mode of its direction ({C18E2F7E-933D-4965-B7D1-1EEF228D2AF3}Default,{98951333-B9CD-48B1-A0A3-FF40682D73F7}Communications and{FC1CFC9B-B9D6-4CFA-B5E0-4BB2166878B2}Speech for recording; Default, Media, Movie, Communications and Notification for playback) and leaves a list the driver wrote alone. Raw is never listed: raw streams bypass stream effects by design. A recording endpoint carries the pre-mix APO alone; a driver that publishes noFxPropertiesat all is registered through the legacy,1/,2values, because the engine feeds such a driver through the legacy slots only.
In XT this registration and the matching cleanup are performed by services/install/ApoRegistration, driven from the Velopack hooks the Editor handles. The APO accepts a device-test pipe name of letters, digits, _ and - only (up to 128 characters) and otherwise behaves as if no test were running; the registry port's read methods are declared as sources in an in-repository CodeQL model pack so the weekly scan keeps seeing registry-derived paths.
An ASIO entry is registered differently: HKEY_LOCAL_MACHINE\SOFTWARE\ASIO\<entry name> names the wrapper's CLSID, the class tree under SOFTWARE\Classes\CLSID points at EqualizerAPOAsio.dll, and the record under SOFTWARE\EqualizerAPO\ASIO\<wrapper CLSID> tells the DLL what to load: a hardware driver's CLSID, or (TargetKind 1) the playback and recording endpoint GUIDs to open in WASAPI exclusive mode. The wrapper CLSID derives from the target's CLSID or the endpoint GUID, so the same target always maps to the same entry.
- Documentation — using EqualizerAPO-XT.
- Configuration reference — the configuration command set.
- 이 문서의 한국어판 (Korean)
EqualizerAPO-XT
English
한국어