From 071c72a9770792044a0758b910067cfd4ddd000a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 3 Apr 2016 03:12:55 +0200 Subject: [PATCH] small optimization, read-only buffer suffices here. --- libs/ardour/io.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 9fa6c7085d..79ee78d8a5 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -1674,7 +1674,7 @@ IO::collect_input (BufferSet& bufs, pframes_t nframes, ChanCount offset) } for ( ; i != _ports.end(*t); ++i, ++b) { - Buffer& bb (i->get_buffer (nframes)); + const Buffer& bb (i->get_buffer (nframes)); b->read_from (bb, nframes); } }