AUDIO
Source snapshot · 11 November 2026

VST3 exports

Shared native f64 gain ABI

The public RavetGain.h also declares a separate RavetGain64 handle with ravet_gain64_create/destroy/prepare/reset/restore/process. Use matching lifecycle functions for each handle precision. Native sample pointers are double; parameter values/result gain remain float and bypass remains u32. The shared 32-byte state codec and legacy decode are unchanged. The opaque handles cannot be cast between precisions. Preparation bounds mono/stereo, 1..65536 frames and 1024 events; f64 copied-input/output scratch allocates at most 2 MiB (1 MiB for f32). Native process/reset/restore use prepared storage through the reusable native processing adapter.

Both ABI precisions expand one shared validation/aliasing/fault implementation. All inputs copy before output writes, including cross-channel aliases; output ranges must remain disjoint and result pointers must not overlap sample buffers. Live/aligned pointer ranges are caller obligations. Zero frames permit null sample pointers. Rejections silence supplied valid output ranges and preserve requested results; unwind containment does not promise exceptional real-time behavior.

Build/run explicit C++ ABI acceptance without a format SDK:

CARGO_BUILD_JOBS=2 cargo build -p ravet-gain-native --release --locked
cmake -S tools/native-validation -B target/native-contracts -DRAVET_GAIN_LIBRARY="$PWD/target/release/libravet_gain_native.a"
cmake --build target/native-contracts --parallel 2
ctest --test-dir target/native-contracts --output-on-failure

Local macOS arm64 C++ acceptance passes 6006 normal/zero-frame blocks across six mono/stereo 44.1/48/96 kHz cycles, retained sub-f32 precision, cross-channel aliasing, backing tails and rejected-output silence. Rust ABI tests additionally check extreme/subnormal samples, bypass/state recall, invalid preparation and 10,000 zero-heap prepared f64 workloads. This is ABI evidence. VST3 mapping is separately exercised below; AU/AAX/LV2 sample-size mapping needs its own adapter/host acceptance. See decision 0066.