Optimize Plugin connect & run API, use const maps

This commit is contained in:
Robin Gareus 2018-11-04 02:15:28 +01:00
parent 51e33796f1
commit cbef72b8a1
12 changed files with 12 additions and 12 deletions

View File

@ -85,7 +85,7 @@ class LIBARDOUR_API AUPlugin : public ARDOUR::Plugin
int connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset);
std::set<Evoral::Parameter> automatable() const;
std::string describe_parameter (Evoral::Parameter);

View File

@ -84,7 +84,7 @@ class LIBARDOUR_API LadspaPlugin : public ARDOUR::Plugin
int connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset);
std::string describe_parameter (Evoral::Parameter);

View File

@ -89,7 +89,7 @@ public:
int connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset);
std::string describe_parameter (Evoral::Parameter);

View File

@ -113,7 +113,7 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
int connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset);
std::string describe_parameter (Evoral::Parameter);

View File

@ -115,7 +115,7 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public Latent
virtual int connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset);
virtual std::set<Evoral::Parameter> automatable() const = 0;

View File

@ -74,7 +74,7 @@ public:
int connect_and_run (BufferSet&,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset
);

View File

@ -1639,7 +1639,7 @@ AUPlugin::render_callback(AudioUnitRenderActionFlags*,
int
AUPlugin::connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in_map, ChanMapping out_map,
ChanMapping const& in_map, ChanMapping const& out_map,
pframes_t nframes, samplecnt_t offset)
{
Plugin::connect_and_run(bufs, start, end, speed, in_map, out_map, nframes, offset);

View File

@ -558,7 +558,7 @@ LadspaPlugin::automatable () const
int
LadspaPlugin::connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in_map, ChanMapping out_map,
ChanMapping const& in_map, ChanMapping const& out_map,
pframes_t nframes, samplecnt_t offset)
{
Plugin::connect_and_run (bufs, start, end, speed, in_map, out_map, nframes, offset);

View File

@ -614,7 +614,7 @@ LuaProc::configure_io (ChanCount in, ChanCount out)
int
LuaProc::connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in, ChanMapping out,
ChanMapping const& in, ChanMapping const& out,
pframes_t nframes, samplecnt_t offset)
{
if (!_lua_dsp) {

View File

@ -2568,7 +2568,7 @@ write_position(LV2_Atom_Forge* forge,
int
LV2Plugin::connect_and_run(BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in_map, ChanMapping out_map,
ChanMapping const& in_map, ChanMapping const& out_map,
pframes_t nframes, samplecnt_t offset)
{
DEBUG_TRACE(DEBUG::LV2, string_compose("%1 run %2 offset %3\n", name(), nframes, offset));

View File

@ -353,7 +353,7 @@ Plugin::write_immediate_event (size_t size, const uint8_t* buf)
int
Plugin::connect_and_run (BufferSet& bufs,
samplepos_t /*start*/, samplepos_t /*end*/, double /*speed*/,
ChanMapping /*in_map*/, ChanMapping /*out_map*/,
ChanMapping const& /*in_map*/, ChanMapping const& /*out_map*/,
pframes_t nframes, samplecnt_t /*offset*/)
{
if (bufs.count().n_midi() > 0) {

View File

@ -671,7 +671,7 @@ VSTPlugin::automatable () const
int
VSTPlugin::connect_and_run (BufferSet& bufs,
samplepos_t start, samplepos_t end, double speed,
ChanMapping in_map, ChanMapping out_map,
ChanMapping const& in_map, ChanMapping const& out_map,
pframes_t nframes, samplecnt_t offset)
{
Plugin::connect_and_run(bufs, start, end, speed, in_map, out_map, nframes, offset);