Skip to main content

MAX_PRESET_BYTES

Constant MAX_PRESET_BYTES 

Source
pub const MAX_PRESET_BYTES: usize = _; // 67_108_864usize
Expand description

The largest file the reader accepts: 64 MiB.

Three wavetables of 257 keyframes at 10924 base64 characters each come to 8,422,404 bytes. An embedded sample adds more, with no size the source states. No saved file has been measured yet. The largest file the generated fixtures hold is routes.vital, 184,701 bytes. The cap leaves about seven times the wavetable maximum for a sample. A file of that size made of short numbers can take about 2.4 GB to parse; see VitalFormat.