feat: render bounded effect tails and reset internal history on transport changes
This commit is contained in:
parent
7a01e2d2f3
commit
836cdedc6b
22 changed files with 284 additions and 18 deletions
|
|
@ -380,5 +380,7 @@ xtc_result xtc_plan_process_sources(xtc_plan *p, const float *in, const float *a
|
|||
return xtc_plan_process_stereo(p, in, audio, NULL, midi, NULL, out, NULL, frames);
|
||||
}
|
||||
|
||||
void xtc_plan_reset_history(xtc_plan *p)
|
||||
{size_t i;if(p)for(i=0;i<p->node_count*2;++i)xtc_plugin_reset_history(p->plugins[i]);}
|
||||
xtc_result xtc_plan_position(xtc_plan *p, uint64_t position)
|
||||
{ if (!p || position > UINT64_MAX-65536U) return XTC_ERR_INVALID_ARGUMENT; p->position = position; return XTC_OK; }
|
||||
{ if (!p || position > UINT64_MAX-65536U) return XTC_ERR_INVALID_ARGUMENT; if(p->position!=position)xtc_plan_reset_history(p); p->position = position; return XTC_OK; }
|
||||
|
|
|
|||
|
|
@ -240,3 +240,10 @@ xtc_result xtc_realtime_process_sources(xtc_realtime *p, const float *in, const
|
|||
|
||||
xtc_result xtc_realtime_position(xtc_realtime *p, uint64_t position)
|
||||
{ if (!p || position > UINT64_MAX-65536U) return XTC_ERR_INVALID_ARGUMENT; p->position = position; return XTC_OK; }
|
||||
|
||||
void xtc_realtime_reset_history(xtc_realtime *p)
|
||||
{
|
||||
if(!p)return;
|
||||
xtc_plan_reset_history(p->active);
|
||||
xtc_plan_reset_history(__atomic_load_n(&p->pending,__ATOMIC_ACQUIRE));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue