Module state
Expand description
The versioned state envelope every export format stores.
One byte layout is used unchanged in VST3 component state, the AU class-info dictionary, AAX chunks, CLAP state and LV2 state properties. All integers are little-endian:
| Bytes | Field |
|---|---|
| 8 | Magic RAVETSTA |
| 2 | Envelope version, currently 1 |
| 2 | Flags, currently 0 |
| 8 | Product state tag (StateFormat::tag) |
| 4 | Product state version (StateFormat::version) |
| 4 | Parameter count n, at most 1,024 |
| 8 × n | Parameter ID (u32) and physical value (f32) |
| 4 | Extra data length m, at most 16 MiB |
| m | Extra data owned by the product |
Read-only parameters are not saved. Every function here allocates and must run on a control thread, never in an audio callback.
Structs§
- NoHooks
- Hooks that accept earlier versions unchanged and reject foreign data.
- Restored
- State matched to the current product, ready to publish as a whole.
- Saved
State - The contents of an envelope, before matching against the current product.
Enums§
- Source
- Where restored state came from.
- State
Error - Reasons state cannot be written or restored. Nothing is partially applied.
Constants§
- ENVELOPE_
VERSION - Envelope layout version written by this release.
- MAGIC
- Magic bytes at the start of every RAVET state envelope.
- MAXIMUM_
EXTRA_ BYTES - Maximum product extra data.
- MAXIMUM_
SAVED_ PARAMETERS - Maximum saved parameters.
Traits§
- State
Hooks - Product hooks for older and foreign state. Both run on a control thread.