Optimize Plugin connect & run API, use const maps
[ardour.git] / libs / ardour / ardour / audio_unit.h
index 407be7a6dc414d692ee03c7a3e2cb2dbe6b5ef12..3a01349dd36887e7e771a93b3cc23b8cc424c8ae 100644 (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);