feat(inserts): add bulk enable, bypass and clear actions (phase 95)
This commit is contained in:
parent
c65ac61a98
commit
924821738d
7 changed files with 48 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue