/* A CLAP effect for LYNX's CLAP extension and timing tests (round 190jg, BUILD-LIST 18): * Windows: zig cc -shared -O2 -target x86_64-windows-gnu -Ithird_party/clap/include tools/testplugin/lynx_test_ext.c \ * -o "LYNX Test Ext.clap" * Linux / macOS: cc -shared -fPIC -O2 -Ithird_party/clap/include tools/testplugin/lynx_test_ext.c -lpthread -o "LYNX Test Ext.clap" * then: LYNX --clapext "LYNX Test Ext.clap" report.txt; LYNX --automationtimingtest "LYNX Test Ext.clap" report.txt * Sound: it ignores its input and outputs its "Level" parameter (id 7, 0..1) as a constant (DC) on both channels, * taking each CLAP_EVENT_PARAM_VALUE at its own sample (the event's time): a step of the automation shows in the output * at the sample the host put it. * It also uses / offers, and writes down in the file named by the environment variable LYNX_TEST_EXT_LOG: * thread-pool on its 10th process call it asks the host to run 8 tasks ("pool ok=1 tasks=8 threads=") * tail 4800 samples; voice-info: 3 voices of 16, overlapping notes * render the mode the host sets ("render offline" / "render realtime") * state-context a state saved for a preset / a duplicate / the project ("save context=", "load context=") * remote-controls one page "Test / Main": Level, Width, then empty knobs * preset-discovery + preset-load: three presets inside the plugin ("Low" 0.25, "Mid" 0.5, "High" 0.75) * and the parameter events it received ("P