Prepared VST3 native audio bus mapping¶
Optional C++17 RavetVst3Audio.hpp::NativeAudioBusMap validates/caches complete
native configuration on stopped control. Logical main/auxiliary buses retain
native order; zero-channel directions occupy no SDK bus, and input/output
indices compact independently. Fixed limits are1..9 nonempty buses,0..64 channels
per direction,576 total directional channels and1..65536 maximum frames. Failed
configuration retains the previous profile; consumer DSP preparation/resource
limits remain separate. Query input/output bus counts before SDK registration.
map validates the complete SDK audio shape at the selected native precision,
aligned sample arrays/pointers, address overflow and disjoint output prefixes
before publishing any native bus metadata. Inputs may alias outputs across any
bus. Bounded output-range sorting allocates nothing; no samples or silence flags
are changed by mapping. Caller owns live foreign metadata/arrays/samples and
keeps writable samples separate from metadata/events/private processor storage.
Flagged silence still requires valid pointers and never overrides sample data.
Zero-frame callbacks either omit both SDK directions entirely or supply exact
prepared directional counts/channel metadata; sample arrays are not read then.
Partial omitted directions reject. silenceSupportedOutputs clears only valid
aligned prefixes in exact prepared output shapes and supported frame
ranges at either known SDK precision (including mismatched processing precision),
skips null/misaligned/overflowing sample pointers, preserves tails and
sets bits for channels actually cleared. Unsupported metadata stays untouched;
foreign range ownership remains necessary even on rejection.
Gain now uses this profile before transport/queue staging/pending restore, and uses bounded fault cleanup instead of directly walking rejected pointers. It retains mono/stereo effect bus declarations; the helper's generic instrument and auxiliary mapping is offline fixture evidence, not an exported SDK instrument or speaker-layout/DAW claim. See decision0162.