AUDIO
Source snapshot · 11 November 2026

AAX

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.