Move RegionFx ThreadBuffers to Butler thread
This commit is contained in:
parent
170b915038
commit
ee87b068e8
@ -2430,9 +2430,6 @@ AudioRegion::apply_region_fx (BufferSet& bufs, samplepos_t start_sample, samplep
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ARDOUR::ProcessThread* pt = new ProcessThread (); // TODO -> move to butler ?
|
|
||||||
pt->get_buffers ();
|
|
||||||
|
|
||||||
samplecnt_t latency_offset = 0;
|
samplecnt_t latency_offset = 0;
|
||||||
|
|
||||||
for (auto const& rfx : _plugins) {
|
for (auto const& rfx : _plugins) {
|
||||||
@ -2470,6 +2467,4 @@ AudioRegion::apply_region_fx (BufferSet& bufs, samplepos_t start_sample, samplep
|
|||||||
}
|
}
|
||||||
_fx_pos = end_sample;
|
_fx_pos = end_sample;
|
||||||
_fx_latent_read = false;
|
_fx_latent_read = false;
|
||||||
pt->drop_buffers ();
|
|
||||||
delete pt;
|
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,12 @@ Butler::_thread_work (void* arg)
|
|||||||
{
|
{
|
||||||
SessionEvent::create_per_thread_pool ("butler events", 4096);
|
SessionEvent::create_per_thread_pool ("butler events", 4096);
|
||||||
pthread_set_name (X_("butler"));
|
pthread_set_name (X_("butler"));
|
||||||
return ((Butler*)arg)->thread_work ();
|
ARDOUR::ProcessThread* pt = new ProcessThread ();
|
||||||
|
pt->get_buffers ();
|
||||||
|
void* rv = ((Butler*)arg)->thread_work ();
|
||||||
|
pt->drop_buffers ();
|
||||||
|
delete pt;
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
void*
|
void*
|
||||||
|
Loading…
Reference in New Issue
Block a user