Optimize Plugin connect & run API, use const maps
This commit is contained in:
parent
51e33796f1
commit
cbef72b8a1
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
@ -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));
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user