Owned processor and SDK composition¶
NativeAaxProcessor::prepareLayoutStopped(layout, sampleRate) accepts the complete
explicit layout. Known shape/rate/staged-intent rejection precedes backend work and
retains previous readiness and configuration. Once authoritative native prepare or
complete intent application runs, an error retains its original native status and
fails closed; processor history is not rolled back. Successful stopped prepare
resets transient DSP history, restores acknowledged complete parameter intent and
clears the prior queued commands. layoutStopped() returns a copy. The existing
prepare(channels, rate, frames) still selects the original main-only profile.
processLayout(inputs, outputs, frames, sidechainFirst, ...) maps every prepared
bus before MIDI, combined event capacity, transport collection, complete-state
application, queue dequeue or DSP. The fixed prepared path has no C++ heap work.
This claim does not cover arbitrary SDK callbacks, Rust consumer hooks or an audio
deadline. AUDIO's exact latest status is separately retained atomically for CONTROL
observation. Backend failures fail closed under the existing lifecycle contract.
The default final Multibus=false argument of NativeAaxEffectParameters preserves
the existing effect/instrument Context types and layout. Explicit Multibus=true
selects effect fields owner0, frames1, inputs2, outputs3, sidechain index4. Combining
that Context with Instrument=true is deliberately rejected at compile time;
a MIDI instrument auxiliary context requires separately designed registration.
PreparedProfile pairs a native layout with exact requested main SDK stems.
The SDK model supports None/mono/stereo main stems only; it does not infer stem
formats from arbitrary channel counts. Initialize compares actual effect identity,
stems and positive sample rate before preparing the authoritative native table.
configureProfileStopped(profile) is checked and CONTROL guarded. It changes the
selected native layout only; it does not alter host descriptors or authorize new
metadata capacities. Descriptor registration and the caller's context must already
match the selected profile. Known profile or SDK stem rejection preserves the old
profile/readiness. Authoritative setup failure makes the owner unusable; the model
keeps the last successful profile for fresh Uninitialize/Initialize recovery.
The registered fixture declares sidechain field4 using AddSideChainIn, and its
output-only mono/stereo monitor using AddAuxOutputStem on output field3. Descriptor
calls follow native source order. Original SDK registration errors are forwarded
before callback/effect publication; prior foreign calls have no rollback. Every default effect, MIDI instrument and explicit multibus callback protects
frame, owner-pointer and outer/context metadata before consuming frame values;
wholeOwner frame alias rejects before dereference or MIDI getter. Explicit multibus
also protects sidechain metadata. All these ranges are protected against
sample writes. They must be valid live typed objects and point to the exact owner;
this contract cannot detect arbitrary invalid addresses or authenticate ownership.