diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-10 16:23:54 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-10 16:23:54 +0000 |
commit | dd7caa01654dc58d3259eeed0e0f2b8ddb293b66 (patch) | |
tree | 58c4f85e4a8c4882f8213a686f4c5182f27af79f /libs/ardour/delivery.cc | |
parent | f7cef2016f737a7c80b5307d3d45d8065b9e8789 (diff) |
Optimise BufferSet::attach_buffers code to avoid memory allocation in the RT thread and speed things up a bit.
git-svn-id: svn://localhost/ardour2/branches/3.0@8490 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r-- | libs/ardour/delivery.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index 9bf597ef66..80135baf28 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -246,7 +246,7 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf processing pathway that wants to use this->output_buffers() for some reason. */ - output_buffers().attach_buffers (ports, nframes, _output_offset); + output_buffers().get_jack_port_addresses (ports, nframes, _output_offset); // this Delivery processor is not a derived type, and thus we assume // we really can modify the buffers passed in (it is almost certainly @@ -544,6 +544,6 @@ Delivery::output_changed (IOChange change, void* /*src*/) { if (change.type & IOChange::ConfigurationChanged) { reset_panner (); + _output_buffers->attach_buffers (_output->ports ()); } } - |