Repository navigation
v0.4.1 — fix: Work would not load at all
If you tried Work (the audio_fx build) and it never appeared, this is why.
schwung's module manager rejects any module.json over 8192 bytes outright:
/* module_manager.c, parse_module_json() */
if (len > 8192) { printf("mm: module.json too large: %s\n", json_path); return -1; }Work's manifest was 77,882 bytes, so the module never registered. It has been over the limit since v0.1.0 (11,321 B) and got far worse when a full static ui_hierarchy was baked in to fix the knob labels. Only Overwork ever worked, because its manifest has no hierarchy and sits at 437 B.
The static hierarchy was never needed: the host asks the DSP for ui_hierarchy first, into a 64 KB buffer, and only falls back to module.json if the DSP returns nothing. The engine already serves a correct, machine-following hierarchy at 3590 B — so labels are unaffected by this fix.
Manifests are now 381 / 494 / 437 bytes.
Guarded against recurrence: the test suite now asserts every manifest is under 8192 bytes and carries no embedded hierarchy.