Layout and ownership¶
RavetAaxAudio.hpp accepts one main plus at most eight auxiliary buses and at most
64 total channels in either direction, with 1–1024 prepared frames. This is the
helper's total-channel limit; the underlying native ABI permits up to 64 channels
per bus. Each bus preserves native source order, including input-only and
output-only buses. Output pointer slices follow source order, skipping buses with
no outputs. Input slices are explicit static indices or one dynamic sidechain
slice selected by the SDK field. Main input starts at zero. The sidechain index is
an index into the declared input pointer-array capacity, not its length. Negative,
missing, overlapping or out-of-capacity slices reject; disconnected/inactive
sidechain behavior is not inferred.
All tables, callback libraries, processors, SDK proxy objects and foreign ranges remain live through every borrower. CONTROL serializes lifecycle, SDK parameter intent and complete state work. The host stops and joins AUDIO before configuring, preparing, resetting, uninitializing or copying complete diagnostics. AUDIO owns one prepared processor and the borrowed sample ranges exclusively during a call. The mapper owns fixed pointer metadata, and copying a mapped view retargets its native bus arrays to the destination's own storage.
Raw AAX pointer arrays expose no byte capacity. Callers supply live, aligned arrays of the exact prepared input/output capacities and live sample prefixes for the supported frames. Whole metadata, sample extents, address overflow and output alias/partial overlap checks precede view publication or sample access. Inputs may alias outputs across buses; the authoritative native adapter copies all inputs before output writes. Outputs cannot overlap each other or mapper/view/owner, input/output pointer metadata, MIDI metadata or supplied callback protected ranges. Rejected mapping preserves the prior mapped view's bytes. Supported silence is a separate operation over safe declared output prefixes, clamped to prepared frames; it protects metadata and storage beyond the union of those prefixes. For two partially overlapping output bindings, a location inside either supported prefix may be cleared even if it is beyond the other binding's prefix.
A zero-frame call may omit both audio pointer arrays. No sample pointer or dynamic sidechain selector is consumed in that case. Non-omitted zero-frame calls retain metadata and index checks without reading sample pointers. Queued controls or notes still cannot be applied at zero frames under the existing owner contract.