AAX¶
Topics in this guide
Generic AAX adapter (0.1.0)¶
Status: prototype. One adapter, crates/ravet-plugin/aax, turns any product
exported with ravet_plugin::export_plugin! into an .aaxplugin without
product-specific C++. It is written once against the plug-in table
(RavetPlugin.h) and reads
counts, IDs and layouts at run time, as decision 0281
requires (RAVET's native profile, not the stock aax_wrapper). The AAX SDK is
external and never vendored; the VST3 SDK is not needed.
# macOS (arm64 or x86_64, the host architecture)
python3 scripts/bundle-aax.py --plugin delay --aax-sdk /path/to/AAX_SDK
python3 scripts/bundle-aax.py --package my-product-crate --name "My Product" --aax-sdk /path/to/AAX_SDK
python3 scripts/bundle-aax.py --plugin mock --aax-sdk /path/to/AAX_SDK # adapter's own mock table
The script builds the product crate as a static library
(cargo rustc -p <crate> --lib --release --crate-type staticlib, passing on
rustc's native-static-libs), configures the adapter with CMake, builds it into
target/aax-plugin/<product>/<Name>.aaxplugin and runs the checks below. On
Windows the script runs the same way (py scripts\bundle-aax.py --plugin delay
--aax-sdk C:\path\to\AAX_SDK). The steps by hand on Windows, with Visual
Studio 2022 for x64 and CMake 3.22 or later, from a Developer Command Prompt:
cargo rustc -p ravet-delay-plugin --lib --release --locked --crate-type staticlib -- --print native-static-libs
cmake -S crates\ravet-plugin\aax -B target\aax-plugin\delay -A x64 ^
-DRAVET_AAX_SDK=C:\path\to\AAX_SDK -DRAVET_AAX_NAME="RAVET Delay" ^
-DRAVET_PLUGIN_LIBRARY=%CD%\target\release\ravet_delay_plugin.lib ^
-DRAVET_PLUGIN_LINK_LIBRARIES="<the libraries from the native-static-libs note>"
cmake --build target\aax-plugin\delay --config Release
ctest --test-dir target\aax-plugin\delay -C Release --output-on-failure
On macOS use -DCMAKE_BUILD_TYPE=Release instead of -A x64, and
target/release/libravet_delay_plugin.a. Windows builds use the DLL C runtime
(/MD), as Rust static libraries do by default; -DRAVET_AAX_STATIC_CRT=ON
selects /MT when the product is built with -C target-feature=+crt-static.
The Windows bundle is <Name>.aaxplugin/Contents/x64/<Name>.aaxplugin.
Without RAVET_PLUGIN_LIBRARY the adapter links its C++ mock table
(mock/RavetPluginMock.cpp), which stands in for any product.
The Windows bundle can also be cross-compiled from Linux (see Windows cross-builds):
python3 scripts/bundle-aax.py --plugin delay --aax-sdk /path/to/AAX_SDK --target windows
# Bundle: target/aax-plugin/windows-delay/RAVET Delay.aaxplugin
# Check: target/aax-plugin/windows-delay/ravet_aax_check.exe
It uses cargo xwin rustc for the static library, links the C runtime
statically (RAVET_AAX_STATIC_CRT=ON) and runs the CTest checks under Wine when
it is installed. Copy the bundle and ravet_aax_check.exe to Windows and run
ravet_aax_check.exe "RAVET Delay.aaxplugin" there; --plugin mock also builds
ravet_aax_adapter_tests.exe. The native Windows path above has not been run;
the cross-build has.
What comes from the table¶
| AAX | Table |
|---|---|
| Package and effect name, manufacturer name, package version | product->name, vendor, version |
ManufacturerID, ProductID |
aax_manufacturer, aax_product |
One effect per layout, PlugInID_Native, stems |
layouts[i] (aax_type_id, inputs/outputs); effect ID <plugin_id>.aax.<in>x<out> |
| Category | effect → Effect, instrument → SWGenerators, MIDI effect → MIDIEffect |
| Parameters | every non-hidden parameter: ID p + host ID in uppercase hexadecimal, name, default, range, steps (discrete when stepped), automatable unless read-only; taper via normalize/denormalize, text via value_to_text/text_to_value |
| Master bypass | the bypass_index parameter, registered under the SDK's cDefaultMasterBypassID ("MasterBypassID"); CanBypass is set only when there is one |
| State | one chunk, RvSt, carrying the save_state envelope byte for byte; SetChunk calls load_state; chunk calls are requested on the main thread |
| Latency | timing() after prepare → SetSignalLatency; later changes follow latency_changed |
| MIDI | a local MIDI input node when note_input, a local MIDI output node when note_output |
| Editor | an AAX_CEffectGUI when the product has an editor size |
Behaviour:
- Prepare.
EffectInitreads the host's sample rate and stems, picks the matching layout and callspreparewith 1,024 frames (the AAX native maximum) and 1,024 input/output events. A stem pair the product did not declare is refused.Uninitializedeactivates; the instance is destroyed with the model. - Host parameter changes.
UpdateParameterNormalizedValuedenormalizes and callsset_value, so state saved afterwards includes the change; the processor receives it at the start of the next block (one value per block). - Editor edits. On every data-model and GUI timer tick the adapter drains
take_edits: begin →TouchParameter, value →SetParameterNormalizedValue, end →ReleaseParameter. Edits to hidden parameters are not reported. - Read-only parameters follow the table's cache on the timer.
- Processing. The algorithm callback reads the host transport through
RavetAaxTransport, converts MIDI input withRavetAaxShortMidiInput(raw short messages; when the strict preflight rejects a stream, for example one containing SysEx, the complete short messages are kept and the rest skipped), callsprocessand posts generated short MIDI messages to the output node. Frame counts above 1,024 and failed blocks are silenced. Denormal flushing and the product's automation and bypass policies stay inside the table. - Latency.
latency_changedis read on the main thread; the audio thread then callstiming()between blocks (the table forbids it duringprocess), and the next timer tick reports the value withSetSignalLatency. - Editor.
CreateViewContainercallseditor_openwithRAVET_PLUGIN_VIEW_COCOAfor anNSVieworRAVET_PLUGIN_VIEW_WIN32for anHWND; the GUI timer callseditor_idle; removing the view callseditor_close. Text fields in the editor ask for keyboard focus through the web view, not the AAX view container, which has no such call.
Signing¶
Builds are unsigned. Avid requires shipping AAX plug-ins to be wrapped and
signed with PACE tools under the vendor's own Avid agreement and NDA; that step
belongs to the plug-in vendor and is outside RAVET. Unsigned builds load only in
Pro Tools Developer (Avid's development build). On macOS arm64 the linker's ad
hoc signature is the only signature. The bundle script writes a notice saying so
into Contents/Resources/notices, and installs nothing into host folders.
Checks¶
ctest in the build directory runs:
ravet_aax_check <bundle> [--editor], which loads any built bundle, checks the ACF exports and SDK version, registers its descriptors with a synthetic collection and, for every effect, runsInitializewith a synthetic controller and transport host, reads every parameter and its text round trip, renders blocks (including MIDI through any MIDI nodes and an empty block), saves, compares and reloads the state chunk, rejects a corrupted one and uninitializes. On macOS--editoralso opens each editor through itsAAX_IEffectGUIin a real off-screenNSView.ravet_aax_adapter_tests(mock table only), which checks descriptors, field layout, parameter registration and text, host changes reaching the cache, bypass, oversized blocks, MIDI in/out and the SysEx fallback, the latency handshake, editor gestures, state bytes and recall, read-only reflection,editor_open/editor_idle/editor_close, stereo and layout refusal.
Neither is Avid's validator (DSH/aaxval, distributed to AAX developers under
NDA) and neither is a Pro Tools run. A vendor-signed delay build has been run in
Pro Tools 26.4 on macOS arm64; see work status. That run
found that Pro Tools keeps keyboard input for its own shortcuts, so text fields
in the web editor (such as the delay's typed values) could not be typed into;
mouse editing worked. AAX SDK 2.8 has no keyboard-focus call, so the macOS web
view now takes key status itself while a text field has focus and returns it
afterwards (see keyboard focus). This is
checked with AppKit fixtures. In the owner's Pro Tools 26.4 check, characters
then reached the field, but Pro Tools still took Return, Enter and Escape, and
clicking away did not commit. The web view therefore now forwards every plain
key to the focused field while editing, whatever window is key, and ends
editing (committing on blur) when the editor window stops being key. Re-checked
in Pro Tools 26.4: typing works, clicking away commits the typed value, and
Command-S and Space still reach Pro Tools; Return and Escape do not reach the
plug-in at all (Pro Tools returns to zero and closes the plug-in window), because
Pro Tools handles them in its own application event handling before any
plug-in code sees them, and AAX has no keyboard-focus call. In Pro Tools,
typed values apply when you click away; Return and Escape are Pro Tools
shortcuts. Editor pages should therefore commit on blur rather than rely on
Return.
Where the validator is installed, run its
standard test suite on the built bundle as its own documentation describes, and
record the validator version and results with the build.
Limits¶
- Main stems are mapped for 0, 1 and 2 channels. Layouts with other channel counts are skipped, because the table carries no channel roles.
- Auxiliary buses: the first
sidechain becomes the single AAX side-chain input (mono in Pro Tools; the key
feeds every channel of the bus); further sidechains are silent. On products
with a sidechain, layouts without a main input (instruments) declare a main
input stem matching their output stem, as hosts need it to address the key;
its samples are ignored and the product still gets no main input. Type IDs
and effect IDs (
<plugin_id>.aax.<in>x<out>, from the RAVET layout) do not change, but adding a sidechain to a shipped instrument changes the input stem behind an existing type ID; whether Pro Tools reloads such sessions is untested. An instance picks its layout by effect ID, falling back to the first layout with matching stems. - Mono and stereo output-only buses become aux output stems named
"
Mono" or " Stereo" (unless the name already says mono/stereo; at most 64 bytes). They disable multi-mono. Wider output buses and buses with both inputs and outputs have no AAX route (silent inputs, discarded outputs). Accepted stems are recorded per effect when the host describes the plug-in; stems the host refused, and every stem of an instance whose effect was never described, are discarded. - Automation is applied once per block; AAX packets and sample-accurate automation are not used.
get_valueandset_valuemay be called from any thread; they touch only lock-free shared parameter state.- Generated MIDI is posted as short messages only; SysEx is neither delivered nor generated.
- No tail is reported: the AAX SDK 2.8 native interface has no tail property.
- Editors keep the product's size (no host-driven resizing). On Windows the
editor opens in the host's
HWND(WebView2; the WebView2 Runtime must be installed).ravet_aax_check <bundle> --editoropens each effect's editor through itsAAX_IEffectGUIin a real parent (anNSViewon macOS, a top-levelHWNDon Windows) with a synthetic host;RAVET_AAX_EDITOR_HOLD=<seconds>keeps it open for a screenshot. This is not Pro Tools: Windows AAX remains provisional. - No AudioSuite, meters or page tables.
- The AAX category is coarse: the table has no finer AAX category (EQ, Delay…).
- Evidence is local: macOS arm64 builds and the checks above, and a Windows x64 cross-build whose bundle check and adapter tests pass natively on Windows 11 (see work status). Avid's validator is not available locally. The unsigned build checks are separate from the owner-signed macOS Delay run in Pro Tools 26.4. Windows AAX remains provisional without a Pro Tools for Windows run; see the support matrix.
The rest of this page describes the 0.0.1 references.
0.0.1 references¶
The default local AAX reference uses an authored public-SDK data model and
algorithm around the public native Gain processor. It checks native preparation
and complete current state before publishing a processing-ready mono/stereo f32
owner. An explicit stock profile preserves the external Steinberg wrapper's
native-schema/control regression. Both keep SDK implementation outside this
repository. The default Gain reference remains main-only host-f32 with no MIDI
or AudioSuite. Explicit internal precision selects native64
DSP behind the same host buffers; an optional native editor
uses the originating selected-precision cache. Reusable auxiliary, timing and
generated-output mechanisms are documented separately. Explicit
prepared host meters append bounded telemetry-derived taps;
--plugin gain-meters supplies separate canonical Gain32/64 reference identities.
The explicit --plugin performance native profile supplies a distinct no-input
short-note instrument; see Performance AAX.
CARGO_BUILD_JOBS=2 python3 scripts/bundle-aax.py \
--vst3-sdk /path/to/vst3sdk --aax-sdk /path/to/AAX
# Separate regression profile; its stock initial mono lifecycle remains limited.
CARGO_BUILD_JOBS=2 python3 scripts/bundle-aax.py --profile stock \
--vst3-sdk /path/to/vst3sdk --aax-sdk /path/to/AAX
The script builds with two jobs, runs native/controller/format contracts, adds
local development notices, ad hoc signs and loads the actual macOS module to
check AAX exports and SDK version. Performance uses
target/aax/performance/release and distinct public reference IDs. The default
Gain bundle remains under target/aax/release; stock uses
target/aax/stock/release. Those Gain alternatives contain the same public IDs,
so they are local serialized fixtures, not concurrent
production installs. No host directory is changed. The exercised external SDK
reports 0x20801345980; only macOS arm64 is built/loaded.
Native IDs RvG1/RvG2, manufacturer Ravt, product RvGn, and effect IDs
org.ravet.gain.mono/org.ravet.gain.stereo remain the public reference identity.
Release requires collision review. The default prototype now uses complete native
chunk RvS1, including bypass, instead of the stock wrapper's combined VST3/AAX
chunk. This is a deliberate local prototype change. No released-session migration
or production state compatibility is established. No SDK precision/table export
implies a registered host format; this profile selects exact 32-bit companions.
Checked native model and processing¶
The optional C++17 processor owner and SDK model consume matching native processor/audio-state/cached-schema/complete-codec companions. The concrete Gain model and descriptor registration use public AAX APIs. Actual SDK Initialize queries effect identity, finite positive sample rate and exact mono/stereo input/output stems. Original effect/rate/stem query errors return unchanged; missing/invalid configuration never invents a rate or ready state. The separate nativeStatus() observation retains stopped lifecycle codes; AAX uses a different error domain. lastProcessStatus() is a lock-free atomic observation of the latest AUDIO result, including original provider errors despite the SDK's void algorithm callback. Neither observation is an ordered history or deadline receipt.
The explicit native references capture initialized public-SDK transport before pending state/queue/DSP transfer. Exact raw i64 ticks and rounded f64 PPQ, independent getter statuses and configured-loop availability remain distinct; DETAILS does not supply per-flag availability. The stock profile keeps its separate wrapper transport behavior.
The reusable prepared audio buses helper accepts explicit
main/aux layouts through a separate effect multibus context. Existing default
Gain/Performance contexts also protect callback/frame/owner metadata. The native
Gain validation command builds ravet-bus-routing-native and requires its archive
for actual initialized registered multibus contracts; Gain remains a main-only
plug-in. Direct native Gain CMake callers also supply RAVET_BUS_ROUTING_LIBRARY.
Stock Gain and Performance packaging keep their existing archive requirements.
CONTROL serializes all SDK callbacks, codec/staging and stopped lifecycle. One AUDIO consumer exclusively owns DSP. Host callbacks, pointer-array/context storage, frame-count and Owner-pointer fields must be live, correctly aligned, of declared capacity and disjoint from sample buffers/owner storage except permitted sample input/output overlap. SDK/native libraries, identity strings and borrowed objects outlive all users. Hosts stop and join AUDIO before reset/reprepare/uninitialize or destruction. A mutation guard rejects SDK callback reentry into retirement or other mutations while host notifications borrow SDK objects. It does not make arbitrary concurrent CONTROL callers safe.
The native profile maps one main planar f32 input/output bus of one or two matching channels and at most1024 frames. Fixed preflight checks whole frame, metadata/sample ranges, alignment/overflow, Owner-memory overlap and late output partial overlap before queued intent/state/DSP changes. Output/input sample alias is permitted; output channels cannot overlap. Known shape rejection preserves accepted queue and native history, silences supported writable prefixes and preserves backing tails. Malformed/missing outer SDK context fields do not create a safe writable output contract. An invoked provider error fail-closes readiness and retains its exact AUDIO result; arbitrary provider history rollback is absent. Fresh stopped native preparation is required for recovery. Tables and foreign pointers remain trusted; these checks are not binary isolation or arbitrary memory-validity proofs.
ResetFieldData checks field0/exact pointer storage/alignment and publishes only an already-ready owner. It does not reset DSP implicitly. Explicit resetStopped and reprepareStopped check native returns; successful operations restore the latest accepted complete CONTROL intent and coalesce/discard its queued commands. Invalid known configuration preserves an earlier profile before backend mutation; a failed backend setup leaves callbacks fail-closed. Failed Initialize requires Uninitialize before retry; repeated live Initialize rejects before proxy replacement. Retirement invalidates readiness before native/SDK borrower cleanup.
Controls and complete global state¶
The owner has a fixed single-producer/single-consumer ring with power-of-two slots from2..1024 (default32; capacity slots-1). Complete scalar/capacity preflight reserves before SDK acknowledgement mutation. SDK SetParameterNormalizedValue is a host request; UpdateParameterNormalizedValue acknowledges canonical native intent. Prepared scalar staging uses the immutable native cache; complete codecs are CONTROL construction/save/restore work. Positive-frame AUDIO blocks consume accepted block-start parameter events. Zero-frame blocks with pending commands reject before state/DSP transfer. Queue overflow rejects without overwrite. Readiness-only failure invalidation does not perform DSP lifecycle concurrently with AUDIO.
Complete restore validates and decodes an isolated native codec before SDK objects or queue intent change. The newest queued complete restore supersedes older global commands; following parameter commands retain source order. CONTROL save includes acknowledged queued global values before render, excluding voices/history. Complete fixed native state is persisted with exact outer manufacturer/product/native/chunk identity, data size and version1. GetChunk accepts matching caller-populated identity and capacity, supplies version/name/canonical data; restore and comparison require the version too. All chunk storage must cover the declared header and data. Unknown identity/version/shape or malformed payload rejects before SDK/native intent mutation. SDK objects' void value updates can issue arbitrary foreign notifications; completed foreign sideeffects and partial exceptional SDK updates have no rollback. SDK registration/automation objects retain their public void behavior; delegate statuses erased by those wrappers cannot be recovered as new checked successes. An exceptional/failed SDK mutation cancels the reservation and fail-closes until stopped retirement/fresh initialization restores accepted native intent.
The default Gain model requires writable global controls, including a unique native bypass. Performance instead has Level-only control and no invented bypass. Separate reusable adapters cover auxiliary routing, acknowledged latency, generated short MIDI, native editor control and internal precision. DSP-generated/read-only reflection, a factory program catalogue, a generic host tail declaration and AudioSuite remain distinct scopes. Offline notifications only record mode metadata; this native ABI has no processing-mode field and does not reprepare DSP or claim mode-specific behavior.
The optional external-SDK C++17 native parameter helper
uses a shared immutable native cache and stages actual SDK objects. Full native
IDs map to exact p plus uppercase hexadecimal without leading zeroes; no prefix,
suffix, lowercase or Byp aliases are accepted. Scalar double intent must be
finite and in0..1, explicitly narrows to f32, and returns widened native canonical
f32 normalized values after physical range/step mapping. Read-only controls reject
updates and suppress SDK automation. Continuous SDK objects retain128 steps;
discrete objects declare intervals+1. Physical shortest f32 text and Boolean
On/Off parse completely, with bounded ASCII input and no implicit unit suffix.
Metadata names/units retain complete bounded UTF8 bytes. Caller SDK visual display
is separate. Construction/text/SDK registration and retirement are serialized
CONTROL operations; prepared scalar preflight makes no C++ heap allocation in the
exercised100000-cycle valid/late-fault test. Retain table/library and all borrowed
SDK objects through use. Default schema precision is32; explicit64 selects metadata
for its originating native table. The schema helper alone does not process audio;
explicit native64 processing uses the separately checked owner
and matching audio-state/codec tables behind host-f32 buffers.
SDK AddParameter may append its owning vector before a failing map allocation. The helper checks public indexed adoption and retires adopted objects only through public SDK removal; accepted prefixes clear on failure. Cloned display adapters retain shared immutable cache ownership until the final borrower retires. Known shape/ID faults precede insertion. Use an exclusively serialized empty manager and preserve the exact staged SDK definitions; foreign notification effects have no rollback. Foreign AAX_IString Set failures likewise have no atomic rollback promise. Decision0209 records these ownership and callback limits.
Stock regression profile and evidence limits¶
The explicit stock profile retains GainParameters and the registration forwarder. It replaces stock SDK objects with the complete native set and preserves exact IDs/physical text/read-only/Boolean roles. This consumer rejects the reserved Steinberg UINT32_MAX parameter ID; the reusable native helper represents it. Its factory substitution uses exact AddEffect identity, changes registration timing, forwards original statuses and retains unknown callbacks. The stock aggregate keeps its last-variant result and may mask an earlier refusal. Native descriptor registration instead stops on the first exact refusal; neither rolls back prior host calls.
The stock ordinary EffectInit/ResetFieldData path renders stereo but rejects/silences mono because setup precedes mono bus arrangement. Its actual binary fixture preserves that historical gap, then proves positive mono/stereo1024 rendering after public enter-offline/exit-offline notifications. W200's default native owner closes the public reference's ordinary initial mono processing gap without claiming the stock wrapper itself was repaired. Stock Uninitialize disables callbacks before SDK object retirement, and fresh EffectInit can readopt parameters; this is a distinct parameter lifetime scope.
Actual native module fixtures capture registered descriptors/factories/algorithms, run real SDK Initialize proxies, render ordinary first mono/stereo1024 blocks, and exercise requested-versus-acknowledged controls, complete queue ordering, native chunks, malformed state/IDs, silence/tails, retirement and fresh initialization. A separately initialized matching synthetic owner through the actual registered void algorithm proves original backend poison/status observation; it is not a fault injected into the normal Gain provider. Normal/fast-math helper/model tests cover exact host faults, matching native callback faults, independent smoothing/history oracle and 10000 C++ allocation-counted prepared valid/late-fault/control cycles. Existing Rust native contracts separately establish their own allocation behavior. No arbitrary provider/caller/host allocation or deadline guarantee follows.
The earlier normal public native and preserved stock bundle commands passed18/18 and14/14CMake contracts, respectively, plus actual package ACF/export/SDK-version and registered algorithm fixtures. Later initialized transport acceptance passed 22/22nativeGain,4/4Performance and14/14stock with8Python tests. Prepared multibus source adoption adds four nativeGain contracts; final26/26public nativeGain plus actual module and Performance/stock regression receipts follow separately in work status. Decision0213 records the owned native boundary; Decision0209 preserves the stock control adoption. See VST3 and decision0023.
Loading these local fixtures does not establish Pro Tools host acceptance, production PACE signing, broad AAX/platform support or a real-time deadline. Pro Tools developer host access or authorized production signing remains separate. Installed wraptool is insufficient. No credentials/configuration are read, PACE production signing invoked, artifacts published or host files installed. Avid SDK terms and the owner's agreement require review before release; development notices are not a redistribution licence grant.
Generated short-MIDI output¶
Explicit output-enabled native instrument models use fixed-capacity staging and registered output nodes; default references retain output capacity zero. See generated MIDI output for the representable subset, complete preflight, consumed readiness, exact partial SDK delivery and actual initialized Rust NoteRouting consumer. These receipts do not establish Pro Tools/PACE or a packaged output-enabled plug-in.
Generic instrument evidence — 5 November 2026¶
The Evidence Synth passes the actual unsigned AAX bundle checker on macOS arm64: 0x2 layout, two local MIDI nodes, CC-scaled exact click audio, note output bytes/offsets, finite audio tail and a host latency-change notification. SDK 2.8 exposes no native tail report here. This is neither an Avid validator run nor a Pro Tools instrument run. See the receipt.