13
0

Move RegionFx ThreadBuffers to Butler thread

This commit is contained in:
Robin Gareus 2024-04-30 01:54:33 +02:00
parent 170b915038
commit ee87b068e8
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 6 additions and 6 deletions

View File

@ -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;
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_latent_read = false;
pt->drop_buffers ();
delete pt;
}

View File

@ -172,7 +172,12 @@ Butler::_thread_work (void* arg)
{
SessionEvent::create_per_thread_pool ("butler events", 4096);
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*