summaryrefslogtreecommitdiffstats
path: root/src/server/Buffer.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 23:27:30 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 23:27:30 +0000
commit46eff0830c8894997fb624733fadcea9c6d74812 (patch)
treea804a37965ee6531cd9934d5957ff8c51420ebb0 /src/server/Buffer.hpp
parent2f03ac2d3e83563eacbacd4e17b4059605dc58b4 (diff)
downloadingen-46eff0830c8894997fb624733fadcea9c6d74812.tar.gz
ingen-46eff0830c8894997fb624733fadcea9c6d74812.tar.bz2
ingen-46eff0830c8894997fb624733fadcea9c6d74812.zip
Use the usual semantics for 'end' for Buffer::set_block, which in addition to actually making sense, allows GCC to optimize the loop.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4650 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Buffer.hpp')
-rw-r--r--src/server/Buffer.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/Buffer.hpp b/src/server/Buffer.hpp
index cb07b09e..329abb12 100644
--- a/src/server/Buffer.hpp
+++ b/src/server/Buffer.hpp
@@ -18,7 +18,6 @@
#define INGEN_ENGINE_BUFFER_HPP
#include <cassert>
-#include <cstddef>
#include <boost/utility.hpp>
@@ -50,7 +49,7 @@ public:
virtual void clear();
virtual void resize(uint32_t size);
virtual void copy(Context& context, const Buffer* src);
- virtual void set_block(Sample val, size_t start_offset, size_t end_offset);
+ virtual void set_block(Sample val, SampleCount start, SampleCount end);
virtual void prepare_write(Context& context);
void* port_data(PortType port_type, SampleCount offset);