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/ardour/buffer_set.h | |
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/ardour/buffer_set.h')
-rw-r--r-- | libs/ardour/ardour/buffer_set.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h index c3358f4436..fc5ef96449 100644 --- a/libs/ardour/ardour/buffer_set.h +++ b/libs/ardour/ardour/buffer_set.h @@ -66,7 +66,8 @@ public: void clear(); - void attach_buffers(PortSet& ports, framecnt_t nframes, framecnt_t offset = 0); + void attach_buffers (PortSet& ports); + void get_jack_port_addresses (PortSet &, framecnt_t, framecnt_t); /* the capacity here is a size_t and has a different interpretation depending on the DataType of the buffers. for audio, its a frame count. for MIDI |