feat(inserts): add bulk enable, bypass and clear actions (phase 95)

This commit is contained in:
Johannes Findeisen 2026-11-06 02:07:19 +01:00
commit 924821738d
7 changed files with 48 additions and 6 deletions

View file

@ -25,5 +25,10 @@ int main(void)
xtc_plan_destroy(plan);xtc_graph_destroy(g);
}
out=c;assert(!xtc_track_chain_template_name(3) && xtc_track_chain_template(3,120000,&c)==XTC_ERR_INVALID_ARGUMENT && !memcmp(&out,&c,sizeof(c)));
assert(xtc_track_chain_template(1,120000,&c)==XTC_OK);
assert(xtc_track_chain_bulk(&c,XTC_CHAIN_BYPASS_ALL,&c)==XTC_OK && !c.slots[0].enabled && !c.slots[1].enabled && c.output_gain==.8f);
assert(xtc_track_chain_bulk(&c,XTC_CHAIN_ENABLE_ALL,&c)==XTC_OK && c.slots[0].enabled && c.slots[1].enabled);
out=c;assert(xtc_track_chain_bulk(&c,(xtc_chain_action)99,&c)==XTC_ERR_INVALID_ARGUMENT && !memcmp(&c,&out,sizeof(c)));
assert(xtc_track_chain_bulk(&c,XTC_CHAIN_CLEAR,&c)==XTC_OK && c.count==0 && c.output_gain==.8f && !c.slots[0].plugin.path[0]);
puts("Creative editing core checks passed.");return 0;
}